Ruby on Rails Wednesday, February 3, 2016

from the acts_as_followable gem, i was hoping someone would look at the page and tell me their interpretation but I guess that's not what this group is for

On Wednesday, February 3, 2016 at 5:05:25 AM UTC-5, Colin Law wrote:
On 3 February 2016 at 08:35, fugee ohu <fuge...@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/1634c330-0731-45ad-bbfb-d6836dd4012e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment