Every repository with this icon (
Every repository with this icon (
Errors
Errors
For lack of finding another page, i thought we need somewhere where people can post errors.
Before_filter error
I am having an issue with the before_filter code to protect pages. I am inserting ‘before_filter:login_required’ at the top of my controllers but whenever i go to a page that i want to visit i get the ‘No Method’ Error.’undefined method `before_filter’’. Any help would be great!
James at 08:20 AM CDT (05/26)
You need to move the “include Authenticated System?” from app/controllers/account_controller.rb to app/controllers/application.rb – Ben
Problem with AAA
My protected pages are being displayed even without logging in. I have moved “include Authenticated System?” to app/controllers/application.rb. Also used filters in my controllers. Please help.
Also one more query – I want to allow multiple people to login with the same account simultaneously. Is this possible??
Sandip
ANSWER: Since AAA is cookie-based, users on different systems can log in as different users. Each browser gets its own cookie, and quid-pro-quo, its own session. Note that multiple users on the same server should probably run against a cluster, since each Rails server can only service one request at a time.
- Hans, 8/18/2007
FYI, I get an exception thrown when using AAA with edge rails, because “redirect_to_url” has been deprecated in favor of “redirect_to.”
Jeremy
I moved the reset_session call in logout (account_controller) to be after the
redirect_back_or_default(:controller => ’/account’, :action => ‘index’)
so that after a logout the user is redirect back to the previous page. this works fine for actions that aren’t protected by before_filter require_login, for protected pages, the users gets bounced to the login page … which is also good :)
- Gerrit, 20/oct/2007
$ rake db:migrate—trace
(in /Users/martin/Work/tippeweb) Invoke db:migrate (first_time) Invoke environment (first_time) Execute environment Execute db:migrate
rake aborted!
uninitialized constant Act As Authenticated?
I have moved “include Authenticated System?” to application_controller.rb
—
Will post solution if and when I got one!
Martin 20071102
When redirecting to login upon access_denied, I get
http://localhost:3000/3C=20controller_file_name%20%3E/login
as the url which mongrel refuses to parse:
Mon Nov 05 13:29:39 +0100 2007: HTTP parse error, malformed request (127.0.0.1): #Http Parser Error?: Invalid HTTP format, parsing fails.>
Mon Nov 05 13:29:39 +0100 2007: REQUEST DATA: “GET /3C=20controller_file_name%20%3E/login
…this only happens on HTTP Requests, XHR Requests work.
Mongrel 1.1, Rails 1.25 via Mac Ports?
Please help






