sferik/rails_admin — Issue #878: has_one association + accepts_nested_attributes_for does not work
Author: tcpipmen
Created: 2011-12-12 14:45:27+00:00
State: open

Hi, I'm following instructions from https://github.com/sferik/rails_admin/wiki/Has-one-association but it does not allow me to do. Please let me know.

config.model Person do
configure :contact do

end
end

NoMethodError: # has no method configure
method_missing at C:/jruby-1.6.5/lib/ruby/gems/1.8/bundler/gems/rails_admin-cf3d74a83526/lib/rails_admin/config/model.rb:85
(root) at C:/Users/nash/globalidm3/config/initializers/rails_admin.rb:69
instance_eval at org/jruby/RubyKernel.java:2062
model at C:/jruby-1.6.5/lib/ruby/gems/1.8/bundler/gems/rails_admin-cf3d74a83526/lib/rails_admin/config.rb:224
(root) at C:/Users/nash/globalidm3/config/initializers/rails_admin.rb:68
call at org/jruby/RubyProc.java:270
call at org/jruby/RubyProc.java:220
config at C:/jruby-1.6.5/lib/ruby/gems/1.8/bundler/gems/rails_admin-cf3d74a83526/lib/rails_admin.rb:48
(root) at C:/Users/nash/globalidm3/config/initializers/rails_admin.rb:12
load at org/jruby/RubyKernel.java:1063
load at C:/Users/nash/globalidm3/config/initializers/rails_admin.rb:234
load_dependency at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223
new_constants_in at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640
new_constants_in at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:639
load_dependency at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223
load at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234
Engine at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/engine.rb:556
each at org/jruby/RubyArray.java:1612
Engine at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/engine.rb:555
instance_exec at org/jruby/RubyKernel.java:2079
run at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/initializable.rb:30
run_initializers at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/initializable.rb:55
each at org/jruby/RubyArray.java:1612
run_initializers at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/initializable.rb:54
initialize! at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/application.rb:96
send at org/jruby/RubyKernel.java:2093
method_missing at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30
(root) at C:/Users/nash/globalidm3/config/environment.rb:20
require at org/jruby/RubyKernel.java:1038
require at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240
load_dependency at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223
new_constants_in at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640
new_constants_in at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:639
load_dependency at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223
require at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240
parse_file at C:/Users/nash/globalidm3/config/environment.rb:4
instance_eval at org/jruby/RubyKernel.java:2062
initialize at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/builder.rb:51
parse_file at C:/Users/nash/globalidm3/config.ru:1
eval at org/jruby/RubyKernel.java:1088
parse_file at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/builder.rb:40
app at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/server.rb:200
app at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands/server.rb:46
wrapped_app at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/server.rb:301
start at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/server.rb:252
start at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands/server.rb:70
(root) at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands.rb:54
tap at org/jruby/RubyKernel.java:1804
(root) at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands.rb:49
require at org/jruby/RubyKernel.java:1038
(root) at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands.rb:6
load at org/jruby/RubyKernel.java:1063
(root) at -e:1