Topic: Making sure users log in/user management
I have a bunch of controllers in my application, each dealing with customers, or users, or orders. I also have a controller called dashboard, which is the home page for users. From the dashboard people can create customers, create orders, etc. Users must be registered and logged in.
I want to avoid putting a "check_authentication" method in each controller, just because I don't like code duplication. Is there a good way to do this in rails? I'm very new to rails, recently converted from Java. Helpers perhaps?
Thanks for any suggestions