Saturday, 15 September 2012

Multiple layouts on rails 4 -


I have an application layout and I'm trying to create other layouts just like a dashboard, I doubt how to create a controller And it requires JS. Would the controller just like the application? And when I add the layout, the console asks me to add it to the pre-compilation of CSS and JS. Does that mean that CSS and JS will be pre-loaded in my application?

Such a base controller

  Classroom Basant Controller & lt; App / View / Layout /my_application.html ARB   

Then your other controllers whom you would like to my_application.html If you want to use ARB as a layout, you can get the right of the BaseController

such as

  Class Home Controller & lt; BaseControler ** Here are some ways ** end  

Good luck!


No comments:

Post a Comment