Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (18 sloc) 419 Bytes
class InfoWindowController < ApplicationController
def index
@thing = Thing.find_by_id(params[:thing_id])
if @thing.adopted?
if user_signed_in? && current_user.id == @thing.user_id
render("users/thank_you")
else
render("users/profile")
end
else
if user_signed_in?
render("things/adopt")
else
render("sessions/new")
end
end
end
end
Something went wrong with that request. Please try again.