Sha256: f45d986b40c4a6e7252f3293516ebbc1d2d9bd039e26dd77f1849a8f02e0f28b
Contents?: true
Size: 376 Bytes
Versions: 2
Compression:
Stored size: 376 Bytes
Contents
class MainController < ApplicationController def index render :inline => 'Main#index', :layout => 'application' end def json_response render :json => {:x => 1} end def js_response render :js => 'alert(1);' end def xml_response render :xml => '<xml></xml>' end def file_response render :file => "#{Rails.root}/Gemfile" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paloma-3.0.2 | test_app/app/controllers/main_controller.rb |
paloma-3.0.1 | test_app/app/controllers/main_controller.rb |