aeolus-incubator / tim

Web application for managing virtual images to be deployed in the cloud
www.aeolusproject.org
MIT License
3 stars 6 forks source link

add support for respond options #63

Closed jprovaznik closed 11 years ago

jprovaznik commented 11 years ago

In some cases we would need in Conductor to redirect to different urls than what's default in REST API. For example when we create new target image we want go back to "base image show page" instead of "new target image show" page.

It would be nice if Tim had called respond_with with options param, so: instead of: respond_with @base_image

there would be respond_with(@base_image, @respond_options)

Then we can set @respond_options in before_filter. Note that default rails responder accepts options hash and one of these options is :location url which we can use.

jguiditta commented 11 years ago

This should be resolved by pull #66, once that is reviewed/merged