Rails : How to assign name and id to hidden_field_tag?

krunal shah picture krunal shah · Mar 14, 2011 · Viewed 17.2k times · Source

How to assign specific id and name to hidden_field_tag ?

Like this,

hidden_field_tag(:id => "page_no",:name => "page", :value => "1" )

Any Idea!

Answer

Mike Lewis picture Mike Lewis · Mar 14, 2011