Skip to content

Instantly share code, notes, and snippets.

@amicming
amicming / Rails_5.0.0.1_&_Ruby 2.3.1
Created November 11, 2016 05:24
Rails console was crash with Rails 5.0.0.1 and Ruby 2.3.1
$ bundle exec rails c --sandbox
Running via Spring preloader in process 68385
/Users/apandya/.rvm/gems/ruby-2.3.1@rails_latest_ruby_2_3_1/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:27: [BUG] Segmentation fault at 0x00000000000110
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
$ bundle exec rails c
Running via Spring preloader in process 68650
Loading development environment (Rails 5.0.0.1)
>> user = User.first
/Users/apandya/.rvm/gems/ruby-2.3.1@rails_latest_ruby_2_3_1/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:27: [BUG] Segmentation fault at 0x00000000000110
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
@amicming
amicming / rails-5-new-options
Last active January 4, 2018 15:23
Command line options for rails _5.0.0.1_ new --help. Easy to handy when you create rails application
$ rails _5.0.0.1_ new --help
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/apandya/.rvm/rubies/ruby-2.3.3/bin/ruby
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3