-
Notifications
You must be signed in to change notification settings - Fork 54
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
Rails 4 and associations #61
Comments
rafaelfranca
added a commit
that referenced
this issue
Sep 21, 2013
Rails 4 returns a CollectionProxy object when you call the association method, so we need to check if the object we have respond to some methods instead of checking if it is an Array Fixed #61
durandom
pushed a commit
to durandom/show_for
that referenced
this issue
Oct 15, 2013
Rails 4 returns a CollectionProxy object when you call the association method, so we need to check if the object we have respond to some methods instead of checking if it is an Array Fixed heartcombo#61
carlosantoniodasilva
added a commit
that referenced
this issue
May 5, 2014
@boblin should be hopefully fixed on master, please let us know if that works for you or anything is still a problem, thanks! |
It Works! 👍 |
Awesome, thanks for reporting back. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have trouble with association method in Rails 4.0.0 using like this:
It shows only:
I found in show_for lib this:
https://github.com/plataformatec/show_for/blob/master/lib/show_for/association.rb#L41
association was Array in rails 3.x, but since 4.0 is CollectionProxy.
Rasil 3:
Rails 4:
So it looks that instead of
there should be
.. at least for Rails 4
The text was updated successfully, but these errors were encountered: