saasbook

create_method.rb

Aug 15th, 2013
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.11 KB | None | 0 0
  1. # in movies_controller.rb
  2. def create
  3.   @movie = Movie.create!(params[:movie])
  4.   redirect_to movies_path
  5. end
Add Comment
Please, Sign In to add comment