Ruby On shorten long variable names...

by dive.myopenid.com, June 23, 2009 12:23

@Johannes, thx, but I think...

6cb63e2304cb64236520d0e3e353c9bc Talk
1
2
3
4
  class User < ActiveRecord::Base
    def self.authenticate_unsafely(user_name, password)
      find(:first, :conditions => "user_name = '#{user_name}' AND password = '#{password}'")
...

Ruby On Is there better way to writ...

by dive.myopenid.com, June 22, 2009 19:13

Also put your attention to ...

6cb63e2304cb64236520d0e3e353c9bc Talk

Ruby On Decoding a json object whil...

by dive.myopenid.com, June 22, 2009 19:01

Adam is the man, once again...

6cb63e2304cb64236520d0e3e353c9bc Talk

Ruby On Iterating An Array - Need t...

by dive.myopenid.com, June 22, 2009 18:59

maybe have something like

...

6cb63e2304cb64236520d0e3e353c9bc Talk
1
2
3
4
def upgrade_and_restart
  @myvocabulary.upgrade
  nextmyvocabulary = Myvocabulary.draw(current_user.id, params[:position], @myvocabulary.vocabulary.lesson.proficiency.id)
...

Ruby shorten long variable names...

by dive.myopenid.com, June 22, 2009 18:52, 5 refactorings, tagged with rails, models, variable names

I wonder how you make a lin...

6cb63e2304cb64236520d0e3e353c9bc Talk

Ruby On While loop to get unique value

by dive.myopenid.com, January 22, 2009 14:13

nice nice nice thank you al...

6cb63e2304cb64236520d0e3e353c9bc Talk
1
2
3
4
def before_create_save(record)
  vouchercode = generate_vouchercode(8)
  while Voucher.find(:first, :conditions => {:vouchercode => vouchercode})
...

Ruby While loop to get unique value

by dive.myopenid.com, January 06, 2009 16:44, 5 refactorings, tagged with while, uniqueness

Coming from python, I would...

6cb63e2304cb64236520d0e3e353c9bc Talk