<Crowgirl>
Yes, so lines 10-13: CONSUMER_KEY = ENV['EBOOKS_CONSUMER_KEY'] etc...
<yorickpeterse>
yup
<Crowgirl>
Okay, just a sec, looking at your last hyperlink...
<Crowgirl>
Alright. So each string should contain what it's equivalent is named in env.txt. Is that correct?
baweaver has quit [Remote host closed the connection]
<yorickpeterse>
Yes
<yorickpeterse>
So if the file has "X=10" then in the Ruby script you'd use ENV['X'] to get "10"
<Crowgirl>
Awesome! Thanks so much, yorick!
delongG has quit [Remote host closed the connection]
delongG has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
baweaver has joined #ruby-lang
workmad3 has joined #ruby-lang
Lewix has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
Crowgirl has quit [Quit: Leaving]
<yorickpeterse>
np
workmad3 has quit [Ping timeout: 265 seconds]
Lewix has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 255 seconds]
howdoicomputer has joined #ruby-lang
charliesome has quit [Quit: zzz]
alestuber has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
Obfuscate has joined #ruby-lang
charliesome has joined #ruby-lang
yourabi has joined #ruby-lang
yourabi has quit [Client Quit]
alestuber has joined #ruby-lang
imperator has quit [Quit: Leaving]
delongG has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
ADot has joined #ruby-lang
delongG has joined #ruby-lang
delongG has quit [Read error: Connection reset by peer]
delongG_ has joined #ruby-lang
mdarby has joined #ruby-lang
howdoicomputer has quit [Quit: howdoicomputer]
delongG_ has quit [Remote host closed the connection]
cpt_yossarian has quit [Quit: And then he took off.]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpt_yossarian has joined #ruby-lang
dorei has quit []
alestuber has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 252 seconds]
mdarby has joined #ruby-lang
amclain has joined #ruby-lang
delongG has joined #ruby-lang
delongG has quit [Remote host closed the connection]
ruby-lang847 has quit [Ping timeout: 246 seconds]
delongG has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
delongG has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 256 seconds]
bzb has joined #ruby-lang
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ADot has quit [Quit: Leaving.]
iamninja has quit [Read error: Connection reset by peer]
atomical has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
atomical has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 248 seconds]
Learningruby has joined #ruby-lang
<Learningruby>
Can someone help me I'm trying to check user input to make sure it is only an integer. Everything works unless they enter a letter after a number ex. "5H" it will accept this as a number and ask the next question.
<Learningruby>
Also I'm asking on my phone internet is too slow so I can't upload my code
<harlen>
"everything works" implies you have some code trying to check if it's an integer. WE need to see that code to tell you what's wrong with it.
<bnagy>
Learningruby: the most effective was it to use Integer(input) inside a begin rescue block
<bnagy>
*way
<bnagy>
otherwise regexps with anchors
<Learningruby>
Bnagy: Ok I will look into that and return with my results. Thank you for the response
<Learningruby>
harlen: I understand u was just taking a shot in the dark to see if I can get pointed in some direction. I wish I could upload it. Thank you for willing to help
ascarter has joined #ruby-lang
howdoicomputer has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
shazaum has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
sankaber has joined #ruby-lang
Musashi007 has joined #ruby-lang
tkuchiki has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has quit [Remote host closed the connection]
Learningruby has quit [Ping timeout: 246 seconds]
dvlwrk has joined #ruby-lang
bzb has quit [Remote host closed the connection]
Learningruby has joined #ruby-lang
ADot has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
djbkd_ has joined #ruby-lang
michael_mbp has quit [Excess Flood]
howdoicomputer has quit [Quit: howdoicomputer]
workmad3 has joined #ruby-lang
Learningruby has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby-lang
shazaum has quit [Quit: Leaving]
djbkd_ has quit [Ping timeout: 272 seconds]
hendranata_ has joined #ruby-lang
<hendranata_>
ae
howdoicomputer has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bzb has joined #ruby-lang
djbkd_ has joined #ruby-lang
dik_dak has quit [Remote host closed the connection]
thelastinuit has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ascarter has quit [Max SendQ exceeded]
joey___ has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ruby-lang849 has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
alestuber has joined #ruby-lang
elia_ has quit [Quit: Computer has gone to sleep.]
symm- has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
cawil1 has quit [Quit: WeeChat 0.4.2]
djbkd has joined #ruby-lang
joey___ is now known as joey_lin
aeze has joined #ruby-lang
CamonZ has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fusillicode has joined #ruby-lang
fusillicode1 has joined #ruby-lang
<ruby-lang849>
Hey everyone i have a quick question, im trying to create an active record object but am unable to save data to the object inside of an each block. Here is an example of some of the code https://code.stypi.com/ajkamel/object.rb
<ruby-lang849>
im able to save everything except p.inst and p.visit_url.
<jhass>
ruby-lang849: try .save! to check for validation errors
piotrj has quit [Remote host closed the connection]
<toretore>
wth is the cursor moving
allomov has joined #ruby-lang
jacaballero has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby-lang
<ruby-lang849>
toretore: stypi allows you to edit the doc similar to google
chinmay_dd has quit [Quit: Leaving]
b_hoffman has quit [Quit: b_hoffman]
jacaballero has quit [Client Quit]
allomov has quit [Remote host closed the connection]
<ruby-lang849>
jhass: so save! solved the issue, its now storing to the db
<ruby-lang849>
im not sure why
<jhass>
ruby-lang849: that's unlikely, you probably just were running an old version or not verifying your assumption correctly
<ruby-lang849>
i got rid of the else and used .save!
dvlwrk has joined #ruby-lang
<ruby-lang849>
jhass: thats right, im guessing since it looped through the csv it found duplicate matching values and assigned the last value rather than the first value that matched
<ruby-lang849>
jhass: the last value being nil and appearing to not save
hahuang65 has quit [Ping timeout: 245 seconds]
dzejrou has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
b_hoffman has joined #ruby-lang
kith has joined #ruby-lang
ascarter has joined #ruby-lang
alestuber has quit [Ping timeout: 252 seconds]
joaomdmoura has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
ruby-lang849 has quit [Ping timeout: 246 seconds]
alestuber has joined #ruby-lang
flycatcher has joined #ruby-lang
kstuart has joined #ruby-lang
setanta__ has joined #ruby-lang
bungoman has joined #ruby-lang
matled- has joined #ruby-lang
valeri_uF0 has joined #ruby-lang
agarie_ has joined #ruby-lang
Asher2 has joined #ruby-lang
ItSANg___ has joined #ruby-lang
mikecmpbll has joined #ruby-lang
iamninja_ has joined #ruby-lang
wasnotrice_ has joined #ruby-lang
PaulePan1er has joined #ruby-lang
DefV_ has joined #ruby-lang
jsaak_ has joined #ruby-lang
tommylom1ykins has joined #ruby-lang
sk_0_ has joined #ruby-lang
ericwood has joined #ruby-lang
dayid_ has joined #ruby-lang
nux443_ has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aef_ has joined #ruby-lang
pd_ has joined #ruby-lang
jhass|off has joined #ruby-lang
dhruvasagar has joined #ruby-lang
kadoppe_ has joined #ruby-lang
sindork_ has joined #ruby-lang
lytol has joined #ruby-lang
brixen_ has joined #ruby-lang
lytol has quit [Remote host closed the connection]
TheMoonMaster_ has joined #ruby-lang
lytol has joined #ruby-lang
akkad_ has joined #ruby-lang
rheddry has joined #ruby-lang
setanta_ has quit [*.net *.split]
leat2 has quit [*.net *.split]
aef has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
jhass has quit [*.net *.split]
nux443 has quit [*.net *.split]
dhruvasagar_ has quit [*.net *.split]
pd has quit [*.net *.split]
ericwood_ has quit [*.net *.split]
jsaak has quit [*.net *.split]
brixen has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
Steve_Jobs has quit [*.net *.split]
xybre has quit [*.net *.split]
b_hoffman has quit [*.net *.split]
ItSANgo_ has quit [*.net *.split]
agarie has quit [*.net *.split]
malconis has quit [*.net *.split]
iamninja has quit [*.net *.split]
kadoppe has quit [*.net *.split]
Asher has quit [*.net *.split]
matled has quit [*.net *.split]
akkad has quit [*.net *.split]
sk_0 has quit [*.net *.split]
kstuart_ has quit [*.net *.split]
dayid has quit [*.net *.split]
levifig has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
dabradley has quit [*.net *.split]
DefV has quit [*.net *.split]
sindork has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
Senjai has quit [*.net *.split]
dvlwrk has quit [*.net *.split]
RobertBirnie has quit [*.net *.split]
|jemc| has quit [*.net *.split]
havenwood has quit [*.net *.split]
LBo has quit [*.net *.split]
sross07 has quit [*.net *.split]
mkosaki has quit [*.net *.split]
Keltia has quit [*.net *.split]
CaptainCibai has quit [*.net *.split]
badeball has quit [*.net *.split]
stevednd has quit [*.net *.split]
maloik has quit [*.net *.split]
jhass|off is now known as jhass
pd_ is now known as pd
pd has joined #ruby-lang
pd has quit [Changing host]
akkad_ is now known as akkad
valeri_uF0 is now known as valeri_ufo
matled- is now known as matled
wasnotrice_ is now known as wasnotrice
dvlwrk has joined #ruby-lang
|jemc| has joined #ruby-lang
sross07 has joined #ruby-lang
RobertBirnie has joined #ruby-lang
LBo has joined #ruby-lang
Keltia has joined #ruby-lang
mkosaki has joined #ruby-lang
CaptainCibai has joined #ruby-lang
badeball has joined #ruby-lang
stevednd has joined #ruby-lang
maloik has joined #ruby-lang
havenwood has joined #ruby-lang
bogdan has quit [Ping timeout: 246 seconds]
joey_lin has quit []
leat2 has joined #ruby-lang
brownbathrobe has quit []
xybre has joined #ruby-lang
dabradley has joined #ruby-lang
Senjai has joined #ruby-lang
Steve_Jobs has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
PaulePan1er is now known as PaulePanetr
PaulePanetr is now known as PaulePanter
marr has quit [Ping timeout: 245 seconds]
delongG has quit [Remote host closed the connection]
CamonZ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
rcvalle has joined #ruby-lang
hahuang65 has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
delongG has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
chouhoul_ has joined #ruby-lang
ascarter has joined #ruby-lang
duderonomy has joined #ruby-lang
gwendall has joined #ruby-lang
chouhoulis has quit [Ping timeout: 255 seconds]
Nimf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cornerma1 has joined #ruby-lang
mdarby has joined #ruby-lang
elia has joined #ruby-lang
joaomdmoura has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
nofxx has joined #ruby-lang
joaomdmoura has quit [Read error: Connection reset by peer]
joaomdmoura has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
cornerman has quit [Ping timeout: 276 seconds]
cornerma1 is now known as cornerman
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fusillicode1 has quit [Ping timeout: 256 seconds]
izzimus has quit [Ping timeout: 276 seconds]
delongG has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
_kfpratt has joined #ruby-lang
kfpratt has quit [Read error: No route to host]
_kfpratt has quit [Read error: Connection reset by peer]
delongG has joined #ruby-lang
kfpratt has joined #ruby-lang
ash__ has joined #ruby-lang
workmad3 has joined #ruby-lang
kfpratt has quit [Read error: Connection reset by peer]