Ruby on Rails
Wednesday, February 3, 2016
On Wednesday, February 3, 2016 at 1:58:35 PM UTC-5, nanaya wrote:
Yikes, what does this mean? <%= render 'likes/form', likeable: resource %>
-- 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
Yikes, what does this mean? <%= render 'likes/form', likeable: resource %>
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/5ea1ad66-4f19-4ea0-86d7-ac11c857d20c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment