Temporarily store User id when loading user page for multiple
views/controllers
I want to create a multi user app with no authentication.
I want to have unique urls for each user and assume they will not know
other people's urls. So when user visits a user page, I want to store that
id and use it provide a nav link (to setup a nav like 'my page | feed page
| some other page')
I've been trying to figure out how to use current_user=sessions[:user_id]
in the Application Controller but am getting lost.
No comments:
Post a Comment