<drbrain>
jhuntwork: ok… I have all BSDish OSs so I think you should submit a bug on bugs.ruby-lang.org and point to this __syscall implementation in musl
<drbrain>
since it explicitly forbids > 6 arguments
harmless has quit [Ping timeout: 248 seconds]
slyphon has joined #ruby-lang
kain has quit [Quit: Sto andando via]
QaDeS_ has joined #ruby-lang
fayimora has joined #ruby-lang
QaDeS has quit [Ping timeout: 245 seconds]
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambaler_ has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambaler_ has quit [Read error: Connection reset by peer]
Sambalero has quit [Remote host closed the connection]
fayimora_ has joined #ruby-lang
fayimora_ has quit [Read error: Connection reset by peer]
fayimora_ has joined #ruby-lang
fayimora_ has quit [Read error: Connection reset by peer]
fayimora_ has joined #ruby-lang
Sambaler_ has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
<apeiros_>
aaaw, :foo =~ /o/, but not :foo === /o/ :(
<apeiros_>
oh, wait
<apeiros_>
/o/ === :foo - the world is rainbow and unicorns again :D
<lianj>
:)
imperator has joined #ruby-lang
carter_ has joined #ruby-lang
wpaulson has joined #ruby-lang
VGoff is now known as VGoff_afk
<retro|cz>
hello
<retro|cz>
I'm using instance_eval to eval a block
s0ra_h is now known as sora_h
<retro|cz>
That block is using method_missing magic.
<retro|cz>
but another method_missing is triggered
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
QaDeS_ has quit [Quit: Ex-Chat]
sailias has joined #ruby-lang
veex has quit [Ping timeout: 246 seconds]
bfreeman has quit [Quit: bfreeman]
fayimora has quit [Ping timeout: 264 seconds]
fayimora has joined #ruby-lang
leafac has quit [Quit: leaving]
fayimora has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 246 seconds]
msaffitz has joined #ruby-lang
jperry2 has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
kain has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
fayimora has joined #ruby-lang
gnufied has joined #ruby-lang
codewrangler has quit [Quit: Computer has gone to sleep.]
andrewhl has joined #ruby-lang
sailias has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
sailias has quit [Read error: Operation timed out]
dvorak has quit [Ping timeout: 246 seconds]
theoros is now known as fleoros
apeiros_ has quit [Remote host closed the connection]
sailias has joined #ruby-lang
sailias has quit [Client Quit]
fayimora has joined #ruby-lang
coryf has quit [Remote host closed the connection]
fayimora has quit [Client Quit]
neocoin has quit [Remote host closed the connection]
VegetableSpoon has joined #ruby-lang
flowerpot has joined #ruby-lang
bfreeman has joined #ruby-lang
crankharder has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
qpingu has quit [Quit: Leaving.]
seanstickle has joined #ruby-lang
andrewvos has quit [Ping timeout: 244 seconds]
zcdny has joined #ruby-lang
zcdny has left #ruby-lang [#ruby-lang]
postmodern has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby-lang
coryf has joined #ruby-lang
plen has joined #ruby-lang
savage- has joined #ruby-lang
pabs has quit [Ping timeout: 252 seconds]
lele|w has quit [Ping timeout: 272 seconds]
wpaulson has joined #ruby-lang
msaffitz has joined #ruby-lang
lele|w has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
<plen>
hi there, i'm new to ruby. i hope someone can give me some guidance on this code i'm trying to understand.
<plen>
i tried running the code at about the halfway point of this page (http://www.rubyquiz.com/quiz154.html), and i get an error saying that "sum" is an undefined method. can someone help me please?
<seanstickle>
What version of Ruby are you running?
<seanstickle>
I am suspecting some flavor of 1.8
<erikh>
for those of you who use test.rubygems.org, we're being bitten by amazon ec2 atm
<plen>
that's right. it's 1.8.7
<seanstickle>
plen: 1.8.7 doesn't have the sum method on arrays
<plen>
oh! thanks seanstickle. that was simple.
<seanstickle>
plen: sure
<plen>
i did a google search previously but this difference didn't turn up in the results page
msaffitz has quit [Quit: Computer has gone to sleep.]
msaffitz has joined #ruby-lang
ryanf has joined #ruby-lang
umttumt has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
imperator has joined #ruby-lang
imperator has left #ruby-lang [#ruby-lang]
slyphon_ has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
andrewhl has quit [Remote host closed the connection]
dalekurt has quit [Quit: Zzz...]
imperator has joined #ruby-lang
yugui_zzz is now known as yugui
wpaulson_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf has joined #ruby-lang
wpaulson has quit [Ping timeout: 250 seconds]
wpaulson_ is now known as wpaulson
carter_ has quit [Quit: Konversation terminated!]
plen has left #ruby-lang [#ruby-lang]
cirwin has quit [Ping timeout: 240 seconds]
seanstickle has quit [Quit: seanstickle]
banisterfiend has joined #ruby-lang
<imperator>
good evening
<banisterfiend>
imperator: not really, it's freezing cold and there's a grey boredom that envelopes everything like mist
<imperator>
where are you?
<banisterfiend>
new zealand ;)
yannis has joined #ruby-lang
<banisterfiend>
imperator: you?
ryanf has quit [Quit: broken pipes |||]
umttumt has quit [Remote host closed the connection]
<imperator>
littleton colorado
<imperator>
ah, nice and toasty warm with lots of sun today
jhuntwork has quit [Ping timeout: 246 seconds]
ryanf has joined #ruby-lang
<imperator>
thought about visiting nz sometime, but it ain't cheap
<bnagy>
it's great if you like sheep and rain
<bnagy>
bit like Wales, but with a good rugby team
woollyams has joined #ruby-lang
<imperator>
i suspect nz is a bit nicer on the visuals
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
<imperator>
though cardiff is supposed to be highly significant in the universe or something
<bnagy>
true, and at least in NZ they don't stuff up the scenery by having any, you know, people or cities and things
macmartine has quit [Quit: macmartine]
macmartine has joined #ruby-lang
rippa has joined #ruby-lang
cirwin has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby-lang
umttumt has joined #ruby-lang
dabradley has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
neocoin has joined #ruby-lang
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
VegetableSpoon has quit [Remote host closed the connection]
yugui is now known as yugui_zzz
eban has quit [Quit: WeeChat 0.3.5]
eban has joined #ruby-lang
Torrieri has joined #ruby-lang
brianpWins has joined #ruby-lang
qpingu has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
NeVeR_ has joined #ruby-lang
dalekurt has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
dfr|mac has quit [Remote host closed the connection]
igotnolegs has quit [Quit: Computer has gone to sleep.]
selvakumaran has joined #ruby-lang
perry is now known as perryh_away
coryf has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
perryh_away is now known as perryh
perryh is now known as perry
flak has joined #ruby-lang
macmartine has quit [Read error: Connection reset by peer]
flak is now known as Guest50786
rippa has quit [Ping timeout: 240 seconds]
Torrieri has quit [Ping timeout: 248 seconds]
toretore has joined #ruby-lang
xtagon has quit [Read error: Operation timed out]
gouthamvel has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
fgomez has quit [Ping timeout: 265 seconds]
dalekurt has quit [Quit: Zzz...]
Guest50786 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby-lang
selvakumaran has quit [Quit: Leaving]
selvakumaran has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
jerius has joined #ruby-lang
banisterfiend has joined #ruby-lang
jerius has quit [Client Quit]
sepp2k has joined #ruby-lang
Z33K|Lux has quit []
selvakumaran has quit [Remote host closed the connection]
yxhuvud has joined #ruby-lang
perry is now known as perryh_away
<rue>
New Zealand is far
<bnagy>
depends where from
<bnagy>
... ok not really, except like a few atolls
postmodern has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
kaspernj has joined #ruby-lang
savage- has quit [Remote host closed the connection]
dbck has joined #ruby-lang
<banisterfiend>
rue: hey equus
tbuehlmann has joined #ruby-lang
<rue>
Hy
wallerdev has quit [Quit: wallerdev]
kaspernj has quit [Read error: Operation timed out]
dhruvasagar has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby-lang
<ryanf>
banisterfiend: did anyone ever tell you your nicknames are weird
<ryanf>
I still don't know why asher is ruffles or whatever :)
<banisterfiend>
raffles
<ryanf>
ah
<banisterfiend>
ryanf: asher --> ash --> ashraff (a muslim equivalent for asher) --> raff --> raffles
<banisterfiend>
ryanf: have you seen prometheus yet?
<ryanf>
no
<banisterfiend>
I'm still waiting for someone else who's seen it, to explain it to me
<banisterfiend>
sure
apeiros_ has joined #ruby-lang
agilob has quit [Remote host closed the connection]
<apeiros_>
yeah, and where there do you see the different ways to specify the requirement as a string? maybe I'm blind…
<Mon_Ouie>
There seem to be more in Gem::Version
<apeiros_>
e.g. I can't see spermy even being mentioned…
<Mon_Ouie>
Along with examples at the end
<apeiros_>
yeah, Gem::Version looks useful. Going to reference that.
<apeiros_>
(and probably just copying too)
jperry2 has joined #ruby-lang
fayimora has quit [Ping timeout: 250 seconds]
fayimora has joined #ruby-lang
<workmad3>
apeiros_: I believe it's now called pessimistic locking, not spermy :)
<apeiros_>
spermy kills pessimistic locking
<workmad3>
heh
<apeiros_>
also spermy is a much less depressing term
<workmad3>
heh
<workmad3>
don't shout at the messenger :P
<workmad3>
I always thought it was called something like the twiddle operator or something :)
tomb___ has quit [Quit: Computer has gone to sleep.]
<workmad3>
I'm just reporting what I heard on ruby rogues a while back :)
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
* apeiros_
shoots workmad3
* apeiros_
then reads that he shouldn't shoot the messenger
<apeiros_>
whoops.
<apeiros_>
I stood my ground!
<workmad3>
:)
<Mon_Ouie>
Nobody said you shouldn't shoot the messenger. workmad3 just said you shouldn't shout at him.
<workmad3>
if you are going to shoot the messenger, make sure you hit him
akira989 has quit [Remote host closed the connection]
<workmad3>
you don't want a messenger with a grudge hanging around
qwerxy has joined #ruby-lang
brunocoelho has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
fayimora has quit [Ping timeout: 264 seconds]
tomb___ has joined #ruby-lang
fayimora has joined #ruby-lang
msaffitz has joined #ruby-lang
fayimora has quit [Ping timeout: 245 seconds]
andrewhl has joined #ruby-lang
fayimora has joined #ruby-lang
lsegal has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
RomyRomy has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
JustinCampbell has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
jstemmer has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
mistym has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
davidbalbert has quit [Quit: davidbalbert]
davidbalbert has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
gnufied1 has joined #ruby-lang
gnufied1 has quit [Client Quit]
savage- has quit [Remote host closed the connection]
<apeiros_>
andrewvos: added docs to the Available gem/repo
gnufied has quit [Ping timeout: 252 seconds]
RomyRomy has quit [Quit: RomyRomy]
RomyRomy has joined #ruby-lang
RomyRomy has quit [Client Quit]
mssola has quit [Quit: Konversation terminated!]
wallerdev has joined #ruby-lang
RomyRomy has joined #ruby-lang
<rue>
Hooray docs
Z33K|Lux has joined #ruby-lang
coryf has joined #ruby-lang
plen has quit [Quit: plen]
<apeiros_>
rue: yeah, rare thing from me :) I hate writing docs. but I saw you forked the gem - so obligatory: feedback is welcome ;-)
<rue>
I like docs
<apeiros_>
I love docs. I just hate writing them :D
<apeiros_>
tests coming up next.
<apeiros_>
same thing there - love having them, hate writing them…
<rue>
Heh
<rue>
I like both
<rue>
I’ll add some tests when you’ve got a couple committed, unless you have a pre-existing style guideline somewhere
<apeiros_>
I don't
<apeiros_>
but I greatly appreciate if you add tests :) I'm currently building the require/gem stubbing so I can actually do tests
qwerxy has quit [Quit: offski]
neocoin has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
jperry2 has joined #ruby-lang
yannis has quit [Ping timeout: 265 seconds]
qwerxy has joined #ruby-lang
neocoin has joined #ruby-lang
jperry2 has quit [Client Quit]
imperator has quit [Ping timeout: 252 seconds]
andrewhl has quit [Ping timeout: 264 seconds]
qwerxy has quit [Client Quit]
tbuehlmann has quit []
burgestrand has quit [Ping timeout: 244 seconds]
<apeiros_>
rue: the basic test setup is done. I usually run my tests with `ruby test/runner.rb`. it's not really a requirement, but it does set up all the stuff. hope that's fine with you.
<apeiros_>
the framework used is plain test/unit with some small additions.
<apeiros_>
(I actually use `ruby -rturn test/runner.rb`)
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
agilob has quit [Ping timeout: 252 seconds]
agilob has joined #ruby-lang
Jade has quit [Read error: Connection reset by peer]
Hakon|mbp has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
neocoin has quit [Remote host closed the connection]
Guest17580 has joined #ruby-lang
coryf has quit [Remote host closed the connection]
fgomez has quit [Ping timeout: 244 seconds]
perryh_away is now known as perryh
fgomez has joined #ruby-lang
havenn has joined #ruby-lang
mistym has quit [Remote host closed the connection]
MrWGW has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<MrWGW>
how do I, using a block, create an array that consists of the values of another array, modified in some way?
<rippa>
map
moxiemk1 has joined #ruby-lang
<rippa>
array.map {|i| process(i)}
<MrWGW>
so basically newarray = oldarray.map { |i| # et cetera
<MrWGW>
it seems to work
<rippa>
yes
<MrWGW>
c = ar.map { |i| i + a }
<rippa>
map! modifies array in place
<MrWGW>
ok thats consistent enough
<MrWGW>
so are blocks basically just glorified for loops?
<MrWGW>
I've historically tried to avoid them as I've found them confusing and never have needed them much
<rue>
MrWGW: No, they’re not
<rue>
A block is more like an anonymous function
<rue>
{|i| i + a } just says that it takes an object, and returns that + a
<rue>
The case for #map, specifically, is that it (conceptually) uses Array#each — which does loop over the elements, and calls the block for each one
fayimora has joined #ruby-lang
fayimora has quit [Client Quit]
<MrWGW>
ok
jarib has quit [Excess Flood]
imperator has joined #ruby-lang
RomyRomy_ has joined #ruby-lang
coryf has joined #ruby-lang
jarib has joined #ruby-lang
RomyRomy has quit [Ping timeout: 246 seconds]
<MrWGW>
and the reason for using blocks is mainly due to the compactness they offer vs. doing it otherwise, with a named function or more conventional code?
<apeiros_>
first one is concise. easy to understand
<rue>
(Although if you like, you *can* use Method#to_proc…)
<apeiros_>
second one means you have some top-level method (bad, you could put it into a module, but still not that great), the stuff is in different places - just not that nice.
<apeiros_>
if you *do* want to use a defined method, you can (as rue said, using Method#to_proc): people.sort_by(&method(:people_sorter)) is valid
perryh is now known as perryh_away
<yxhuvud>
then there is the option of defining <=> and do a regular #sort instead.
<rue>
Well, yes, but the #sort itself was a little incidental here
<rue>
Nyt on aika sexy parta
<apeiros_>
yxhuvud: that means you have one single way to sort your data
<apeiros_>
what if you want to sort by last_name once and by first_name the other time?
<apeiros_>
but yes
<apeiros_>
implementing <=> for sortable data to have a default sort is a good idea. don't forget to include Comparable :)
<rue>
The More You Know™
<imperator>
apeiros_, guess you don't like bundler
<yxhuvud>
I do, since I havn't seen a better solution to the problem bundler tries to solve.
Hakon|mbp has joined #ruby-lang
xtagon has joined #ruby-lang
skisulli has joined #ruby-lang
skisulli has left #ruby-lang [#ruby-lang]
SkramX has joined #ruby-lang
cirwin has joined #ruby-lang
tallship has quit [Remote host closed the connection]
<deryl>
OK, I appear to have a severe misunderstanding of ActiveRecord association mechanicisms. https://gist.github.com/3024946 - I'm not getting a join table population (and thus association) unless I manually and specifically create an association I believe should be managed by AR. (This is for a PORA, not a rails app)
<deryl>
first entry is with existing records (and shows how I found it), the 2nd is from start to finish for creation.
<deryl>
my questions are at the very bottom after I show my work :)
<deryl>
feels like high school math. "Be sure to show your work"
Hakon|mbp has quit [Quit: Leaving...]
<apeiros_>
imperator: why do you think that?
<imperator>
apeiros_, sorta felt like you're solving the same problem
<imperator>
i dunno, maybe i'm off
RomyRomy_ has left #ruby-lang [#ruby-lang]
injekt has joined #ruby-lang
acyed has quit [Read error: Connection reset by peer]
acyed has joined #ruby-lang
<rue>
deryl: #ror?
<deryl>
rue but its not a rails app
<rue>
It’s a Rails library
<deryl>
its straight ruby app. i just use a few gems rails does
<deryl>
so if you use any gems that rails depends on you have to ask in the rails channel even if you're not doing rails?
<injekt>
deryl: what's your question?
<deryl>
injekt: couple of them. A) WHY doesn't @vs.users get populated from @user.verification_suites.build since User is known at this point AND created THROUGH it? B) WHY doesn't the association get made once @vs has its attributes updated AND it is saved? (@vs.users is empty, and join table is empty) C) WHY do I have to MANUALLY add @user to @vs.users and THEN save for the association to be made, AND saved to the join table? WHAT am I missing in
<deryl>
yeah yeah, i know. app/models like rails (because in the future this might have a rails frontend so I adopted some of the directory structure)
<injekt>
im not one of those :P
<deryl>
but its a gem. lives in lib/dtf.rb :)
<deryl>
injekt: hehe cool
<deryl>
injekt: what i'm not understanding is if I use @user.verification_suites.build to build @vs with, shouldn't it have associated with the user? if nothing else, shouldn;t it have done a behind-the-scenes @vs.users << @user ?
<deryl>
and then on the save of @vs populated the join table?
<deryl>
totally not getting why i have to manually @vs.users << @user and then @vs.save to hit the join table
<deryl>
or, once @vs has an ID assigned that a @user.save doesn't cascade down the save chain and make it *that* way
<injekt>
it's a little odd, I never use has_and_belongs_to_many though I always use join models
<deryl>
though that chould be an artifact caused by the fact that @vs.users isn't having @user added to it
<injekt>
not saying that would fix your issue, but I'm not sure if it's specific or not
wallerdev has quit [Quit: wallerdev]
<deryl>
well i went with the habtm for the hmt so that i could work with either VerificationSuite (and still assoc to multiple users) or through @user.verification_suites.each and still be able to share. (The first allows me to assoc with a user AND still be able to @vs.analysis_cases.case_tests.each)
<apeiros_>
hurray… people on blogs (well, answers to a blog post) thinking rails was a good source for role model code…
<Tasser>
apeiros_, role model code?
<deryl>
which is the way i'm thinking of this. my reasoning was to ensure sharing of VSs between multiple users (and thus associated ACs and CTs. ACs own CTs)
RomyRomy has joined #ruby-lang
RomyRomy has quit [Client Quit]
<apeiros_>
Tasser: exemplary good code which you should follow in style etc.
wallerdev has joined #ruby-lang
<yxhuvud>
well, it is better than it has been (though there are still plenty of cesspits)
workmad3 has joined #ruby-lang
<apeiros_>
yxhuvud: agreed and agreed
<deryl>
injekt: and not sure at all where to hunt down information to fix my knowledge if it is indeed a hole in MY thinking or understanding
<apeiros_>
problem is, it takes an experienced coder to separate the good parts from the bad parts
heftig has joined #ruby-lang
<deryl>
injekt: I mean, sure, the problem is solved by remembering to @vs.users << @user before doing any saving. I just have no clue why i *have* to
<deryl>
especially having created vs by going *through* user to .build vs in the first place
imperator has quit [Quit: Leaving]
<deryl>
at first i even thought that calling update_attributes before doing a .save was killing the association, but I even tried just doing it long form (vs = user.verification_suites.build ; vs.name ="" ; vs.description = ""; vs.save) but thats not it either
<yxhuvud>
deryl: generally speaking, the backwards associations are not set up until after saving.
<yxhuvud>
it is plenty annoying when you end up having to do multi model validations.
<deryl>
yxhuvud: ok then that just feeds right into what i said. even if i long form setting attributes and saving, the join table doesn't get populated. I still have to manually vs.users << user
<deryl>
once vs is saved (and an ID given) and then say i do user.save it doesn't make the assoc. still have to vs.users << user
<deryl>
first
<deryl>
absolutely positively not understanding why :/
<yxhuvud>
that seems wrong though, since the association was set up when you built it.
<deryl>
right. @vs = @user.verification_suites.build ; @vs.update_attributes(…) # sets the attributes and then saves it
<deryl>
so @vs.users should have @user in the array
<yxhuvud>
is vs defined as a has many through?
<deryl>
yes
<deryl>
vs AND user are habtm to each other
<apeiros_>
"I'm habtm to you" sounds like a sexual innuendo…
<deryl>
hehe
<yxhuvud>
apeiros_: sounds kinda poly.
<apeiros_>
yeah, it's so 69ish
<apeiros_>
the year
<deryl>
yxhuvud: actually its analysis_cases that has_many :users, :through => :verification_suites
<apeiros_>
I mean
<deryl>
all of tht works right. its the damned join table part (habtm) thats busted (or my understanding of its operation is)
<yxhuvud>
you could try doing a has many through instead, though that would require a model for the join table.
<deryl>
yeah i was trying to avoid the model because it shouldn't really be a need.
<deryl>
but if i have to change it to get it to work right so be it, jus wish i understood why this doesn't work as i expect
<deryl>
and I can't call BUG, because I haven't verified that its NOT a misunderstanding on my part
<deryl>
google is my enemy today hehe. subverting my attempts at knowledge boosting :)
<deryl>
idk, maybe rue is right. maybe i should hit the rails channel (#rails, not #rubyonrails)
raz has left #ruby-lang ["*fump*"]
<workmad3>
heh, because #rails is the place to go for informative discussion (with yourself :P)
<deryl>
yeah seems its #ror and they set it invite only
<workmad3>
yeah, #ror is where the cool, big-boy contributors hang out
<deryl>
hehe
<deryl>
eons away from ever getting in *there* :)
<workmad3>
ditto
<deryl>
well my consolation so far is that its not something overtly my fault. starting to feel more like I'm assuming AR should be doing something that either its not meant to do, or just doesn't do.
arooni-mobile has joined #ruby-lang
<deryl>
but no examples i've found show having to do that. they show the associations being made
<workmad3>
I think I missed the initial problem description
<workmad3>
deryl: the way it does the join table managment is hidden magic... I never managed to wrap my head around it... I don't even look at HABTM anymore, I only ever use hm:t
<deryl>
driving me rather batty actually
<deryl>
workmad3: well yxhuvud was saying to make a join MODEL and use that and get rid of HABTM entirely.
<workmad3>
deryl: yes, that's using hm:t
<deryl>
which as i said, would be fine except it adds a model i don't really need.
<deryl>
i'm more just thoroughly confused on why HABTM doesn;'t work like i expect
<workmad3>
because its HABTM? :P
<deryl>
and so far can't find crapall about what is 'off' in my head on how it works, or even if it is
<workmad3>
as I said, rails' HABTM is black magic
<deryl>
hehehe. ok. i just don't want to abandon it if its really ME screwing up (other than using it in the first place) i'd rather learn what i'm goofing and fix my skillset
<workmad3>
I'm not sure there *is* a sensible way of understanding how it works :)
<deryl>
ok
<erikh>
I was open source was more about collaboration and less about clubhouses.
<erikh>
s/was/wish/
<workmad3>
it could (probably is) something you're doing wrong somewhere... but it's not *just* you, it's pretty much everyone who attempts to use HABTM
<deryl>
workmad3: ok, thats an acceptable salve to my pride :)
<deryl>
"it aint just you"
<workmad3>
deryl: as I said... I've never managed to get my head around how HABTM works myself ;)
<workmad3>
deryl: I kinda ignore the fact it exists ;)
<workmad3>
deryl: now, better stop talking rails in #ruby-lang before zenspider wakes up ;)
<deryl>
got ya. ok, i'll rip it out and figure out how to replace it correctly. now to think of yet another model name applicable to this hehe
<deryl>
ITS NOT RAILS DAMN IT!
* deryl
runs
<workmad3>
:)
diegoviola has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
voker57 has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
<rue>
Too
<rue>
Unless there’s an #activerecord, I guess
<deryl>
just an empty 'owned' channel
sepp2k has joined #ruby-lang
savage- has joined #ruby-lang
mistym has joined #ruby-lang
cralor has joined #ruby-lang
agilob has quit [Ping timeout: 252 seconds]
<cralor>
Howdy. I recently installed ruby on Debian Squeeze and want to execute a script. I'm getting 'bad interpreter: No such file or directory
<cralor>
'
corundum has quit [Remote host closed the connection]
corundum has joined #ruby-lang
agilobable has joined #ruby-lang
<mistym>
cralor: Is there any more detail in the message than that? What is the shebang? (That's the first line of the script.)
savage- has quit [Remote host closed the connection]
<cralor>
shebang - #!/bin/env ruby
<erikh>
that's because /bin/env doesn't exist
<cralor>
full line - bash: ./manage-ice.rb: /bin/env: bad interpreter: No such file or directory
<cralor>
right!
<erikh>
you want /usr/bin/env or just #!ruby
<cralor>
I don't know why :o)
<erikh>
because env exists in /usr/bin on more system than it doesn't
<cralor>
So just change the shebang?
<erikh>
should work, yes.
<cralor>
or maybe I can make a symlink so I don't have to? :P
<erikh>
yeah, so in the annals of bad ideas...
<erikh>
it's not going to work on the second system you use
<erikh>
or the third
<erikh>
or etc
<erikh>
just change the file
<erikh>
everything else is going to expect /usr/bin/env or at least #!ruby (which does more or less the same thing in this case)
<cralor>
#!ruby is the default, e.g. /usr/bin/env ?
<erikh>
neither are the default
<cralor>
ohsix, alright
<erikh>
there is no "default" really. gem binstubs have a default but that's because they're part of gems.