similar to: Login generator question

Displaying 20 results from an estimated 3000 matches similar to: "Login generator question"

2005 Mar 09
10
Confused about extending the login generator ''user''
I''ve been using the login generator ''out of the box'' for simple authentication, and its been working fine. Now I want to extend it by simply adding ''type_id'' field which links to my ''user_types'' table, but I''m hitting: #<ActionController::SessionRestoreError: Session contained objects where the class definition
2005 Mar 15
6
New Beta version of Rake for Rails Users ... Fix for Ruby 1.8.2 unit test bug
I have a new version of Rake that I''m (almost) ready to release. But before I make an official release, I would like some Rails folk to give it it try ... Why? Because it contains a workaround for the notorious Ruby 1.8.2 test/unit bug. Using this version of rails, it should be possible to unit test a rails app without patching the Ruby 1.8.2 test/unit library. Where to get it?
2005 Mar 09
8
How to set ''Return-Path'' in ActionMailer to avoid SPF failure?
I was wondering if there was any way to set the ''Return-Path'' of an email when using ActionMailer. Without the ability to set the ''Return-Path'' of an email, it is impossible to avoid being labeled as ''spam'' by many SMTP gateways if trying to send mail on another''s behalf. SPF doesn''t care about the
2005 Mar 09
9
Unit testing + instance variables
After *much* digging and playing around, I finally figured out how to unit test instance variables that are created by actions. It was more difficult than I expected. It seems like there should have been a more straight forward way to do this. Can someone enlighten me? A simplified and somewhat contrived example of what I am current doing: Thanks. Matt >> # My Controller of interest
2005 Mar 06
3
question about testing
Ok, so now I''m learning about testing. After a few initial hiccups, I''ve got my tests written nicely and all the assertions are passing. But I just have one question about doing tests in a loop. In my setup, I''m using the login generator to protect ''sensitive'' actions, while some actions are public. So I''ve got this line in my setup method:
2008 Nov 05
3
Problems w/ before_filter getting ignored
Hello, I''m setting up an authentication module that will be called from application.rb. I want to save a rrequest.request_uri into a session to be used as a place holder that will take users back to the page they were on before they logged in. I''m trying to call the store_location method for all methods EXCEPT login by putting login in an except before filter. For some
2017 Jul 07
4
Extreme frustration with GIMP
I am not a graphics person. Also can't afford to hire one. Trying to follow instructions at https://docs.gimp.org/en/gimp-tutorial-quickie-separate.html I use the "intelligent scissors" just like they say, spend quite a bit of effort doing so. Then click the foreground select tool - just like they say - and suddenly everything I did with the intelligent tool is undone. WTF?
2002 Jun 10
1
Very strange problem with profiles
Hello, I have just had a client of ours encounter an extremely weird problem with roaming profiles. Wheather or not it's samba related I do not know, but I believe it could be. The problem is that the person in question is MOVING files from one location to another inside "My Documents" while logged in using a domain account WHILE DISCONNECTED from the network. He also changes a few
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
2015 Jun 12
2
<vcpu placement='static' current='N'>M</vcpu>
Hello. I seem to be to stupid to configure vcpu hotplugging on one of my machines. Whenever i set: <vcpu placement='static' current='4'>4</vcpu> and save this setting, this setting is undone by libvirt. It jumps back to: <vcpu placement='static'>4</vcpu> I'm confused now. Someone has an idea what's going on here? Any hints are really
2008 Dec 16
20
step definitons to check login
I am working with the authlogic gem and trying to create a simple login test from cucumber features. The feature statement is: Given the user is not logged in The step definition for this is confounding me. In the application_controller the authlogic tutorial recommends the following: private def require_user unless current_user store_location flash[:notice] =
2007 Apr 28
6
Determine how many documents a term occurs in
Is there a fast way to determine how many documents a term occurs in, besides iterating through every document with TermDocEnum? -- Best regards, Stian Gryt?yr
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__''
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
Hi, I just installed Rails 2.0.2 [root@mymachine easyx]# ruby --version ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux] [root@mymachine easyrx]# gem install rails --include-dependencies Need to update 16 gems from http://gems.rubyforge.org ................ complete Successfully installed rails-2.0.2 [root@remandev easyrx]# But I''m getting this error in my restful_authentication
2007 Apr 25
4
[LLVMdev] LLVM projects: Change framework
hi all, I have used LLVM extensively over the last 2 years. I have realized a so called change framework that based on the LLVM framework. Basically it is a framework that augments the JIT to understand "changes", such that a mutator process can formulate changes in a change language (inspired by DTrace's D), which is too compiled to LLVM and sent to the application process.
2005 Mar 13
7
[Bug 998] --without-opensc is not respected
http://bugzilla.mindrot.org/show_bug.cgi?id=998 Summary: --without-opensc is not respected Product: Portable OpenSSH Version: -current Platform: All OS/Version: Linux Status: NEW Severity: minor Priority: P2 Component: Build system AssignedTo: openssh-bugs at mindrot.org ReportedBy: stian
2008 Mar 14
1
How to Disable Printers
I'm trying to stop wine from recognising my printers, however whenever I delete them from the registry, it just recreates them. The reason I'm doing this is because an application I'm using doesn't like printers with names greater than 59 characters (This isn't wine's fault as it does it in Windows too), and it prevents me from using certain parts of the program even
2008 Mar 26
2
[LLVMdev] Checked arithmetic
On Wed, 2008-03-26 at 14:11 -0700, Chris Lattner wrote: > On Wed, 26 Mar 2008, Jonathan S. Shapiro wrote: > >> Why not define an "add with overflow" intrinsic that returns its value and > >> overflow bit as an i1? > > > > Chris: > > > > I understand several simple ways to implement add with carry. Your > > suggestion is one of them. What
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
2006 May 27
2
NameError / active_support/dependencies
hi everyone in my dev machine, everything works flawlessly now when i uploaded my website on the server, it cannot acces User model anymore. all other pages work by the way. when i try to access User on console or by web, it shows: NameError in UsersController#signup uninitialized constant User /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in