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

ActionView::FileSystemResolver error while launching server on Rails 4.1.1. #44

Open
raphaelpflieger opened this issue Jun 9, 2014 · 1 comment · May be fixed by #45
Open

ActionView::FileSystemResolver error while launching server on Rails 4.1.1. #44

raphaelpflieger opened this issue Jun 9, 2014 · 1 comment · May be fixed by #45

Comments

@raphaelpflieger
Copy link

Firstly thanks a lot to all contributors behind this gem, I've already used it on a couple of projects and it always worked like a charm.

However since upgrading to Ruby 2.0.0. and Rails 4.1.1. I've not been able to use it, it makes the whole app crash while running 'rails server' (oh I'm on Windows 8.1, hope it's not related to that...)

Here are the logs:

C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/bundler/gems/mobylette-08781e203eaa/lib/mobylette/resolvers/chained_fallback_resolver.rb:3:in `<module:Resolvers>': uninitialized constant ActionView::FileSystemResolver (NameError)
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/bundler/gems/mobylette-08781e203eaa/lib/mobylette/resolvers/chained_fallback_resolver.rb:2:in `<module:Mobylette>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/bundler/gems/mobylette-08781e203eaa/lib/mobylette/resolvers/chained_fallback_resolver.rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/bundler/gems/mobylette-08781e203eaa/lib/mobylette.rb:5:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/bundler/gems/mobylette-08781e203eaa/lib/mobylette.rb:5:in `<module:Mobylette>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/bundler/gems/mobylette-08781e203eaa/lib/mobylette.rb:3:in `<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from C:/Users/Raphael/Dropbox/Sites/lacarteimmobiliere/config/application.rb:14:in `<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:79:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:79:in `block in server'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `tap'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `server'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

It's referring to this line on application.rb:

Bundler.require(*Rails.groups)

Thank you for any help provided :)

nubbel added a commit to equinux/mobylette that referenced this issue Jul 4, 2014
…nt to load FileSystemResolver

* Fixes tscolari#44
* I've transplanted this commit from emilioforrer/haml_coffee_assets@7167b26
* This fixes mobylette-3.5/lib/mobylette/resolvers/chained_fallback_resolver.rb:3:in `<module:Resolvers>': uninitialized constant ActionView::FileSystemResolver (NameError)
* For more details, see rails @ 3fbff78 (rails/rails@3fbff78#diff-90f6f2b6859f5da65e11631ebcdf3f09)
demonodojo added a commit to demonodojo/mobylette that referenced this issue Feb 18, 2016
@jacktang
Copy link

Hi, I added these two lines to the top of my application.rb to fix the issue

require "action_view"
require "action_view/template/resolver"

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

Successfully merging a pull request may close this issue.

2 participants