I plan on switching over all of the model_controller responses to use
respond_with(this) or the appropriate equivalent.
this means that you can simply add:
respond_to :html, :xml, :json
to your controllers and it will give you a nice xml and json API interface.
This will break code that uses a pattern like this:
def show
hobo_show
render :something
end
The "right" way to customize your renders is to use this pattern:
def show
hobo_show do
if params[:funky]
render :funky
else
show_response
end
end
end
Does anybody have any objections to this change going in to Hobo or
see any other drawbacks?
cheers,
B
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.