Topic: All my assets are in my application [SOLVED]

i have a problem that all the files in my assets are are showing.
I only want to use them for one layout

how can i prevent them from loading in others

i have 2 layout files
app/views/layouts/application.html.erb  LOADS EVERYTHING

and app/views/layouts/static_pages.html.erb is just right


my problem comes with Divice and i dont know where the controller is so i cant change the layout

Last edited by moiseszaragoza (2012-05-22 16:13:23)

Re: All my assets are in my application [SOLVED]

in my layout file i had


  <%= stylesheet_link_tag "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>


These file loads all from the assets pipeline