search for: loginsystem

Displaying 9 results from an estimated 9 matches for "loginsystem".

Did you mean: login_system
2006 Apr 06
7
LoginSystem : make @session available to models
Hello. LoginSystem is cool, it populates the @session instance variable of controllers with many useful info. The fact is : it would be cool to let models know about the session, too. For instance, after_update and after_create callbacks could store *who* did *what* on *what. Aim : having ActiveRecord::Base::ses...
2009 Jun 05
6
rails 2.3.2
Hi all, I am using rails v.2.3.2 and if I put following line to my ApplicationController: include LoginSystem and I moved my login_system.rb to lib folder: module LoginSystem protected def is_logged_in? @logged_in_user = User.find(session[:user]) if session[:user] end def logged_in_user return @logged_in_user if is_logged_in? end def logged_in_user=(user) if !user.nil? se...
2005 Mar 09
10
Confused about extending the login generator ''user''
...wasn''t available. Remember to require classes for all objects kept in the session. The session has been deleted.> 1) My application.rb is straight from the README, ie: Require_dependency "login_system" class ApplicationController < ActionController::Base include LoginSystem model :user end 2) My user_model.rb is a little different because I have defined the relationship to the type table, ie class MybmsUser < ActiveRecord::Base belongs_to: user_type 3) I''ve added the ''user_type_id'' to my ''users'' table and...
2006 Nov 04
0
filter function with parameter
...but somehow Rails seems to be looking for another syntax. before_filter :check_quantity(2), :only => [:show] doesn''t work. What''s the right way to do this? Thanks a lot! --------------------------------- Can u help me with this?? i have this code in a module file. (module LoginSystem) def module_backend_required(the_module = "test",the_action = "test") p "-----------------------" p "the_module" + the_module p "the_action" + the_action p "-----------------------" if not protect?(action_name)...
2006 Feb 01
1
LoginGenerator - Firefox Problem -The page isn''t redirecting properly
Hi, HAs anyone come across this issue in Firefox; I''ve just installed LoginGenerator and I''m allowing cookies to be set yet any all to http://apollo:3000/account/login results in the error; Firefox has detected that the server is redirecting the request for this address in a way that will never complete. Any Clues?? Eric.
2006 Jan 09
0
Need help configuring LoginGenerator
...4 with Rails 1.0 I''ve installed the most recent LoginGenerator(1.1.0) and followed the instructions in README_LOGIN as well as referencing any additional information at http://wiki.rubyonrails.com/rails/pages/LoginGenerator. The error message I''m stuck at is : undefined method `LoginSystem'' for ApplicationController:Class when trying to access http://localhost:3000/player/signup where player is the name of the login controller. Any help to either solve this or point me in the right direction would be most appreciated. Ethan Burrow Internet Developer Polycot Consulting, LLC...
2006 Feb 07
0
scope problems testing a helper method that calls link_to()
...--- require File.dirname(__FILE__) + ''/../test_helper'' require File.dirname(__FILE__) + ''/../../app/controllers/application'' require File.dirname(__FILE__) + ''/../../app/helpers/application_helper'' require ''action_view'' module LoginSystem def unprotected?() true; end # drop login protection for this test controller end # dummy controller to drive helper tests class HelperController < ActionController::Base include ApplicationHelper include ActionView end class HelperControllerTest < Test::Unit::TestCase fixtures :par...
2006 May 26
2
Rails app fails to start with LoginGenerator
...ript/server:3 This error occured while loading the following files: application.rb login_system.rb user.rb </code></pre> I assuming thst the users.rb is a model class? Its on its place in models/ and everything else is working until I enable: <pre><code> include LoginSystem model :user </code></pre> in app controller Any suggestions? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Apr 04
26
Models accessing the session...
Can someone tell if there is a reason models shouldn''t access the session? Models could easily be made to access the session or some other shared persistant data store such as a file or a table. _This is the problem_, a model needs to know certain information eg. the id of the current user. But the model has no idea about anything outside of its self, because it can''t access