I could not find any documents or examples on how to structure my application so that different views in the same controller could use completely different layouts and style sheets.
Our application was tinted, and then we used nifty generators to create views, and then added for authentication. We have views and controllers for two models: widgets and companies.
I currently have one layout: layouts / application.html.haml, I don't see the link wherever you are, so I assume (new to rails) that it is always used in the naming convention.
Now I need to add a couple of views (for mobile browsers) that have a different stylesheet and layout (for example, without login / logout links in the upper right corner), inside the same controllers.
How can I do that?
ruby-on-rails layout
jpwynn Feb 23 '11 at 11:10 2011-02-23 11:10
source share