From dc48998ceb608f99b210f2ac62abd167428c4478 Mon Sep 17 00:00:00 2001 From: Alex Moinet Date: Thu, 9 Nov 2017 11:50:33 +0000 Subject: [PATCH] Updated examples --- example/rails-42/config/routes.rb | 58 ++----------------- .../app/views/layouts/application.html.erb | 2 +- example/resque/README.md | 2 + 3 files changed, 8 insertions(+), 54 deletions(-) diff --git a/example/rails-42/config/routes.rb b/example/rails-42/config/routes.rb index 79275189e..9a3a1b9f0 100644 --- a/example/rails-42/config/routes.rb +++ b/example/rails-42/config/routes.rb @@ -1,58 +1,10 @@ Rails.application.routes.draw do root :to => 'application#index' - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". + get 'crash' => 'application#crash' + get 'crash_with_callback' => 'application#callback' + get 'notify' => 'application#notify' + get 'notify_data' => 'application#data' + get 'notify_severity' => 'application#severity' - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end end diff --git a/example/rails-51/app/views/layouts/application.html.erb b/example/rails-51/app/views/layouts/application.html.erb index 60309efb2..2906ab464 100644 --- a/example/rails-51/app/views/layouts/application.html.erb +++ b/example/rails-51/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@ - Rails42 + Rails51 <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> diff --git a/example/resque/README.md b/example/resque/README.md index 685c8891a..49511e511 100644 --- a/example/resque/README.md +++ b/example/resque/README.md @@ -9,6 +9,8 @@ Install dependencies bundle install ``` +Resque requires a datastore to run, this example uses [redis](https://redis.io), installation instructions for which can be found [here](https://redis.io/topics/quickstart) and an official docker image can be found [here](https://hub.docker.com/_/redis/). + ## Configuring Bugsnag and Resque Configure your `API_KEY` and any other configuration as detailed in the [available configuration options](https://docs.bugsnag.com/platforms/ruby/other/configuration-options/) by calling `Bugsnag.configure` and passing the options to the `configuration` object returned to a provided block: