This is my first Rails project - so my apologies if my description / question is "blurry".
1. I have two Controllers: courses and static_pages.
2. I want to render the index-action from the Courses controller on the static_pages home view page.
Is this possible (without breaking the DRY rule)? Should I (can you?) move the index view (for Courses controller) to a partial?
I have tried this - but is it not working (no errors - no render of index action):
def index @courses = Course.all end
Static_pages controller have a (empty) home action, which I changed to this:
def home @courses = Course.all end
<%= yield %>
Sorry for the fuzzy explanation