Editing users with restful_authentication

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!

n/m this post… problem was unrelated…