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

Wrong number of arguments (3 for 2) #52

Open
Javed43 opened this issue Nov 10, 2014 · 1 comment
Open

Wrong number of arguments (3 for 2) #52

Javed43 opened this issue Nov 10, 2014 · 1 comment

Comments

@Javed43
Copy link

Javed43 commented Nov 10, 2014

I have installed amistad and after the installation when I'm unable to start the server as it giving an error.

/home/mohd.hussain/.rvm/gems/ruby-1.9.3-p484@partyapp/gems/activerecord-3.2.14/lib/active_record/associations.rb:1197:in has_many': wrong number of arguments (3 for 2) (ArgumentError) from /home/mohd.hussain/.rvm/gems/ruby-1.9.3-p484@partyapp/gems/amistad-0.10.2/lib/amistad/active_record_friend_model.rb:14:inblock in module:ActiveRecordFriendModel'
from /h

I'm using ruby - 1.9.3 and rails 3.2.14

What am I doing wrong

@nguyen-brian
Copy link

I believe this is an incompatibility between Rails 3.2 and this has_many statement:

has_many  :pending_invited, -> { where(:'friendships.pending' => true, :'friendships.blocker_id' => nil) }, :through => :friendships, :source => :friend

This problem can be avoided by downgrading to version 0.9.2.

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