n/m this post... problem was unrelated...
On Jan 29, 3:45 pm, Neal L
<neal.lo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi all,
>
> I''m using the wonderful restful_authentication plugin and would
like
> to allow users to update their profiles. The problem is that when the
> update method is called, it seems to log out the current user
> (current_user becomes nil).
>
> Any ideas?
>
> From the Users controller:
>
> def update
> @user = current_user.client.users.find(params[:id])
> params[:user][:login] = @user.login
>
> respond_to do |format|
> if @user.update_attributes(params[:user])
> flash[:notice] = ''User details were successfully
updated.''
> format.html { redirect_to client_path(current_user.client) }
> format.xml { head :ok }
> else
> format.html { render :action => "edit" }
> format.xml { render :xml => @user.errors, :status
> => :unprocessable_entity }
> end
> end
> end
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---