I\'m sure I\'m miss understanding the use of call but I thought I could do something like this.
@case_studies = CaseStudy.call(\"some_named_scope\")
If some_named_scope is a named_scope of the CaseStudy model, you can use send to call the method corresponding to params[:action] value. But this is obviously heavily exploitable.
some_named_scope
CaseStudy
send
params[:action]
So, security aside, you could get going with:
@case_studies = CaseStudy.send(params[:action])
Hope it works.