Note that there are some explanatory texts on larger screens.

plurals
  1. POmissing template in rails 3 in including jquery
    primarykey
    data
    text
    <p>I am trying to include jquery focus function in my rails application for the jquery search button .I have included jquery-rails in my gem file, also bundled it. but I am getting this error. My code for the search.js.erb</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;script&gt; $(document).ready(function(){ $("#show_fld").focus(function(){ $(this).css("background-color","#cccccc"); }); $("#show_fld1").blur(function(){ $(this).css("background-color", "#ffffff"); }); }); &lt;/script&gt; &lt;body&gt; &lt;%=form_tag({controller: 'tweets', action:'index'}, method: "get") do %&gt; &lt;%=label_tag(:search, "Search for:") %&gt; &lt;%=text_field_tag(:text,",:id=&gt;'show_fld') %&gt; &lt;%=label_tag(:show, "Show for:") %&gt; &lt;%=text_field_tag(:show,",:id=&gt;'show_fld1') %&gt; &lt;%= submit_tag( "GO" ) %&gt; &lt;% end %&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I am getting this error "Missing template tweets/search, application/search with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in: * "/home/xyz/tweetsblog7/app/views" .It says "template is missing". Any body please help me with this.</p> <pre><code>&lt;%= will_paginate @tweets %&gt; &lt;% @tweets.each do |tweets| %&gt; &lt;ul&gt; &lt;li&gt;&lt;%= tweets.id %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.tweet_created_at %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.tweet_text %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.user_id %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.user_name %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.user_loc %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.user_img %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.longitude %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.latitude %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.place %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= tweets.country %&gt;&lt;/li&gt; &lt;/ul&gt; &lt;% end %&gt; </code></pre> <p>This is my generated html code</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload