Rendering plists from your Rails app

In: iPhone|Ruby on Rails

14 Jun 2010

Jeena emailed me recently about his Rails plugin, plistifier, that allows you to render plists (property lists).

It allows you to render your ActiveRecord objects as plists (among other things):

def show
  @post = Post.find(params[:id])

  respond_to do |format|
    format.xml   { render :xml => @post }
    format.plist { render :plist => @post }
  end
end

Jeena was kind enough to let me know he “stole” my old Jsonifier plugin (github) code in plistifier.

Comment Form