#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 
Top Prev 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 Next

#rubyonrails

<tpope> * is for arrays
<halorgium> lol, rage!
<tpope> you're causing yourself pain on both ends for no reason
<tpope> like a man who eats rusty nails
<dagbrown> foo(*{:a=>"b"}) sure has interesting results
<iratik> i'm passing *params from the form - its alot less work than saying some_method(:a=>params['a'],:b=>params['b'] ....
<tpope> NO NO NO
<dagbrown> Why uh
<dagbrown> some_method(params) shirley will do the trick
<tpope> params is not a hash
<tpope> err
<tpope> not an array
<iratik> splat works on hashes like named params - except you have to turn it into a hash when it crosses over - whats the matter with such an approach ?
<tpope> why
<halorgium> tpope: run away, while you still have eyes
<tpope> you fucking it up by turning it into an array
<tpope> then you double fuck it up by coercing it into a hash
<wangslanger> (fiu)^2?
<iratik> how is it 'fucked' up - same data .. same keys ... order is irrelevent
<wangslanger> or just 2*(fiu)
<tpope> all you need is def whatever(params)
<tpope> then call whatever(params)
<halorgium> iratik: which languages have you programmed in?
<iratik> yeah... why am i splitting it and putting it back together
<iratik> i'm getting the def method(*args) from alot of the ruby/rails source - i see it everywhere
<tpope> thank you
<tpope> that's for something completely different
<iratik> its for methods of instances of classes -- whats the difference
<tpope> what does that even mean
<iratik> but i get the point - i'm doing unnecessary work - you're right
<halorgium> I AM A CODAR!!!!11
<tpope> yes, two completely different techniques can be used for methods
<tpope> in fact, thousands upon thousands of techniques are available
<halorgium> tpope: constrain thyself, his brain will asplode
<iratik> thanks for the needed tip
<iratik> 'been on this for over 12 hours - so .. i'm not all here
<halorgium> sleep then?
<has_many_questio> guys, i just want to include a blank vlaue in my select dropdown that says 'Select One..'..
<has_many_questio> i'm using the standard 'select' form builder
<tdale> so are breakpoints really broken or is one of my dependencies fubar?
<tpope> there's :include_blank => true
<tpope> tdale: they are broken in ruby 1.8.5
<has_many_questio> hey wassup tpope
<tpope> hello
<has_many_questio> i know..but it just gives me a blank value
<has_many_questio> instead i'd want it to say.. 'select one'
<has_many_questio> i mean they both give a blank value, u know what i mean..
<has_many_questio> it's shit like this that stops me from ever finishing my app, i swear..
<has_many_questio> :(
<chuff> apps are never really finished.

Previous Page  Next Page

Search ircarchive.info