search for: rb1aph5k6s

Displaying 4 results from an estimated 4 matches for "rb1aph5k6s".

2008 Feb 07
1
ActiveRecord 'find_or_initialize_by' dynamic finder bug? Ignoring conditions.
..._or_initialize_by_name_and_state()'' however what I am really trying to show is that the :conditions options are ignored. Check out the actual SQL run by each of these finds in a console to see what I mean. ## EXAMPLE : USES CONDITIONS ## >> @user = User.find_by_email(''foo-+RB1Aph5k6s@public.gmane.org'', :conditions => {:state => ''passive''}) User Load (0.000426) SELECT * FROM `users` WHERE (`users`.`email` = ''foo-+RB1Aph5k6s@public.gmane.org'') AND (`users`.`state` = ''passive'') LIMIT 1 => nil >> &gt...
2011 Aug 29
32
Weird assignment problem, very confused :(
Hey, I have the following line in my controller: User.create(:email => "fuuu-+RB1Aph5k6s@public.gmane.org", :password => ''asldfkjadsfadsf'', :ip => request.remote_ip) my IP is 127.0.0.1 - now User.find_by_ip(''127.0.0.1'') returns 0 records although User.first contains ''127.0.0.1'' if I change it to: User.create(:email =&g...
2013 May 19
5
update_attributes() for a single column
...strange ROLLBACK exception when attempting to execute this code: $ rails console user = User.first User Load (1.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 => #<User id: 1, name: "Michael Hartl", email: "foo-+RB1Aph5k6s@public.gmane.org", created_at: "2013-05-12 12:47:23", updated_at: "2013-05-12 13:24:26", password_digest: "$2a $10$CYZFddDa5Glv0dlYhlpZguIuzfyMRiwleaenmh67hFyK..."> irb(main):005:0> user.update_attributes(email: ''example-S0P6GYPhS/5I9/98DSiCMdi2O/Jb...
2007 Dec 29
0
(unknown)
...owerful things by passing stdin to a job that powers through a list of work. For instance, assume a "./jobs/bulkmail" job resembling STDIN.each do |line| address = line.strip mail_message_to address end then you could stdin = [ "foo-+RB1Aph5k6s@public.gmane.org", "bar-+LBmYUDmh58@public.gmane.org", "ara.t.howard-kPLGYEiIRz7kRp/T+dgDygC/G2K4zDHf@public.gmane.org", ] Bj.submit "./script/runner ./jobs/bulkmail", :stdin => stdin and all those emails would be sent in the backgr...