Is there any way that you can mark a form field to be only accessible in the view?
I have some ‘helper’ fields that I use in conjunction with jQuery to build and order certain elements in the view. These fields don’t need to be passed through to the controller and are not linked to the model at all.
I’m just wondering if there is some attribute I can use with the ROR form fields to mark them as obsolete.
Currently I am just using vanilla form fields.
Maybe
FormTagHelper(doc) may help you. With this helper you can create html inputs outside of a form (this way the value of these input fields won’t be sent to the controller).