Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Allow Standard Response Mechanisms To Include Headers

#45

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).

Reported by Matt Todd · June 10th, 2008 @ 05:46 PM

State: resolved
Milestone: Release 0.5.1
Assigned to: Matt Todd Matt Todd

Activity

  1. Matt Todd
    Matt Todd
    • 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/...

    June 24th, 2008 @ 07:12 PM

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.