Ruby on Rails Wednesday, February 3, 2016

On 3 February 2016 at 08:35, fugee ohu <fugee279@gmail.com> wrote:
> i'm trying to follow this tutorial
> https://medium.com/rails-ember-beyond/how-to-build-a-social-network-using-rails-eb31da569233#.cdojrtwvg
> but on line 1 of _form.html.erb for likes the author says <% if
> current_user.liked? likeable %> When i ran the app it raised the error
> undefined method likeable

Undefined method likeable for what object? As I suspect I have
pointed out previously it is always best to copy/paste the complete
error message.

I cannot see where the liked? method is defined. Do you know where it
comes from?

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsOdeD1L3F768n1OykU2iSHLJBAdRzbj0EsF6cgKc9%2B2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment