Sunday, April 17, 2011

[Rails] Re: routes question rails 3.0 vs. rails 2.0

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 %>
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate