RailsCasts Pro episodes are now free!

Learn more or hide this

Sajjad Murtaza's Profile

GitHub User: sajjadmurtaza49

Site: https://www.linkedin.com/profile/view?id=373112008&trk=nav_responsive_tab_profile_pic

Comments by Sajjad Murtaza

Avatar

You should have to pass @snippet instead of snippet_id.

By this you don't need to again

snippet = Snippet.find(snippet_id)