Skip to content

Instantly share code, notes, and snippets.

Abhishek-Ravichandran

Block or report user

Report or block Abhishek-Ravichandran

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View edit_update.rb
# in movies_controller.rb
def edit
@movie = Movie.find params[:id]
end
def update
@movie = Movie.find params[:id]
permitted = params[:movie].permit(:title, :rating, :description, :release_date)
@movie.update_attributes!(permitted)
You can’t perform that action at this time.