Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'ramaze' require 'json' class MainController < ::Ramaze::Controller Ramaze::Route[%r{^/foo$}] = '/index' provide :json, :type => 'application/json' do |action, value| value.to_json end def index @items = %w( a b c ) end end Ramaze.start
This paste will be private.
From the Design Piracy series on my blog: