adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
drincruz_ has quit [Ping timeout: 272 seconds]
drincruz_ has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
drincruz_ has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
ur5us has joined #ruby
lunarkitty has joined #ruby
ikeaviking has joined #ruby
Rounin has quit [Ping timeout: 252 seconds]
ikeaviking has quit [Quit: The Lounge - https://thelounge.chat]
ikeaviking has joined #ruby
drincruz_ has joined #ruby
ua_ has quit [Ping timeout: 265 seconds]
ua_ has joined #ruby
drincruz_ has quit [Ping timeout: 272 seconds]
ua_ has quit [Ping timeout: 272 seconds]
ua_ has joined #ruby
ua_ has quit [Remote host closed the connection]
ua_ has joined #ruby
jmcgnh has quit [Changing host]
jmcgnh has joined #ruby
aighearach has quit [Quit: Leaving]
aighearach_ has joined #ruby
aighearach_ has quit [Changing host]
aighearach_ has joined #ruby
aighearach_ is now known as aighearach
lzap has joined #ruby
belmont has joined #ruby
belmont has left #ruby [#ruby]
ur5us has quit [Ping timeout: 240 seconds]
belmont_ has joined #ruby
belmont_ has left #ruby [#ruby]
integral has quit [*.net *.split]
Liothen has quit [*.net *.split]
seisatsu has quit [*.net *.split]
seisatsu_ has joined #ruby
integral_ has joined #ruby
Liothen has joined #ruby
miah has quit [*.net *.split]
leftylink has quit [*.net *.split]
cout has quit [*.net *.split]
jtperreault has quit [*.net *.split]
robotmay has quit [*.net *.split]
bougyman has quit [*.net *.split]
legit has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
cout_ has joined #ruby
robotmay has joined #ruby
Hobbyboy|BNC has joined #ruby
miah has joined #ruby
jtperreault has joined #ruby
leftylink has joined #ruby
bougyman_ has joined #ruby
Fridtjof has joined #ruby
Hobbyboy|BNC is now known as Hobbyboy
jetchisel has joined #ruby
nyuszika7h has quit [*.net *.split]
shrub has quit [*.net *.split]
DEac- has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
rubin55 has quit [*.net *.split]
simao has quit [*.net *.split]
itok has quit [*.net *.split]
hwrd has quit [*.net *.split]
xyhuvud has joined #ruby
DEac- has joined #ruby
simao has joined #ruby
rubin55 has joined #ruby
shrub has joined #ruby
shrub has quit [Changing host]
shrub has joined #ruby
hwrd has joined #ruby
itok has joined #ruby
nyuszika7h has joined #ruby
MachinShin has quit [*.net *.split]
entel_ has quit [*.net *.split]
dorian has quit [*.net *.split]
ule has quit [*.net *.split]
doma has quit [*.net *.split]
llua has quit [*.net *.split]
caleb has quit [*.net *.split]
joenoon has quit [*.net *.split]
r0bby has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
marahin has quit [*.net *.split]
wnd has quit [*.net *.split]
jtdowney has quit [*.net *.split]
sgnh has quit [*.net *.split]
marahin- has joined #ruby
ule has joined #ruby
wnd has joined #ruby
MachinShin has joined #ruby
dorian has joined #ruby
entel_ has joined #ruby
joenoon has joined #ruby
r0bby has joined #ruby
jtdowney has joined #ruby
llua has joined #ruby
caleb has joined #ruby
caleb has joined #ruby
caleb has quit [Changing host]
NightMonkey has joined #ruby
sgnh has joined #ruby
doma has joined #ruby
lesihctej has joined #ruby
jetchisel has quit [Ping timeout: 268 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
cout_ has quit [Ping timeout: 265 seconds]
cout has joined #ruby
crawlwer_ has joined #ruby
crawlwer_ has quit [Remote host closed the connection]
lesihctej has quit [Ping timeout: 255 seconds]
lesihctej has joined #ruby
drincruz_ has joined #ruby
lesihctej has quit [Ping timeout: 256 seconds]
gr33n7007h has quit [Quit: WeeChat 3.2]
lucf117 has quit [Remote host closed the connection]
drincruz_ has quit [Ping timeout: 256 seconds]
_ht has joined #ruby
Garb0 has joined #ruby
Garb0 has quit [Read error: Connection reset by peer]
Garb0 has joined #ruby
goldfish has joined #ruby
nirix has joined #ruby
goldfish has quit [Ping timeout: 256 seconds]
lesihctej has joined #ruby
bandithijo has quit [Ping timeout: 255 seconds]
lesihctej has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
crawlwer_ has joined #ruby
crawlwer_ has quit [Remote host closed the connection]
Garb0 has quit [Quit: Garb0]
ur5us has joined #ruby
bandithijo has joined #ruby
drincruz_ has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
Garb0 has joined #ruby
Garb00 has joined #ruby
Garb0 has quit [Ping timeout: 272 seconds]
Garb00 has quit [Read error: Connection reset by peer]
drincruz_ has quit [Ping timeout: 255 seconds]
TomyWork has joined #ruby
ignorand has joined #ruby
Rounin has joined #ruby
Guest32 has joined #ruby
Guest32 has quit [Client Quit]
jetchisel has joined #ruby
bandithijo has quit [Ping timeout: 255 seconds]
drincruz_ has joined #ruby
<ignorand> if I have a hash myhash = test{key1: 'value1', key2: 'value2'} , how do I get key1: 'value1', key2: 'value2'
<ignorand> seems like I'll have to write a function to do this
bandithijo has joined #ruby
<ignorand> guess I
<ignorand> I'll keep it nested
<adam12> ignorand: Why are you unnesting?
<adam12> ignorand: did you want key1, key2, etc to be local variables? or inside a shallower hash?
postmodern has quit [Quit: Leaving]
<ignorand> adam12, in ror you get model_name{attr1: 'value1', attr2: 'value2'}. I have a non active record model, so I wanted to do something like def self.create(attr1:, attr2: 'default value) instead of def self.create(params = {}) attr1 = params.fetch(:attr1)
<adam12> ignorand: It's hard without seeing code, but you could try double splatting at the method call, or use Hash#values. `create(**params["foo"])`
<ignorand> I have a feeling it does more 'checking' for me like this. in the old ruby style we need to raise 'some attribute is missing' if params.fetch(:attr1).nil?
<adam12> ignorand: Can you share some code? in a ruby gist or paste service?
<ignorand> adam12, lemme check
reset has joined #ruby
jhass has quit [Ping timeout: 240 seconds]
jacktar has quit [Ping timeout: 244 seconds]
jhass has joined #ruby
rapha has quit [Ping timeout: 268 seconds]
aeris has quit [Remote host closed the connection]
Fridtjof has quit [Ping timeout: 255 seconds]
rapha has joined #ruby
<ignorand> adam12, https://dpaste.org/P2dy
jacktar has joined #ruby
aeris has joined #ruby
Fridtjof has joined #ruby
<adam12> ignorand: I'd just be explicit here. UrlShortener.create(destination: url_shortener_params[:destination], pseudonym: url_shortener_params[:pseudonym])
rapha has joined #ruby
rapha has quit [Changing host]
<ignorand> adam12, I suppose that works too :)
<ignorand> adam12, also got a good name for pseudonym? I'd like to use alias, but seems its a reserved word :(
<adam12> ignorand: aka? (also known as)
<adam12> gotta run out. bbl.
<ignorand> adam12, thanks
darkxploit has joined #ruby
<darkxploit> Hello, Anyone would know why brew style —fix … says installing ‘bundler’ gem and then errored with message "failed to install the 'bundler' gem please. thanks
<jhass[m]> darkxploit: for anybody to help you one would need the full error output (in a pastebin). But I see there's a #machomebrew and a #macosx, either of which might be a better channel for the question :)
<darkxploit> ok
<darkxploit> thanks
ikke has quit [Ping timeout: 265 seconds]
ikke has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
darkxploit has joined #ruby
Bounga has joined #ruby
balo has quit [Quit: leaving]
balo has joined #ruby
bandithijo has quit [Ping timeout: 256 seconds]
nirix has quit [Quit: Connection closed for inactivity]
bandithijo has joined #ruby
factor has quit [Ping timeout: 268 seconds]
factor has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
darkxploit has joined #ruby
jwr has joined #ruby
<jwr> I'm getting an unexpected error from rails when running on an m1 macbook that i don't get on an intel macbook. Can anybody suggest how to troubleshoot this? https://pastebin.com/raw/HREF9Xfp
<ruby[bot]> jwr: as I told you already, please use https://gist.github.com
jetchisel has quit [Ping timeout: 256 seconds]
<adam12> jwr: full stack trace might help.
jetchisel has joined #ruby
<ruby[bot]> jwr: as I told you already, please use https://gist.github.com
<adam12> jwr: What's line 15 of config/environments/development.rb?
<jwr> adam12: config.web_console.whiny_requests = false
<adam12> jwr: Does it boot without that line?
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
<jwr> adam12: hmm, no, but it does get a bit further and produce another error, that's good.
congratulated has quit [Ping timeout: 255 seconds]
orbyt has joined #ruby
be1m0nt has joined #ruby
gr33n7007h has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
jetchisel has joined #ruby
Bounga has quit [Ping timeout: 255 seconds]
CrazyEddy has joined #ruby
bandithijo has quit [Ping timeout: 276 seconds]
goldfish has joined #ruby
chonkbit has joined #ruby
be1m0nt has quit [Quit: leaving]
TomyWork has quit [Remote host closed the connection]
ged has quit [Ping timeout: 272 seconds]
mahlon has quit [Ping timeout: 265 seconds]
ignorand has quit [Read error: Connection reset by peer]
drincruz has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
drincruz_ has quit [Ping timeout: 276 seconds]
roadie has joined #ruby
Rakko has joined #ruby
Rakko has quit [Quit: Leaving]
Garb0 has joined #ruby
Garb0 has quit [Client Quit]
Garb0 has joined #ruby
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 255 seconds]
Garb0 has quit [Ping timeout: 272 seconds]
Garb0 has joined #ruby
lunarkitty has joined #ruby
jetchisel has quit [Ping timeout: 276 seconds]
Garb0 has quit [Ping timeout: 255 seconds]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
Garb0 has joined #ruby
jetchisel has joined #ruby
_ht has quit [Remote host closed the connection]
darkxploit has quit [Read error: No route to host]
darkxploit has joined #ruby
bougyman_ is now known as bougyman
Garb0 has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
orbyt has quit [Quit: Textual IRC Client: www.textualapp.com]
jwr has quit [Remote host closed the connection]
chonkbit has quit [Ping timeout: 255 seconds]
easbarbosa has joined #ruby
Guest902 has joined #ruby
<Guest902> Всем привет
mahlon has joined #ruby
ged has joined #ruby
Guest902 has quit [Quit: Client closed]
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 255 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
drincruz has quit [Read error: Connection reset by peer]
drincruz has joined #ruby
bandithijo has joined #ruby
ua_ has quit [Ping timeout: 252 seconds]
ua_ has joined #ruby
ua_ has quit [Excess Flood]
ua_ has joined #ruby
goldfish has quit [Ping timeout: 255 seconds]