CSC/ECE 517 Fall 2012/ch1b 1w64 nn: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
#Controller | #Controller | ||
< | <pre> | ||
def show | def show | ||
@movie = Movie.find(params[:id]) | @movie = Movie.find(params[:id]) | ||
end | end | ||
</ | </pre> | ||
#View | #View |
Revision as of 00:28, 29 September 2012
SaaS - 3.12 Controller and views
Introduction
Adding new action in Rails
MVC responsibilities
- Model
- Controller
def show @movie = Movie.find(params[:id]) end
- View