You probably just have a typo in your code...

If you include a

   <%= text_field_tag 'firstname' %>

in your form, then you can get the value in the controller using

   params[:firstname]


If you use nested resources, a

   <%= text_field_tag 'user[firstname]' %>

in your form, will result in

   params[:user][:firstname]

in your controller.

Regards,
Tom
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to