我有一个常规的用户信息表格,开头如下:
<%= form_for(@user, :html => { :class => "form-horizontal" }) do |f| %>
<%= f.text_field :last_name %>
...
<%= f.submit "Submit", class: "btn btn-primary", :name => "submit_button" if @user.last_step? %>
<% end %>
我在表单中还有一些非用户字段。这是一个例子:
<%= f.label "When is your birthday?" %>
<%= select_tag "month" %>
<%= select_tag "day" %>
<%= select_tag "year" %>
我如何将其保存到与用户不同的表中?