Ruby on Rails Wednesday, February 3, 2016

Hi,

On Wed, Feb 3, 2016, at 17:35, fugee ohu 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
>

The tutorial seems to be skipping a lot of things. Check out repository
of the finished app, and in your case, specifically how to partial is
included (where `likeable` is defined):

https://github.com/sudharti/socify/blob/master/app/views/shared/_actions.html.erb

--
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/1454525866.3079720.511052698.78E1A5ED%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment