I have a simple form that looks like this:
<%= simple_form_for @study,:url => studies_path, :html => { :class => 'form-horizontal' } do |f| %>
<%= f.input :category, :collection => @categories, :label => "Category", :selected => @categories.first %>
<%= f.button :submit, t('add_form'),:class => 'btn-primary' %>
I want to add a new field in that form that will be merely visual sugar. It will be a helper to dynamically change the :category field.
How do I do that?
Use
text_field_tagor whichever other_taghelper to generate a form element without attaching it to any specific attribute of the model: