hanami / controller

Complete, fast and testable actions for Rack and Hanami
http://hanamirb.org
MIT License
246 stars 111 forks source link

accept syntax in README no longer seems supported #405

Closed radar closed 1 year ago

radar commented 1 year ago

The README suggests:

You can restrict the accepted MIME types:

class Show < Hanami::Action
  accept :html, :json

  def handle(*)
    # ...
  end
end

But this syntax no longer appears to be supported in this gem.

timriley commented 1 year ago

Thanks @radar, updating this README is one of our last things to do before the release :)

Looks like @solnic is onto it: https://trello.com/c/R4aGZrA3/345-update-hanami-controller-readme