#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
Top Prev 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 Next
#rubyonrails
<tpope> not the request for the original page
<tpope> the ajax request
<nukio> pastie hit me
<tpope> firebug works wonders too
<BucWheat> RadarListener ok. accessing the data from tables based on the relationships still confuses me. how would i create appointments for clients now with this new relationship? i currently do @appointment = @client.appointments.build(params[:appointment])
<nukio> pastie: hit me
<pastie> nukio: are you sure, it might hurt?
<nukio> yes
<nukio> pastie: yes
<BucWheat> yea firebug is awesome
<pastie> http://pastie.caboo.se/41851 by nukio.
<nukio> tpope: can you help me?
<tpope> that is one screwed up error nukio
<nukio> tpope: lol
<nukio> tpope: why do you say that?
<pawitp> Can anyone help me with rails test?
<Zodd2> tpopeL i've been using firebug, like I was saying I can see the XHR and it does in the size param. I guess what you're saying is that my problem then is somewhere else
<tpope> it sounds like rails isn't installed right or something
<tpope> but what is causing it?
<BucWheat> tpope how does the through work? do i need to add doctor_id to appointments table?
<BucWheat> this is trippy
<RadarListener> BucWheat, up to you.
<tpope> BucWheat: yes. you probably want that anyways
<pawitp> I need the get parameter for sending HTTP AUTHENTICATION?
<tpope> appointment is just a really smart join table
<daniel-jean> nukio: add the controller code to the pastie, please
<nukio> daniel-jean: I'll add it right now
<BucWheat> tpope good. i've added fk_lab_id and fk_doctor_id to appointments table
<daniel-jean> nukio: googling that error message brought me to http://threebit.net/mail-archive/rails/msg00948.html
<BucWheat> tpope inside client appointment page a doctor is selected for the appointment how should i update the doctor_id and lab_id entry in the table?
<BucWheat> tpope via hidden field?
<tpope> why fk_?
<BucWheat> tpope using ajax or something.
<pawitp> Anyone? I've added HTTP authentication to my code and functionality test error out due to getting :401
<nukio> daniel-jean: http://pastie.caboo.se/41853
<BucWheat> ignore fk just put that so you'd know it was a foreign key
<kain> rspec will work on rails edge?
<tpope> a hidden field is okay, just so long as you remember a determined user can change a hidden field
<nukio> daniel-jean: thanks for sending that...
<tpope> if that affects your security, choose another rout
<nukio> daniel-jean: so i built the application in an older version of rails... but how to i bring it up to date?
<nukio> daniel-jean: i think that may be the prob
<daniel-jean> nukio: gem update rails
<nukio> daniel-jean: wow i feel stupid ;o
<BucWheat> tpope it doesn't affect security and i have no other ideas on how to do it otherwise. i've tested it and it works fortunately
<daniel-jean> nukio: a lot of time, rails is so simple, it does that :)
<nukio> daniel-jean: but if i update the rails code on the server will it update the rails code in the app or does that not apply?
<tpope> BucWheat: it's too late for me to dig deep enough into find an alternative
<kain> ehe I want to see this one.. renaming all .rhtml to .erb and adjust the svn accordingly
<tpope> so I guess we got lucky
Previous Page Next Page