Sha256: 77431a9a259264c7799865f569623e289b52b5cfd0ecff3cfb12b16975af1e3c

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

Application.class_eval do
  
  get '/' do
    restrict
    @css = @js = %w(index)
    @error = flash[:error]
    @success = flash[:success]
    @tests = ABTest.find :all, :order => 'updated_at desc'
    haml :index, :layout => :layout
  end
  
  get '/css/index.css' do
    headers 'Content-Type' => 'text/css; charset=utf-8'
    sass :index
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
a_b-0.1.1 lib/a_b/controller/index.rb
a_b-0.1.0 lib/a_b/controller/index.rb