[FIXED]: How to catch TinyTds::Error on Rails
The following worked for me:
[FIXED] ruby on rails :: LoadError: cannot load such file -- distribution
Specifically for the wco stack, gem 'iron_warbler' had to be included in that particular instance's (micros_*) Gemfile. Which is a bit disappointing since I wanted libraries to be decoupled - but hey, I'm not going to fix this right now. But please be aware: it may seem that there is a separation between libraries and some libraries (namely models and content) can be installed without the rest of the stack - but that's not the case. The whole stack must be installed.
[FIXED]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' when running mysql database in docker, for a ruby on rails application
Change
host: localhost
to
host: 127.0.0.1
in config/database.yml, to make the connection over TCP/IP rather than local socket.
You may also need to specify port 3306 explicitly.
How to Execute Rspec from Ruby
This questions is answered on Stack Overflow.
[FIXED]: Psych::AliasesNotEnabled: Alias parsing was not enabled. To enable it, pass aliases: true to Psych::load or Psych::safe_load
This happens on older versions of ruby and rails.
Solved by downgrading psych:
# Gemfilegem 'psych', '< 4'
Un análisis de por qué Ruby on Rails es el mejor framework de desarrollo web
Ruby on Rails, a menudo llamado simplemente Rails, es un marco de aplicación web escrito en Ruby. Fue creado por David Heinemeier Hansson y lanzado en 2004. Rails está diseñado para facilitar la programación de aplicaciones web al hacer suposiciones sobre lo que cada desarrollador necesita para comenzar. Permite a los desarrolladores escribir menos código y lograr más que muchos otros lenguajes y marcos.