Upgrading to Ruby on Rails 5.0 from Rails 4.2 – application use case
Related cards:
How to upgrade a Rails 2.3 app to Ruby 1.9.3 - UserVoice Engineering
It may also be possible to upgrade higher according to this post:
[http://blog.lucascaton.com.br/index.php/2014/02/28/have-a-rails-2-app-you-can-run-it-on-the-newest-ruby/](http://blog.lucascaton.com.br/index.php/2014/02/28/have-a-rails-2-app-you...
Unable to `bundle install` on Debian Wheezy
When running bundle install
you get the following error:
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA cert...
Rails: can't modify frozen Array
when upgrading from Rails 3.2 to 4.0 I encountered an issue trying to run the app:
/var/lib/gems/1.9.1/gems/actionpack-4.0.13/lib/action_dispatch/middleware/stack.rb:107:in `delete': can't modify frozen Array (RuntimeError)
from /var/...
How To Set Up Multiple SSL Certificates on One IP with Apache on Ubuntu 12.04 | DigitalOcean
A guide for setting up SNI so that a single IP address can be used to have multiple SSL certificates serving the same or multiple sites.
Rails: LoadError: cannot load such file -- active_resource/railtie
Issue when upgrading from Rails 3.2 to Rails 4.0, having run bundle update rails ...
to update Rails and other gems with conflating gems, running bundle exec rake spec
throws the following error:
rake aborted!
LoadError: cannot load such ...
Wrong Ruby version in development
You try to do some work on an old project which you haven't worked on for a while. You start up your development environment and try running the specs to make sure everything's in order, but you get the error:
`Your Ruby version is 2.1.8, but y...
Rails: NoMethodError: undefined method `config' for nil:NilClass
While trying to upgrade from Rails 3.2 to 4.0 I had this problem when starting the app:
NoMethodError: undefined method `config' for nil:NilClass
/var/lib/gems/1.9.1/gems/railties-4.0.13/lib/rails.rb:32:in `configuration'
/var/lib/gems/1.9.1/...
AWS CLI on Mac
There's a handy (and official) command line interface tool for dealing with AWS. It's great for managing files with S3.
Here's a short guide, somewhat from memory. Please improve this if you encounter any issues:
- Install AWS cli via homebrew
...
rebasing changes from a development branch onto another branch
If you have changes on a branch which you want to apply to another branch which has a different history you might not want to merge or rebase. This method allows you to identify a series of commits and replay them onto your destination branch. For...
Backup and Restore PostgreSQL Tables from the Command Line
If you need to backup and restore data for a single table in PostgreSQL you can use the following methods:
Backup table data
pg_dump -Fc --data-only -h<host> -p<port> -U<username> -W -d<database> -t<table> > ~/Downloads/<filename.dump>