Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- @movie = Movie.find params[:id]
- @movie.update_attributes!(params[:movie])
- respond_to do |client_wants|
- client_wants.html { redirect_to movie_path(@movie) } # as before
- client_wants.xml { render :xml => @movie.to_xml }
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement