public
Created

Security Article Part 2 - 12

  • Download Gist
ProjectsController.rb
Ruby
1 2 3 4 5 6 7
class ProjectsController < ApplicationController
 
def index
@project = current_user.projects.where('name LIKE ?', "#{params[:name]}%")
#...
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.