Sha256: 3a7c8f08807afa1f18d4ba36e4911b42246cc790beb97db17d545c98192bdd5e
Contents?: true
Size: 498 Bytes
Versions: 5
Compression:
Stored size: 498 Bytes
Contents
class PersonController < ApplicationController # To make sure we can also display properly this person's elements helper :elt layout 'top' def show @person = Person.find(params[:id]) @title = @person.name+' (parlement)' rescue ActiveRecord::RecordNotFound => e flash[:error] = "Person '#{params[:id]}' does not exist" redirect_to '/' end def list @person = Person.find(params[:id]) render :partial => '/person/listElts', :locals => { :person => @person } end end
Version data entries
5 entries across 5 versions & 1 rubygems