Rails 3.x and erector #24

Open
nwmcsween opened this Issue Nov 30, 2011 · 3 comments

Comments

Projects
None yet
3 participants

Hi I'm using rails 3.1.3 and erector git (master) in Gemfile and seem to be running into 'uninitialized constant ActionView::CompiledTemplates::Views' if erector is used. Is there documentation of some sort on how to use erector with rails 3?

Contributor

jkingdon commented Dec 24, 2011

At work, we are using erector with rails 3.0.x but I haven't tried it with 3.1.x.

Getting the same error on Rails 3.1.

I think you need to add

config.autoload_paths << "#{config.root}/app"

To config/application.rb. Rails 3.1 doesn't add the app folder to the autoload path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment