Sha256: 1f96a436573132866e63745060694928eb136cce8e228f1c35b2c56bda29f224
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 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 def uh_oh raise NoMethodError end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bbq-0.2.1 | test/dummy/app/controllers/home_controller.rb |