#rubyonrails - Sat 31 Mar 2007 between 17:46 and 18:02

NY Lost Funds



p34rhhaamu: hm how would i use it then without a block?
Eric_JardasHello
hhaamulet me first look the method up
eh, yeah, it accepts blocks although I didn't find the method definition.
(plus you couldn't do it without a block anyway)
z5ckI have a many-to-many with "has_many :through". it displays OK, but I want to use check boxes to set the associations. Any links/ideas that would help?
p34rhhaamu: haha ok thanks for the lep
hhaamuokay, I took another look at the snippet. I'm not so sure anymore it's correct
sort of depends whether .courses really returns an array of strings or not
p34rhhaamu: yeah im just going to use .include? for what i need to do
i dont know why im using .any
hhaamu.any? seems to do the exact same thing as .include?
p34rhhaamu: oh...haha
hhaamuprobably just an alias
p34ryeah
hm this is really weird
this ajax page loads wierd in firefox
but not in IE or opera
hhaamuI personally would find your code snippet very slightly more readable if you used 'unless' instead of 'if not'
p34rwhen it reloads the page, a variable like dissapears
it dosen't show the table rows
hhaamu: oh ok, i didn't know of unless
SelecterHey all! Which is the fastest webserver to run RoR apps?
PalishReinH: Hey, are you around?
Selecter: for your case, if you're using apache or lighttpd, that's fine.
use mongrel too.
RubyPanther"fast" is a tricky beast
SelecterPalish, What if I use apache + dispatch.cgi? How slower is it than .fcgi?
Palishugh
cgi has to load the entire ruby interpreter for every request
that's about 3-5 seconds per request.
p34ron this ajax page i want to include a button if they have javascript disabled (so the page still works)
Palishwhy would you -not- use fcgi is the question :)
p34rshould i like make it not show in javascript so if they have it disabled it'lls how?
SelecterThe thing is, my hosting provider has SCGI support.. It's too slow and doesn't support fcgi
RubyPantherthings like mongrel are "faster" but use a lot of memory, so really you need a qualified sysadmin to analyze the server, etc and calculate what will give the best performance
Palishp34r: <noscript>?
Selecter: change hosting providers
p34rPalish: oh..whats that
Palishit runs the thing inside of it if they don't have javascript enabled.

Page: 4 11 18 25 32 39 46 53 60 67 74 81 

IrcArchive

NY Lost Funds