Should be `Project.where(name: params[:project_id]).first!`. The `find_by_name!` syntax is "mildly deprecated" according to http://api.rubyonrails.org/classes/ActiveRecord/Base.html.