<%= form_for(@result, url: my_module_result_assets_path(format: :json), data: { type: :json }) do |f| %>
<%= f.button t('result_assets.new.create'),
class: 'btn btn-primary save-result',
data: { href: my_module_result_assets_path(page: params[:page], order: params[:order], format: :json) } %>
<%= f.button t('general.cancel'),
class: 'btn btn-secondary cancel-new',
type: 'button '%>
<% end %>
<%= javascript_include_tag 'results/result_assets/new' %>