Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def show
@user.set_view_profile(, false)
@rental_agreements = RentalAgreement.where(:owner_id =>
@tools = Tool.where(:user_id =>
respond_to do |format|
format.html # show.html.erb
format.json { render json: @user }
rescue ActiveRecord::RecordNotFound
flash[:notice] = "Something went horrible"
redirect_to :action => 'show'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.