havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
esp32_prog has quit [Ping timeout: 245 seconds]
exmortus has quit [Remote host closed the connection]
skryking has quit [Ping timeout: 252 seconds]
skryking has joined #ruby
exmortus has joined #ruby
sameerynho has quit [Ping timeout: 272 seconds]
staticx has joined #ruby
exmortus has quit [Ping timeout: 272 seconds]
al2o3-cr has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
matheusmoreira has quit [Ping timeout: 252 seconds]
matheusmoreira has joined #ruby
laaron has joined #ruby
houhoulis has quit [Remote host closed the connection]
AJA4350 has quit [Quit: AJA4350]
schne1der has quit [Ping timeout: 246 seconds]
roadt_ has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
roadt_ is now known as roadt
m27frogy has joined #ruby
Swyper has quit [Remote host closed the connection]
orbyt_ has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
WhatsGoingOn has quit [Quit: ZNC 1.7.3 - https://znc.in]
esp32_prog has joined #ruby
codefriar has joined #ruby
esp32_prog has quit [Ping timeout: 244 seconds]
maryo has joined #ruby
maryo has quit [Ping timeout: 258 seconds]
bambanxx has quit [Read error: Connection reset by peer]
bambanxx has joined #ruby
Swyper has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
bambanxx has quit [Read error: Connection reset by peer]
bambanxx has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
roadt_ has joined #ruby
orbyt_ has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
al2o3-cr has quit [Ping timeout: 246 seconds]
<Harlin> mozzarella: thaks for pointing that out the other night
al2o3-cr has joined #ruby
<mozzarella> Harlin: np
Argorok has joined #ruby
<Argorok> When running "rails server" it exits telling me the following: /var/lib/gems/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec': Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
<Argorok> But pg is listed inside my Gemfile. I had run "bundle install" with no errors. I also had run "gem install pg". When I run "bundle info pg" I get this: Path: /var/lib/gems/2.2.0/gems/pg-1.1.4
<Argorok> What can I be doing wrong?
leitz has quit [Quit: Leaving]
<Argorok> Using Ubuntu 18.04 x64, Ruby 2.2
apparition has joined #ruby
Swyper has joined #ruby
braincrash has quit [Quit: bye bye]
ricekrispie has joined #ruby
braincrash has joined #ruby
<Argorok> Found, 1.1.4 doesn't work with my setup, changed it on Gemfile to < 1.0.0 and worked. Thanks anyway :D
haxx0r has quit [Ping timeout: 272 seconds]
Swyper has quit [Remote host closed the connection]
laaron has quit [Remote host closed the connection]
Ai9zO5AP has joined #ruby
laaron has joined #ruby
xco has quit [Quit: xco]
gix- has joined #ruby
gix has quit [Disconnected by services]
esp32_prog has joined #ruby
xco has joined #ruby
mac_ava has joined #ruby
xco has quit [Client Quit]
esp32_prog has quit [Ping timeout: 252 seconds]
xco has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
Guest7 has joined #ruby
Guest7 has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe has joined #ruby
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codefriar has joined #ruby
fphilipe has quit [Ping timeout: 244 seconds]
xco has quit [Quit: xco]
codefriar has quit [Ping timeout: 258 seconds]
laaron has quit [Remote host closed the connection]
codefriar has joined #ruby
haxx0r has joined #ruby
laaron has joined #ruby
roadt_ is now known as roadt
staticx has quit [Ping timeout: 252 seconds]
exmortus has joined #ruby
bambanxx has quit [Quit: Leaving]
staticx has joined #ruby
gravitation has quit [Quit: gravitation]
xco has joined #ruby
exmortus has quit [Ping timeout: 248 seconds]
xco has quit [Quit: xco]
matheusmoreira has quit [Ping timeout: 244 seconds]
polishdub has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
pwnd_nsfw has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 258 seconds]
kyrylo has joined #ruby
envex has joined #ruby
Azure has quit [Remote host closed the connection]
<weteamsteve1> Hey is anybody around? I have a member model that has many users. I want to access member.user_id in my mailer but it keeps saying undefined method member.user_id doesnt exist. Could somebody help? My model relationships work everywhere else in my application
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<weteamsteve1> member inspect shows: {:member=>#<Member id: 2, user_id: 2, position: nil, number: nil, membership: "member", created_at: "2019-06-02 05:17:44", updated_at: "2019-06-02 05:18:05", squad_id: 1>}
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
fphilipe has joined #ruby
<weteamsteve1> nvm guess it the parametters are passed in as a hash and not an object
fphilipe has quit [Ping timeout: 258 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
apparition has quit [Quit: Bye]
gix has joined #ruby
gix- has quit [Ping timeout: 244 seconds]
rafadc has quit [Read error: Connection reset by peer]
laaron has quit [Remote host closed the connection]
rafadc has joined #ruby
laaron has joined #ruby
esp32_prog has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
esp32_prog has quit [Ping timeout: 248 seconds]
marz_d`ghostman has quit [Ping timeout: 256 seconds]
fphilipe has joined #ruby
hanmac has joined #ruby
lunarkitty7 has quit [Quit: WeeChat 1.9.1]
weteamsteve1 has quit [Read error: Connection reset by peer]
cd has quit [Quit: cd]
sameerynho has joined #ruby
dellavg_ has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
apparition has joined #ruby
reber has joined #ruby
dellavg_ has quit [Ping timeout: 272 seconds]
conta has joined #ruby
TheSpectre has quit [Quit: Bye, World!]
TheSpectre has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 258 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
laaron has quit [Remote host closed the connection]
foxxx0 has quit [Quit: foxxx0]
laaron has joined #ruby
foxxx0 has joined #ruby
fphilipe has joined #ruby
jpaulo6ba has joined #ruby
JRF has joined #ruby
<JRF> hmm, is this a bug? ''.chop returns ''; ''.chop! returns nil
<JRF> i did rather surprise me. but also i feel like it almost makes sense, just not sure how/why
fphilipe has quit [Ping timeout: 250 seconds]
<phaul> &ri String#chomp!
<phaul> "or nil if no modifications were made"
<phaul> behaviour matches the documentation at least
<JRF> hmm, what is the best way to deal with such behavior then? (aside from using non-destructive form :P)
<JRF> one way that springs to mind is thing.chop!.to_s << ""
<phaul> when using destructive methods, I usually don't even care about the return value. thing.chop! ; thing << ""
<phaul> communicates more clearly that these are all operations on thing
<JRF> oh, duh you'
<JRF> *you're right; in my case i can just return `thing` instead of `thing.chop!`
_whitelogger has joined #ruby
schne1der has joined #ruby
fphilipe has joined #ruby
esp32_prog has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
esp32_prog has quit [Ping timeout: 272 seconds]
agent_white has quit [Quit: bbl]
tdy has quit [Ping timeout: 248 seconds]
CrazyEddy has quit [Ping timeout: 246 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
hiroaki has joined #ruby
_whitelogger has joined #ruby
AJA4350 has joined #ruby
fphilipe has joined #ruby
xco has joined #ruby
esp32_prog has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
MuffinPimp has quit [Ping timeout: 258 seconds]
MuffinPimp has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
MuffinPimp has quit [Quit: Goodbye.]
MuffinPimp has joined #ruby
laaron- has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
Swyper has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
comet23 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
<comet23> what is the difference between Hash.new { |h, k| h[k] = k } and Hash.new{ [] }
<havenwood> comet23: the latter is the same Array for every default Hash value
<havenwood> comet23: the former is a new Array for every default Hash value
<comet23> how can i "see" the what the empty hash looks like?
<havenwood> comet23: You can check #default and #default_proc
<comet23> i tried p hash_name and all it gave back to me is {}
<havenwood> &>> Hash.new([]).default
<rubydoc> # => [] (https://carc.in/#/r/70wj)
<havenwood> &>> Hash.new { [] }.default_proc.call
<rubydoc> # => [] (https://carc.in/#/r/70wk)
laaron- has quit [Remote host closed the connection]
AJA4350 has joined #ruby
laaron has joined #ruby
<comet23> thank you
<comet23> there is no way to see a nice output at the moment, right?
rippa has joined #ruby
<comet23> thinking about it how could i see an output if it doesn't have any data
<comet23> like i was hoping to see something along the lines of { nil => [] }
<comet23> but i guess nil would already be a value
<comet23> thank you havenwood it's something magical i am going to have to get used to i guess lol
apparition has joined #ruby
Swyper has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
esp32_prog has quit [Ping timeout: 252 seconds]
fphilipe has joined #ruby
CrazyEddy has joined #ruby
mac_ava has quit [Ping timeout: 245 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
DTZUZU2 is now known as DTZUZU
niceperl has joined #ruby
lupine has quit [Remote host closed the connection]
lupine has joined #ruby
AJA4350 has quit [Quit: AJA4350]
jpaulo6ba has quit []
fphilipe has quit [Ping timeout: 258 seconds]
marahin has quit [Ping timeout: 264 seconds]
AJA4350 has joined #ruby
marahin has joined #ruby
marahin has joined #ruby
marahin has quit [Changing host]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4351 is now known as AJA4350
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
conta has quit [Ping timeout: 248 seconds]
conta has joined #ruby
esp32_prog has joined #ruby
laaron has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
laaron has joined #ruby
esp32_prog has quit [Ping timeout: 248 seconds]
al2o3-cr has joined #ruby
gravitation has joined #ruby
fphilipe has joined #ruby
JRF has quit [Ping timeout: 244 seconds]
queip has quit [Ping timeout: 244 seconds]
kyrylo has joined #ruby
Esa_ has joined #ruby
queip has joined #ruby
DTZUZU has quit [Quit: WeeChat 2.2]
queip has quit [Ping timeout: 248 seconds]
haxx0r has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
queip has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
gravitation has quit [Quit: gravitation]
laaron has joined #ruby
DTZUZU has joined #ruby
codefriar has joined #ruby
queip has quit [Ping timeout: 248 seconds]
DTZUZU has quit [Quit: WeeChat 2.2]
ellcs1 has joined #ruby
queip has joined #ruby
raddazong has quit [Quit: leaving]
madhatter has joined #ruby
DTZUZU has joined #ruby
queip has quit [Excess Flood]
oczek has joined #ruby
esp32_prog has joined #ruby
queip has joined #ruby
fphilipe has joined #ruby
esp32_prog has quit [Ping timeout: 252 seconds]
oczek has quit [Quit: Page closed]
madhatter has quit [Remote host closed the connection]
ellcs1 has quit [Ping timeout: 250 seconds]
madhatter has joined #ruby
queip has quit [Ping timeout: 252 seconds]
MonacoDoom has joined #ruby
AJA4350 has joined #ruby
niceperl has quit [Remote host closed the connection]
queip has joined #ruby
aferreira has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
SeepingN has joined #ruby
MonacoDoom has quit [Quit: Mutter: www.mutterirc.com]
Guest30 has joined #ruby
ravenousmoose has joined #ruby
ravenousmoose has quit [Client Quit]
ravenousmoose has joined #ruby
dellavg_ has joined #ruby
<Guest30> Hi folks. A long time PHP developer, now learning Ruby. I currently use VS Code on the Mac. I realize there are probably a lot of opinions, but just curious as to what editor/IDE most seasoned developers enjoy the most on the Mac? Any thoughts?
queip has quit [Ping timeout: 248 seconds]
queip has joined #ruby
fphilipe has joined #ruby
s3nd1v0g1us has joined #ruby
moei has joined #ruby
Guest30 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weteamsteve has joined #ruby
haxx0r has joined #ruby
comet23 has quit [Quit: Connection closed for inactivity]
doodlebug has quit [Quit: -a- Connection Timed Out]
Guest30 has joined #ruby
Guest30 has quit [Client Quit]
<SeepingN> Sublime Text for editor. RubyMine for more of a full IDE
doodlebug has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
queip has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cropcircle has joined #ruby
queip has joined #ruby
nowhere_man has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
esp32_prog has joined #ruby
codefriar has joined #ruby
esp32_prog has quit [Ping timeout: 272 seconds]
xco has quit [Quit: xco]
cropcircle has quit [Read error: Connection reset by peer]
tdy has joined #ruby
jud has joined #ruby
conta has quit [Quit: conta]
dbugger has joined #ruby
hutch1 has joined #ruby
queip has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 252 seconds]
AJA4351 is now known as AJA4350
queip has joined #ruby
fphilipe has joined #ruby
nowhere_man has joined #ruby
doodleb89 has joined #ruby
doodlebug has quit [Ping timeout: 272 seconds]
hutch1 has quit [Quit: WeeChat 2.4]
salasrod has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 258 seconds]
salasrod has joined #ruby
comet23 has joined #ruby
<comet23> what is it called when you create a array with sub arrays?
<comet23> i want to create an array with x distinct sub arrays
orbyt_ has joined #ruby
<phaul> &>> x = Array.new(2) {[]}; x[0] << 'hi'; x[1] << 'comet23'; x
<rubydoc> stderr: playpen: timeout triggered! (https://carc.in/#/r/70xh)
<phaul> &>> x = Array.new(2) {[]}; x[0] << 'hi'; x[1] << 'comet23'; x
<rubydoc> # => [["hi"], ["comet23"]] (https://carc.in/#/r/70xi)
<phaul> not sure what it's called.. if all sub arrays are the same size maybe you can call it a matrix, given that it stores numbers
doodleb89 has quit [Read error: Connection reset by peer]
fphilipe has quit [Ping timeout: 248 seconds]
doodlebug has joined #ruby
<comet23> thank you :)
lunarkitty7 has joined #ruby
alnk has quit [Ping timeout: 268 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 246 seconds]
fphilipe has joined #ruby
Swyper has quit [Remote host closed the connection]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
cd has joined #ruby
ellcs1 has joined #ruby
Momentum is now known as Momenta
Momenta is now known as Momentum
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
queip has quit [Ping timeout: 248 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
queip has joined #ruby
dbugger has quit [Ping timeout: 258 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4351 is now known as AJA4350
fphilipe has quit [Ping timeout: 252 seconds]
code_zombie has joined #ruby
staticx has quit [Remote host closed the connection]
staticx has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cjkinni has quit [Ping timeout: 272 seconds]
lubekpl has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
kyrylo has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
fphilipe has joined #ruby
kwerle has joined #ruby
Leopere has quit [Ping timeout: 246 seconds]
<kwerle> I have an order-dependent minitest failure. I would like to know which tests are running in what order. I'm running `ruby ..my_test_spec.rb -v --seed myseed` - but it is not listing the tests, just the dots and failure. What am I doing wrong?
Leopere has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 258 seconds]
houhoulis has joined #ruby
xco has joined #ruby
dellavg_ has quit [Ping timeout: 252 seconds]
AJA4351 has joined #ruby
clemens3 has joined #ruby
Swyper has quit [Read error: Connection reset by peer]
Swyper_ has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
ellcs1 has quit [Ping timeout: 252 seconds]
hiroaki has quit [Ping timeout: 252 seconds]
ellcs1 has joined #ruby
ellcs1 has quit [Ping timeout: 252 seconds]
reber has quit [Remote host closed the connection]
polishdub has quit [Remote host closed the connection]
schne1der has quit [Ping timeout: 268 seconds]
Mrgoose has quit [Ping timeout: 245 seconds]
Mrgoose has joined #ruby
kwerle has quit [Ping timeout: 256 seconds]
Azure has joined #ruby
troulouliou_dev has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
moei has quit [Quit: Leaving...]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
queip has quit [Ping timeout: 272 seconds]
queip has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Ping timeout: 252 seconds]
alnk has joined #ruby
orbyt_ has joined #ruby
fphilipe has joined #ruby
AJA4350 has joined #ruby
clemens3 has quit [Quit: WeeChat 1.6]
ixti has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 248 seconds]
Swyper_ has quit [Remote host closed the connection]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
queip has quit [Ping timeout: 272 seconds]
ricekrispie2 has joined #ruby
Swyper has joined #ruby
ricekrispie has quit [Ping timeout: 272 seconds]
queip has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
xco has quit [Quit: xco]
Swyper has quit [Remote host closed the connection]
fphilipe has joined #ruby
shanks8080 has quit [Ping timeout: 268 seconds]
shanks8080 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby