Skip to content

Instantly share code, notes, and snippets.

@marcamillion
Created September 17, 2011 10:09
Show Gist options
  • Save marcamillion/1223814 to your computer and use it in GitHub Desktop.
Save marcamillion/1223814 to your computer and use it in GitHub Desktop.
Just in case I need it.
class FeedbacksController < ApplicationController
before_filter :find_user
def show
@feedback = @user.feedbacks.find(params[:id])
end
private
def find_user
@user = User.find_by_username(params[:username])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment