On Sun, Apr 17, 2011 at 4:17 PM, sol.manager <sol.mana...@gmail.com> wrote:
> The full error message goes something like this: > > showing app/views/jobs/_search_form.html.erb where line #1 raised: > > compile error > /Users/aesthetica/Apps/blank-r2311/app/views/jobs/ > _search_form.html.erb:1: syntax error, unexpected ')' > ...obs_path, :method => :get do ).to_s); @output_buffer.concat ... > ^ > /Users/aesthetica/Apps/blank-r2311/app/views/jobs/ > _search_form.html.erb:6: syntax error, unexpected kENSURE, expecting > ')' > /Users/aesthetica/Apps/blank-r2311/app/views/jobs/ > _search_form.html.erb:8: syntax error, unexpected kEND, expecting ')' > Extracted source (around line #1): > > 1: <%= form_tag search_jobs_path, :method => :get do %> > Problem is not the route, then. This line (above) should not have an '=' sign at the beginning. Try <% form_tag search_jobs_path, :method => :get do %> > 2: <p> > 3: <%= text_field_tag :query, params[:query] %> <%= submit_tag > "Search!" %> > 4: </p> > Trace of template inclusion: app/views/jobs/_search_form.html.erb, app/ > views/jobs/index.html.erb > > > > > What is the error? > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.