1º borrar //= require_tree . de estilos o javascript
2º agregar al layout:
<%= stylesheet_link_tag "application", params[:controller], :media => "all" %>
<%= javascript_include_tag "application", params[:controller] %>
3º agregar a config/initializers/assets.rb
%w( controller_one controller_two controller_three ).each do |controller|
Rails.application.config.assets.precompile += ["#{controller}.js.coffee", "#{controller}.css"]
end
oh!
Rails.application.config.assets.precompile += %w( welcome.css )
Rails.application.config.assets.precompile += %w( backend.css )
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.