ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
Tearan has quit [Quit: Sleepy Badger....]
stardiviner has joined #ruby-lang
guns has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
swarley has joined #ruby-lang
flebel has quit [Ping timeout: 268 seconds]
flebel has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
<pr0ton> does ruby has a dir function like python ?
<zenspider> that's the object slot accessor method, iirc, right?
postmodern has quit [Ping timeout: 244 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
lcdhoffman has joined #ruby-lang
jtoy has joined #ruby-lang
billyoc has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
gmci has joined #ruby-lang
Dreamer3 has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Ping timeout: 272 seconds]
Dreamer3 has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
<epitron> pr0ton: RUBY HAS SO MANY DIR FUNCTIONS IT'S NOT FUNNY
<epitron> except they're call called *methods
<epitron> *all
agile has quit [Read error: Connection reset by peer]
amaya_ has joined #ruby-lang
<pr0ton> ok
<pr0ton> wait not that dir
<pr0ton> i meant which lists the methods / instances for an object
<pr0ton> or a module
<swarley> pr0ton, from irb
<swarley> andd or pry
<swarley> you can do
<swarley> object.methods - Object.new.methods
<swarley> for a class/module you can do my_class.methods - Module.methods
<pr0ton> ok
<swarley> that will show the methods specific to that class/object
<swarley> and not everything that pertains to Object
sepp2k1 has quit [Read error: Connection reset by peer]
joooooo has quit [Read error: Connection reset by peer]
seanstickle has quit [Quit: seanstickle]
jackhammer2022 has joined #ruby-lang
igaiga has joined #ruby-lang
postmodern has quit [Ping timeout: 248 seconds]
gsav has quit [Quit: Lost terminal]
postmodern has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
towski has quit [Ping timeout: 244 seconds]
setmeaway has joined #ruby-lang
cantonic_ has joined #ruby-lang
towski has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
diegoviola has joined #ruby-lang
diegovio1a has joined #ruby-lang
diegoviola has joined #ruby-lang
cantonic has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
mistym has quit [Remote host closed the connection]
jperry2 has joined #ruby-lang
havenn has quit [Remote host closed the connection]
mistym has joined #ruby-lang
havenn has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
snorkdude has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
sandbags has quit [Ping timeout: 272 seconds]
wpaulson_ has joined #ruby-lang
igaiga has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
setmeaway has quit [Ping timeout: 240 seconds]
justinmcp has quit [Remote host closed the connection]
setmeaway has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
lcdhoffman has quit [Quit: lcdhoffman]
igaiga has joined #ruby-lang
wmoxam has joined #ruby-lang
justinmcp has joined #ruby-lang
wpaulson_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
swarley has quit [Remote host closed the connection]
MrOnFireMr has joined #ruby-lang
swarley has joined #ruby-lang
xyzodiac has joined #ruby-lang
igaiga has quit [Ping timeout: 250 seconds]
towski has quit [Remote host closed the connection]
igaiga has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
m3nd3s has quit [Remote host closed the connection]
towski has joined #ruby-lang
jtoy has quit [Quit: jtoy]
sush24 has joined #ruby-lang
wmoxam has quit [Ping timeout: 246 seconds]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
igaiga has joined #ruby-lang
wmoxam has joined #ruby-lang
havenn has quit [Remote host closed the connection]
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
codewrangler has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
lsegal has joined #ruby-lang
swarley has quit [Ping timeout: 248 seconds]
igaiga has quit [Ping timeout: 250 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
igaiga has joined #ruby-lang
nibbo has quit [Ping timeout: 260 seconds]
MrOnFireMr has quit [Ping timeout: 244 seconds]
towski has quit [Remote host closed the connection]
dreamhawk has quit [Ping timeout: 260 seconds]
swarley has joined #ruby-lang
nibbo has joined #ruby-lang
dreamhawk has joined #ruby-lang
Axsuul has quit [Ping timeout: 272 seconds]
Axsuul has joined #ruby-lang
postmodern has quit [Quit: Leaving]
sandbags has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sandbags has quit [Ping timeout: 244 seconds]
wpaulson_ has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
ironcamel has quit [Quit: leaving]
amaya_ has quit [Read error: Connection reset by peer]
ironcamel has joined #ruby-lang
fbernier_ has joined #ruby-lang
pr0ton has quit [Remote host closed the connection]
fbernier_ has quit [Client Quit]
wpaulson_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
m8o1 has joined #ruby-lang
m8o1 has left #ruby-lang [#ruby-lang]
igaiga has quit [Remote host closed the connection]
tRAS has joined #ruby-lang
rippa has joined #ruby-lang
ReinH_ is now known as ReinH
igaiga has joined #ruby-lang
towski has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
richardjburton has joined #ruby-lang
anannie has joined #ruby-lang
ruby-lang311 has joined #ruby-lang
zmack has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
ruby-lang311 has quit [Ping timeout: 245 seconds]
jackhammer2022 has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
gsav has joined #ruby-lang
dhruvasagar has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
wpaulson_ has joined #ruby-lang
gsav has quit [Ping timeout: 244 seconds]
ivanoats has joined #ruby-lang
wpaulson_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ivanoats has quit [Remote host closed the connection]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
gsav has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
deryl has quit [Quit: Leaving.]
richardjburton has quit [Quit: Computer has gone to sleep.]
gsav has quit [Read error: Connection reset by peer]
igaiga has joined #ruby-lang
wyhaines has joined #ruby-lang
sharkbait has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
dfr|mac has joined #ruby-lang
sandbags has joined #ruby-lang
^sandbags^ has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
sandbags has quit [Ping timeout: 272 seconds]
anannie has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 246 seconds]
snorkdude has joined #ruby-lang
anannie has joined #ruby-lang
swarley has quit [Ping timeout: 244 seconds]
facest has quit [Ping timeout: 260 seconds]
dfr|mac has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
robbyoconnor has joined #ruby-lang
Bosox20051 has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
snorkdude has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
diegoviola has quit [Quit: leaving]
diegovio1a has quit [Ping timeout: 252 seconds]
igaiga has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
igaiga has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
yxhuvud has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
wyhaines has quit [Remote host closed the connection]
anannie has joined #ruby-lang
charliesome has joined #ruby-lang
ivanoats has joined #ruby-lang
ilyam has joined #ruby-lang
amaya_ has joined #ruby-lang
ivanoats has quit [Ping timeout: 244 seconds]
jtoy has joined #ruby-lang
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby-lang
justinmcp has joined #ruby-lang
ilyam has quit [Quit: ilyam]
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
jtoy has quit [Quit: jtoy]
toretore has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
postmodern has joined #ruby-lang
Madis has joined #ruby-lang
postmodern has quit [Read error: Connection reset by peer]
igaiga_ has joined #ruby-lang
postmodern has joined #ruby-lang
postmodern has quit [Read error: Connection reset by peer]
snorkdude has quit [Remote host closed the connection]
igaiga has quit [Ping timeout: 244 seconds]
^sandbags^ has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
postmodern has joined #ruby-lang
sush24 has joined #ruby-lang
ryanf has quit [Quit: leaving]
sush24 has quit [Client Quit]
ryanf has joined #ruby-lang
postmodern has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
Fullmoon has joined #ruby-lang
robbyoconnor has quit [Quit: Konversation terminated!]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
mytrile has joined #ruby-lang
ryanf has quit [Quit: leaving]
cantonic has quit [Quit: cantonic]
tRAS has quit [Quit: Mother, did it need to be so high?]
igaiga_ has quit [Remote host closed the connection]
igaiga has joined #ruby-lang
s1n4 has quit [Quit: leaving]
s1n4 has joined #ruby-lang
s1n4 has quit [Client Quit]
sharkbait is now known as Guest504
s1n4 has joined #ruby-lang
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
amaya_ has joined #ruby-lang
whyme1 has joined #ruby-lang
Guest504 has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby-lang
guns has quit [Quit: guns]
tRAS has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
guns has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
guns has quit [Ping timeout: 244 seconds]
sandbags has quit [Ping timeout: 272 seconds]
savage- has joined #ruby-lang
ar_ has joined #ruby-lang
towski has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
goshakkk has joined #ruby-lang
savage- has quit [Remote host closed the connection]
tRAS has quit [Ping timeout: 272 seconds]
tRAS has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
savage- has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
nibbo has quit [Ping timeout: 252 seconds]
nibbo has joined #ruby-lang
justinmcp has joined #ruby-lang
mytrile has quit [Read error: Connection reset by peer]
igaiga_ has joined #ruby-lang
igaiga_ has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
tRAS has quit [Quit: Mother, did it need to be so high?]
igaiga has quit [Read error: Operation timed out]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
goshakkk has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
justinmcp has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
hhatch has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
goshakkk has joined #ruby-lang
anannie has joined #ruby-lang
whyme1 has quit [Quit: WeeChat 0.3.8]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
cantonic has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
goshakkk has quit [Ping timeout: 244 seconds]
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
inokenty has left #ruby-lang [#ruby-lang]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
savage- has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
unsymbol has joined #ruby-lang
unsymbol has left #ruby-lang [#ruby-lang]
savage- has quit [Ping timeout: 272 seconds]
rue|w has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
gsav has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
goshakkk has joined #ruby-lang
ivanoats has quit [Ping timeout: 252 seconds]
amaya_ has quit [Read error: Connection reset by peer]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
bipin has joined #ruby-lang
bipin has left #ruby-lang [#ruby-lang]
voker57 has quit [Read error: Connection reset by peer]
s1n4 has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby-lang
s1n4 has joined #ruby-lang
RegEchse has joined #ruby-lang
jbsan has quit [Read error: Connection reset by peer]
amaya_ has joined #ruby-lang
diegoviola has joined #ruby-lang
gmci has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
chessguy has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
faces has joined #ruby-lang
seanstickle has joined #ruby-lang
goshakkk has joined #ruby-lang
lcdhoffman has joined #ruby-lang
tRAS has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
benanne has joined #ruby-lang
deryl has joined #ruby-lang
Axsuul has quit [Ping timeout: 248 seconds]
goshakkk has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sush24 has joined #ruby-lang
jxie has quit [Quit: leaving]
wpaulson_ has joined #ruby-lang
justinmcp has quit [Ping timeout: 244 seconds]
wpaulson_ has quit [Client Quit]
Virunga has joined #ruby-lang
kitallis has joined #ruby-lang
<kitallis> steveklabnik: there?
justinmcp has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
anannie has quit [Read error: Connection reset by peer]
Virunga has quit [Quit: Sto andando via]
anannie has joined #ruby-lang
tRAS has quit [Ping timeout: 255 seconds]
ddfreyne has quit [Quit: Terminated with extreme prejudice - dircproxy 1.0.5]
ddfreyne has joined #ruby-lang
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
tRAS has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
<steveklabnik> kitallis: whats up?
Raduwen has quit [Ping timeout: 272 seconds]
<kitallis> steveklabnik: I just moved to 3.2.8, draper from 0.12 to latest
<steveklabnik> ok
<kitallis> steveklabnik: accessing h.current_user (or any other controller method) in my rspecs, gives me this: ActionController::Metal#session delegated to @_request.session, but @_request is nil
<steveklabnik> hmm.
<steveklabnik> that is very odd
<steveklabnik> i have never seen taht particular error
<kitallis> this is only blowing up on specs
<steveklabnik> right
<steveklabnik> so
<steveklabnik> first of all
<steveklabnik> do you still have that setup block
<steveklabnik> that we used to require?
Jake232 has joined #ruby-lang
<kitallis> I never had any setup block
<steveklabnik> okay.
<steveklabnik> is supposed to make this work
<steveklabnik> basically
<steveklabnik> can you file an Issue, please?
<steveklabnik> i can't look at this right this second. i'm at a conf and i just broke the build on rails/rails ;)
rue|w has quit [Remote host closed the connection]
<steveklabnik> i will try to check it out as soon as i can.
<steveklabnik> any info about your app would be useful
<kitallis> oh, wait, let me be clearer. this is a regular controller spec, making a post to create which in turn makes a Draper object (where it fails)
<kitallis> (i.e. it is not a draper spec)
<steveklabnik> sure
<steveklabnik> it shouldnt matter.
<kitallis> (if that makes any difference)
<kitallis> yeah
<steveklabnik> :) (but also :( )
<kitallis> right, I had a look at that
<kitallis> I think I tried Draper::ViewContext.current as well
<kitallis> a sec
codewrangler has joined #ruby-lang
<kitallis> (I'll file an issue either way)
<kitallis> I'm using parens too much
<steveklabnik> :)
<steveklabnik> it's all good
lcdhoffman has quit [Quit: lcdhoffman]
m3nd3s has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
<kitallis> right, so, h and Draper::ViewContext.current have the same nil'd objects
burgestrand has joined #ruby-lang
<steveklabnik> yes
<steveklabnik> h IS D::VC.current
<kitallis> yeah, was confirming state
<steveklabnik> :)
<kitallis> <-- boring debugger
<steveklabnik> boring is good!
<steveklabnik> this stuff is awkward
<steveklabnik> because rails doesnt provide an api into it
jperry2 has joined #ruby-lang
<steveklabnik> once i get it working, i can make rails expose this stuff proper
tRAS has quit [Ping timeout: 245 seconds]
tRAS has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
codewrangler has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
xyzodiac has joined #ruby-lang
tRAS has quit [Ping timeout: 244 seconds]
tRAS has joined #ruby-lang
publicvoid_ has quit [Ping timeout: 246 seconds]
publicvoid_ has joined #ruby-lang
goshakkk has joined #ruby-lang
<kitallis> steveklabnik: don't think you can call that private instance method from a class method in https://github.com/jcasimir/draper/blob/master/lib/draper/view_context.rb#L4
zmack has joined #ruby-lang
chris2 has quit [Ping timeout: 246 seconds]
wyhaines has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
chris2 has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
<kitallis> (also, sorry, I meant latest stable 0.17 and not master)
<kitallis> that ActionController stuff is blowing up on 0.17, the above blows up on master
sush24 has joined #ruby-lang
tRAS has quit [Ping timeout: 260 seconds]
tRAS has joined #ruby-lang
icooba has joined #ruby-lang
icooba has quit [Excess Flood]
icooba has joined #ruby-lang
icooba has quit [Excess Flood]
icooba has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
s1n4 has quit [Ping timeout: 246 seconds]
enebo has joined #ruby-lang
rue|w has joined #ruby-lang
chris2_ has joined #ruby-lang
rue|w has quit [Ping timeout: 244 seconds]
chris2 has quit [Ping timeout: 244 seconds]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
gsav has joined #ruby-lang
lcdhoffman has joined #ruby-lang
zmack has quit [Remote host closed the connection]
dous has quit [Remote host closed the connection]
jxie has joined #ruby-lang
chris2 has joined #ruby-lang
chris2 has quit [Ping timeout: 268 seconds]
chris2 has joined #ruby-lang
chris2 has quit [Client Quit]
publicvoid_ has quit [Ping timeout: 240 seconds]
chris2_ is now known as chris2
ivanoats has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
Austin__ has joined #ruby-lang
Austin__ has quit [Client Quit]
retro|cz has quit [Ping timeout: 265 seconds]
ryanf has joined #ruby-lang
workmad3 has joined #ruby-lang
publicvoid_ has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
<Jake232> Anybody give me a clue on how to convert this to the new syntax? - https://gist.github.com/8bf753b94c0cffb0028c
Hakon has quit [Quit: Leaving...]
MrOnFireMr has joined #ruby-lang
<whitequark> I'd say that discoveries.* is implied
<Jake232> whitequark: without it, It doesn't work
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<whitequark> well, with it it doesn't work either
<Jake232> Actually, it kinda does, but it's really messed up. I got my query working now
<Jake232> but
codewrangler has joined #ruby-lang
<Jake232> in my method I'm getting' undefined method `>' for #<ActiveSupport::OrderedHash:0x007fcbed013608>'
kristofferrr has joined #ruby-lang
<Jake232> however if after the query, I add 'p @discoveries'. That error then never occurs
m3nd3s has quit [Remote host closed the connection]
<Jake232> how can printing it stop that error occuring
MrOnFireMr has quit [Ping timeout: 264 seconds]
<whitequark> huh
<whitequark> no idea
<Jake232> Damn I may just stick with the unoptimized queries
<Jake232> I just don't like hitting the DB with 100 queries, even though they only take 0.2ms each
<whitequark> well, you could easily turn that query in two
<whitequark> ah, no
snorkdude has joined #ruby-lang
<Jake232> The old syntax works, but then I can't add to it because it doesn't return a activerecord proxy / relation / whatever it returns
<Jake232> I need to be able to use search_for(), paginate() etc on it
<Jake232> Got it working, perfect
<Jake232> thanks for the help guys
<whitequark> could you share the result?
<whitequark> I'm curious
<whitequark> nice
<whitequark> how would you access the resulting related_keywords_count?
<Jake232> @discovieres.first.related_keywords_count
<whitequark> aaand what's in the model?
<Jake232> What do you mean?
<whitequark> well, AR doesn't create accessors for fields not in schema, does it?
<Jake232> The array is full of results exactly the same as if I had gone Discovery.find(1), but it also now has the related_keywords_count attribute
<Jake232> whitequark: it is making one for related_keywords_count
<whitequark> cool. I didn't know it does this
<Jake232> I would have thought there would have been a nicer interface to grab the count of a relation
<Jake232> rather than having to do the join and grouping manually
<Jake232> It seems like a fairly common thing
<Jake232> I'm guessing there probably is a better way to do this
wyhaines has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
kristofferrr has quit [Quit: ❤]
_malte has joined #ruby-lang
wmoxam has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
lsegal has joined #ruby-lang
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
wallerdev has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ivanoats has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby-lang
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
weeb1e has joined #ruby-lang
urbanmonk has joined #ruby-lang
dfr|mac has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
sepp2k1 has joined #ruby-lang
codewrangler has joined #ruby-lang
sepp2k has quit [Ping timeout: 272 seconds]
goshakkk has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
ruby-lang355 has joined #ruby-lang
wmoxam_ has joined #ruby-lang
fromhet has joined #ruby-lang
<fromhet> This question is about the ruby based framework Jekyll, so I'm sorry for being a tad OT but I think I have tried everything. I have a file named index.html, and in it I have this for loop http://pastie.org/4726213. It gives no results, and I can't find out where to start troubleshooting it. Have you had any problem like this? It seems like it cant find site.posts.
goshakkk has quit [Quit: Computer has gone to sleep.]
ruby-lang355 has quit [Quit: Page closed]
savage- has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
crackity_jones has joined #ruby-lang
Bosox20051 has quit [Quit: Leaving]
Bosox20051 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<rue> fromhet: It produces the file correctly otherwise?
<rue> fromhet: You have the YAML preamble and so on?
<fromhet> rue: Thank you for helping me troubleshoot, I really am lost. Yes, it does. It also shows page.title and site.time and other things correctly. If you mean the ---\ntitle:title\ntags:etc\n--- (with newlines instead of \n), yes I do.
<fromhet> rue: my _config.yml looks like this, but I can't see any errors I've made when writing it http://pastie.org/4726320
<rue> Hmh. Don’t remember if there’re any tricks. Try just printing site.posts.inspect rather than the loop
<fromhet> rue: that returns nothing, just as before
snorkdude has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
urbanmonk has quit [Ping timeout: 244 seconds]
Virunga has quit [Quit: Sto andando via]
goshakkk has joined #ruby-lang
wallerdev has joined #ruby-lang
enebo has quit [Quit: enebo]
billyoc has joined #ruby-lang
dhruvasagar has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
kvirani has joined #ruby-lang
savage- has quit [Remote host closed the connection]
Jake232 has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Ping timeout: 272 seconds]
ivanoats has quit [Remote host closed the connection]
bousquet has joined #ruby-lang
siames3e2in has joined #ruby-lang
siames3e2in has left #ruby-lang [#ruby-lang]
wpaulson has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
seanstickle has joined #ruby-lang
hhatch has quit [Quit: leaving]
towski has joined #ruby-lang
savage- has joined #ruby-lang
<kitallis> steveklabnik: also, I'm having to include url_helpers on 0.17 to get _path
<kitallis> otherwise, I get that host error (which seems to be closed issue)
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
wpaulson has joined #ruby-lang
workmad3 has joined #ruby-lang
s1n4 has joined #ruby-lang
Tearan has joined #ruby-lang
s1n4 has quit [Client Quit]
savage- has quit [Remote host closed the connection]
<freedrull> this program is awesome https://github.com/paulasmuth/fnordmetric
spuk has quit [Changing host]
spuk has joined #ruby-lang
retro|cz has joined #ruby-lang
wallerdev has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
jperry2 has joined #ruby-lang
markov_twain has joined #ruby-lang
markov_twain has quit [Ping timeout: 245 seconds]
gentz has quit [Remote host closed the connection]
savage- has joined #ruby-lang
pr0ton_ has joined #ruby-lang
cantonic has quit [Quit: cantonic]
Axsuul has joined #ruby-lang
hramrach has left #ruby-lang ["WeeChat 0.3.2"]
fromhet has quit [Quit: fromhet]
tomzx_ has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
cantonic has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
tomzx_ has quit [Ping timeout: 272 seconds]
thone_ has joined #ruby-lang
crackity_jones has quit [Quit: Computer has gone to sleep.]
thone has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
savage- has quit [Ping timeout: 272 seconds]
crackity_jones has joined #ruby-lang
crackity_jones has quit [Client Quit]
diegoviola has quit [Ping timeout: 246 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
billyoc has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
snorkdude has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
Tearan has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
jperry2 has joined #ruby-lang
jperry2 has quit [Client Quit]
cantonic has quit [Quit: cantonic]
ar_ has quit [Read error: Connection timed out]
outoftime has joined #ruby-lang
savage- has joined #ruby-lang
lcdhoffman has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
TTilus has quit [Read error: Operation timed out]
TTilus has joined #ruby-lang
savage- has quit [Remote host closed the connection]
icooba has quit [Quit: Computer has gone to sleep.]
Jake232 has joined #ruby-lang
sychedelix has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
wyhaines has quit [Remote host closed the connection]
RegEchse has joined #ruby-lang
sychedelix has left #ruby-lang [#ruby-lang]
sandbags has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
faces has quit [Read error: Connection reset by peer]
facest has joined #ruby-lang
jmeeuwen has quit [Read error: Connection reset by peer]
jmeeuwen has joined #ruby-lang
crackity_jones has joined #ruby-lang
LanceHaig has joined #ruby-lang
krusaider has joined #ruby-lang
towski has quit [Remote host closed the connection]
krusaider has left #ruby-lang [#ruby-lang]
Tearan has quit [Quit: Sleepy Badger....]
Erlkoenig has joined #ruby-lang
postmodern has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
<Erlkoenig> "class.new do" is exactly the same as "class", just with the exception that it doesn't get a name, right?
<Erlkoenig> err, "Class.new do"
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
_malte has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
toretore has quit [Quit: Leaving]
nXqd has quit [Ping timeout: 264 seconds]
macmartine has joined #ruby-lang
benanne has quit [Quit: kbai]
<ryanf> Erlkoenig: I think Class.new also preserves the local scope surrounding it, whereas the class statement doesn't
savage- has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
outoftime has quit [Quit: Leaving]
savage- has quit [Ping timeout: 244 seconds]
mistym has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
SuperTaz_ has joined #ruby-lang
SuperTaz has quit [Ping timeout: 260 seconds]
Jake232 has joined #ruby-lang
wyhaines has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
macmartine has joined #ruby-lang
zz_chrismcg is now known as chrismcg
xyzodiac has joined #ruby-lang
Erlkoenig has quit [Quit: Leaving.]
Madis has quit [Remote host closed the connection]