[前][次][番号順一覧][スレッド一覧]

rails:91

From: TADA Tadashi <sho@s...>
Date: Sat, 19 Mar 2005 22:29:50 +0900
Subject: [rails:91] railsコマンドでtemplate_class=メソッドが見つからない

ただただしです。

ようやくRoRを使おうと思ってインストールしたのですが、railsコマンドを実行
すると「ActionController::Baseにtemplate_class=メソッドがない」と言われ
てエラーになってしまいます(ソースを見てもたしかにない)。心当たりのある方
はいらっしゃいませんか?

インストールにミスっているとしか思えないんですが、正常にできているように
見えます(RubyGems初体験なので勝手がわからないんですが)。

以下、インストール手順の抜粋です。RubyGemsのインストールから始めています。
環境はDebian sargeです。

---ここから
% wget http://rubyforge.org/frs/download.php/3463/rubygems-0.8.8.tgz

% tar zxf rubygems-0.8.8.tgz

% cd rubygems-0.8.8

% sudo ruby setup.rb
(中略)
  Successfully built RubyGem
  Name: sources
  Version: 0.0.1
  File: sources-0.0.1.gem

% sudo gem install rails
Attempting local installation of 'rails'
Local gem file not found: rails*.gem
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
Install required dependency rake? [Yn]  y
Install required dependency activesupport? [Yn]  y
Install required dependency activerecord? [Yn]  y
Install required dependency actionpack? [Yn]  y
Install required dependency actionmailer? [Yn]  y
Install required dependency actionwebservice? [Yn]  y
Successfully installed rails-0.10.1
Successfully installed rake-0.4.15
Successfully installed activesupport-1.0.1
Successfully installed activerecord-1.8.0
Successfully installed actionpack-1.5.1
Successfully installed actionmailer-0.7.1
Successfully installed actionwebservice-0.6.0
Installing RDoc documentation for rake-0.4.15...
Installing RDoc documentation for activesupport-1.0.1...
Installing RDoc documentation for activerecord-1.8.0...
Installing RDoc documentation for actionpack-1.5.1...
Installing RDoc documentation for actionmailer-0.7.1...
Installing RDoc documentation for actionwebservice-0.6.0...

% rails
/usr/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_controller.rb:50: undefined method `template_class=' for ActionController::Base:Class (NoMethodError)
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.1/lib/active_support/dependencies.rb:197:in `require'
        from /usr/local/lib/site_ruby/1.8/rubygems.rb:164:in `activate'
        from /usr/local/lib/site_ruby/1.8/rubygems.rb:151:in `activate'
        from /usr/local/lib/site_ruby/1.8/rubygems.rb:150:in `each'
        from /usr/local/lib/site_ruby/1.8/rubygems.rb:150:in `activate'
        from /usr/local/lib/site_ruby/1.8/rubygems.rb:38:in `require_gem_with_options'
        from /usr/local/lib/site_ruby/1.8/rubygems.rb:32:in `require_gem'
        from /usr/bin/rails:17
---ここまで

━━━━━━━━━━━━━━━━━
ただただし <http://sho.spc.gr.jp/>
♪ツッコミは、短く鋭く、愛をこめて
━━━━━━━━━━━━━━━━━



--
ML: rails@r...
使い方: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]

->      91 2005-03-19 14:29 [sho@s...            ] railsコマンドでtemplate_class=メソッドが見つからない
        93 2005-03-19 20:22 ┣[moriq@m...          ]                                       
        95 2005-03-20 10:42 ┃┣[sho@s...            ]                                     
       115 2005-03-26 12:53 ┃┃┗[sho@s...            ]                                   
        96 2005-03-20 00:29 ┃┗[sho@s...            ]                                     
        97 2005-03-21 04:00 ┣[maki@r...           ]                                       
        98 2005-03-21 04:17 ┃┣[kazuhiko@f...       ]                                     
       102 2005-03-21 18:50 ┃┃┗[maki@r...           ]                                   
        99 2005-03-21 04:20 ┃┗[akira@a...          ]                                     
       101 2005-03-21 14:07 ┃ ┗[stoyan@g...         ] Re: railsコマンドでtempl ate_class= メソッド=?UTF-8?Q?=E3=81=8C=E8=A6=8B=E3=81=A4=E3=81=8B?= らな い
       103 2005-03-21 19:43 ┗[maki@r...           ]                                       
       104 2005-03-22 00:11  ┗[matz@r...           ]