Tag: Rails/トラブルシューティング
Can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
gem install bundler -v '1.17.3'
gem 'therubyracer', '0.12.1' gem 'libv8', '3.16.14.7'
gem 'therubyracer', '0.12.1' gem 'libv8', '3.16.14.11'
Uncaught exception: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile
gem 'mysql2', '~> 0.3.18'
gem 'mysql2', '>= 0.3.18', '< 0.5'
ActiveRecord::UnknownAttributeReference (Query method called with non-attribute argument(s): "date DESC, 'rank'"):
…result.order(Arel.sql("date DESC, 'rank'")).page(params[:page])
def initialize super # 初期化処理 end
$ bundle exec spring stop $ bundle exec rails g impressionist
$ bin/spring stop $ bundle exec rails console
The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved.
config.public_file_server.enabled = true
sudo yum install nodejs --enablerepo=epel
node: error while loading shared libraries: libuv.so.0.10: cannot open shared object file: No such file or directory
sudo yum install libuv
config.serve_static_files = true config.assets.compile = true
module Mymod require 'date' RubyDate = Date Date = nil class ClassA class Date < Mymod::ClassA def initialize today = RubyDate.today # get today's date from Ruby's Date class puts "Today's date is #{today.to_s}" end end end end Mymod::ClassA::Date.new # => Today's date is 2014-01-05
config.autoload_paths += Dir["#{Rails.root}/lib"] # 追加
uninitialized constant Tasks (NameError)
config.autoload_paths += Dir["#{Rails.root}/lib"] config.eager_load_paths += Dir["#{Rails.root}/lib"]
config.autoload_paths += Dir["#{Rails.root}/lib"] config.eager_load_paths += Dir["#{Rails.root}/lib"]
sudo port install npm6
brew update brew rm imagemagick brew install imagemagick@6 brew link imagemagick@6 --force
export PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle config build.nokogiri --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
xcode-select --install
$ bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include"
xcode-select --install
brew rm imagemagick brew install imagemagick@6 PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig gem install rmagick
xcode-select --install
gem 'xmlrpc'
# Using Debian, as root curl -sL https://deb.nodesource.com/setup_10.x | bash - apt-get install -y nodejs