Rails 4 by default will require the entire tree of css and javascripts for every view which I do not want. I just want to be able have the application.css and the individual controllers css stylesheet for each view.
To do this I have removed *= require_tree .
in the application.css
and added config.assets.precompile << "*.css"
in the config/environments/development.rb
which from another question on here should auto load all css files. I have added <%= stylesheet_link_tag params["clients"] %>
and also tried <%= stylesheet_link_tag params[:clients] %>
in the view but I cannot get the controller specific style to show up. In the page source it looks like <link href="" media="screen" rel="stylesheet" />
In my opinion I think the behaviour I am looking for should be default and by the description in the rails guides makes it sound like it is. If anyone could help me out that would be great. Thanks!