SquareSquash / web

Squash’s front-end and API host.
http://www.squash.io
Apache License 2.0
962 stars 135 forks source link

Web app should give better instructions for initializing a rails app #69

Closed bf4 closed 11 years ago

bf4 commented 11 years ago

We probably don't want development errors being transmitted, as

1) that's noisy 2) those commits aren't likely available to squash (and the Blamer will fail)

on the overlay popped up by Learn how to add Squash to your project

I'd specifically recommend a rails app have config/initializers/squash.rb containing

if Rails.env.production?
  Squash::Ruby.configure :api_host => 'https://example.com',
                         :api_key => 'abc123'

  class ApplicationController < ActionController::Base
    include Squash::Ruby::ControllerMethods
    enable_squash_client
  end
end
RISCfuture commented 11 years ago

Fixed with 017749724b76e0b12825ca858a1e1f2a39d82611

bf4 commented 11 years ago

Great!