Я пытаюсь протестировать вставку строки в sqlite3 db для руководства по Rails в главе 7. Я много раз просматривал код, и он выглядит правильно, однако в консоли я получаю следующую ошибку.Какие-либо предложения?
User.create (name => "тестовый пользователь",: email => "testuser@example.com",: password => "foobar",: password_confirmation => "foobar") ArgumentError: неверное количество аргументов (0 для 1) из /Library/Ruby/Gems/1.8/gems/activerecord-3.0.3/lib/active_record/base.rb:442:in maximum'
from /Library/Ruby/Gems/1.8/gems/activerecord-3.0.3/lib/active_record/base.rb:442:in
send 'из /Library/Ruby/Gems/1.8/gems/activerecord-3.0.3/lib/active_record/base.rb:442:in maximum'
from /Users/gabemcmillan/rails_projects/sample_app/app/models/user.rb:10
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
load' из /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3 / lib / active_support / dependencies.rb: 454: в load_file'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
new_constants_in 'из /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:453:inload_file'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:340:in
require_or_load 'из /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:491:in load_missing_constant'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
const_missing' из /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in each'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
const_missing 'from (irb): 8