I have just moved from using php mvc frameworks to rails and have been going through the guides and devouring railscasts.
It seems that everything is based around restful resources and creating functionality around these parts is intuitive.
The non-restful/non-model-based parts are slightly less intuitive or at least seem to be less covered by documentation.
There’s 3 types of users in my web app. When a user logs in then I want them to be displayed a dashboard page with some basic summary information depending on which type of user they are.
Whats the best way to represent this? Do I just create a new Action Controller called Dashboard to represent this non-model-based functionality and then create the methods I need like show or is there a better strategy?
Cheers
Yes, you could create a new Dashboard controller.
If it will likely only be the show action, you could just add a new dashboard method to your users controller and the route
match "/users/:id/dashboard" => "users#dashboard".