>
> profile_path(User.find(comment.user_id).profile) is the hack I've had
> to do to avoid this problem which is weird. All users have a profile,
> so they are accessible by user.profile. I get the stack overflow error
> when I do comment.user.id, but accessing comment.user.login or any
> other attribute works fine. When I do comment.user.profile I get the
> NoMethodError. I've checked over and over and all associations are in
> place....nothing seems wrong to me, yet this error won't go away. What
> could be the problem? :(

You could start by showing the models that seem to be causing the  
problem :-)

Fred
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to