impress/app/controllers/pets_controller.rb

8 lines
148 B
Ruby
Raw Normal View History

class PetsController < ActionController::Base
def show
@pet = Pet.load(params[:id])
@pet.save
redirect_to @pet.wardrobe_url
end
end