redirect back to where I was before action?

Pulling some code from Rick Olson's acts_as_authenticated, roll something akin to this following code. This requires that you're using sessions.

def redirect_back_or_default(default)     session[:return_to] ? redirect_to_url(session[:return_to]) : redirect_to(default)     session[:return_to] = nil end

Note, you'd want to put this in a file that's accessible to your controller or view. So application.rb or a global helper or in a lib file called on load would be two good bets.