https://github.com/bugsnag/bugsnag-api-ruby
gem install bugsnag-api-gem
https://github.com/bugsnag/bugsnag-api-ruby
gem install bugsnag-api-gem
When you encounter
/Users/kernel/.gem/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2.rb:8:in
`require': dlopen(/Users/kernel/.gem/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/mysql2.bundle, 9):
Library not loaded:
/usr/local/lib/libmysqlclient.18.dylib (LoadError)
Try gem pristine mysql2
, this command restores installed gems to pristine condition from files located in the gem cache
This guide is a sort of extract of official rails guide: Official rails guide
Here I describe an implementation of uuid with PostgreSQL >= 9.4. This requires to enable pgcrypto
Example with a creation of a table named trackers:
class CreateTrackers < ActiveRecord::Migration[5.0]
It seems there is multiple ways to configure rvm and use it on a crontab. Here I describe a method which be used on a client app
Let assume you want to launch rake stats
on production_app application and write the results on a file
I've been wanted to know where some sql queries are coming from. I worked on a Rails app with some tests which have been executed slowly. In the log file I saw this request a bunch of time :
SELECT `roles`.* FROM `roles` INNER JOIN `users_roles` ON `roles`.`id` = `users_roles`.`role_id` WHERE `users_roles`.`user_id` = 8 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL)))
So I've decided to use a Ryan Bigg tips. I've included this snippet in my test suite :
I dont't find yet how to do this with ruby, so I use a npm
package.
github repository: https://github.com/typicode/json-server
Note: g
option has been used to install the package globally (for all users).
On a specific rails application (4.2), when a developper call reload!
method on a console he'll see:
Engine Load (0.3ms) SELECT `engines`.* FROM `engines` WHERE `engines`.`label` = 'influencer' LIMIT 1
Engine Load (0.3ms) SELECT `engines`.* FROM `engines` WHERE `engines`.`label` = 'speaker' LIMIT 1
Engine Load (0.3ms) SELECT `engines`.* FROM `engines` WHERE `engines`.`label` = 'animator' LIMIT 1
Engine Load (0.2ms) SELECT `engines`.* FROM `engines` WHERE `engines`.`label` = 'ambassador' LIMIT 1
Engine Load (0.2ms) SELECT `engines`.* FROM `engines` WHERE `engines`.`label` = 'private_show' LIMIT 1