Rails can I use form tag inside form for? -


i want form this, because want use :pass_value pass value other properties in controller. not work. please provide right way this?

<% form_for @person |f| %>   <%= f.text_field :name %>   <%= text_tag :pass_value %>   <%= f.submit %> <% end %> 

you cannnot use form_tag inside form. if want pass value of :pass_value not attribute, try making use of virtual attribute. can make use of :attr_accessor method.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -