Skip to content

Instantly share code, notes, and snippets.

AMIC MING amicming

Block or report user

Report or block amicming

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@amicming
amicming / rails-5-new-options
Last active Jan 4, 2018
Command line options for rails _5.0.0.1_ new --help. Easy to handy when you create rails application
View rails-5-new-options
$ 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
View gist:c9a44c09e864f202f422be8577b1a764
$ 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.0.0.1_&_Ruby 2.3.1
Created Nov 11, 2016
Rails console was crash with Rails 5.0.0.1 and Ruby 2.3.1
View Rails_5.0.0.1_&_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
You can’t perform that action at this time.