ruby - rails no such file to load -- ap (LoadError) -
when try of rails
, rake
command in staging server got no such file load -- ap (loaderror)
,
for rails s
:
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in`require': no such file load -- ap (loaderror) xxxx /config/application.rb:7
for rake -t
:
rake aborted! no such file load -- ap
my application.rb
file:
require file.expand_path('../boot', __file__) require 'rails/all' # if have gemfile, require gems listed there, including gems # you've limited :test, :development, or :production. bundler.require(:default, rails.env) if defined?(bundler)
my rails , ruby version:
- rails version in local , staging: 3.0.11
- ruby version in staging: ruby 1.8.7 (2012-02-08 patchlevel 358)
- ruby version in local:ruby 1.8.7 (2011-06-30 patchlevel 352)
but can run rails s
, rails c
, rake log:clear
in local machine. gemfile
file in staging same gemfile
in local.
what missing here? how can resolve this?
in gemfile, change line:
gem "awesome_print", :require => "ap"
to this: gem "awesome_print"
just had same thing happen me. ap
custom defined alias awesome_print
. allows things ap product.first
, pretty print you. easier typing out awesome_print product.first
i'm not sure why, when happened me, dropped alias, , loads without issue. there else in play here smarter myself can explain, know worked me.
Comments
Post a Comment