1 2 3
def redirect_to_current_user redirect_to :id => current_user unless params[:id] == current_user.login end
Ruby On Before Filter URL Redirect ...
by TimK,
October 01, 2008 03:41
Adam, I was thinking about ...
Ruby On Before Filter URL Redirect ...
by TimK,
September 30, 2008 03:39
Excellent - much nicer... I...
1 2 3 4
def redirect_to_current_user if params[:id] != current_user.login if params[:action] == "show" ...
Ruby Before Filter URL Redirect ...
I'm using to_param to pass ...
Thank you again Adam - I un...