Created
June 10, 2012 14:30
-
-
Save iHiD/2905924 to your computer and use it in GitHub Desktop.
Security Article Part 2 - 8
This file contains hidden or 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 ProjectsController < ApplicationController | |
def index | |
@projects = Project.where( | |
"user_id = #{current_user.id} AND name LIKE '#{params[:name]}%'" | |
) | |
#... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment