Sha256: 3d8b106c1af38c2d9496a45fb5682e282c64a0ab52b4221df98897660c071836

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

module Popolo
  class PeopleController < PopoloController
    inherit_resources
    respond_to :html, :json
    actions :index, :show

    def show
      @person = Person.find_by_slug_or_id(params[:id])
      show!
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
popolo-0.0.2 app/controllers/popolo/people_controller.rb
popolo-0.0.1 app/controllers/popolo/people_controller.rb