<nickjj>
hi, how would i go about performing something like this: ATTRS = [:a, :b, :c] ; attr_accessor *ATTRS ; MyModel::ATTRS.each { attr } attr.strip
markong has joined #ruby
<nickjj>
i know this is wrong because attr is a symbol, but in the intent is i want to strip the value of each attribute -- i think i would need to dynamically call an instance method which happens to be a defined as a symbol, google is coming up a little empty
<nickjj>
thanks, i did try send() but i got side tracked by an undefined method error due to one of the values being nil, not because the strategy didn't work
<nickjj>
send indeed is it
caedmon has joined #ruby
otisolsen70 has joined #ruby
desnudopenguino has quit [Remote host closed the connection]
desnudopenguino has joined #ruby
John860 has joined #ruby
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
<John860>
Model eager loading doesn't seem to work in my code. For example I have Person model that belongs to a Location and as soon as I retrieve a Person I'd like to load its location if any. The thing is, includes(:location) on The Person model doesn't seem to work.
donofrio has quit [Remote host closed the connection]
John860 has quit [Quit: Ping timeout (120 seconds)]
John860 has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 260 seconds]
desnudopenguino1 is now known as desnudopenguino
sam113102 has joined #ruby
sam113101 has quit [Ping timeout: 246 seconds]
sam113102 is now known as sam113101
shokohsc6 has joined #ruby
shokohsc has quit [Ping timeout: 250 seconds]
shokohsc6 is now known as shokohsc
John860 has quit [Quit: Ping timeout (120 seconds)]
John860 has joined #ruby
John860 has quit [Quit: Ping timeout (120 seconds)]
donofrio has joined #ruby
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
paulmcquad has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 252 seconds]
desnudopenguino1 is now known as desnudopenguino
johnjaye has quit [Quit: WeeChat 4.0.0-dev]
johnjaye has joined #ruby
TomyWork has quit [Quit: Leaving]
hrberg has joined #ruby
Shortstop has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 240 seconds]
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bm5k has quit [Quit: bm5k]
teclator has quit [Ping timeout: 255 seconds]
otisolsen70 has quit [Quit: Leaving]
<rapha>
johnjaye: i didn't answer so far because i don't know and hoped someone else might. all i can do is confirm i had ruby working on windows 7. google at least knows about ruby builds that worked for windows xp and claims 2.0 was the latest version to do so.
<weaksauc_>
how far back are you looking to go?
<weaksauc_>
ruby is something like 20 years old so i'd imagine pretty far back
paulmcquad has quit [Quit: Konversation terminated!]
Linux_Kerio has quit [Ping timeout: 255 seconds]
gr33n7007h has quit [Ping timeout: 246 seconds]
<rapha>
windows was never the prime target for ruby, though, was it?
<rapha>
wait. 20 years only??
<rapha>
1996! that's 27!!
gr33n7007h has joined #ruby
<rapha>
hmm, the rubyinstaller builds go back to 1.8.7
ur5us_ has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
<weaksauc_>
yeah i guess more like 30 years
<ox1eef_>
Ruby works best on *nix. Windows and Ruby works best with the Linux subsystem for Windows. Anything else can work but usually not on the same level.
chavito_ has joined #ruby
<weaksauc_>
johnjaye what are you trying to accomplish?
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
markong has joined #ruby
<KOTP>
If I remember right, it was either Windows 95 or Windows 98, since I was using Ruby around 1997. On Windows NT I do know it worked.
shokohsc has quit [Ping timeout: 248 seconds]
shokohsc has joined #ruby
<ox1eef_>
The experience is usually not the best. Not unique to Ruby though. Python, Perl, et al are the same. The Windows model doesn't adapt particularly well to how those languages are used.
<leah2>
my first was 1.6.8
chavito has joined #ruby
chavito has quit [Ping timeout: 248 seconds]
chavito has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
ua__ has quit [Read error: Connection reset by peer]