Thank you! It works perfectly with little changing
maybe it requires some "prettyfying", but at least it works
When I try to execute your exact line I get this:
NoMethodError: undefined method `build' for nil:NilClass
from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
As you have requested, my models:
class Question < ActiveRecord::Base
attr_accessible :text, :answers_attributes
class Answer < ActiveRecord::Base
Tank you again and regards,