#45 ✓resolved
Matt Todd

Allow Standard Response Mechanisms To Include Headers

Reported by Matt Todd | June 10th, 2008 @ 05:46 PM | in Release 0.5.1

It would be useful to allow for methods like ok to include headers. For example:

class Foos < Application
  def show
    @foo = Foo[:id => params[:id]]
    ok @foo, 'Content-Language' => @foo[:language]
  end
end

Variations of this would be fine. It should also work for the other responders (suggested in another ticket; status and error and the like).

Comments and changes to this ticket

  • Matt Todd

    Matt Todd June 24th, 2008 @ 07:12 PM

    • State changed from “new” to “resolved”

    (from [01cafabb1fb24817edf6aff4bf76b90c33cd53f6]) Response helpers now support headers. This included a very comprehensive overhaul of how response values are handled from actions to allow for just returning the data to be returned where the application will format it and respond correctly. [#45 state:resolved]

    http://github.com/mtodd/halcyon/...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages