smart rails application.html.erb layout