I have a method defined in my controller that I am trying to create a button or form to access.
Model
class DoThis < ActiveRecord::Base
def take_action(a, b)
end
end
View
<%= @do_this.take_action(@a, @b) %>
I would like to convert the above code in the View to a button_to or form_for but cannot figure out how.
Thanks