Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Nov 9, 2017
1 parent fabcf69 commit dc48998
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 54 deletions.
58 changes: 5 additions & 53 deletions example/rails-42/config/routes.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion example/rails-51/app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Rails42</title>
<title>Rails51</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
Expand Down
2 changes: 2 additions & 0 deletions example/resque/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dc48998

Please sign in to comment.