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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With