plataformatec/simple_form — Issue #380: Undefined method except (commit 94dab68)
Author: easychris
Created: 2011-12-05 15:23:20+00:00
State: open

It seems commit 94dab68cd7e8aba35971f71a6b0ab3f542b9c5f2 broke my current rails app. While starting up Rails I get this error message:

```
/Users/christian/.rvm/gems/ruby-1.9.3-p0/bundler/gems/simple_form-d2450192207f/lib/simple_form/wrappers/root.rb:10:in `initialize': undefined method `except' for {:class=>[:input], :error_class=>:field_with_errors, :tag=>:div}:Hash (NoMethodError)
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/bundler/gems/simple_form-d2450192207f/lib/simple_form.rb:141:in `new'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/bundler/gems/simple_form-d2450192207f/lib/simple_form.rb:141:in `build'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/bundler/gems/simple_form-d2450192207f/lib/simple_form.rb:130:in `wrappers'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/bundler/gems/simple_form-d2450192207f/lib/simple_form.rb:144:in `'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/bundler/gems/simple_form-d2450192207f/lib/simple_form.rb:5:in `'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
from /Users/christian/rails/testapp/config/application.rb:7:in `'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:52:in `require'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:52:in `block in '
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
from /Users/christian/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:49:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
```

Tried installing as a clean app (rails new testapp) and this Gemfile, same error:

```ruby
source 'http://rubygems.org'

gem 'rails', '3.1.3'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

gem 'simple_form', '2.0.0.dev', git: 'https://github.com/plataformatec/simple_form.git'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.1.5'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

group :test do
# Pretty printed test output
gem 'turn', '~> 0.8.3', :require => false
end

```