Menu

#4 undefined method 'model'

open
nobody
Program Bug (5)
5
2008-01-11
2008-01-11
No

Using version 0.3 of OSA. Ruby versions are:
[root@openser-test ~]# rpm -qa | grep ruby
ruby-libs-1.8.5.114-1.fc6
rubygems-0.9.2-1.fc6
ruby-1.8.5.114-1.fc6
ruby-rdoc-1.8.5.114-1.fc6
ruby-mysql-2.7.1-2.fc6
ruby-irb-1.8.5.114-1.fc6
ruby-devel-1.8.5.114-1.fc6

Log snip:

** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
** Rails signals registered. HUP => reload (without restart). It might not work well.
** Mongrel 1.1.3 available at 0.0.0.0:3000
** Use CTRL-C to stop.
/!\ FAILSAFE /!\ Thu Jan 10 23:49:45 -0500 2008
Status: 500 Internal Server Error
undefined method `model' for ApplicationController:Class
/var/www/Rails/app/controllers/application.rb:8
<snip>

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I get this too. Seems like model is an obsolete method, maybe it's dropped from the latest Ruby packages.

     
  • Nobody/Anonymous

    Logged In: NO

    Yep, that's the problem. "model" has been removed. I found an old post here where the warning was coming, for "model" and other things:

    http://www.ruby-forum.com/topic/120655

    It's in French but you can see the errors in English. It appears you can use Ruby pre-2.0 if you can find it. Or we need an update to the code.

     
  • Nobody/Anonymous

    Logged In: NO

    Solution? Downgrade ruby on rails to an obsolete version. I don't suppose any ruby on rails programmers care to pick this up and make it work with any rails version even remotely modern?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.