jeudi 17 décembre 2015

Is it possible to load + render an html.erb file within another html.erb file?

Is it possible to render another file, such as my show.html.erb, within my main.html.erb file?

"show.html.erb" belongs to a calendar controller. "main.html.erb" belongs to a Pages controller.

I want to do this because:

  1. I need to access some specific data from within the calendar in the database.
  2. I don't want my calendar to take up an entire view frame. I want it to be small and be integrated into the main page.

How would I go about doing this? Is it a silly idea?

Aucun commentaire:

Enregistrer un commentaire