CSC/ECE 517 Fall 2012/ch1b 1w64 nn

From Expertiza_Wiki
Jump to navigation Jump to search

SaaS - 3.12 Controller and views

Introduction

Adding new action in Rails

MVC responsibilities

  1. Model
  1. Controller
<syntaxhighlight lang="ruby">
def show
  @movie = Movie.find(params[:id])
end
</syntaxhighlight>
  1. View

URI helpers

References