Sha256: 1eb207449bb028ca750be1ed488efc7315d7ee0aec00c1a0934887b356f98ac9
Contents?: true
Size: 562 Bytes
Versions: 2
Compression:
Stored size: 562 Bytes
Contents
Mime::Type.register "application/vnd.magic+json; version=2", :vnd_json_v2 class HomeController < ApplicationController before_filter :authenticate_user!, :only => :index def index render :text => "BBQ" end def miracle render :text => "MIRACLE" end def ponycorns end def rainbow @rainbow = { "wonderful" => true, "colors" => 7 } respond_to do |format| format.json { render :json => @rainbow } format.vnd_json_v2 { render :json => @rainbow } format.yaml { render :text => @rainbow.to_yaml } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bbq-0.2.0 | test/dummy/app/controllers/home_controller.rb |
bbq-0.1.0 | test/dummy/app/controllers/home_controller.rb |