My application has pages of two basic types: forms and tables.
As such, I have two different CSS files, forms.css and tables.css.
In my application layout file (application.html.erb), I'd like to load different stylesheets depending on some sort of flag set in a given view.
For example, <%= defined?(@tables) : stylesheet_link_tag 'tables' ? stylesheet_link_tag 'forms' %>
.
The above snippet doesn't actually work, but that's what I'm trying to accomplish?
Any ideas?