1 year ago
#66128
Ratnaraj Sukale
RubyOnRails how to create form for ransacker method with arguments?
I have a custom ransacker method called score
ransacker :score, args: [:parent, :number_one :number_two] do |parent, args|
(parent.table[:id] + parent.table[:id]) / (number_one + number_two)
end
here number_one and number_two are arguments. how to create input form for this method with 2 ARGS in view?
ruby-on-rails
ruby
ruby-on-rails-5
ransack
0 Answers
Your Answer