Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails 3 - user dashboard

I'm looking at creating a dashboard for a logged in user which would then query the display other models data.

Would the best way to do this be to use something similar to this post: Map URL "/users/id" to "/dashboard" in Rails 3?, then to use a custom dashboard controller or would something like the Cells gem make this more straight forward?

I've also read this post which talks about something similar: How to pass argument to delegate method in Rails

Many thanks,

James

like image 798
James Avatar asked Dec 01 '25 21:12

James


1 Answers

I've decided to use the Cells gem (http://cells.rubyforge.org/) along with a dashboard controller. Something similar is discussed here: http://lostechies.com/derickbailey/2011/04/11/cells-partial-controllers-and-views-for-rails-3/

Some of these views will need to be used across several pages so this solution should keep things neat and maintainable.

like image 119
James Avatar answered Dec 03 '25 12:12

James