Topic: Using devise, how do you route to and after login?
Using rails 3.2.5 and devise 2.1.0
I've looked at so many posts and web pages about this that I probably wouldn't recognize the answer if it was placed in front of me, but my questions are these:
How do I make the login page the root of my (internal usage only) app?
I tried adding to my routes.rb file:
root :to => <%= link_to('login, new_user_session_path) %>
but this results in an error from the server: "Unexpected '<' ..."
How do I route the user after login? I need to send them to, for example employee 10119, to '/employee/10119/timecard'. Everything I have read assumes the user will try to access a restricted page, Devise will log them in then send them to the page they were trying to get to. I want to send the user to their specific timecard page after logging in.
Any ideas? Thanks. --Fred