#rubyonrails - Sat 31 Mar 2007 between 22:45 and 23:00

NY Lost Funds



pstickne_thom_, Procs are objects too
s/variables/local_variables/
_thom_no, I get that. I just don't know if I'm supposed to use the memory address or how to actually refer to it!
pstickneuse the object you have ... but from OUTSIDE of it, examining the binding likely has little value
x = Proc.new # it's just an object...
_thom_er, let's say in my local debugging context the var is named 'proc'. How do I look at the instance variables or methods on 'proc' ?
action_thom_ suspects he's making this too complicated for himself
_thom_suspects he's making this too complicated for himself
psticknev i the_object
ReinHpradalover: what platform?
psticknebut it likely doesn't have anything you want to see
_thom_well, I had tried v i proc
and I got back nothing
pstickne_thom_, the `proc' only has useful values while it is being run
RubyPantheromg! the return of pradalover!
pstickne_thom_, then it doesn't have any -- instance variables != local variables
_thom_but if I'm able to list lines of code... that doesn't help in this case?
because I'm not in it, in the context where it's being created
pstickne_thom_, you want to debug it in the context it is being RUN in
_thom_gotcha.
psticknex = lambda {y = 2}; (eval "local_variables", x.binding).inject({}) {|m,v| m[v] = eval v, x.binding; m} # but this doesn't show anything cool, it only makes sense during execution
_thom_I'm going to have to walk through that one pretty thoroughly before I understand it, but I will attempt to pick it apart.
WhatThehey guys, im trying to "cap cold_deploy" and it fails cause it cant start mongrel cluster, its passing in the wrong path to the cluster yml file, wheres the line to change it?
nukioi'm looking for someone who can design siiiick web2.0 interfaces, and usability designs. please msg me. - you WILL get compensated for your time.
PalishHmm
ReinHnukio: you've got msg
Palishthere's a way to get the output of another controller/action pair into a variable in rails.. What is it? :)
not quite sure what to google for on that one
ReinHPalish: gah, sounds like a bad idea imo
PalishReinH: Nah, it makes sense in my architecture. Do you know how? :)
ReinHPalish: um... render_to_string may do what you want
but... ew.
It smells bad
me shrugs
There's the rope, go hang yourself ;)
actionReinH shrugs
ReinHshrugs
even
PalishOh snap. Thanks!
pradaloverReinH Ubuntu
Linux
ReinHpradalover: one sec

Page: 1 8 15 22 29 36 43 50 57 64 71 78 

IrcArchive

NY Lost Funds