small medium large xlarge

Photo_4_pragsmall
10 Sep 2009, 00:18
John Negron (2 posts)

I don’t understand why you would do it this way instead of using respond_to and write xml/erb views. What are the advantages to doing it this way?

Thanks

Maik_schmidt_avatar2_pragsmall
10 Sep 2009, 05:08
Maik Schmidt (117 posts)

Hi John!

Could you, please, tell me what recipe you are referring to?

Cheers

Maik

Photo_4_pragsmall
13 Sep 2009, 22:32
John Negron (2 posts)

Yes, its recipe 32 - Publish Resources with REST

Thanks a lot!

Maik_schmidt_avatar2_pragsmall
16 Oct 2009, 06:05
Maik Schmidt (117 posts)

The main advantage in this case is consistency and conciseness. All render statements look the same - no matter if you’re rendering XML or nothing - and you do not need additional .erb files. So it’s basically a matter of taste, I think.

  You must be logged in to comment