|p34r||hhaamu: hm how would i use it then without a block?|
|hhaamu||let 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)
|z5ck||I 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?|
|p34r||hhaamu: haha ok thanks for the lep|
|hhaamu||okay, 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
|p34r||hhaamu: 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?|
|hhaamu||probably just an alias|
hm this is really weird
this ajax page loads wierd in firefox
but not in IE or opera
|hhaamu||I personally would find your code snippet very slightly more readable if you used 'unless' instead of 'if not'|
|p34r||when it reloads the page, a variable like dissapears|
it dosen't show the table rows
hhaamu: oh ok, i didn't know of unless
|Selecter||Hey all! Which is the fastest webserver to run RoR apps?|
|Palish||ReinH: 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|
|Selecter||Palish, What if I use apache + dispatch.cgi? How slower is it than .fcgi?|
cgi has to load the entire ruby interpreter for every request
that's about 3-5 seconds per request.
|Palish||why would you -not- use fcgi is the question :)|
|Selecter||The thing is, my hosting provider has SCGI support.. It's too slow and doesn't support fcgi|
|RubyPanther||things 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|
Selecter: change hosting providers
|p34r||Palish: oh..whats that|