lib/pakyow/presenter/presenters/endpoint.rb in pakyow-presenter-1.0.0.rc2 vs lib/pakyow/presenter/presenters/endpoint.rb in pakyow-presenter-1.0.0.rc3

- old
+ new

@@ -74,13 +74,13 @@ end if endpoint_action_presenter.attributes.has?(:href) endpoint_path = __endpoint[:path].to_s if endpoint_path == endpoint_action_presenter.attributes[:href] - attributes[:class].add(:current) + attributes[:class].add(:"ui-current") elsif endpoint_path.start_with?(endpoint_action_presenter.attributes[:href]) - attributes[:class].add(:active) + attributes[:class].add(:"ui-active") end end when "form" form_presenter = Form.new(__getobj__) form_presenter.action = path @@ -97,10 +97,10 @@ else replace( View.new( <<~HTML <form action="#{path}" method="post" data-ui="confirmable"> - <input type="hidden" name="_method" value="delete"> + <input type="hidden" name="pw-http-method" value="delete"> #{view.object.render} </form> HTML ) )