Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # in movies_controller.rb
- def create
- @movie = Movie.create!(params[:movie])
- flash[:notice] = "#{@movie.title} was successfully created."
- redirect_to movies_path
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement