Curated list of episodes, bundled to help you on your learning path!
Videos of tech, infrastructure, hardware and software which non-instructional by nature.
Articles around software and tutorials.
Show your love and support while looking fancy.
Got a question or want to chat about a topic? Let's talk!
link_to "Unfollow",post_like_path(post, id: post.to_sgid(expires_in: 1.hour)),method: :delete
PG::ForeignKeyViolation: ERROR: update or delete on table "posts" violates foreign key constraint "fk_rails_fbe88b52fa" on table "users_posts"
DETAIL: Key (id)=(10) is still referenced from table "users_posts".
post = Post.friendly.find(params[:post_id])
user_post = GlobalID::Locator.locate_signed(params[:id])
redirect_to post_path(post), alert: "unfollow"