<%= f.text_field :email , :value => session[:user_email], :readonly => true %>
可在params中传递email
<%= f.text_field :email , :value => session[:user_email], :disabled=>true %>
不可在params中传递email
<%= f.text_field :email , :value => session[:user_email], :readonly => true %>
可在params中传递email
<%= f.text_field :email , :value => session[:user_email], :disabled=>true %>
不可在params中传递email