Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
_whitelogger [_whitelogger!~whitelogg@kaunan.whitequark.org] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
rippa [rippa!~rippa@93-181-234-108.adsl.yaroslavl.ru] has joined #ruby
TehBeast [TehBeast!~andrei@modemcable152.98-202-24.mc.videotron.ca] has joined #ruby
<TehBeast> any pros/cons for linking ruby against readline or libedit? I'm trying to build some custom RPMs for 1.9.3_p0 and I'm not sure if readline or libedit are actual dependencies of ruby
_whitelogger [_whitelogger!~whitelogg@kaunan.whitequark.org] has joined #ruby
andrewpthorp [andrewpthorp!~andrewpth@c-98-244-88-92.hsd1.va.comcast.net] has joined #ruby
bwlang_ [bwlang_!~anonymous@c-98-216-112-96.hsd1.ma.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
whitequark [whitequark!~whitequar@2a00:ab00:1::4464:5550] has joined #ruby
<whitequark> TehBeast: readline is very useful for irb
<whitequark> also, without zlib ruby is quite unusable
<whitequark> no rails, for example
<whitequark> and I remember some problems with gems
<TehBeast> makes sense
<TehBeast> I was under the impression that you can't link ruby against both libs at the same time
<TehBeast> it's either readline or libedit
<TehBeast> is this correct?
<whitequark> mhm
<whitequark> I have always used readline
<whitequark> I don't ever know it supports libedit
dnordstrom [dnordstrom!~dnordstro@h37059.upc-h.chello.nl] has joined #ruby
whitequark [whitequark!~whitequar@2a00:ab00:1::4464:5550] has quit [#ruby]
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
<shevy> readline is nice
<shevy> but it is entirely optional
<shevy> TehBeast if you compiled ruby from source, and had no readline at that time, you can always go into ext/readline and compile it lateron
bluenemo [bluenemo!~bluenemo@g226033013.adsl.alicedsl.de] has joined #ruby
bluenemo [bluenemo!~bluenemo@unaffiliated/bluenemo] has joined #ruby
<TehBeast> alright
phantomfake [phantomfake!~ivi@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
stevejang [stevejang!~Adium@209.119.253.66] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
chimkan [chimkan!~chimkan@173.243.33.72] has joined #ruby
samsonjs [samsonjs!~samsonjs@S01060026f31b8198.gv.shawcable.net] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
ianbrandt [ianbrandt!~ianbrandt@99-111-99-153.uvs.sndgca.sbcglobal.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
fr0gprince_mac [fr0gprince_mac!~fr0gprinc@178-85-90-223.dynamic.upc.nl] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@202.60.13.34] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
derailed [derailed!~textual@i190010.upc-i.chello.nl] has joined #ruby
<derailed> hi all
Kiall [Kiall!~Kiall@kohana/developer/kiall] has joined #ruby
<derailed> im trying to find something on how rack handles file handling/streaming
<derailed> is there someone who's a bit pro in explaining this to me?
chimkan_ [chimkan_!~chimkan@173.243.33.72] has joined #ruby
MasterIdler_ [MasterIdler_!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@38.104.183.198] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
davidpk [davidpk!~r00t@0278f421.bb.sky.com] has joined #ruby
sieson [sieson!~sasan@67-207-113-158.static.wiline.com] has joined #ruby
<sieson> any idea why my regex does not work correctly https://gist.github.com/fe173f27f39df201d618 ?
andrew_ [andrew_!~ascarter@209.119.253.66] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
cmasseraf [cmasseraf!~coldfusio@200.188.40.211] has joined #ruby
cmasseraf [cmasseraf!~coldfusio@200.188.40.211] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
SegFault1X|work [SegFault1X|work!~mkbernard@173.228.45.162] has joined #ruby
PragCypher [PragCypher!~kapone@208.157.149.45] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
<apeiros_> sieson: define 'does not work correctly'.
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
zgr [zgr!~zgrge@79.165.25.46] has joined #ruby
zgr [zgr!~zgrge@79.165.25.46] has quit [#ruby]
<sieson> apeiros_: does not split the string by the colons
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
<apeiros_> well, all I see is html…
bwlang [bwlang!~anonymous@c-75-69-239-104.hsd1.ma.comcast.net] has joined #ruby
<apeiros_> I see no regex, no code to split it…
CannedCorn [CannedCorn!~textual@74.113.160.178] has joined #ruby
<sieson> the regex is on the first line in the gist paste
<luckyruby> some_array = some_array.join(" "). Is there something like a destructive join!?
<sieson> I have a huge string with html tags inside
ryannielson_ [ryannielson_!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
<apeiros_> sieson: I suggest you rephrase your question as an actually reproducable question
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
<apeiros_> you know, whit a bit of runnable code…
<apeiros_> luckyruby: no. for the simple reason that objects can't change their class.
<yxhuvud> luckyruby: destructive join? You want to actually transform an array to a string?
<apeiros_> also your variable is misleadingly named after the join - it's a string, not an array anymore.
scelis [scelis!~scelis@c-71-63-242-243.hsd1.mn.comcast.net] has quit ["Leaving..."]
<luckyruby> yeah, not sure what i was thinking
MasterIdler_ [MasterIdler_!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
<sieson> apeiros_: my question is that I am trying to parse a string which contains html tags. The html tags contain key value pairs i.e. <b>KEY:</b>VALUE<br>. The regex in my gist paste cannot capture these key value pairs eventhough it looks correct to me. My question is do you see something wrong with my regex?
stephenjudkins [stephenjudkins!~stephen@67.139.75.158] has joined #ruby
<apeiros_> sieson: since I'm not interested in guessing games and there's too many unknown parameters in your question - I don't care.
niko [niko!~niko@freenode/staff/ubuntu.member.niko] has joined #ruby
sieson [sieson!~sasan@67-207-113-158.static.wiline.com] has quit [#ruby]
bwlang_ [bwlang_!~anonymous@c-98-216-112-96.hsd1.ma.comcast.net] has joined #ruby
<waxjar> use some xml/html library for parsing html instead of a hacked up regex :)
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
dkr [dkr!~dkr@67.132.255.16] has joined #ruby
<Phrogz> e.g. Nokogiri
<CannedCorn> hey guys when you type require 'x' does it first look in the rubylib and then gems?
ryannielson [ryannielson!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
<CannedCorn> what is the process that require goes through
<apeiros_> CannedCorn: it will search first through all dirs in $LOAD_PATH
<apeiros_> after that, rubygems' lookup system is invoked
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<CannedCorn> ok
<Phrogz> $LOAD_PATH is also available as the more-terse-but-more-confusing $:
narshlob [narshlob!~tracey@97.75.178.34] has joined #ruby
<CannedCorn> ah
<CannedCorn> yes, ok
<narshlob> is there a way to get a constant name by its value?
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
<CannedCorn> why is cwd last in the load path
<Phrogz> narshlob: well, that's not unique, right? But you could iterate over constants
<CannedCorn> and not present in 1.9.x
shadoi [shadoi!~Adium@2001:5a8:4:68e0:c91e:92c3:5e38:66d] has joined #ruby
<apeiros_> CannedCorn: because cwd is not reliable
<Phrogz> CannedCorn: You have require_relative for that. :)
<apeiros_> ruby foo.rb <-- your script works; ruby bar/foo.rb <-- yay, no worky!
<apeiros_> if you use require_relative, you do it wrong.
narshlob [narshlob!~tracey@97.75.178.34] has quit [#ruby]
<CannedCorn> wait, explain...
<CannedCorn> we should use require_relative?
* Phrogz will not engage apeiros_ on this topic yet again, other than to say that he is wrong. :)
<CannedCorn> what if you need to require something in the cwd?
<apeiros_> CannedCorn: no, you shouldn't.
kenyabob [kenyabob!~andy@173-11-30-145-oregon.hfc.comcastbusiness.net] has joined #ruby
fgro [fgro!~fgro@g225045095.adsl.alicedsl.de] has joined #ruby
cmasseraf [cmasseraf!~coldfusio@200.188.16.240] has joined #ruby
<Phrogz> CannedCorn: All my web apps are a wondrous chain of require_relative's, allowing multiple entry points to the various files as needed.
<apeiros_> Phrogz: who knows, maybe one day you'll become a good programmer and see the light.
<waxjar> i run ruby with a -I ./ or -I lib flag, so i never use require_relative.
<Phrogz> :p
superguenter [superguenter!~Adium@205.233.39.2] has joined #ruby
<CannedCorn> can someone explain why require_relative is bad, it seems like that would be more flexible than require with a expanded path
<Phrogz> apeiros_: You simply see Ruby as only applicable for the kinds of things you like to make. For web apps on my server that are not packaged gems for others' use, require_relative is a glorious godsend.
<apeiros_> CannedCorn: the proper way is to use $LOAD_PATH correctly. either through installing with setup.rb or rubygems, or by using -I
<Phrogz> Wait, I thought I said I wasn't going to engage you on this :)
<apeiros_> Phrogz: you're mistaken.
clockwize [clockwize!~clockwize@239.137.125.91.dyn.plus.net] has joined #ruby
<Phrogz> I accept that this is your opinion.
<apeiros_> I do plenty of coding without ever installing it. and I haven't needed require_relative.
<apeiros_> CannedCorn: require_relative is bad because a) you break a basic behaviour of ruby and b) because you add coupling in a place where it's not necessary.
<Phrogz> CannedCorn: Here's why I personally think it's good (I'll let apeiros_ explain to you or not in specifics why he believes it is bad):
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<Phrogz> CannedCorn: myapp.rb: require_relative 'models/init' models/init.rb: require_relative 'user'; with this I can launch myapp.rb and have it work, or I can start an IRB session inside "models" and require './init'; everything works.
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
bwlang_ [bwlang_!~anonymous@c-75-69-239-104.hsd1.ma.comcast.net] has joined #ruby
<Phrogz> The same is possible via other mechanisms, but not nearly so easily.
ryannielson_ [ryannielson_!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<CannedCorn> i agree
Mekkis [Mekkis!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<CannedCorn> that seems like a simple and straightforward implementation
<CannedCorn> but i can also see how modularity is sacrificed that way
<CannedCorn> interesting
PragCypher [PragCypher!~kapone@208.157.149.45] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4DABD.dip.t-dialin.net] has joined #ruby
<apeiros_> Phrogz: I wonder by what miracles a plain `require 'models/init'` and a `require 'user'` works for me…
<kenyabob> If use chdir to scan some files in another directory, whats the easiest way to jump back to my original directory before outputting a template/page
<apeiros_> kenyabob: do the chdir in a block: Dir.chdir(path) { … }
<CannedCorn> so do i $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
<CannedCorn> or whatever
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
<CannedCorn> that is so annoying to do in every file
<apeiros_> you shouldn't do it in every file, that'd be stupid.
<apeiros_> there's a single entity that's responsible for setting up the load path, and thats your executable.
trivol [trivol!~aurelien@81.57.175.21] has joined #ruby
<apeiros_> which is either a script or ruby itself (the latter by means of the prepared $LOAD_PATH, rubygems or -I)
TheShrew [TheShrew!~theshrew@87-194-161-58.bethere.co.uk] has joined #ruby
Vaerros [Vaerros!~Adium@97.67.180.114] has quit [#ruby]
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
eka [eka!~eka@181.28.169.86] has joined #ruby
jergason [jergason!~jergason@208.97.56.66] has joined #ruby
<kenyabob> apeiros_: thanks
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
cobragoat [cobragoat!~cobragoat@64-71-15-218.static.wiline.com] has joined #ruby
<CannedCorn> i'm trying to build a test system for a gem, should you install the gem before running the tests?
dcarper [dcarper!~dcarper@50-73-187-102-pennsylvania.hfc.comcastbusiness.net] has joined #ruby
<CannedCorn> it seems to me that the gem should not add to the load_path before requiring
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
<CannedCorn> im not quite sure
Aeneas [Aeneas!~tomo@iskon7105.duo.carnet.hr] has joined #ruby
Aeneas [Aeneas!~tomo@iskon7105.duo.carnet.hr] has quit [#ruby]
Guest65872 [Guest65872!~mike@ks391369.kimsufi.com] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
at5l [at5l!~at5l@unaffiliated/at5l] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
Azure [Azure!~azt@cinch/fan/azure] has joined #ruby
Aeneas [Aeneas!~tomo@iskon7105.duo.carnet.hr] has joined #ruby
Aeneas [Aeneas!~tomo@iskon7105.duo.carnet.hr] has quit [#ruby]
zomgbie [zomgbie!~jesus@85-127-216-157.dynamic.xdsl-line.inode.at] has joined #ruby
robert_ [robert_!~hellspawn@objectx/robert] has joined #ruby
Aeneas [Aeneas!~tomo@iskon7105.duo.carnet.hr] has joined #ruby
tentimes [tentimes!~tentimes@host86-179-25-212.range86-179.btcentralplus.com] has joined #ruby
<tentimes> Hi :) I have installed Ruby 1.9.3 using http://rubyinstaller.org : I am having 2 problems. bith related to documentation. /ri doesn't know anything (comes back with fatal error) and rdoc gives errors about UTF-8
<tentimes> I am on Windows
<tentimes> Is this the right place to ask?
<tentimes> actual programs run fine and irb is working fine
Azure [Azure!~azt@cinch/fan/azure] has joined #ruby
<Phrogz> tentimes: This is the right place :)
<Phrogz> (Unfortunately, I'm not on a Windows box right now and don't have an answer for you.)
<Phrogz> You can also try #ruby-lang if no one in here is helpful.
<tentimes> UTF-8 regexp with CP850 string is one I get
herval [herval!~Adium@187.114.204.85] has joined #ruby
<tentimes> Googling it seems like its a very common problem that nobody has an answer too ;)
<tentimes> going to try another install
aknewhope_ [aknewhope_!~aknewhope@cpe-75-82-205-249.socal.res.rr.com] has joined #ruby
sobering [sobering!~Adium@iphost-64-56-142-213.wpg.wiband.net] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
aknewhope__ [aknewhope__!~aknewhope@cpe-75-82-205-249.socal.res.rr.com] has joined #ruby
ryannielson [ryannielson!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
demian`__ [demian`__!~demian_@80.149.203.160] has joined #ruby
bjensen [bjensen!~brianj@3007ds3-ar.0.fullrate.dk] has joined #ruby
bwlang [bwlang!~anonymous@c-75-69-239-104.hsd1.ma.comcast.net] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:d823:87af:bc60:cf25] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby
MrGando [MrGando!~MrGando@pc-137-179-83-200.cm.vtr.net] has joined #ruby
<tesmar> hi all, I am testing with minitest and have my files in the lib/ directory, but my rake test task is not picking up the lib/ dir classes
<tesmar> that is my helper.rb in the test/ directory
cableray [cableray!~cableray@wl-dhcp159-213.Mines.EDU] has joined #ruby
<tesmar> if I require 'person'
sobering [sobering!~Adium@iphost-64-56-142-213.wpg.wiband.net] has quit [#ruby]
<tesmar> explicitly it works
<tesmar> but I thought that the LOAD_PATH unshifting would shove the lib/ directory in the LOAD_PATH
<tesmar> any ideas?
ryannielson [ryannielson!~ryanniels@blk-11-127-105.eastlink.ca] has quit [#ruby]
Natch| [Natch|!~natch@178.73.217.91] has joined #ruby
ryannielson [ryannielson!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
TheBeast [TheBeast!~andrei@unaffiliated/thebeast] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
ryannielson [ryannielson!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
decentrality [decentrality!~decentral@static-50-53-4-236.bvtn.or.frontiernet.net] has quit [#ruby]
Revernd [Revernd!~michaelde@wsip-70-168-157-254.oc.oc.cox.net] has joined #ruby
cook1es [cook1es!~chatzilla@c83-248-93-185.bredband.comhem.se] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
dcarper [dcarper!~dcarper@50-73-187-102-pennsylvania.hfc.comcastbusiness.net] has joined #ruby
herval [herval!~Adium@187.114.204.85] has joined #ruby
mmercer [mmercer!~mmercer@ct-unlimited.com] has joined #ruby
ryannielson [ryannielson!~ryanniels@blk-11-127-105.eastlink.ca] has quit [#ruby]
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
herval [herval!~Adium@187.114.204.85] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
Phrogz [Phrogz!~phrogz@pdpc/supporter/professional/phrogz] has joined #ruby
Blazento [Blazento!~john@cpe-74-64-49-223.nyc.res.rr.com] has joined #ruby
<Blazento> hey is there some way to call a method on an object dynamically from a variable? for example function_to_call = sayHello.... my_new_object.function_to_call ... ?
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
<stevejang> You can use "send"
<stevejang> obj.send(function_to_call)
Faris [Faris!~amnay@41.249.131.220] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
n8ji_ [n8ji_!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.254.93] has joined #ruby
livingparadox [livingparadox!~Adium@66-214-181-170.static.lsan.ca.charter.com] has joined #ruby
<Blazento> thank stevejang
<Blazento> stevejang, how would you type it if function_to_call had its own parameters?
<burgestrand> Blazento: you add them to send
<burgestrand> Blazento: send(method_name, arg, arg, arg)
<Blazento> cool thanks
<burgestrand> Blazento: apart from the first parameter being the method name, you can treat the rest of it as if you were calling the actual method
runa [runa!~asd@190.210.67.161] has joined #ruby
<burgestrand> Blazento: keep in mind send() can also call private and protected methods
<runa> heyas. I'm using httpi and I found out that not all http client adapters (specially curb) support passing the POSTed body as a hash. What's the easiest/less dependent way to encode a hash into a body to POST?
Faris [Faris!~amnay@41.249.131.220] has quit [#ruby]
chimkan_ [chimkan_!~chimkan@76-10-173-74.dsl.teksavvy.com] has joined #ruby
virunga [virunga!~virunga@151.64.13.74] has joined #ruby
chimkan_ [chimkan_!~chimkan@76-10-173-74.dsl.teksavvy.com] has joined #ruby
herval1 [herval1!~Adium@187.114.204.85] has joined #ruby
andrewa2 [andrewa2!~Adium@c-98-209-88-157.hsd1.mi.comcast.net] has joined #ruby
krainboltgreene [krainboltgreene!~krainbolt@208-117-193-99.static.idsno.net] has joined #ruby
stuckbroker [stuckbroker!~stuckbrok@69.77.169.102] has joined #ruby
mneo [mneo!~chatzilla@136.sub-166-250-41.myvzw.com] has joined #ruby
jbpros [jbpros!~jbpros@89-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
<mneo> guys, a silly question -- I'm getting an error "ERROR TypeError: can't convert Array into String" on this:
<mneo> actions_hash.each do |action, value|
<mneo> "action is #{action}"
<mneo> end
<mneo> where actions_hash shows the following on inspect: {"signup"=>{"parentemail"=>"abc@def.com", "password"=>"xyz"}}
<mneo> What am I doing wrong?
chrxn [chrxn!chrxn@69.4.233.32] has joined #ruby
dcarper [dcarper!~dcarper@50-73-187-102-pennsylvania.hfc.comcastbusiness.net] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
<mneo> anyone?
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<stevejang> try inspect on "action" inside the closure.
Minimalist [Minimalist!~minimalis@41.140.65.166] has joined #ruby
yoklov [yoklov!~yoklov@24-177-5-183.dhcp.nwtn.ct.charter.com] has joined #ruby
<mneo> same error. It's not liking the each on the hash .. so isn't getting to the next statement
<mneo> BTW, thanks for responding, stevejang
virunga [virunga!~virunga@151.64.54.144] has joined #ruby
<yoklov> anybody know of a good guide to rails which won't try to also teach me ruby?
<yoklov> i know ruby already and am cursed with little patience for guides which try to teach me things i already know
<mneo> Agile Web Development with Rails has only a small section on Ruby, which you can ignore
<yoklov> cool
<yoklov> i can handle a small section, just when the guide is along the lines of "learn ruby and rails" it kills my motivation
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
<mneo> BTW, if you know ruby well, maybe you can help me with my problem?
Ryan_28 [Ryan_28!~IceChat9@142.177.138.115] has joined #ruby
<yoklov> maybe haha
<yoklov> what is it?
<mneo> actions_hash.each do |action, value|
<mneo> #"action is #{action}"
<mneo> end
<mneo> I'm getting an error "ERROR TypeError: can't convert Array into String"
<mneo> actions_hash is {"signup"=>{"parentemail"=>"abc@def.com", "password"=>"xyz"}}
<yoklov> hm
<yoklov> what version of ruby are you running? that works for me
<yoklov> in 1.9.3
<mneo> 192
<stevejang> what is actions_hash.class.name?
<mneo> Hash
<mneo> yoklov, what was your test code that worked?
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
<kenyabob> I have an image that is not available in the public folder that I would like to read from and display temporarily when a page is displayed
<yoklov> uh, essentially the exact code you gave me, but it… it does nothing, unless i'm missing what the 2nd line is doing.
<mneo> yes, I commented it out. So it should do nothing. But not give an error
<yoklov> {"signup"=>{"parentemail"=>"abc@def.com", "password"=>"xyz"}}.each { |a,v| puts a }
<yoklov> that works for me.
<yoklov> in irn on ruby-1.9.3
<yoklov> irb*
<mneo> that works for me too
andrewa2 [andrewa2!~Adium@c-98-209-88-157.hsd1.mi.comcast.net] has quit [#ruby]
<mneo> weird
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
S1kx [S1kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
DuoSRX [DuoSRX!~duosrx@2a01:e34:edd7:4330:3615:9eff:fe93:de4e] has joined #ruby
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby
pdtpatrick [pdtpatrick!~pdtpatric@12.249.4.226] has joined #ruby
nari [nari!~nari@2001:268:306:1:e81c:8aff:fe5c:ec6d] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
pdtpatrick [pdtpatrick!~pdtpatric@12.249.4.226] has joined #ruby
MrGando [MrGando!~MrGando@pc-137-179-83-200.cm.vtr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
Illiux [Illiux!~nol@wsp047447wss.wireless.pitt.edu] has joined #ruby
workmad3 [workmad3!~workmad3@86.30.110.82] has joined #ruby
perturbedpanda [perturbedpanda!~perturbed@matthewabrown.com] has quit [#ruby]
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
Willyum [Willyum!~willyum@ool-18ba4d58.dyn.optonline.net] has joined #ruby
FreddieBoi [FreddieBoi!~freddiebo@c83-252-234-115.bredband.comhem.se] has joined #ruby
savage-_ [savage-_!~savage_@208.90.214.38] has joined #ruby
Illiux [Illiux!~nol@150.212.20.176] has joined #ruby
stevejang [stevejang!~Adium@209.119.253.66] has quit [#ruby]
sjang [sjang!~Adium@209.119.253.66] has joined #ruby
eka [eka!~eka@181.28.169.86] has joined #ruby
alfism_ [alfism_!~alfism@2620:149:4:1201:d873:d867:afa5:3db6] has joined #ruby
celestius [celestius!~celestius@173-228-44-97.dsl.static.sonic.net] has joined #ruby
savage- [savage-!~savage_@istep.static.monkeybrains.net] has joined #ruby
livingparadox [livingparadox!~Adium@66-214-181-170.static.lsan.ca.charter.com] has quit [#ruby]
TomJ [TomJ!~TomJ@host-92-24-170-187.ppp.as43234.net] has joined #ruby
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
eboyer [eboyer!~Adium@65.120.180.150] has joined #ruby
eboyer [eboyer!~Adium@65.120.180.150] has quit [#ruby]
stepitime [stepitime!~stepitime@66.7.121.170] has joined #ruby
stepitim_ [stepitim_!~stepitime@66.7.121.170] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
markt [markt!~chatzilla@210.10.112.34] has joined #ruby
<markt> Hi, Is there a statement of method anywhere which speaks about the normalization of http Headers with respect to use with Rack::? In particular UPPercase and 'HTTP_X' prefix use?
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@99.23.160.120] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
rweng [rweng!~robin@brln-4db9dc8f.pool.mediaWays.net] has joined #ruby
snip_it [snip_it!~snip_it@sta-204-144-132-210.rockynet.com] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
cobragoat [cobragoat!~cobragoat@64.134.225.128] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has quit [#ruby]
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby