You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that latest version 2.3.6 does not work in Rails 3.2.
In Rails 3.2 environment, bundle exec rake db:seed_fu is failed with 'ArgumentError: wrong number of arguments (given 0, expected 1)...'.
The previous version 2.3.5 works fine.
Here is reproduction script(bash).
gem install rails -v 3.2.22.5
rails _3.2.22.5_ new test_seed_fu
cd test_seed_fu
cat <<EOS >> Gemfilegroup :development do gem 'seed-fu', '2.3.6'endEOS
bundle install
script/rails g model User name:string age:integer
bundle exec rake db:migrate
mkdir -p db/fixtures/development
cat <<EOS > db/fixtures/development/users.rbUser.seed(:name) do |u| u.name = 'User Name' u.age = 20endEOS
bundle exec rake db:seed_fu
# => rake aborted! ArgumentError: wrong number of arguments (given 0, expected 1) ...
script/rails r "User.seed(:name, name: 'User Name', age: 20)"# => wrong number of arguments (given 0, expected 1) (ArgumentError) ..
The text was updated successfully, but these errors were encountered:
@ryu39 Yes, thank you for this. I ran into this after updating my gems and was wondering what was going on because it's just a patch release between my old version of 2.3.4 and the new version of 2.3.6.
I just reverted to 2.3.4 but thanks for reporting the issue and submitting a PR to the owner.
I find that latest version 2.3.6 does not work in Rails 3.2.
In Rails 3.2 environment,
bundle exec rake db:seed_fu
is failed with 'ArgumentError: wrong number of arguments (given 0, expected 1)...'.The previous version 2.3.5 works fine.
Here is reproduction script(bash).
The text was updated successfully, but these errors were encountered: