Tiago Ameller PRO
Joined 2/28/2018
Tiago Ameller PRO said over 6 years ago on Creating Health Checks :
Done. No more fails. But also no unhandled exceptions. Weird.

Tiago Ameller PRO said over 6 years ago on Minitest and Test Driven Development :
Good tip on adding groups to Coverage report. Also, I didn't know about to filter not used files, as channels stuff. But I wanted to remove Channels, Jobs and Libraries tabs from report. I found this way looking at [Coverage source](https://github.com/colszowka/simplecov/blob/master/lib/simplecov.rb) ``` SimpleCov.start 'rails' do # add filter removes files from coverage, but not tabs in report add_filter 'app/channels/' add_filter 'vendor/' add_filter 'app/jobs/' # remove tabs in report groups.each do |group| groups.delete(group.first) if %w(Channels Jobs Libraries).include? group.first end # add my onw tabs in report add_group 'Datatables', 'app/datatables' add_group 'Policies', 'app/policies' add_group 'Presenters', 'app/presenters' end ```

Tiago Ameller PRO said over 5 years ago on Tracking Javascript Errors :
Thanks for this episode. I applied to one of my projects in minutes and now it's in production.
My question is how to disable Sentry while I'm developing my app, you know, when environment is not production.
Thanks.


Tiago Ameller PRO said over 5 years ago on Tracking Javascript Errors :
Ok, that was my first insight. I wonder if Rails has already an environment var provided by rails/ujs. Something such window.railsEnvironent(). If not, is easy to set it on the main layout.

Tiago Ameller PRO said over 5 years ago on The Stimulus 2.0 Tutorial :
As you mention bin/webpack-dev-server, a great enhancement for my rails 6 development I did is using foreman
Put a file called Procfile.dev in your app's home directory:
web: bundle exec puma -p 3000 -C config/puma.rb
webpacker: ./bin/webpack-dev-server
log: tail -f ./log/development.log
and call it to start both rails and webpacker servers:
foreman start -f Procfile.dev
You can restart your server when needed calling: 
touch tmp/restart.txt