Sha256: cf9667ea9e219436ea8c0cf95ee028181a97e53ce1c8d819749d2be97fb4a99b

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

class PersonController < ApplicationController
	layout 'top'
	model :person

  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parlement-0.2 app/controllers/person_controller.rb