Reputation: 3500
I have these methods:
update_holidays GET /update_holidays(.:format) groups#update_holidays
POST /update_holidays(.:format) groups#update_holidays
update_timespans GET /update_timespans(.:format) subgroups#update_timespans
POST /update_timespans(.:format) subgroups#update_timespans
and want to send data to them using a form_tag
.
How can I do this?
EDIT: My try on it was:
<%= form_tag({url: ##########, method: 'post'},{name: "exchange", id: "exchange"}) do %>
Upvotes: 1
Views: 342
Reputation: 51171
It's quite simple
form_tag(update_holidays_path, id: 'exchange', name: 'exchange')
and
form_tag(update_timespans_path, id: 'exchange', name: 'exchange')
Upvotes: 2