#rubyonrails - Sat 31 Mar 2007 between 03:11 and 03:18

NY Lost Funds



Palishmakes sense? nope!
eakbaspstickne: what is UUID?
foxinessNewMonarch: http://www.pragmaticprogrammer.com/titles/ruby/index.html , see Excerpts on the same page
Palishuniversally unique identifier.
pstickne"+Kernel::srand+ may be used to ensure repeatable sequences of random numbers between different runs of the program." (It doesn't say it -does-, but it kind of implies it)
Palishso anyone know how params[:classroom][:section] is nil with the above?
pstickneeakbas, Universally Uniquie ID or something (aka: GUID)
linojPalish: i doesnt exist
pstickneeakbas, guaranteed unique to something like 100,000/sec (depending on scheme, there are 4 or so)
linojit
lonnypstickne: I am not sure. Pickaxe implies that it does, but I believe in making sure.
NewMonarchlouielouie: Yep. Ruby Newbie.
Palishlinoj: How can it not exist?
params is {"commit"=>"Join", "classroom"=>{"domain"=>"whoaa", "student_password"=>"test"}, "action"=>"join", "controller"=>"classrooms", "section"=>"58"}
louielouieNewMonarch: i think a combo of Ruby _for_ Rails and Agile Web Dev 2nd ed would be your best bet
Palishit's clearly there. "classroom"=>{"section"=>"58"}
params["classroom"]["section"] shouldn't be nil
linojPalish: params[:classroom][:domain] is not nil
NewMonarchlouielouie: Read the SitePoint book. Gave it thumbs down.
pstickneanyway, I'd just use a module... other solution, if you're using a disk-based system, is to use something which creates new temp file using the FS to guarantee uniqueness.
louielouieNewMonarch: SitePoint book?
Palishlinoj: I said section :)
louielouieNewMonarch: i mean the book by David Black - http://www.manning.com/black/
pstickne(not really "temp file", but "uniquely-named new file")
linojPalish: section isnt a hash of classroom, afaics
Palishlinoj: ...huh?
linojparams[:section] is not nil
PalishOH
hmm
should I be naming the form element name='classroom[section]'?
lonnyeakbas: Depending on what you are doing... I have an app that has no more than one picture per user, so I use the id of that user's record for the filename.
NewMonarchMy friend Scott Raymond recommended the pickaxe book
eakbaslonny, pstickne: thanks
louielouieNewMonarch: get all 3 :)
linojNewMonarch: i read the agile book, then the pickaxe book, then the agile book again
NewMonarchand then find time to read them!
louielouieNewMonarch: the pickaxe is great at ruby. Agile Web Dev is great at rails. R4R bridges the gap in my opinion.
NewMonarchAt this point I need the basic Ruby to do basic apps. Nothing heavy
Just wanting to do the stuff I previously did in PHP.
linojNewMonarch: not rails? then just learn ruby

Page: 2 9 16 23 30 37 44 51 58 65 72 79 

IrcArchive

NY Lost Funds