On Sunday, June 28, 2015 at 7:36:34 AM UTC+1, Padmahas Bn wrote:
> Hello all,
>
>
> I would like to have a form in which some of the fields are linked to model and some fields are not. When I use form_for tag it binds to a particular model and I cannot create form fields that aren't correspond to one of the column name of the table (Model). Hence what I think is I should use form_tag instead of form_for so that it contains whatever the form fields it want but one thing I can't find by googling is how can I connect specific fields to a model leaving other fields free of model?
>
You can still use form_for, but use text_field_tag rather than f.text_field for the non model form inputs.
Fred