CSC/ECE 517 Fall 2012/ch1b 1w64 nn
SaaS - 3.12 Controller and views
Introduction
Adding new action in Rails
MVC responsibilities
- Model
- Controller
<code class="ruby"> def show @movie = Movie.find(params[:id]) end </code>
- View
<code class="ruby"> def show @movie = Movie.find(params[:id]) end </code>