On 6 April 2012 10:01, phoe san wrote:
> ...
> def update
>
> @user = User.find(params[:id])
>
> @user.email = params[:user][:email]
>
> @user.save
>
>
> respond_to do |format|
>
> if @user.save = @user.update_attributes(params[:user])
>
> if @user.update_attributes(par
In my edit page: url = profile/:id/edit
the content is !
<%= form_for(@user, :as => :user, :url => profile_path(current_user),
:html=>{:method => :put}) do |form| %>
<%= form.text_field :email, :class=>"input"%>
<%= form.submit 'Update Profile'%>
<% end %>
In cont
2 matches
Mail list logo