search for: login_system

Displaying 20 results from an estimated 21 matches for "login_system".

2006 Mar 14
2
no such file to load -- login_system
I''m hoping someone can help me out here. My application works fine locally using webrick. One I upload to my shared server space I get an application error saying rails has failed to start. The log file production.log reads as follows: MissingSourceFile (no such file to load -- login_system): /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require'' /app/contr...
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? session[:user] = user.id...
2005 Nov 23
1
How to set flash for before_filter :login_system ?
Hello all, I''m using Login Generator ACL System<http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem> I want to know if there is a way to set the flash(:notice) before the before_filter is processed so that the flash() is available on my login page ? IE: "regular" user changes URL to an "admin" page, then I want the login''s flash to say
2006 May 27
2
NameError / active_support/dependencies
..._support/dependencies.rb:131:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'' #{RAILS_ROOT}/app/controllers/users_controller.rb:168:in `signup'' note: the User model is used for logingenerator (login_system) gem i have no clue what is going on. the table Users exists in my db. ???? thanks. -- Posted via http://www.ruby-forum.com/.
2006 Feb 20
6
LoginGenerator - multiple user types...
I have been looking at the LoginGenerator gem. Looks great and can be easily modified. However in my app I have two places where people can login, one is for in my case "employees" the other is for "users". They are seperate tables in my database and have many different fields. I have an admin area located at ./sysadmin/ where only "employees" can login, they
2005 Mar 09
10
Confused about extending the login generator ''user''
...ctionController::SessionRestoreError: Session contained objects where the class definition 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'...
2006 Mar 01
1
upload file above /public, authenticate before serving?
...into #rails_root/some_folder/ instead of /public/some_folder, store a reference to the file in the db instead and somehow serve it up to authenticated users or 2) upload the file into /public/folder but find a way of only serving up the files to authenticated users (I''m currently using login_system.rb to authenticate users) anyone have any ideas? I''m stumped... -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
0
LoginGenerator called on Form Submission
...age and then onto the original form submission action after the user is authenticated. This part is easy. The hard part is, how do I pass the parameters collected from the original form through the login form and then on to the action of the original form? I was messing around with the actual login_system.rb code without much success. Perhaps there is a better way? This is what I was trying: In login_system.rb: Originally: def access_denied redirect_to :controller => "/account", :action => "login" end I changed this to: def access_denied render_component :contr...
2005 Mar 07
2
Login generator question
Hello I''m using the login generator on my application, and I found a problem with it. My application is a rack inventory thing, which shows a rack with machines and KVMs and you can click on a rack item to show/edit/destroy it. The edit and destroy actions are protected by the login generator. Now say a user clicks on "destroy" for some machine. He''ll be shown the
2006 May 26
2
Rails app fails to start with LoginGenerator
.../dependencies.rb:30:in `depend_on'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'' #{RAILS_ROOT}/lib/login_system.rb:1 /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb...
2006 Aug 17
0
Rails not creating session files??
...me on a non-successful, but just places me on the login page with no flash message on a successful. I can''t get into my site! I think I''ve traced it down to the fact that I can''t get a session. There are no session files in my /tmp directory, and @session is nil in the login_system.rb. Has anyone run into this problem? I just followed the procedure to import my app into Subversion, where you delete all the /tmp files. I wonder if that has something to do with it? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonra...
2006 Mar 31
1
Active Record: subclassing a model
...ow and then I get the following error message: (eval):1:in `alias_method'': undefined method `destroy_without_callbacks'' for class `Partner'' ....trace..... This error occured while loading the following files: ./script/../config/../app/controllers/application.rb login_system.rb user.rb account.rb project.rb partner.rb I can''t figure out how to correct this. Any ideas? Regards Adam Groves -- Posted via http://www.ruby-forum.com/.
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.
2005 Nov 15
1
undefined method `redirect_back_or_default' w/ Salted Login Generator tests
Hi, I upgraded to Rails 0.14.3 and I am getting NoMethodError exceptions while running the functional tests for the Salted Login Generator. Is redirect_back_or_default no longer part of the ApplicationController? I don''t recall seeing anything about -- Frank Kim http://meetingkoreans.com http://betweengo.com
2006 Feb 02
5
access controller var within model
I need to access params[:field_name] from within my Model. @params[:field_name] isn''t working?
2005 Mar 05
1
problems with authentication -- restrict certain actions to certain users
Ok, so at this point I''ve got my app completely written, including the login generator, and I''ve even got stuff like the layout done up all nicely so that the login page matches the rest of the site nicely. All is good. But there''s one problem: I''m not running a wiki here, I''m running a personal site. As it is, any schmuck can log in, and anybody
2006 Jan 16
17
LoginEngine / UserEngine conceptual help
All, I have a small Intranet app I''m trying to get ready for remote access. (I only have 15 or so users for now and I don''t plan to be adding very many more.). I have installed the login engine and it seems to be working as advertized. (Great job!) For my needs I don''t want random people to be able to register and get access to my app, but I will need to register
2006 Jan 04
9
Family Connection 1.0
This is a follow-up announcement from the 0.9 release. There are no major changes, but this release marks a downloadable (tgz) file as well as a promotional website, a demo application and screenshots. Family Connection is an easy-to-setup online hub for your family that includes a Family News section, and an Address Book. http://familyconnect.rubyforge.org/ Please note that the download
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep getting the following error when I run "generate login Account": /usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in `manifest'': No manifest for ''login'' generator. (NotImplementedError) from (eval):3:in `__send__'' from (eval):3:in `manifest'' from
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::session defined, returning the @session of the controller which manipulates the