<mdedetrich>
assuming that either tmp2 or tmp MAY have a method called b, I want the bleh to either contain "" or the result of either tmp2.b or tmp.b (should the methods exist)
ruurd has joined #ruby-lang
workmad3 has joined #ruby-lang
isomorph1smes is now known as isomorphismes
Spaceghost|work is now known as pipework
slash_nick has joined #ruby-lang
<freedrull>
do hmm
<freedrull>
mdedetrich: do A and B both inherit from ActiveRecord::Base, by chance? :)
<mdedetrich>
freedrull: yes, they are both activerecord models
<mdedetrich>
freedrull: this is what I am doing currently, its just really wordy/boilerplatery
<freedrull>
those look like they would be activerecord attributes to me, which would return nil anyway?
<slash_nick>
instution || bank || ""
<mdedetrich>
slash_nick that doesn't work
<freedrull>
why is insitution and bank implemented on some products but not others
<mdedetrich>
slash_nick: thats what I had before, and it cuts off saying "undefined method institution"
<mdedetrich>
freedrull: because that is how the models are designed? Some models have a bank, some have an institution, and some have neither
<slash_nick>
mdedetrich: gotcha... think I came in in the middle of something
bzalasky has quit [Remote host closed the connection]
<freedrull>
if there is only one product model and institution and bank are activerecord attributes, then they should both return nil, not say they are undefined
<mdedetrich>
well thats what they are doing
<slash_nick>
mdedetrich: show us the db/schema.rb bits and classes for what you're messing with?
thepumpk_ has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
<mdedetrich>
slash_nick: can't really do that due to nda
<mdedetrich>
note that the models are defined with self.abstract_class = true
<mdedetrich>
because its a secondary, not main, activerecord database
<mdedetrich>
anyways thanks for the help, its not such a huge issue
bzalasky has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 264 seconds]
mreq has joined #ruby-lang
jonahR has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: Leaving...]
robbyoconnor has joined #ruby-lang
mdedetrich has joined #ruby-lang
mreq has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
<Nilium>
Hm, not sure how to handle strings with the c struct stuff, so I won't.
benlovell has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby-lang
D9 has joined #ruby-lang
<yorickpeterse>
I'M ON A TRAIN
<yorickpeterse>
Headed to destinity: next stop, Ruby station
<yorickpeterse>
TOOT TOOT
jbsan has quit [Quit: jbsan]
io_syl has quit [Quit: io_syl]
solars has joined #ruby-lang
shireesh has quit [Quit: Leaving]
<retro|cz>
yorickpeterse, :)
maxmanders has joined #ruby-lang
dRbiG has quit [Read error: Operation timed out]
shireesh has joined #ruby-lang
ffio has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
mreq has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
dRbiG has joined #ruby-lang
dagobah has joined #ruby-lang
mistym has quit [Remote host closed the connection]
scottschecter has joined #ruby-lang
judofyr has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
joschi has quit [Remote host closed the connection]
joschi has joined #ruby-lang
athetius has quit [Ping timeout: 246 seconds]
athetius has joined #ruby-lang
badeball has quit [Read error: Operation timed out]
vlad_sta_ has joined #ruby-lang
badeball has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
vlad_starkov has quit [Ping timeout: 256 seconds]
joschi has quit [Remote host closed the connection]
joschi has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
ahf has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby-lang
Pupeno has joined #ruby-lang
athetius has quit [Ping timeout: 246 seconds]
athetius has joined #ruby-lang
ahf has joined #ruby-lang
ffio_ has joined #ruby-lang
ffio has quit [Ping timeout: 246 seconds]
MaddinXx_ has joined #ruby-lang
swav_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
swav has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
kirin` has quit [Remote host closed the connection]
northelks has quit [Read error: Connection reset by peer]
kirin` has joined #ruby-lang
<yorickpeterse>
Magazines are so multifunctional
<yorickpeterse>
you can read them as well as using them to raise monitors!
<Nilium>
Well, I have now seen the most horrifying project on github
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<Nilium>
The disturbing part is that intercal is in there..
<yorickpeterse>
Nilium: because some people like to have fun
<yorickpeterse>
there was this HN comment that claimed it was sad. God that pissed me off
<Nilium>
Well this person's idea of fun is putting the fabric of reality at risk
<yorickpeterse>
"WOW THIS GUY IS HAVING FUN. SO SAD"
<judofyr>
mame++
<judofyr>
haters gonna hate
* Nilium
likes to avoid hacker news because it's full of strange people who hate programming.
<yorickpeterse>
Pretty much
<yorickpeterse>
Sadly the content is quite interesting from time to time
<Nilium>
I bet if I posted my c-struct gem on there they'd get mad that I didn't use the existing c-struct gem because IT ALREADY EXISTS
<yorickpeterse>
Nilium: here's what you need to do
<yorickpeterse>
1. Write it in Go
<Nilium>
Then again, they'd also get mad that I wasn't spewing stupidity like "what if we used maybe instead of null"
<yorickpeterse>
4. Make fucktons of money on HN
xxxaM has joined #ruby-lang
<Nilium>
I'd like to use Go if it didn't hog the main thread that I so desperate cannot have it hogging
<Nilium>
Well, thread 0, anyway. The main thread is sort of arbitrary.
<yorickpeterse>
I don't like the PascalCase for methods
<judofyr>
yorickpeterse: does that really matter?
<yorickpeterse>
either use camelCase or snake_case, not the method casing of the heretics
<Nilium>
My cat just bit his own tail. He is the ouroboros
<yorickpeterse>
judofyr: if you're a pedantic asshole like me, yes
xxaM has quit [Disconnected by services]
<judofyr>
yorickpeterse: have you written a lot of Go?
<yorickpeterse>
probably syntax OCD
<Nilium>
I don't really care as long as the style's consistent.
xxxaM has left #ruby-lang [#ruby-lang]
<yorickpeterse>
judofyr: No, because the syntax keeps me from doing it
xxaM has joined #ruby-lang
<Nilium>
Also as long as opening braces don't have to go on a newline.
<yorickpeterse>
No doubt it's ac ool language, I just don't like the syntax
<yorickpeterse>
and the way of passing errors as return values strikes me as odd
<Nilium>
People who put opening braces on newlines are heatens
<Nilium>
heathens, even
<yorickpeterse>
Nilium: :<
<Nilium>
You know what sins you have committed
<judofyr>
yorickpeterse: you haven't actually tried to write anything in it, you just don't like it from a distance?
<judofyr>
:)
<Nilium>
I tried to write something in it, but it ate thread 0 :|
<Nilium>
And that was the end of that.
<yorickpeterse>
judofyr: yeah
<yorickpeterse>
judofyr: hey welcome to generalization 101
<judofyr>
I understand your position, but that's a seriously weak excuse :P
tbuehlmann has joined #ruby-lang
<yorickpeterse>
Actually, think about it. Given you'll use it often the syntax does matter a lot
<judofyr>
Go is fine enough. I love the stdlib.
<yorickpeterse>
hence I'm not a fan of ML like languages either
<yorickpeterse>
Though I have to say Go is sane for the most part
<yorickpeterse>
(syntax wise)
<Nilium>
I'm not a huge fan of Haskell, so HN already hates me by default.
northelks has joined #ruby-lang
<judofyr>
yorickpeterse: well, if you haven't *tried it* you don't know if the syntax is crappy or just unknown
<Nilium>
Also don't like Clojure.
<Nilium>
Scheme's the bomb, though.
<Nilium>
Well, gambit scheme.
<yorickpeterse>
judofyr: that's bs
<Nilium>
There are plenty of crappy things about Go's syntax, though I don't take issue with the casing.
<yorickpeterse>
judofyr: syntax plays a big role, if it strikes me as odd it means I'm less inclined to use it
<yorickpeterse>
However, I do share interest in Go so I most likely will try it soon
<judofyr>
yorickpeterse: well, you can assert that certain things are crappy (e.g. PHP), but you don't know if the crappiness is going to annoy you when you actually write code.
<yorickpeterse>
I just really want a viable alternative to C that's not C++
<judofyr>
I'm hoping for Rust
<judofyr>
I see Go more as a cleaner Java
<yorickpeterse>
I can't get over the pointer syntax of Rust
<Nilium>
For example, no parentheses around if or for. Also the fact that `for` is this weird, ambiguous control structure makes it unlikable.
<yorickpeterse>
&, @ and 2 others I believe for different pointer types or w/e it was
<judofyr>
memory matters
<Nilium>
That said, it has a very sane switch/case
<judofyr>
yorickpeterse: ~ for unique, @ for GC allocated
<Nilium>
I should sleep before I get the 2am hunger.
<judofyr>
& for borrowed (which is used when you e.g. need a function that can take both types of pointers without restricting it to either of the two types)
<judofyr>
yorickpeterse: they're also moving away from using @ in stdlib
<judofyr>
because it requires GC
badeball has quit [Read error: Operation timed out]
<judofyr>
I've only used ~ really
mbj has joined #ruby-lang
<judofyr>
well, for the small programs I've written
<ddfreyne>
Nilium: What is it that you don't like about Clojure?
<ddfreyne>
I've been doing a whole bunch of Clojure lately, which is why I'm asking
<ddfreyne>
I hope I get to play with Rust soon :)
<Nilium>
Extremely long startup time, not really great for performance, and it just comes across as being too big for a lisp
<Nilium>
It's mostly down to my preference for Schemes, too.
<ddfreyne>
It is a tad slow, but not problematically so in my experience
<ddfreyne>
As for the startup time, well... that's the JVM for you :)
<Nilium>
Indeed.
<Nilium>
That said, performance was notable worse than gambit scheme for me, so I went back to that for lisp stuff.
<Nilium>
*notably
hahuang65 has quit [Ping timeout: 252 seconds]
<Nilium>
You do lose the JVM and ergo all of Java in the process, but that's not really a problem for me since I don't use it
<ddfreyne>
Yeah, JVM interop is important for us (lots of libraries out there that we need)
<Nilium>
I do game dev stuff, so it's not really an option for me.
<ddfreyne>
Ah yeah, makes sense
<Nilium>
The JVM not being the issue, though -- it's good at what it does.
<Nilium>
Just nowhere near the amount of libraries for use
<injekt>
wat
<ddfreyne>
Nilium: Hmm, what makes Clojure bad for games specifically? I imagine that the main point would be GC causing unpredictable lagging, but is there something else?
<Nilium>
I don't think GC is an issue there if you just don't allocate anything.
<Nilium>
And I don't know that Clojure is bad for games, I just don't like the language from the time I spent with it.
<Nilium>
I have no objective thoughts on it for that purpose
<Nilium>
Or really any objective thoughts on it, probably.
maxmanders has quit [Ping timeout: 246 seconds]
gja has quit [Quit: This computer has gone to sleep]
maxmanders has joined #ruby-lang
badeball has joined #ruby-lang
gja has joined #ruby-lang
rshetty has quit [Quit: Sleeping]
rshetty has joined #ruby-lang
mreq has quit [Ping timeout: 240 seconds]
retro|cz has quit [Ping timeout: 240 seconds]
mreq has joined #ruby-lang
mdedetrich has quit [Ping timeout: 240 seconds]
retro|cz has joined #ruby-lang
mdedetrich has joined #ruby-lang
Randolph has quit [Quit: Leaving...]
apeiros has joined #ruby-lang
maxmanders has quit [Ping timeout: 240 seconds]
<Nilium>
Huh, apparently C extensions don't work in jruby. Well, that's a shame.
<apeiros>
I'd like it on ivar level, not on accessor level
maxmanders has quit [Ping timeout: 240 seconds]
<ledestin>
if Ruby uses green threads, why ulimit matters? i.e. ulimit limits number of threads I can have.
<ledestin>
meaning number of user processes
<apeiros>
ledestin: ruby uses OS threads
<apeiros>
it just has a GIL
<apeiros>
also native extensions
maxmanders has joined #ruby-lang
<judofyr>
ledestin: 1.8 used green threads. 1.9 uses native threads.
<judofyr>
well, and 2.0
<ledestin>
judofyr: cool, thanks
<ledestin>
apeiros: ty
<judofyr>
ledestin: and as apieros mentioned: there's a GIL which ensures that only one Ruby thread is running at the same time
setmeaway2 has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
kevinfagan has quit [Ping timeout: 260 seconds]
Domon has quit [Remote host closed the connection]
kevinfagan has joined #ruby-lang
maxmanders has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
jcarlos has joined #ruby-lang
benlovell has quit [Read error: Operation timed out]
rickhull has quit [Quit: Leaving.]
_whitelogger__ has joined #ruby-lang
whitequark has quit [Ping timeout: 256 seconds]
whitequark has joined #ruby-lang
franckverrot has quit [Quit: Connection closed for inactivity]
<jcarlos>
I'm newbie to ruby, and trying to install a ruby gem. I'm not sure if this is the right channel to ask. I try to install a ruby gem (I'm using debian) with "gem install fast_trie --user-install", but I get the following error: http://paste.debian.net/16333/ Am I missing anything?
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
roadt__ has quit [Ping timeout: 264 seconds]
gja has quit [Quit: This computer has gone to sleep]
<yorickpeterse>
haha, that's not how you fix errors
<injekt>
that wont fix it
<injekt>
that isn't the issue
<jcarlos>
injekt: But if the gem was working before, what has changed since then?
<yorickpeterse>
different compiler version, different config, etc
<injekt>
jcarlos: your computer
<yorickpeterse>
could be any number of things
<jcarlos>
injekt: Hehe
<jcarlos>
It seems an error caused by a security warning being enabled
flip_digits has joined #ruby-lang
<jcarlos>
yorickpeterse: injekt: If I'd know how to disable that security warning in the gem I could at least build it. I'm not interested in security issues.
mbj has joined #ruby-lang
amerine has quit [Ping timeout: 246 seconds]
<jcarlos>
How could I change the contents in the generated Makefile? I change the file but it is a generated file, so it is overwriten.
<injekt>
jcarlos: extconf.rb builds the makefile
atmosx_desktop has quit [Quit: Computer has gone to sleep.]
amerine has joined #ruby-lang
<jcarlos>
injekt: I can see the flag -Werror=format-security in the CXXFLAGS variable in the Makefile file. But I don't know how to tell "gem" not to generate that flag. Could you give some pointer?
benlovell has joined #ruby-lang
realDAB has quit [Quit: realDAB]
ldnunes has joined #ruby-lang
<yorickpeterse>
eh, I believe you can pass CFLAGS to `gem install`
<yorickpeterse>
but I'm not sure what the syntas was for it
<yorickpeterse>
* syntax
<injekt>
--with-cflags
realDAB has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<yorickpeterse>
man this pomodoro thing so far works pretty great
<yorickpeterse>
gives me a reason to move and stretch my ass more oftne
<Aoa_>
Hi there. I'm having problem with Hashes in Ruby. I'm quite new to this language, so here is the pastie corresponding to my problem (excepted result, and what I do get now) : http://pastie.org/8145585
<Aoa_>
Thanks ! :)
duphus has quit [Quit: Leaving.]
Nisstyre has quit [Quit: Leaving]
enebo has joined #ruby-lang
<realDAB>
Aoa_: the "each" grabs a key/hash pair in an array
tbuehlmann has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<jcarlos>
yorickpeterse: injekt: Thanks. "gem install fast_trie --user-install -- --with-cflags=" did the trick. The gem is now installed properly. No compilation error.
<yorickpeterse>
:)
postmodern has quit [Quit: Leaving]
<jcarlos>
yorickpeterse: I suppose that using an empty --with-cflags option removes all the configured cflags options in the generated Makefile
<yorickpeterse>
Yeah I believe it does
vlad_starkov has joined #ruby-lang
cHarNe2 has joined #ruby-lang
Aoa_ has quit [Quit: Page closed]
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
rickruby has quit [Remote host closed the connection]
jperry has quit [Remote host closed the connection]
breakingthings has joined #ruby-lang
carloslopes has joined #ruby-lang
yorickpeterse has quit [Quit: Who cares about these quit messages?]
xning has joined #ruby-lang
yorickpeterse has joined #ruby-lang
fosky has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
jbsan has joined #ruby-lang
anonymuse has joined #ruby-lang
jperry has joined #ruby-lang
realDAB has quit [Quit: realDAB]
jperry has quit [Client Quit]
jperry has joined #ruby-lang
rickruby has joined #ruby-lang
jperry has quit [Client Quit]
tomzx_mac has joined #ruby-lang
imperator2 has joined #ruby-lang
<yorickpeterse>
Ok I seriously need to wrote a camper_van alternative
<yorickpeterse>
I can't have a Campfire bridge taking down an entire server once in a while
<yorickpeterse>
(it takes it down before monit can get its hands on it
<imperator2>
u = URI.parse("ruby-lang.org"); u.find_proxy => undefined method `downcase' for nil:NilClass
<erikh>
yeah, so there's a parsing hook that they all provide that URI.parse uses
<erikh>
added since 1.9
<erikh>
I had to deal with this a few years back but I don't remember it now -- either way, you can override that parser probably trivially to work around this
<erikh>
it's like URI.parsers[:http] or something
jxie has quit [Quit: leaving]
jsullivandigs has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
digs has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
tkuchiki has joined #ruby-lang
jsullivandigs has joined #ruby-lang
<Sammidysam>
I have this question http://stackoverflow.com/questions/17561195/replace-string-in-yield over on StackOverflow of what I need help with. Can anyone help me with something? What I am trying to do is make the calls of a method inside the block of the call of that same method call a different method. The question has a ton more information on what i mean.
realDAB has joined #ruby-lang
mistym has joined #ruby-lang
pskosinski has joined #ruby-lang
gregmoreno has joined #ruby-lang
dwknoxy has quit [Quit: Computer has gone to sleep.]
<yorickpeterse>
injekt: so far the re-tractoring is going quite well
<yorickpeterse>
oh welp, I broke it
<yorickpeterse>
Ah, forgot a #to_f
<injekt>
Sammidysam: use capture()
<injekt>
ah you're not using rails
<Sammidysam>
injekt: I am
<injekt>
but you haven't tagged your question with it? shame on you!
<yorickpeterse>
capture() was also suggested somwhere last night
<Sammidysam>
injekt: Yesterday I did some work with then but when I replaced a string in it all of the less than and quotes with "<" """ etc. and I wasn't sure what to do.
<Sammidysam>
I think I mentioned that.
gregmoreno has quit [Ping timeout: 240 seconds]
<Sammidysam>
My "genius idea" was to capture the output then manipulate it.
maxmanders has quit [Ping timeout: 240 seconds]
<injekt>
mother of god the indentation in that project just killed my face
<Sammidysam>
Yeah I know :/
<Sammidysam>
I think I'll open an issue for that.
pskosinski has quit [Quit: Til rivido Idisti!]
jxie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<yorickpeterse>
injekt: your face is easy to kill
<injekt>
nours
<yorickpeterse>
want me to get something out of the "wtf Olery" bucket?
<Sammidysam>
Oh I just figured out the indentation. It's just a tab after a module then two spaces for a method in the module, which is confusing...
maxmanders has joined #ruby-lang
<injekt>
oO
shinnya has joined #ruby-lang
<Sammidysam>
So yesterday with capture(&block) I called gsub and then all of the <, >, ", etc. got changed into <, >, ", etc (I hope I remembered that right).
<yorickpeterse>
damn it, there's cotton-something-stuff all over the places
<yorickpeterse>
Fucking trees + open windows
maxmanders has quit [Ping timeout: 256 seconds]
<darix>
yorickpeterse: you need your own forum for your rants. imho
vigrant has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
<injekt>
yorickrants.com
bzalasky has joined #ruby-lang
flip_digits has joined #ruby-lang
<yorickpeterse>
I already have one
<yorickpeterse>
#ruby-lang on Freenode
<Sammidysam>
lol
<yorickpeterse>
I'll tell you guys a secret, I also rant in work chat channels
<yorickpeterse>
e.g.
<yorickpeterse>
"yorick_peterse | sometimes I wonder how much cocaine was used back in 2011"
<apeiros>
ranting = zen
* yorickpeterse
back to work
<darix>
yorickpeterse: well then you can stop here and just use your work channels. ;)
<yorickpeterse>
NO
vigrant has quit [Client Quit]
<yorickpeterse>
There's no fun in that
vlad_starkov has joined #ruby-lang
Gaelan is now known as GaelanAintAround
realDAB has quit [Quit: realDAB]
realDAB has joined #ruby-lang
mistym has joined #ruby-lang
GeissT has quit [Quit: MillBroChat AdIRC User]
Squarepy has joined #ruby-lang
benwoody has quit [Quit: Leaving.]
<yorickpeterse>
DAMN YOU POMODORO
<yorickpeterse>
STOP MAKING ME PRODUCTIVE
benwoody has joined #ruby-lang
<injekt>
what the fuck, rails new permit crap doesn't support arrays
rwk1 has quit [Remote host closed the connection]
<Sammidysam>
injekt: Rails doesn't have arrays anymore?
<injekt>
Sammidysam: no just the new parameter permitting stuff
<injekt>
ie params.require(:post).permit(:comment_ids) wont work
dhruvasagar has quit [Ping timeout: 276 seconds]
<injekt>
you have to write params.require(:post).permit(comment_ids: [])
<apeiros>
injekt: hu? afaik it does
<injekt>
apeiros: no sir
<apeiros>
well, yes
<apeiros>
that
<injekt>
that's silly
<apeiros>
no
<injekt>
yes
<apeiros>
otherwise you're back at the original problem
<injekt>
I dont see how, if you're going to make it that way for negligent programmers why not go the whole hog
io_syl has quit [Quit: io_syl]
<apeiros>
because an array is not the same as a scalar
vlad_starkov has quit [Remote host closed the connection]
<apeiros>
and if you do .find(params.permit(:id)) you want a scalar
<apeiros>
but you could (and I would) argue that data validation is a separate concern and should be handled by its own framework.
<injekt>
heh
<apeiros>
(i.e. instead of piggy-backing different validations on models and controllers and soon other places because they realize that those aren't the only data sources)
Muz_ is now known as Muz
<injekt>
yeah, I hate writing this crap
<apeiros>
s/sources/sources & processors/
io_syl has joined #ruby-lang
<apeiros>
injekt: well, you can simply ignore the whole strong-parameters stuff if you don't like it
<injekt>
true
<apeiros>
what you want you can get with Hash#slice
<injekt>
I'm not that bothered about it, but passing an empty array there just feels weird
<apeiros>
params[:post].slice(:comment_ids, :foo)
<injekt>
right
<apeiros>
hm, though, that wouldn't work straight away
thepumpkin has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 248 seconds]
Sammidysam has quit [Quit: Leaving]
realDAB has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
franckverrot has joined #ruby-lang
cofin has quit [Quit: cofin]
relix has quit [Ping timeout: 240 seconds]
realDAB has quit [Quit: realDAB]
anonymuse has quit [Remote host closed the connection]
cofin has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
anonymuse has quit [Read error: Connection reset by peer]
io_syl has quit [Quit: io_syl]
anonymuse has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
andrew has joined #ruby-lang
andrew is now known as Guest16220
arooni-mobile has joined #ruby-lang
havenwood has joined #ruby-lang
relix has joined #ruby-lang
mistym has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
realDAB has joined #ruby-lang
glebm has quit [Ping timeout: 264 seconds]
ffio_ has joined #ruby-lang
ffio has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
mdedetrich has quit [Quit: Computer has gone to sleep.]
ledestin has quit [Quit: ledestin]
glebm has joined #ruby-lang
gregmoreno has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
skade has joined #ruby-lang
iliketurtles has joined #ruby-lang
vlad_starkov has joined #ruby-lang
skade has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
vlad_sta_ has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
dhruvasagar has quit [Ping timeout: 240 seconds]
rwk1 has quit [Ping timeout: 276 seconds]
mistym has quit [Remote host closed the connection]
henrikhodne has joined #ruby-lang
__butch__ has joined #ruby-lang
mistym has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 257 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
mbj has quit [Ping timeout: 264 seconds]
symm- has joined #ruby-lang
kgrz has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
xning has quit [Quit: Leaving]
GarethAdams has quit [Ping timeout: 245 seconds]
Kabaka has joined #ruby-lang
mreq has quit [Ping timeout: 246 seconds]
enebo has quit [Quit: enebo]
headius_ has joined #ruby-lang
headius has quit [Ping timeout: 240 seconds]
headius_ is now known as headius
GarethAdams has joined #ruby-lang
mbj has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bgant has joined #ruby-lang
LanceHaig has joined #ruby-lang
Squarepy has quit [Read error: Connection reset by peer]
arooni-mobile has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
enebo has joined #ruby-lang
Kabaka has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
jayne has quit [*.net *.split]
netShadow has quit [*.net *.split]
kke has quit [*.net *.split]
adwhit has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
sluukkonen has quit [*.net *.split]
UziMonkey___ has quit [*.net *.split]
imajes has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
Boohbah has quit [*.net *.split]
arooni-mobile__ has quit [*.net *.split]
bgant has quit [*.net *.split]
scampbell has quit [*.net *.split]
joshuawscott has quit [*.net *.split]
Paradox has quit [*.net *.split]
priodev has quit [*.net *.split]
Guest65665 has quit [*.net *.split]
joschi has quit [*.net *.split]
hhatch has quit [*.net *.split]
linc01n has quit [*.net *.split]
ohsix has quit [*.net *.split]
joast has quit [*.net *.split]
symm- has quit [*.net *.split]
glebm has quit [*.net *.split]
benwoody has quit [*.net *.split]
anonymuse has quit [*.net *.split]
nathanstitt has quit [*.net *.split]
wmoxam has quit [*.net *.split]
jvrmaia has quit [*.net *.split]
imperator2 has quit [*.net *.split]
benlovell has quit [*.net *.split]
scottschecter has quit [*.net *.split]
phracker has quit [*.net *.split]
ruskie has quit [*.net *.split]
canton7 has quit [*.net *.split]
levicole has quit [*.net *.split]
Cremno has quit [*.net *.split]
jcarlos has quit [*.net *.split]
setmeaway2 has quit [*.net *.split]
northelks has quit [*.net *.split]
ahf has quit [*.net *.split]
rsl has quit [*.net *.split]
x0f has quit [*.net *.split]
PantsMeh has quit [*.net *.split]
jaimef has quit [*.net *.split]
andrewvos has quit [*.net *.split]
zzak has quit [*.net *.split]
wang has quit [*.net *.split]
bougyman has quit [*.net *.split]
bri has quit [*.net *.split]
eban has quit [*.net *.split]
danrabinowitz has quit [*.net *.split]
fumduq has quit [*.net *.split]
chris2 has quit [*.net *.split]
Silex has quit [*.net *.split]
blowmage has quit [*.net *.split]
musl has quit [*.net *.split]
brownies has quit [*.net *.split]
matled has quit [*.net *.split]
babinho_ has quit [*.net *.split]
dumfries has quit [*.net *.split]
tallship has quit [*.net *.split]
hagabaka has quit [*.net *.split]
akahn has quit [*.net *.split]
wycats_ has quit [*.net *.split]
lguardiola has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
yellow5 has quit [*.net *.split]
chendo has quit [*.net *.split]
closer has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
TTilus has quit [*.net *.split]
ammar has quit [*.net *.split]
soraher has quit [*.net *.split]
pabs has quit [*.net *.split]
skinny_much_ has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
cored has quit [*.net *.split]
ldnunes has quit [*.net *.split]
MaddinXx_ has quit [*.net *.split]
Pupeno has quit [*.net *.split]
swav_ has quit [*.net *.split]
FastJack has quit [*.net *.split]
fallenhitokiri has quit [*.net *.split]
felipe has quit [*.net *.split]
doki_pen_ has quit [*.net *.split]
_dumfries has quit [*.net *.split]
t_ has quit [*.net *.split]
ddd__ has quit [*.net *.split]
Guu has quit [*.net *.split]
ndrst has quit [*.net *.split]
KillerFox has quit [*.net *.split]
arooni-mobile has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
a3li has quit [*.net *.split]
mame3 has quit [*.net *.split]
realDAB has quit [*.net *.split]
tenderlove has quit [*.net *.split]
cordax has quit [*.net *.split]
flip_digits has quit [*.net *.split]
rails_smith has quit [*.net *.split]
hackeron has quit [*.net *.split]
mjc_ has quit [*.net *.split]
matthewd has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
anekos has quit [*.net *.split]
PacketMonkey_ has quit [*.net *.split]
segy has quit [*.net *.split]
sonne has quit [*.net *.split]
enebo has quit [*.net *.split]
mbj has quit [*.net *.split]
headius has quit [*.net *.split]
franckverrot has quit [*.net *.split]
Guest16220 has quit [*.net *.split]
shinnya has quit [*.net *.split]
thepumpkin has quit [*.net *.split]
roadt__ has quit [*.net *.split]
Zeeo has quit [*.net *.split]
toretore has quit [*.net *.split]
spuk has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
naquad has quit [*.net *.split]
dvorak has quit [*.net *.split]
erikh has quit [*.net *.split]
manveru has quit [*.net *.split]
lk has quit [*.net *.split]
Avatar[01] has quit [*.net *.split]
kalleth has quit [*.net *.split]
melter has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
justinmcp has quit [*.net *.split]
gregmoreno has quit [*.net *.split]
henrikhodne has quit [*.net *.split]
benanne has quit [*.net *.split]
__butch__ has quit [*.net *.split]
Voker57 has quit [*.net *.split]
tonni has quit [*.net *.split]
Y_Ichiro_ has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
xsdg has quit [*.net *.split]
brixen has quit [*.net *.split]
FlyingLeap has quit [*.net *.split]
braidn has quit [*.net *.split]
nick_h has quit [*.net *.split]
rheddry has quit [*.net *.split]
gnufied has quit [*.net *.split]
darix has quit [*.net *.split]
Joni_79 has quit [*.net *.split]
kgrz has quit [*.net *.split]
mihar has quit [*.net *.split]
DEac- has quit [*.net *.split]
bnagy has quit [*.net *.split]
ericwood has quit [*.net *.split]
oddmunds has quit [*.net *.split]
djinni` has quit [*.net *.split]
sn0wb1rdz has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
freedrull has quit [*.net *.split]
wudofyr___ has quit [*.net *.split]
rikai has quit [*.net *.split]
dLog_ has quit [*.net *.split]
tylergillies has quit [*.net *.split]
lucas has quit [*.net *.split]
meise_ has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
heftig has quit [*.net *.split]
eam has quit [*.net *.split]
corundum has quit [*.net *.split]
Nilium has quit [*.net *.split]
amateurhuman_ has quit [*.net *.split]
drakkhen_ has quit [*.net *.split]
lupine has quit [*.net *.split]
mistym has quit [*.net *.split]
ffio_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
cofin has quit [*.net *.split]
kristofferrr has quit [*.net *.split]
jxie has quit [*.net *.split]
jsullivandigs has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
t0h has quit [*.net *.split]
erichmenge has quit [*.net *.split]
drbrain has quit [*.net *.split]
snk has quit [*.net *.split]
igalic has quit [*.net *.split]
GaelanAintAround has quit [*.net *.split]
gix- has quit [*.net *.split]
ryanf has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
knu has quit [*.net *.split]
pbjorklund has quit [*.net *.split]
supyo has quit [*.net *.split]
egypt has quit [*.net *.split]
EvilJStoker_ has quit [*.net *.split]
kvs has quit [*.net *.split]
Caius has quit [*.net *.split]
go|dfish has quit [*.net *.split]
joevandyk has quit [*.net *.split]
ozzloy has quit [*.net *.split]
zavier has quit [*.net *.split]
pipework has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
spectra- has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
mbr has quit [*.net *.split]
rtl has quit [*.net *.split]
flori has quit [*.net *.split]
conceal_rs_____0 has quit [*.net *.split]
dbussink has quit [*.net *.split]
Muz has quit [*.net *.split]
ged has quit [*.net *.split]
jacknagel has quit [*.net *.split]
crankharder has quit [*.net *.split]
eval-in has quit [*.net *.split]
hashkey has quit [*.net *.split]
whitequark has quit [*.net *.split]
athetius has quit [*.net *.split]
marr has quit [*.net *.split]
breakingthings has quit [*.net *.split]
amerine has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
Asher has quit [*.net *.split]
kith has quit [*.net *.split]
dRbiG has quit [*.net *.split]
Phoop has quit [*.net *.split]
D9 has quit [*.net *.split]
agile has quit [*.net *.split]
znz_jp has quit [*.net *.split]
weeb1e has quit [*.net *.split]
dabradley has quit [*.net *.split]
mahlon_ has quit [*.net *.split]
Karql has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
achiu has quit [*.net *.split]
Bwild has quit [*.net *.split]
singpolyma has quit [*.net *.split]
_ko1 has quit [*.net *.split]
FiXato has quit [*.net *.split]
ryez has quit [*.net *.split]
matti has quit [*.net *.split]
vivekrai has quit [*.net *.split]
jwollert has quit [*.net *.split]
khaase_ has quit [*.net *.split]
eleanor has quit [*.net *.split]
jsaak has quit [*.net *.split]
lele` has quit [*.net *.split]
Olipro has quit [*.net *.split]
nrk has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
apeiros has quit [*.net *.split]
badeball has quit [*.net *.split]
kirin` has quit [*.net *.split]
vbatts has quit [*.net *.split]
shtirlic has quit [*.net *.split]
sindork has quit [*.net *.split]
imperator has quit [*.net *.split]
hachiya has quit [*.net *.split]
hakunin has quit [*.net *.split]
EvilAww has quit [*.net *.split]
slightair_ has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
fbernier has quit [*.net *.split]
bcardarella has quit [*.net *.split]
tdy has quit [*.net *.split]
LanceHaig has quit [*.net *.split]
rondale_sc has quit [*.net *.split]
mclee has quit [*.net *.split]
jstemmer has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
shinh has quit [*.net *.split]
DefV has quit [*.net *.split]
neurodamage has quit [*.net *.split]
kuja has quit [*.net *.split]
Mellett68 has quit [*.net *.split]
Kero has quit [*.net *.split]
nikky has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
smull_ has quit [*.net *.split]
bryanl has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
lianj has quit [*.net *.split]
Rubennn has quit [*.net *.split]
perry has quit [*.net *.split]
dominikh has quit [*.net *.split]
rue has quit [*.net *.split]
faces has quit [*.net *.split]
jinie has quit [*.net *.split]
zenspider has quit [*.net *.split]
jarib has quit [*.net *.split]
jwollert- has quit [*.net *.split]
rebelcan has quit [*.net *.split]
wnd has quit [*.net *.split]
yibe has quit [*.net *.split]
maloik has quit [*.net *.split]
cout has quit [*.net *.split]
Guest30040 has quit [*.net *.split]
kennyvb has quit [*.net *.split]
imperator3 has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
mbj has joined #ruby-lang
LanceHaig has joined #ruby-lang
arooni-mobile has joined #ruby-lang
enebo has joined #ruby-lang
symm- has joined #ruby-lang
__butch__ has joined #ruby-lang
headius has joined #ruby-lang
Kabaka has joined #ruby-lang
kgrz has joined #ruby-lang
MartynKeigher2 has joined #ruby-lang
bgant has joined #ruby-lang
mistym has joined #ruby-lang
tenderlove has joined #ruby-lang
GarethAdams has joined #ruby-lang
gregmoreno has joined #ruby-lang
henrikhodne has joined #ruby-lang
havenwood has joined #ruby-lang
benanne has joined #ruby-lang
franckverrot has joined #ruby-lang
anonymuse has joined #ruby-lang
ffio_ has joined #ruby-lang
thepumpkin has joined #ruby-lang
glebm has joined #ruby-lang
cordax has joined #ruby-lang
Guest16220 has joined #ruby-lang
kristofferrr has joined #ruby-lang
cofin has joined #ruby-lang
wmoxam has joined #ruby-lang
flip_digits has joined #ruby-lang
jxie has joined #ruby-lang
nathanstitt has joined #ruby-lang
breakingthings has joined #ruby-lang
setmeaway2 has joined #ruby-lang
yorickpeterse has joined #ruby-lang
shinnya has joined #ruby-lang
Guest65665 has joined #ruby-lang
kirin` has joined #ruby-lang
realDAB has joined #ruby-lang
mjc_ has joined #ruby-lang
benwoody has joined #ruby-lang
swav_ has joined #ruby-lang
kith has joined #ruby-lang
linc01n has joined #ruby-lang
jcarlos has joined #ruby-lang
northelks has joined #ruby-lang
marr has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
scampbell has joined #ruby-lang
imperator2 has joined #ruby-lang
jvrmaia has joined #ruby-lang
cHarNe2 has joined #ruby-lang
benlovell has joined #ruby-lang
Asher has joined #ruby-lang
scottschecter has joined #ruby-lang
vbatts has joined #ruby-lang
hashkey has joined #ruby-lang
Zeeo has joined #ruby-lang
ahf has joined #ruby-lang
hhatch has joined #ruby-lang
phracker has joined #ruby-lang
rsl has joined #ruby-lang
ldnunes has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Pupeno has joined #ruby-lang
Paradox has joined #ruby-lang
zavier has joined #ruby-lang
joschi has joined #ruby-lang
whitequark has joined #ruby-lang
Rubennn has joined #ruby-lang
joshuawscott has joined #ruby-lang
dRbiG has joined #ruby-lang
athetius has joined #ruby-lang
cored has joined #ruby-lang
apeiros has joined #ruby-lang
badeball has joined #ruby-lang
jsullivandigs has joined #ruby-lang
pipework has joined #ruby-lang
roadt__ has joined #ruby-lang
amerine has joined #ruby-lang
priodev has joined #ruby-lang
imperator has joined #ruby-lang
perry has joined #ruby-lang
shtirlic has joined #ruby-lang
sindork has joined #ruby-lang
zzak has joined #ruby-lang
go|dfish has joined #ruby-lang
joevandyk has joined #ruby-lang
freedrull has joined #ruby-lang
x0f has joined #ruby-lang
heftig has joined #ruby-lang
vivekrai has joined #ruby-lang
PantsMeh has joined #ruby-lang
matti has joined #ruby-lang
jaimef has joined #ruby-lang
rails_smith has joined #ruby-lang
ozzloy has joined #ruby-lang
andrewvos has joined #ruby-lang
Voker57 has joined #ruby-lang
Phoop has joined #ruby-lang
kke has joined #ruby-lang
ryez has joined #ruby-lang
joast has joined #ruby-lang
toretore has joined #ruby-lang
mihar has joined #ruby-lang
EvilAww has joined #ruby-lang
adwhit has joined #ruby-lang
bnagy has joined #ruby-lang
jwollert has joined #ruby-lang
eleanor has joined #ruby-lang
hackeron has joined #ruby-lang
dominikh has joined #ruby-lang
tonni has joined #ruby-lang
khaase_ has joined #ruby-lang
Xzyx987X has joined #ruby-lang
DEac- has joined #ruby-lang
hachiya has joined #ruby-lang
faces has joined #ruby-lang
ruskie has joined #ruby-lang
hakunin has joined #ruby-lang
znz_jp has joined #ruby-lang
wang has joined #ruby-lang
zenspider has joined #ruby-lang
Cremno has joined #ruby-lang
jarib has joined #ruby-lang
dvorak has joined #ruby-lang
ohsix has joined #ruby-lang
spuk has joined #ruby-lang
tommylommykins has joined #ruby-lang
spike|spiegel has joined #ruby-lang
eam has joined #ruby-lang
levicole has joined #ruby-lang
mbr has joined #ruby-lang
naquad has joined #ruby-lang
igalic has joined #ruby-lang
PaulePanter has joined #ruby-lang
anekos has joined #ruby-lang
Y_Ichiro_ has joined #ruby-lang
manveru has joined #ruby-lang
PacketMonkey_ has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
lk has joined #ruby-lang
weeb1e has joined #ruby-lang
xsdg has joined #ruby-lang
brixen has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
gix- has joined #ruby-lang
Avatar[01] has joined #ruby-lang
nick_h has joined #ruby-lang
netShadow has joined #ruby-lang
amateurhuman_ has joined #ruby-lang
eban has joined #ruby-lang
sn0wb1rdz has joined #ruby-lang
UziMonkey___ has joined #ruby-lang
lele` has joined #ruby-lang
yxhuvud has joined #ruby-lang
flori has joined #ruby-lang
canton7 has joined #ruby-lang
sluukkonen has joined #ruby-lang
matthewd has joined #ruby-lang
oddmunds has joined #ruby-lang
meise_ has joined #ruby-lang
Joni_79 has joined #ruby-lang
snk has joined #ruby-lang
ddfreyne has joined #ruby-lang
Kero has joined #ruby-lang
segy has joined #ruby-lang
jsaak has joined #ruby-lang
Nilium has joined #ruby-lang
spectra- has joined #ruby-lang
jinie has joined #ruby-lang
FastJack has joined #ruby-lang
egypt has joined #ruby-lang
mahlon_ has joined #ruby-lang
drbrain has joined #ruby-lang
rheddry has joined #ruby-lang
t0h has joined #ruby-lang
melter has joined #ruby-lang
kalleth has joined #ruby-lang
danrabinowitz has joined #ruby-lang
bougyman has joined #ruby-lang
pbjorklund has joined #ruby-lang
erikh has joined #ruby-lang
wudofyr___ has joined #ruby-lang
ryanf has joined #ruby-lang
ericwood has joined #ruby-lang
agile has joined #ruby-lang
supyo has joined #ruby-lang
erichmenge has joined #ruby-lang
slightair_ has joined #ruby-lang
wasnotrice has joined #ruby-lang
rue has joined #ruby-lang
FlyingLeap has joined #ruby-lang
jmeeuwen has joined #ruby-lang
gianlucadv has joined #ruby-lang
knu has joined #ruby-lang
tylergillies has joined #ruby-lang
braidn has joined #ruby-lang
corundum has joined #ruby-lang
sonne has joined #ruby-lang
darix has joined #ruby-lang
fumduq has joined #ruby-lang
dabradley has joined #ruby-lang
bri has joined #ruby-lang
jayne has joined #ruby-lang
Karql has joined #ruby-lang
drakkhen_ has joined #ruby-lang
chris2 has joined #ruby-lang
lupine has joined #ruby-lang
lucas has joined #ruby-lang
threedaymonk has joined #ruby-lang
dLog_ has joined #ruby-lang
ioga_wrk has joined #ruby-lang
rikai has joined #ruby-lang
djinni` has joined #ruby-lang
gnufied has joined #ruby-lang
EvilJStoker_ has joined #ruby-lang
justinmcp has joined #ruby-lang
rtl has joined #ruby-lang
Caius has joined #ruby-lang
musl has joined #ruby-lang
closer has joined #ruby-lang
_ko1 has joined #ruby-lang
ndrst has joined #ruby-lang
fallenhitokiri has joined #ruby-lang
wnd has joined #ruby-lang
yibe has joined #ruby-lang
felipe has joined #ruby-lang
chendo has joined #ruby-lang
kvs has joined #ruby-lang
nrk has joined #ruby-lang
mame3 has joined #ruby-lang
jwollert- has joined #ruby-lang
maloik has joined #ruby-lang
Silex has joined #ruby-lang
davidbalber|away has joined #ruby-lang
jstemmer has joined #ruby-lang
dbussink has joined #ruby-lang
lianj has joined #ruby-lang
ddd__ has joined #ruby-lang
tdy has joined #ruby-lang
rebelcan has joined #ruby-lang
Mellett68 has joined #ruby-lang
KillerFox has joined #ruby-lang
neurodamage has joined #ruby-lang
smull_ has joined #ruby-lang
ammar has joined #ruby-lang
mclee has joined #ruby-lang
lguardiola has joined #ruby-lang
bcardarella has joined #ruby-lang
shaman42_ has joined #ruby-lang
t_ has joined #ruby-lang
blowmage has joined #ruby-lang
Guest30040 has joined #ruby-lang
fbernier has joined #ruby-lang
skinny_much_ has joined #ruby-lang
a3li has joined #ruby-lang
kuja has joined #ruby-lang
wycats_ has joined #ruby-lang
pabs has joined #ruby-lang
nikky has joined #ruby-lang
Muz has joined #ruby-lang
yellow5 has joined #ruby-lang
dumfries has joined #ruby-lang
akahn has joined #ruby-lang
TTilus has joined #ruby-lang
crankharder has joined #ruby-lang
jacknagel has joined #ruby-lang
cout has joined #ruby-lang
bryanl has joined #ruby-lang
soraher has joined #ruby-lang
samuelkadolph has joined #ruby-lang
matled has joined #ruby-lang
conceal_rs_____0 has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
FiXato has joined #ruby-lang
hagabaka has joined #ruby-lang
eval-in has joined #ruby-lang
doki_pen_ has joined #ruby-lang
coffeejunk has joined #ruby-lang
rondale_sc has joined #ruby-lang
DefV has joined #ruby-lang
Olipro has joined #ruby-lang
Kuukunen- has joined #ruby-lang
_dumfries has joined #ruby-lang
Guu has joined #ruby-lang
imajes has joined #ruby-lang
achiu has joined #ruby-lang
babinho_ has joined #ruby-lang
singpolyma has joined #ruby-lang
Bwild has joined #ruby-lang
shinh has joined #ruby-lang
tallship has joined #ruby-lang
ged has joined #ruby-lang
kennyvb has joined #ruby-lang
Boohbah has joined #ruby-lang
brownies has joined #ruby-lang
yeltzooo has joined #ruby-lang
isomorphismes has joined #ruby-lang
tylersmith has joined #ruby-lang
glebm has quit [Ping timeout: 249 seconds]
imperator2 has quit [Ping timeout: 276 seconds]
rwilcox has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
Pupeno has quit [Ping timeout: 248 seconds]
glebm has joined #ruby-lang
iliketurtles has joined #ruby-lang
GaelanAintAround is now known as Gaelan
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
Gaelan is now known as GaelanAintAround
r0bby has joined #ruby-lang
kith_ has joined #ruby-lang
rickhull has joined #ruby-lang
achiu1 has joined #ruby-lang
Asher1 has joined #ruby-lang
r0bby_ has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
mahlon__ has joined #ruby-lang
r0bby has quit [Disconnected by services]
robbyoconnor has quit [Disconnected by services]
r0bby_ is now known as robbyoconnor
mahlon__ is now known as mahlon
threeday1onk has joined #ruby-lang
weeb1e_ has joined #ruby-lang
marr123 has joined #ruby-lang
Karql_ has joined #ruby-lang
breaking_ has joined #ruby-lang
athetius_ has joined #ruby-lang
amerine_ has joined #ruby-lang
Bwild_ has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
swav has joined #ruby-lang
Guest16220 has quit [Write error: Broken pipe]
_ko10 has joined #ruby-lang
swav_ has quit [Ping timeout: 248 seconds]
io_syl has joined #ruby-lang
d2biG has joined #ruby-lang
marr123 has quit [Client Quit]
singpoly1a has joined #ruby-lang
swav has quit [Remote host closed the connection]
io_syl has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
FiXato|VPS has joined #ruby-lang
whitequa1k has joined #ruby-lang
FiXato has quit [Disconnected by services]
FiXato|VPS is now known as FiXato
hashkey has quit [*.net *.split]
breakingthings has quit [*.net *.split]
whitequark has quit [*.net *.split]
amerine has quit [*.net *.split]
marr has quit [*.net *.split]
dRbiG has quit [*.net *.split]
athetius has quit [*.net *.split]
Asher has quit [*.net *.split]
Phoop has quit [*.net *.split]
kith has quit [*.net *.split]
znz_jp has quit [*.net *.split]
agile has quit [*.net *.split]
dabradley has quit [*.net *.split]
mahlon_ has quit [*.net *.split]
Karql has quit [*.net *.split]
weeb1e has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
Bwild has quit [*.net *.split]
achiu has quit [*.net *.split]
_ko1 has quit [*.net *.split]
singpolyma has quit [*.net *.split]
znz_jp has joined #ruby-lang
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
hashkey has joined #ruby-lang
saarinen has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
marr has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
D9 has joined #ruby-lang
agile has joined #ruby-lang
dabradley has joined #ruby-lang
cofin has quit [Quit: cofin]
firstdayonthejob has joined #ruby-lang
v1rr3n has joined #ruby-lang
mreq has joined #ruby-lang
andrew has joined #ruby-lang
andrew is now known as Guest43006
axsuul has joined #ruby-lang
Zeeo has quit [Quit: -]
jxpx777 has joined #ruby-lang
maxmanders has joined #ruby-lang
kith_ is now known as kith
vigrant has joined #ruby-lang
brianpWins has joined #ruby-lang
Squarepy has joined #ruby-lang
realDAB has quit [Quit: realDAB]
iliketurtles has quit [Quit: zzzzz…..]
benlovell has quit [Ping timeout: 276 seconds]
imperator3 has quit [Quit: Valete!]
jsullivandigs has joined #ruby-lang
apeiros has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
jsullivandigs has quit [Remote host closed the connection]
Phoop has joined #ruby-lang
jsullivandigs has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
headius has quit [Quit: headius]
robbyoconnor has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby-lang
dominikh1 has joined #ruby-lang
dominikh has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
joast has quit [Quit: Leaving.]
thepumpk_ has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
thepumpkin has quit [Ping timeout: 260 seconds]
enebo has quit [Quit: enebo]
breaking_ is now known as breakingthings
cored has quit [Ping timeout: 248 seconds]
joast has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
JohnBat26 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
havenwood has joined #ruby-lang
Pupeno has joined #ruby-lang
havenwood has quit [Ping timeout: 276 seconds]
Pupeno has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
adambeynon has joined #ruby-lang
Phoop has quit [Ping timeout: 240 seconds]
Phoop has joined #ruby-lang
pskosinski has joined #ruby-lang
pskosinski has quit [Client Quit]
rickhull has quit [Quit: Leaving.]
mreq has quit [Ping timeout: 276 seconds]
roadt__ has quit [Ping timeout: 260 seconds]
bjrohan has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
fsvehla has joined #ruby-lang
<bjrohan>
Very new to Ruby here. I could use some clarification. a string is a class. Puts is a method of the kernel class? When you enter puts "this string" or Kernel.puts "this string" are you sending a class to a method of another class?
EvilAww has quit [Ping timeout: 264 seconds]
<apeiros>
"a string is a class" - no, a string is an object. String is a class. a string is an instance of the class String.
<apeiros>
"puts is a method of the kernel class" - Kernel is a module. Modules work differently than classes.
<apeiros>
the Kernel module specifically is included into Object, which has the effect of all Kernel instance methods being available everywhere as instance methods.
<bjrohan>
That is where i was going awry. Thanks apeiros . "this is a sting" is an object of the String class. Therefore I am sending the object "this string" to the method puts of the Kernel class?
cofin has joined #ruby-lang
<apeiros>
receiver.method_name(argument1, …) # you send the receiver a method and pass arguments to it
<apeiros>
without an explicit receiver, e.g. just `puts("hello")`, the receiver is `self`
<apeiros>
so with `puts "foo"` you send the method 'puts' to whatever object you are currently in
symm- has quit [Ping timeout: 276 seconds]
<apeiros>
and because Kernel is included into Object, `puts` works in almost every object.
Aww_ has joined #ruby-lang
<bjrohan>
apeiros, That just went above my head :-) I am very new to all of this
malev has joined #ruby-lang
<cout>
I always found the distinction between Kernel instance methods, Object instance methods, and methods defined in 'main' to be confusing.
vlad_starkov has joined #ruby-lang
<apeiros>
bjrohan: if it helps - this is a bit complex, but ruby only has few complex things, and once understood, they make perfect sense and explain about everything
<apeiros>
cout: Kernel instance methods are "functions", i.e. they don't rely on self
<apeiros>
contrary to Object instance methods, those are about self, they rely on it
<bjrohan>
Gotcha. Thank you for the input and clarification of the string object vs class
<cout>
apeiros: by convention, yeah, that's a good point
tbuehlmann has joined #ruby-lang
<apeiros>
cout: not just by convention :-p
<apeiros>
cout: this is exhibited by the fact that all Kernel methods are module_function's, which means you can call all of them as Kernel.method_name
<apeiros>
you couldn't do that with Object's instance methods
<cout>
apeiros: there's nothing to stop me from accessing instance variables inside a Kernel instance method
<apeiros>
cout: no. but you're not going to patch ruby, submit it and get it merged ;-)
<apeiros>
new methods: sure
charliesome has joined #ruby-lang
<apeiros>
there it's convention and you should stick to it.
<cout>
apeiros: also typically methods defined at the toplevel (which end up being private methods of Object) do not access instance variables
<apeiros>
usually. can do to. just wrote a tiny script today which does.
<apeiros>
*too
<apeiros>
(proper thing would have been to make it a class with a run(argv) method, though)
<apeiros>
toplevel methods should only be used in single-file scripts IMO
<cout>
yeah I almost always end up refactoring to do that in the end
<cout>
agreed
<apeiros>
Kernel#gem not being a module_function was actually one bug report from me which got fixed :-)
<apeiros>
(module_function makes the method also private, and Kernel#gem not being private broke a method_missing for me)
<eleanor>
baz = 1 if 1==2; defined?(baz) => "local-variable"
<eleanor>
why is 'baz' bound in that case? i would expect it to be undefined
fooqri has joined #ruby-lang
<eleanor>
same deal with: if 1 == 2 then baz = 1 end
<cHarNe2>
hi guys, im trying do download files over https with basic_auth, but the site uses a 302 redirect, but i think i fugured that out. tho it still does not work.
<cHarNe2>
anyone care to take a look? http://pastie.org/8145614 im getting 401 "Unauthorized", the same un/pw and url works fine in a browser.
whitequa1k is now known as whitequark
<whitequark>
eleanor: because local variables are declared when an assignment is present, not when it is executed
fooqri has quit [Client Quit]
<whitequark>
(and they contain `nil' by default)
headius has joined #ruby-lang
saarinen has quit [Quit: saarinen]
kgrz has quit [Ping timeout: 248 seconds]
iliketurtles has quit [Quit: zzzzz…..]
skmp has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
jvrmaia_ has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
jvrmaia_ has quit [Client Quit]
mistym is now known as mistym_lunch
brianpWins has quit [Quit: brianpWins]
mbull9 has joined #ruby-lang
gregmoreno has quit [Read error: Connection reset by peer]
gregmore_ has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
relix has joined #ruby-lang
judofyr has joined #ruby-lang
ldnunes has quit [Ping timeout: 248 seconds]
ldnunes has joined #ruby-lang
vigrant has quit [Quit: Page closed]
realDAB has quit [Quit: realDAB]
postmodern has joined #ruby-lang
robbyoconnor has joined #ruby-lang
scampbell has quit [Quit: Leaving]
thepumpkin has joined #ruby-lang
brianpWins has joined #ruby-lang
tenderlove has joined #ruby-lang
swav has joined #ruby-lang
philnyc has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
thepumpkin has quit [Remote host closed the connection]
kristofferrr has quit [Ping timeout: 256 seconds]
breakingthings has quit [Ping timeout: 264 seconds]
kristofferrr has joined #ruby-lang
iliketurtles has joined #ruby-lang
bgant has quit [Quit: Leaving.]
breakingthings has joined #ruby-lang
kartarn has joined #ruby-lang
mreq has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nisstyre-laptop has quit [Ping timeout: 253 seconds]
flip_digits has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 276 seconds]
apeiros has quit [Remote host closed the connection]
headius has quit [Ping timeout: 276 seconds]
headius has joined #ruby-lang
mistym_lunch is now known as mistym
apeiros has joined #ruby-lang
headius has quit [Quit: headius]
saarinen has joined #ruby-lang
mreq has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
<freedrull>
whats a good default value for datetimes instead of nil
<freedrull>
the beginning of unix time? :)
<yorickpeterse>
The current date?
philnyc has quit [Remote host closed the connection]
<kartarn>
+1
cube526 has joined #ruby-lang
v1rr3n has quit [Quit: WeeChat 0.4.1]
kartarn has quit [Quit: kartarn]
relix has joined #ruby-lang
<freedrull>
that would break some comparisons i currently have in place...
v1rr3n has joined #ruby-lang
<yorickpeterse>
Well then you're going to have to provide some more info on what you need
anonymuse has quit [Ping timeout: 246 seconds]
mreq has quit [Ping timeout: 246 seconds]
v1rr3n has quit [Read error: No route to host]
hhatch has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby-lang
relix has quit [Ping timeout: 256 seconds]
flip_digits has joined #ruby-lang
nazty has joined #ruby-lang
FlyingLeap has quit [Quit: No Ping reply in 180 seconds.]
FlyingLeap has joined #ruby-lang
havenwood has quit [Remote host closed the connection]