#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11
Top Prev 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 Next
#rubyonrails
<mbelleza> RadarListener: hey..how to make popup window that returns an id
<BucWheat> tpope could you lend a hand? i do not want to screw anything up as i already have data in the db :(
<Zodd2> tpope: (sorry) in the controller i have those statements written, so I am assuming it never gets loaded into @gallery_size
<RadarListener> mbelleza, I still dont understand your question.
<sixty4bit> ReinH: :P~~
<RadarListener> BucWheat, maybe http://pastie.caboo.se/41845 might help you.
<RadarListener> Those are the models.
<Adam12> Zodd2: Off topic, but you could of also done @gallery_size = params[:size] ? params[:size] : 'small'
<tpope> BucWheat: only vaguely paying attention, but why not a simple Appointment.belongs_to :doctor and :lab?
<Adam12> Zodd2: In one line, not two.
<tpope> params[:size] || 'small'
<tpope> keep it DRY folks
<tpope> but anyways
<RadarListener> Finding a doctor and defining the array simply as "doctor" will allow you to go "doctor.clients" and return all the clients of that doctor, BucWheat.
<Adam12> Ack, off topic police :|
<tpope> you're looking at the wrong log entry then, Zodd2
<BucWheat> tpope, RadarListener then Doctor.has_many appointment ? ok i'll add that and tinker
<BucWheat> RadarListener i have already declared Client.has_many appointments and Appointment.belongs_to client
<Zodd2> tpope: I was looking in the development log - also in Firebug I can look at the XHR (thanks for helping me with my spaghetti code ;) )?
<RadarListener> iok
<BucWheat> RadarListener are you suggested i add Doctor.has_many clients and Client.belongs_to doctor?
<tpope> BucWheat: possibly Doctor.has_many :clients, :through => :appointments
<RadarListener> Yes.
<tpope> BucWheat: if a doctor's clients are sad to be whomever he's ever had an appointment
<BucWheat> tpope you are correct. doctor can't see client without appointment so it has to go through appointment
<tpope> then it sounds like this fits
<theTrav> what about on call doctors?
<BucWheat> theTrav they go to /dev/null
<theTrav> :P
<kain> does anybody know how to toggle svn:ignore of specific folders?
<MilesZS> svn propset svn:ignore, I believe.
<MilesZS> where's that svn book link...
<kain> I've read it
<kain> imac24:~/Sites/icoretech kain$ svn propset svn:ignore log/locomotive.pid
<kain> svn: Explicit target required ('log/locomotive.pid' interpreted as prop value)
<viewlogic_> svn propset svn:ignore "*.*" log/
<kain> let me try it
<viewlogic_> mic check
<kain> ulp
<MilesZS> 1,2 1,2?
<kain> svn: Your file or directory '.' is probably out-of-date
<kain> svn: The version resource does not correspond to the resource within the transaction. Either the requested version resource is out of date (needs to be updated), or the requested version resource is newer than the transaction root (restart the commit).
<pawitp> svn update
<kain> yeah
<MilesZS> hehe
<Zodd2> tpope: my current suspicion, if that all looks correct-enough, is that I'm calling the request after all the content has already been loaded? As "size" is always reported as nil
<nukio> I'm using acts_as_authenticated, and i've already activated my account my clicking on the activation link in the email that it sends out and the first time i click on it, it works perfectly, but the second time I click on the link, it generates a "Application Error (Rails)" and I can't figure out why.
<pawitp> Then, you should provide more debug info
<tpope> Zodd2: quit having suspicions and check the logs
<tpope> find the request
Previous Page Next Page