Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprockets::CircularDependencyError in Home#index on new install #10

Closed
marcamillion opened this issue Aug 29, 2012 · 4 comments
Closed

Comments

@marcamillion
Copy link

When I just installed, I got this error:

 Sprockets::CircularDependencyError in Home#index

This is because when I was going through the settings I chose the option for all the pages (Home, About Us, etc.).

The fix I found, is just deleting the application.css file, because it looks like the recipe adds an application.css.scss file - which does the same thing.

Now everything works perfectly!

@DanielKehoe
Copy link
Member

I'm having trouble duplicating this. Are you running the Rails Composer tool (the generic application template) or are you creating an app using the rails_apps_composer gem? Could you please show me the recipes and preferences that are recorded in the README file?

@marcamillion
Copy link
Author

I just used the Rails Composer tool - i.e. rails new myapp -m <url for composer.rb>.

Here are the recipe and preferences in the README file:

My App
========================

This application was generated with the rails_apps_composer gem:
https://github.com/RailsApps/rails_apps_composer
provided by the RailsApps Project:
http://railsapps.github.com/

________________________

Recipes:
["controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "prelaunch", "railsapps", "readme", "routes", "setup", "testing", "views"]

Preferences:
{:git=>true, :railsapps=>"none", :dev_webserver=>"thin", :prod_webserver=>"thin", :database=>"sqlite", :templates=>"erb", :unit_test=>"test_unit", :integration=>"none", :fixtures=>"none", :frontend=>"bootstrap", :bootstrap=>"less", :email=>"sendgrid", :authentication=>"devise", :devise_modules=>"confirmable", :authorization=>"cancan", :form_builder=>"none", :starter_app=>"admin_app", :ban_spiders=>true, :jsruntime=>true, :rvmrc=>true}

It is possible that I may have done something wrong, because I was having a problem just getting the application running any at all - as per my comments in another issue or two.

But all that happened was that there was an application.css and application.css.scss file.Once I deleted the former, everything is now gravy.

@DanielKehoe
Copy link
Member

Thanks for catching this. Turns out that when you select Bootstrap (Less) twitter-bootstrap-rails creates a new application.css after we already removed it. I've corrected the error and updated the Rails Composer tool. Please give it a try and reopen the issue if the problem isn't resolved.

@marcamillion
Copy link
Author

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants