#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 12
Top Prev 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 Next
#rubyonrails
<tpope> or in your case, you never know what you'll publically admit to on irc
<MilesZS> tpope: haha great analogy. Unwanted imagery, but great analogy.
<omninerd> anyone going to the SF Ruby meetup on Thursday?
<RadarListener> ok...
<sysconfig> Any ideas?
<RadarListener> sysconfig, update_element_function
<sysconfig> Will that work between browser windows?
<RadarListener> It doesnt need to.
<opus_> sysconfig: use a callback
<opus_> sysconfig: with custom javascript code. have it poll the server until the page is updated, then update the DOM
<RadarListener> Trigger the form_remote, which will insert into the database then on the view page of the page the form goes to, run the update_element_function and on the completion of the form_remote_tag, get it to evaluate the information given back by that page.
<RadarListener> That, sounds incredibly confusing.
<RadarListener> Why when I create a model for comments that has belong_to :blog and in the model for blog I have has_many :comments, can't I reference comments for a blog by blog.comments?!
<opus_> wait.. wouldn't the page already be rendered when update_element_function is called, so it couldn't evaluate it again?
<sysconfig> I appreciate it, but, yes... Somewhat confusing.
<RadarListener> (still)
<RadarListener> No opus_, the form submits using Ajax to another action, which then generates a view with the update_element_function in it.
<RadarListener> Then when the page has finished loading... :complete => evaluate_remote_response,
<opus_> is that a special functionaltiy of form_remote?
<RadarListener> I tihnk os.
<RadarListener> think so*
<jesusphreak> does anyone have a recommendation for books on unit testing (particularly TDD)?
<RadarListener> isn't irb supposed to operate in the current ruby environment?
<opus_> jesusphreak: like unit testing in general? Read the source code to JUnit or NUnit. if you know java, you could check out htmlunit
<opus_> hey guys. I have a question about uploading files : where do the get uploaded to? Are there log files generated?
<sysconfig> RadarListener: I appreciate the help, but I am afraid that I still do not get it. I have a form, on that form there is a select. Upon filling out the form, my user sees that the option that he wants is not in the select. He clicks "Quick Add" next to the select and a new browser window pops up containing a form to add the new option. On submit the data from the popup form goes to the database and the popup form closes and
<RadarListener> sysconfig, why a new browser window?
<RadarListener> Why not just an input box or something?
<UstasW> private
<macd> is there a way to verify apache is serving static content rather than mongrel?
<carterparks> macd: absolutely
<technoweenie> macd: turn off mongrel and see if it still works :)
<macd> good call
<macd> heh
<outerim> macd: or use firebug or curl to check the response headers
<sysconfig> The select only needs the name and id fields, but there are a lot of other fields of information to fill out on the popup. It won't fit. I already have it working as a fields_for type form on the same page, but there is not room for all of the fields of the popup model.
<mbelleza> RadarListener: ok..what i mean is..a popup window that has a textbox that returns an id whenever i submit.
<macd> one other question, if I use a dynamic method to link to a file like show?file=12345 and 12345 is my file, I use x-sendfile to stream that file, does mongrel step out of the way and let apache do that?
<RadarListener> mbelleza, why a new window though?
<Zycon> hey if i want to make a public static variable all i should have to do is @@whatever = 'bla' in my model and attr_reader :whatever ?
<mbelleza> RadarListener: coz..i hve another form for the parent..so the other will be put in popup
<RadarListener> ok, no idea then.
<sysconfig> mbelleza: It sounds like we are both at the same faltering point.
<outerim> macd: I thought x-sendfile was a lighttpd thing, not an apache thing. try it (just set the header don't write any content with rails) and see if you get the file
<macd> outerim, x0sendfile works with apache also
<sysconfig> I am writing a contact management system as a test for a larger project but cannot get past this. Django gives this for free, but they can't seem to get the incremental development thing down.
<RadarListener> Say I have topics.posts.last shows the last post, how can I show the last three?
<Zycon> so can anyone tell me about my static variable problem?
<opus_> whats django
<Zycon> opus_: pythons equivilent of ROR
Previous Page Next Page