I am porting an old RoR site I built in 2005/6 over to latest version of rails.
It took me days of effort to figure out why templates wouldn't render inside of the application layout.
It was b/c I was using <%= @content_for_layout %> in my application.html.erb file and it's been deprecated in favor of a simple <%= yield %>. #refactoring! hindsight is 20/20!
This script by John Nunemaker was useful for renaming my old view files from .erb to .html.erb.
Technology Agnostic Rubyist : Open Source Lights The Way
Saturday, June 23, 2012
Subscribe to:
Posts (Atom)