SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RAILS_ROOT Problem

    I setup RoR and now I'm trying to setup Act As Authenticated to run on it. I installed it, and it works fine; however, when I add "include AuthenticatedSystem" to application.rb I get an error page:

    NoMethodError
    undefined method `helper_method' for Object:Class
    RAILS_ROOT: /home/applications/mysite/config/..
    #{RAILS_ROOT}/lib/authenticated_system.rb:96:in `send'
    #{RAILS_ROOT}/lib/authenticated_system.rb:96:in `included'
    #{RAILS_ROOT}/app/controllers/application.rb:1
    /usr/bin/mongrel_rails:18

    Is my RAILS_ROOT set to the wrong directory? If so, how can I change it?

  2. #2
    SitePoint Enthusiast Stevenwulf's Avatar
    Join Date
    May 2002
    Location
    Berkeley
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is Acts As Authenticated a plugin?

    Did you just plop it into the plugins directory?

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stevenwulf
    is Acts As Authenticated a plugin?

    Did you just plop it into the plugins directory?
    I installed it via:

    script/plugin source http://svn.techno-weenie.net/projects/plugins
    script/plugin install acts_as_authenticated
    script/generate authenticated user account

    Edit: I just checked, and the acts_as_authenticated is in the plugins directory.

  4. #4
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I was using Mongrel for this installation, and the problem fixed itself when I ran Mongrel on port 80 with "mongrel_rails start -d -p 80" instead of letting it run on 3000...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •