Ransack with sort_link for nested resources
1 answer
You can pass parameters to a helper sort_link
like
sort_link @search, :taskname, { :controller => tasks, action: "index", project_id: @project.id }
where options
can be anything that is accepted by the helperurl_for
see below: https://github.com/ernie/ransack/blob/v0.6.0/lib/ransack/helpers/form_helper.rb
+6
source to share