Ticket #19 (assigned enhancement)

Opened 4 years ago

Last modified 2 years ago

Implement AkActionController::AkMimeResponds

Reported by: bermi Assigned to: bermi (accepted)
Priority: major Milestone: 1.3.0
Component: Action Controller Keywords:


On Rails, respond_to helps on delivering desired response format from the HTTP Accept header submitted by the client which is automatically determined.

This allows you to write

respond_to do |format|
       format.html { redirect_to(person_list_url) }
       format.xml  { render :xml => @person.to_xml(:include => @company) }

in Akelos would be something like

  case 'html': $this->redirectTo($person_list_url);
  case 'xml': $this->render(array(
    'xml' => $Person->toXml(array(
      'include' => 'company'
  default: $this->handeResponse($this->respondTo());

Other features for simplifying web services in Akelos might need to be implemented.

Change History

07/16/08 15:25:14 changed by Kaste

  • milestone changed from 0.9 to 1.0.

12/19/09 21:52:12 changed by bermi

  • owner set to bermi.
  • status changed from new to assigned.
  • milestone changed from 1.0.1 to 1.3.0.

Will merge Kastes branch with the work going on at http://github.com/bermi/akelos/