On 20 Oct 2009, at 19:31, elza.more...@tagview.com.br wrote:

Thank you for your replay. I did not mention that I have a method called in before_filter to set @user. before_filter :find_current, :only => [:show, :edit, :update, :destroy]
The method is
 def find_current
   @user = User.find(get_param(:id, :integer))
 end

After this call the controller is
 def edit
   @user = current_user if !is_admin?
 end

Elza,

Copying this back in to the main list as it is more valuable to discuss it there.

Can you please confirm that you are not confusing the concept of "logged in user" and "user to be edited with the Users controller"? That is what appears to be happening to me.

Ashley

--
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
http://aviewfromafar.net/







_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to