This sounds like it should be easy but I am having a hard time with it.
I am making a website but I’m trying to make everything in it fairly
database driven, this is really pretty much my first rails project.
I have a table called ‘nav_items’ to display the nav choices, but there
is also other dynamic data on the homepage such as the ‘events’ which
I’ve created a table for. So I want them to be both pulled into the
homepage which is at http://localhost:3000/home on my system right now.
So to get the data I create models ‘events’ and ‘nav_items’, don’t I
need a controller for each to pull out the data? And when I call that
controller (http://localhost:3000/nav_items) then it will take me away
Basically I’m looking to put all this data on one page without having to
call 2 different controllers?
I hope this all makes sense.