On 16 November 2012 07:37, Soichi Ishida <[email protected]> wrote: > Is there anyway to manipulate form_tag from controllers? > > Like, in order to edit, _form.html.erb must to be filled with the values > for the model. > At the same time, there are some checkbox or radio buttons related to > the form, but they are not needed for the model directly. > > I want to choose the values and fill those form_tag fields as well when > users click edit action.
You can put data in @variables in the controller and then access those in the view to put whatever you like in the fields. Colin -- 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 https://groups.google.com/groups/opt_out.

