[Rails] Re: Pass variable to action
Dave Castellano wrote in post #1106220:
> Hi,
>
> Still learning rails and have a basic question. Can I pass any variable
> thru the params hash to an action?
You can do that the same way you would do it in HTML, use a hidden form
field. Rails has a helper for that:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-hidden_field
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home