Force current_user path
Posted
by pcasa
on Stack Overflow
See other posts from Stack Overflow
or by pcasa
Published on 2010-06-03T17:36:03Z
Indexed on
2010/06/03
18:04 UTC
Read the original article
Hit count: 283
ruby-on-rails
|ruby
Currently users can access their "profile" through many paths.
- localhost:3000/users/current_user
- localhost:3000/users/current
- localhost:3000/users/id#
How can I make it that they can only get to their "profile" through localhost:3000/users/current_user
© Stack Overflow or respective owner