Ruby on Rails Monday, August 20, 2018

I have a small website with only static pages. I have s controller for all the static pages.
Application.html never gets loaded. I have replicated the prelude boilerplate in each static page. It works, but it kinda ugly.

Is there a way to create a .html.erb page to hold all the boilerplate stuff (e.g. !HTML, <head>, etc) and have it automatically loaded 
before any of the static pages?

Thanks,

Joe

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cb73086c-1518-43be-99dc-b3563f4ce74a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment