RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: sajjadmurtaza49
Site: https://www.linkedin.com/profile/view?id=373112008&trk=nav_responsive_tab_profile_pic
You should have to pass @snippet instead of snippet_id.
By this you don't need to again snippet = Snippet.find(snippet_id)
You should have to pass @snippet instead of snippet_id.
By this you don't need to again
snippet = Snippet.find(snippet_id)