Custom formats in Ruby on Rails

Posted by Koning Baard XIV on Stack Overflow See other posts from Stack Overflow or by Koning Baard XIV
Published on 2010-03-13T15:28:52Z Indexed on 2010/03/13 15:35 UTC
Read the original article Hit count: 204

Filed under:
|

I'm creating a website in Ruby on Rails, where users can login using RESTful Authentication. Someone can get a specific user using html, xml and json, just like scaffolding. But I want to add one more format: vCard (e.g. /users/1.vcard). This has a specific format, but how do I define my own formats? Using views, or must I use another way? Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about formatting