I have tried to get through this error with no luck. In a form I have a
user enter a title and then search the database for any similar titles.
I need help with this. It's like the information isn't being passed
through. Here is my information. I am using Rails 2.1 with
nifty_scaffold. First I changed my route
If you look at the HTML generated by your new.html.erb template you'll
see how form_for names your input fields. For example:
<% form_for @title, :url => { :action => :find_similar } do |f| %>
<%= f.text_field :name %>
<% end %>
Note the brackets around "name". As you know, Rails puts the
submitted form field names and values into a Hash called "params".
When a form field with brackets is submitted, Rails interprets the
value of the parameter "title" as a Hash with a key called "name". The
value of that field is assigned to that key. The result is a nested
Hash, exactly what you pasted in your first post.