I am write:
<%= form_for(current_user, :remote => true) do %>
<p>
<%= label_tag t("language") %>:
<%= select_tag "language", options_for_select([["Русский", "rus"], ["English", "eng"]]) %>
</p>
<p><%= submit_tag t "options.save" %></p>
<% end %>
Inspector:
http://deeflow.com/changer/inspect.png
Content:
http://deeflow.com/changer/content.png
But, value in db doesn’t updated
Notice the variable
|f|and change oflabel_tag, select_tag and submit_tagtof.label, f.select and f.submitIn rails
form_forand correspondingform_buiderobject(|f|) are used to group values under a common key, which rails can understand.*_taghelpers are generally used to pass unrelated parameters.