6 lines
196 B
Ruby
6 lines
196 B
Ruby
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
|