James
James

Reputation: 357

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

Upvotes: 3

Views: 2560

Answers (1)

James
James

Reputation: 357

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.

Upvotes: 2

Related Questions