#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 13 
Top Prev 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 Next

#rubyonrails

<locellcount> anyone got a preferred ftp thing to put on servers? It's late ok? You know what I mean
<ReinH> tavilach: learn to like each. It is your new best friend.
<smtlaissezfaire> I remember looking through the first Pragmatic Ruby book and not being able to find for user in users...
<ReinH> one sec
<smtlaissezfaire> Nor did I know if it was different than user.each do |user|
<tavilach> i have the agile rails book
<tavilach> i dont have time to read a whole book on ruby
<tavilach> i just have to get it as i go
<smtlaissezfaire> and what all of this wierd do || syntax was all about
<smtlaissezfaire> I agree. That book is too long.
<smtlaissezfaire> I don't like either of those agile books.
<smtlaissezfaire> But they are really nice for a reference.
<smtlaissezfaire> For instance, I will never remember what $. means. I don't come from Perl...
<ReinH> smtlaissezfaire: that's why there are nice aliases for those globals
<ReinH> smtlaissezfaire: they are, in fact, exactly the same thing :)
<ReinH> the for ... in ... structure is *only* in ruby to help people who come from languages where it is used
<smtlaissezfaire> That's fine if *I'm* writing the code. But today I was watching a screencast in which some one started to use it.
<aliekens> most of the problems i have (as a noob in rails) have good solutions in the agile books, and not in any of the other - too bad my 2nd edition is still on order ...
<eshear> Quick quesiton about caching...I've tried caches_page :my_page and cache_page inside of def my_page, and neither seems to work, but neither throws an error. Is there something dumb I'm missing?
<smtlaissezfaire> Are you trying to cache the whole page, or just the column?
<craigw> eshear: are you running in development mode?
<eshear> the whole page
<eshear> I've tried it in dev mode and production mode
<smtlaissezfaire> aliekens: but there aren't many books out there on rails, or ruby
<smtlaissezfaire> at least, not in english!
<smtlaissezfaire> I don't consider it a conincidence that DHH can speak japenese
<smtlaissezfaire> although I suppose I just rambling, at this point
<eshear> caching is turned off in dev mode, right?
<smtlaissezfaire> ReinH: Could I PM you?
<tavilach> lol if anyone could explain the difference between 'joke' and :joke to me id really appreciate it
<smtlaissezfaire> Is that a :joke?
<jstew> lol
<eshear> tavilach: 'joke' is a string, :joke is a symbol
<tavilach> i just dont understand what a symbol is
<tavilach> i read about it
<tavilach> but i dont get it
<eshear> symbols represent identity
<smtlaissezfaire> can't change symbols. Any symbol named :foo has the same object id
<eshear> strings represent sequences of characters
<smtlaissezfaire> Just try it out in irb
<tavilach> they seem interused a lot
<eshear> yeah, that's a confusing part of rails
<nad1m> instead of using "abc" a million times, you can just use :abc
<nad1m> and it doesn't reallocate each time, it gets the same identity
<eshear> but the rule of thumb is: if the particular sequence of characters matters, it's a string
<eshear> if it's just the name of something, it's a symbol
<eshear> does that make sense?
<nad1m> ya, :x = the thing named x
<smtlaissezfaire> try "string".object_id == "string".object_id in script console
<jstew> the reason they seem interused alot is due to hashwithindifferentaccess

Previous Page  Next Page

Search ircarchive.info