Created
September 17, 2011 10:09
-
-
Save marcamillion/1223814 to your computer and use it in GitHub Desktop.
Just in case I need it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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