Hi,

On Thu, Jan 13, 2011 at 13:39, Jason Nah <jason....@gmail.com> wrote:
> I have the following defined in my routes file
>
> resources :users
>
> And a controller:
> class UsersController < ApplicationController
>    before_filter :load_user
>
>    def show
>       redirect_to(user_path(@user))
>    end
>    private
>    def load_user
>       @user = User.find(params[:id])
>    end
> end

Perhaps I'm missing something here, but doesn't this
UsersController#show redirect to itself the way this code is written?

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

Reply via email to