I imagine this is a pretty common thing so I'm assuming there is a "rails" 
way to do this.

I have an index page for my app and when a user logs in, I am querying 
various models to get lists of the objects associated with a user. I want 
to display this stuff on the main page of the app, kind of like a dashboard.

So... basically, is there an easy way to call the index.html.erb associated 
with one model from within another?  I've got the list of objects I'd want 
rendered. How would I pass that in? From my searches, it seems like I can 
create an ERB object, bind the var to that ERB object, and then render it. 
 But was just wondering if that was the right way?

Thanks

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/bhU5hCGR8DsJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to