Estoy siguiendo el manual Agile Web Development with Rails 4th edition y tengo un problema con sprocket css in rails 3.1.Piñones :: CircularDependencyError in Store # índice
El css código es:
Si modifico el código CSS de aplicación/activos/hojas de estilo/aplication.css.scss que coger el siguiente error:
Sprockets::CircularDependencyError in Store#index
Showing /home/ubuntu/Desktop/Depot/app/views/layouts/application.html.erb where line #5 raised:
/home/ubuntu/Desktop/Depot/app/assets/stylesheets/application.css.scss has already been required
Extracted source (around line #5):
2: <html>
3: <head>
4: <title>Pragprog Books Online Store</title>
5: <%= stylesheet_link_tag "application" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tag %>
8: </head>
Rails.root: /home/ubuntu/Desktop/Depot
Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:5:in`_app_views_layouts_application_html_erb___1008723970_81658620'
No entiendo por qué si modifico un valor de margen o un valor de relleno en aplication.css.scss, por ejemplo, obtengo este error.
Muchas gracias.
¿Desaparece al reiniciar el servidor? –
No. He reiniciado el servidor pero el problema no está solucionado. Si desactivo el CSS, la página funciona pero sin CSS. He eliminado de aplication.html.erb la aplicación <% = stylesheet_link_tag "%>. Entonces la página funciona bien pero sin CSS. No sé que puedo hacer para solucionar este problema :(Muchas gracias. – hyperrjas
Por favor, ponga un ejemplo reproducible. –