Ruby On Before Filter URL Redirect ...

by TimK, October 01, 2008 12:17

Thank you again Adam - I un...

2722012beb9afcad75df5c9f2229fd8c Talk
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 ...

2722012beb9afcad75df5c9f2229fd8c Talk

Ruby On Before Filter URL Redirect ...

by TimK, September 30, 2008 03:39

Excellent - much nicer... I...

2722012beb9afcad75df5c9f2229fd8c Talk
1
2
3
4
def redirect_to_current_user
  if params[:id] != current_user.login
    if params[:action] == "show"
...

Ruby Before Filter URL Redirect ...

by TimK, September 30, 2008 00:18, 5 refactorings, tagged with rails

I'm using to_param to pass ...

2722012beb9afcad75df5c9f2229fd8c Talk