forgeplus/app/controllers/project_languages_controlle...

8 lines
252 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class ProjectLanguagesController < ApplicationController
def index
#@project_languages = ProjectLanguage.search(params[:name]).
q = ProjectLanguage.ransack(name_cont: params[:name])
@project_languages = q.result(distinct: true)
2020-03-09 00:40:16 +08:00
end
end