You’re not receiving notifications from this thread.
Liking Posts | GoRails - GoRails
Hi Chris - I'm trying to build out the likes_controller, but I got an error related to friendly_id. I've implemented friendly_id on the Post model, could you please shed some light on solving this issue?
NoMethodError in Posts::LikesController#create
undefined method `slug' for #<like:0x007ff7c4d231b0>
before action :set_post
@post = Post.friendly.find(params[:id])
I came across an issue when I tried to "like" a post without signing in, I'm not sure if "authenticate_user!" in the likes_controller is invoked because of the AJAX response....