-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] wrong number of arguments (given 1, expected 0) #155
Comments
I just installed the gem in a new rails 5.2 app, and got the same error. |
Okay, I managed to make it work. In Step 13 it will throw an error stated above. Solution:Adding these steps solved the problem in my case.
Question:This isn't supposed to be the proper way to handle this right? |
UPDATE:It seems like putting This version is the version that throws an error stated above. Then running the Steps 14 and 15 will solve the problem as this updates the gem to version Then to solve the problem. We need to explicitly put |
This is definitely strange. I did some searching, and it looks like bundler doesn't guarantee it will grab the latest version of a gem if you leave the version unspecified. That was not my understanding or expectation of how bundler works. I think I'll update the README in the short term. Thanks for looking into this. |
I have an issue using this gem.
Steps to reproduce:
rails new trialapp
cd trialapp
rails g model User
db/migrate/xxxxx_create_users.rb
add the following:rake db:migrate
rails g controller users
config/routes.rb
add the following:Gemfile
add the following:bundle install
app/views/users
create a new filenew.html.erb
app/views/users/new.html.erb
add the following:rails s
localhost:3000
in the address bar.Expected Output:
A form with a simple select dropdown containing countries.
Actual Output:
Test Environment:
Laptop: MacBook Pro (Retina, 13-inch, Mid 2014)
OS: macOS High Sierra
OS Version: Version 10.13.4 (17E199)
Ruby Version: ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-darwin17]
Rails Version: Rails 5.2.1
Browser: Google Chrome
Browser Version: Version 68.0.3440.106 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: