Rob
Rob

Reputation: 7216

ActiveScaffold Rails 4

I'm getting a really strange error with ActiveScaffold and Rails 4. I created a brand new project, ran "rake db:create" and "bundle install", then added the gem active_scaffold to my gem file and run "bundle install" again. Everything works fine at this point.

Then, when I try to put in:

rails g active_scaffold Test test:string

I get:

/Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247/gems/active_scaffold-3.2.20/lib/active_scaffold.rb:2:in `<top (required)>': This version of ActiveScaffold requires Rails 3.1 or higher.  Please use an earlier version. (RuntimeError)
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /Users/rgrzesik/Documents/Rails_Projects/FingertipFormulary/config/application.rb:7:in `<top (required)>'
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/railties-4.0.0/lib/rails/commands.rb:44:in `require'
from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247@global/gems/railties-4.0.0/lib/rails/commands.rb:44:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

What gives? I'm running Rails 4, which is way beyond Rails 3.1. Any ideas?

Upvotes: 1

Views: 1002

Answers (1)

struthersneil
struthersneil

Reputation: 2750

It looks like there is no release version yet containing that Rails 4 support. You can always try your luck with the current version from github: gem 'active_scaffold', github: 'activescaffold/active_scaffold', branch: 'master'

You can then keep an eye out for the release of 3.4.0 proper. For the meantime you would continually have the very latest stuff from the master branch (possibly broken, or at least not 'satisfaction guaranteed').

Upvotes: 2

Related Questions