routes.rb
-----------
resources :mail_settings
我的表格看起来像这样
the _form.html.erb
---------
<%= form_tag '/mail_settings' do %>
<div class="fieldBlock">
<%= label_tag :name %> <%= text_field_tag :name%> </div>
<div class="fieldBlock">
<%= label_tag :id%> <%= text_field_tag :id%> </div>
<div class="actions fieldBlock">
<%= submit_tag "Update Settings ", :class => "btn-large btn-success" %>
</div>
<% end %>
但是我可以毫无问题地访问像 params[:name] 这样的单个参数,为什么当我尝试 params[:mail_setting] 时它不起作用?