padrino / padrino-framework

Padrino is a full-stack ruby framework built upon Sinatra.
http://www.padrinorb.com
MIT License
3.37k stars 509 forks source link

Undefined method `alias_method_chain' #85

Closed cakebaker closed 14 years ago

cakebaker commented 14 years ago

I'm still trying to make the generated padrino app work, now I get the following error: undefined method `alias_method_chain' for Sinatra::ShowExceptions:Class. I guess the issue is related to ruby 1.9, though so far I don't have found a way to make it work...

Anyway, here the stacktrace from Passenger:

0   /usr/lib/ruby/gems/1.9.1/gems/padrino-core-0.9.7/lib/padrino-core/application/showexceptions.rb 8   in `included'
1   /usr/lib/ruby/gems/1.9.1/gems/padrino-core-0.9.7/lib/padrino-core/application/showexceptions.rb 25  in `include'
2   /usr/lib/ruby/gems/1.9.1/gems/padrino-core-0.9.7/lib/padrino-core/application/showexceptions.rb 25  in `'
3   /usr/lib/ruby/gems/1.9.1/gems/padrino-core-0.9.7/lib/padrino-core.rb    3   in `require'
4   /usr/lib/ruby/gems/1.9.1/gems/padrino-core-0.9.7/lib/padrino-core.rb    3   in `block in '
5   /usr/lib/ruby/gems/1.9.1/gems/padrino-core-0.9.7/lib/padrino-core.rb    3   in `each'
6   /usr/lib/ruby/gems/1.9.1/gems/padrino-core-0.9.7/lib/padrino-core.rb    3   in `'
7   /usr/lib/ruby/gems/1.9.1/gems/padrino-0.9.7/lib/padrino.rb  2   in `require'
8   /usr/lib/ruby/gems/1.9.1/gems/padrino-0.9.7/lib/padrino.rb  2   in `'
9   /usr/lib/ruby/gems/1.9.1/gems/bundler-0.9.13/lib/bundler/runtime.rb 45  in `require'
10  /usr/lib/ruby/gems/1.9.1/gems/bundler-0.9.13/lib/bundler/runtime.rb 45  in `block (2 levels) in require'
11  /usr/lib/ruby/gems/1.9.1/gems/bundler-0.9.13/lib/bundler/runtime.rb 40  in `each'
12  /usr/lib/ruby/gems/1.9.1/gems/bundler-0.9.13/lib/bundler/runtime.rb 40  in `block in require'
13  /usr/lib/ruby/gems/1.9.1/gems/bundler-0.9.13/lib/bundler/runtime.rb 39  in `each'
14  /usr/lib/ruby/gems/1.9.1/gems/bundler-0.9.13/lib/bundler/runtime.rb 39  in `require'
15  /usr/lib/ruby/gems/1.9.1/gems/bundler-0.9.13/lib/bundler.rb 73  in `require'
16  /home/dho/projects/twitter-client/config/boot.rb    15  in `'
17  config.ru   1   in `require'
18  config.ru   1   in `block in '
19  /usr/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb    46  in `instance_eval'
20  /usr/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb    46  in `initialize'
21  config.ru   1   in `new'
22  config.ru   1   in `'
DAddYE commented 14 years ago

Hello,

Im using it with 1.9.1 without problems, can you tell me your gem env and steps for reproduce the problem?

Thanks so much!

DAddYE commented 14 years ago

p.s. remember also bundle install

cakebaker commented 14 years ago

Hi,

Ok, here the steps I performed:

And here the list of gems I have installed:

abstract (1.0.0)
actionmailer (3.0.0.beta, 2.3.5, 2.3.4)
actionpack (3.0.0.beta, 2.3.5, 2.3.4)
activemodel (3.0.0.beta)
activerecord (3.0.0.beta, 2.3.5, 2.3.4)
activeresource (3.0.0.beta, 2.3.5, 2.3.4)
activesupport (3.0.0.beta, 2.3.5, 2.3.4)
acts-as-taggable-on (1.1.9)
arel (0.2.pre)
builder (2.1.2)
bundler (0.9.13)
capybara (0.3.6)
chronic (0.2.3)
compass (0.10.0.pre5, 0.8.17)
crack (0.1.7, 0.1.6)
cucumber (0.6.3, 0.6.2)
cucumber-rails (0.3.0, 0.2.4)
culerity (0.2.9)
database_cleaner (0.5.0)
diff-lcs (1.1.2)
erubis (2.6.5)
fastthread (1.0.7)
ffi (0.6.3, 0.6.2)
fuzzyhash (0.0.11)
gemcutter (0.5.0)
git (1.2.5)
grit (2.0.0)
haml (2.2.22)
hashie (0.2.0, 0.1.8)
hoe (2.5.0)
httparty (0.5.2)
httpclient (2.1.5.2)
i18n (0.3.6, 0.3.5)
javan-whenever (0.3.7)
json (1.2.3, 1.2.2)
json_pure (1.2.3, 1.2.2)
mail (2.1.3, 2.1.2)
mash (0.1.1, 0.0.3)
memcache-client (1.8.1, 1.7.8)
mime-types (1.16)
mislav-will_paginate (2.3.11)
mocha (0.9.8)
mongo (0.19.1)
mongo_ext (0.19.1)
mysql (2.8.1)
nokogiri (1.4.1)
oauth (0.3.6)
padrino (0.9.7)
padrino-admin (0.9.7)
padrino-core (0.9.7)
padrino-gen (0.9.7)
padrino-helpers (0.9.7)
padrino-mailer (0.9.7)
passenger (2.2.11, 2.2.10, 2.2.9)
polyglot (0.3.0, 0.2.9)
rack (1.1.0, 1.0.1, 1.0.0)
rack-flash (0.1.1)
rack-mount (0.6.1, 0.6.0, 0.5.2, 0.5.1, 0.4.7)
rack-openid (1.0.1)
rack-test (0.5.3, 0.5.2, 0.5.0)
rails (3.0.0.beta, 2.3.5, 2.3.4)
rails3b (3.0.1, 3.0.0)
rails_best_practices (0.3.19)
railties (3.0.0.beta)
rake (0.8.7)
rb-inotify (0.7.1, 0.7.0)
rdoc (2.4.3)
reek (1.2.7.2, 1.2.7.1)
rspec (1.3.0, 1.2.9)
rspec-rails (1.3.2)
ruby-hmac (0.4.0)
ruby-openid (2.1.7)
ruby2ruby (1.2.4)
ruby_parser (2.0.4)
rubyforge (2.0.4, 2.0.3)
rubygems-update (1.3.6)
rvm (0.1.24, 0.1.23)
selenium-webdriver (0.0.17)
sexp_processor (3.0.3)
sinatra (1.0, 0.9.6, 0.9.5, 0.9.4)
soap4r (1.5.8)
sqlite3-ruby (1.2.5)
term-ansicolor (1.0.5, 1.0.4)
test-unit (1.2.3)
text-format (1.0.0)
text-hyphen (1.0.0)
thor (0.13.4)
thoughtbot-shoulda (2.10.2)
tilt (0.8)
tmail (1.2.7.1)
treetop (1.4.4, 1.4.3)
twitter (0.9.2)
tzinfo (0.3.17, 0.3.16)
usher (0.7.1)
webrat (0.7.0)

Hope this helps!

DAddYE commented 14 years ago

Mmm not sure that can help you in your boot file, try to add:

require 'padrino-core/support_lite'

Before:

Bundler.require(:default, PADRINO_ENV)
cakebaker commented 14 years ago

Yep, that did the trick. Thanks!

DAddYE commented 14 years ago

Hi I added a fix here: dbbf97dc20863b51550a74009089c96b441bf729 tell me if problem persist.

Thanks for help us to found it ;)