Skip to content
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

Query methods overridden by common class method names #7

Open
SFEley opened this issue May 5, 2010 · 1 comment
Open

Query methods overridden by common class method names #7

SFEley opened this issue May 5, 2010 · 1 comment

Comments

@SFEley
Copy link
Owner

SFEley commented May 5, 2010

ruby-1.9.1-p378 > c = Person.name('Bob Smith')
ArgumentError: wrong number of arguments(1 for 0)
from (irb):5:in `name'
from (irb):5
from /Volumes/seley01/Users/steve/.rvm/rubies/ruby-1.9.1-p378/bin/irb:17:in `<main>'
@kornysietsma
Copy link

This hit me twice in a row. User.name("foo") - nope. User.username("foo") - not that either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants