impress/app/controllers/pet_states_controller.rb

7 lines
196 B
Ruby
Raw Normal View History

class PetStatesController < ApplicationController
def show
@pet_type = PetType.matching_name_param(params[:pet_type_name]).first!
@pet_state = @pet_type.pet_states.find(params[:id])
end
end