0
我写:轨道3形式的远程
<%= 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 %>
督察: http://deeflow.com/changer/inspect.png
内容: http://deeflow.com/changer/content.png
但是,分贝值不更新
'表格数据视图URL编码 UTF8:✓ _method:把 authenticity_token:epPcqZuTWLM4qwdgTXfbuuDLj64Pn2q2mzTWLB3AO2E = 用户%5Blanguage%5D:主机 承诺:Save' incorect:用户%5Blanguage%5D:主机 –
你检查你的CURRENT_USER不是零? – rubish
#<用户ID:1,电子邮件:“[email protected]”,encrypted_password:“$ 2a $ 10 $ vOfBA2WhLIXyhweD3bXZSeEqJ240UPh85muJ47jEnH.w ...”,reset_password_token:nil,reset_password_sent_at:nil,remember_created_at:nil,sign_in_count:14 ,current_sign_in_at:“2011-07-04 08:27:51”,last_sign_in_at:“2011-07-03 21:39:38”,current_sign_in_ip:“127.0.0.1”,last_sign_in_ip:“127.0.0.1”,created_at:“ 2011-07-04 15:43:04“,updated_at:”2011-07-04 08:27:51“,用户名:nil,password_salt:nil,password_hash:nil,avatar_url:nil,language:nil> –