Created
          October 17, 2016 16:26 
        
      - 
      
- 
        Save lkrych/45e29b3acb744c8a62a821b0db0c0a3d to your computer and use it in GitHub Desktop. 
    Update method pulled from movies_controller
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class MoviesController < ApplicationController | |
| #some code | |
| def update | |
| @movie = Movie.find params[:id] | |
| @movie.update_attributes!(movie_params) | |
| flash[:notice] = "#{@movie.title} was successfully updated." | |
| redirect_to movie_path(@movie) | |
| end | |
| #some code | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment