havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: 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!
<leitz> adam12, thanks! Issue #21 on the tasker.
<mwlang> adam12: thanks!
DaRock has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw4 has joined #ruby
bvdw4 is now known as bvdw
mwlang has quit [Quit: mwlang]
davidw has quit [Ping timeout: 272 seconds]
Inoperable has joined #ruby
buckworst has joined #ruby
bvdw has quit [Quit: bvdw]
poontangmessiah has quit [Ping timeout: 256 seconds]
Inoperable has quit [Quit: All your buffer are belong to us!]
Inoperable has joined #ruby
bvdw has joined #ruby
davidw has joined #ruby
<leitz> Getting back to work on some old projects. Trying to split my brain into stuff for work (perl), and stuff for me.
<leitz> Spent most of December bed-ridden. Now doing "gem update"; it's taking a while. :)
evdubs has quit [Quit: Leaving]
drincruz has quit [Ping timeout: 256 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
ewanchic has joined #ruby
jaequery has quit [Remote host closed the connection]
markopasha has quit [Remote host closed the connection]
<ewanchic> ? I'm creating a gem module 'Freight' that inherts class CLI < Thor. How would I test a private method? expects {Freight::CLI.send(:some_private_method) }.to ?
leitz has quit [Quit: Leaving]
<al2o3-cr> ewanchic: yup! that's one way.
<ewanchic> al2o3-cr: I keep getting undefined error.
<ewanchic> al2o3-cr: I keep getting undefined method 'some_private_method' error.
evdubs has joined #ruby
davidw has quit [Ping timeout: 272 seconds]
<al2o3-cr> ewanchic: pastebin actual code
wildtrees has quit [Quit: Leaving]
<ewanchic> al2o3-cr: hmm, it's spread across 2-4 files...but is there a way push my code up to a temp repo. the project is very tiny right now.
<ewanchic> al2o3-cr: Or, I could messy up my public repo for now too.
ur5us has quit [Ping timeout: 256 seconds]
<ewanchic> al2o3-cr: you know...hold on.. I can git it for you...
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
brandoncc has joined #ruby
sergioro has joined #ruby
<al2o3-cr> ewanchic: you're defining instance methods but testing them as singleton methods, that's why you're getting undefined method errors.
<al2o3-cr> &>> module Freight class CLI def footer() '' end end end; Freight::CLI.footer
<rubydoc> stderr: -e:4:in `<main>': undefined method `footer' for Freight::CLI:Class (NoMethodError)... check link for more (https://carc.in/#/r/8it3)
gnufr33d0m has quit [Remote host closed the connection]
<al2o3-cr> &>> module Freight class CLI class << self; def footer() '' end end end end; Freight::CLI.footer
<rubydoc> # => "" (https://carc.in/#/r/8it4)
<al2o3-cr> &>> module Freight class CLI class << self; private def footer() '' end end end end; Freight::CLI.send :footer
<rubydoc> # => "" (https://carc.in/#/r/8it5)
<al2o3-cr> ewanchic: do you want header and footer to be singleton methods?
gnufr33d0m has joined #ruby
<ewanchic> al2o3-cr: ...hold on a minute...
<al2o3-cr> ok
gnufr33d0m has quit [Excess Flood]
<ewanchic> al2o3-cr: ....I'm not sure how to answer that. 'footer', should be private. But when I started separating methods for Thor, I had to keep structuring them in this format.
<ewanchic> al2o3-cr: I admit, I'm diving more into Ruby now than Rails, so I'm a bit ignorant/rusty to the terminology. I think I know what I'm talking about...but I probably don't.
gnufr33d0m has joined #ruby
<ewanchic> I just peakked at this: https://ruby-doc.org/docs/ruby-doc-bundle/UsersGuide/rg/singletonmethods.html so I'm thinking...no? But maybe I'm wrong
<al2o3-cr> then to test; expect { Frieght::CLI.new.send :some_private_method }.to ... new here creates an instance of Freight::CLI
<ewanchic> al2o3-cr: BTW, I have a much larger and fuller gem (but still incomplete right now). and I'm just little by little copying code pieces into here to "start from scratch" and nail down the rspec tests as I should.
<ewanchic> al2o3-cr: ok, let me try that...I think I was close but it still didn't work...hold on...
<al2o3-cr> yeah, take baby steps.
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ur5us has joined #ruby
drincruz has joined #ruby
<ewanchic> al2o3-cr: Ok, I was close. I tried to @fr8 = Freight::CLI.new, and then @fr8.send :footer, but it failed becuase I forgot to wrap the first line in a before do/end. Thanks a lot. Baby steps for sure.
<al2o3-cr> ewanchic: np, good luck with your gem ;)
<ewanchic> al2o3-cr: Oh man, that feel so good. Thank you.
drincruz has quit [Ping timeout: 268 seconds]
fig-le-deunch has quit [Read error: Connection reset by peer]
fig-le-deunch has joined #ruby
Mrgoose845701915 has quit [Quit: Ping timeout (120 seconds)]
Mrgoose845701915 has joined #ruby
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
spectra has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
drincruz has joined #ruby
gnufr33d0m has quit [Remote host closed the connection]
spectra has joined #ruby
gnufr33d0m has joined #ruby
duderonomy has joined #ruby
gendarme has joined #ruby
gnufr33d0m has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alex`` has quit [Quit: WeeChat 2.7]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallace_mu has joined #ruby
i9zO5AP has quit [Ping timeout: 268 seconds]
i9zO5AP has joined #ruby
alfiemax has joined #ruby
zululee_ has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
ttoocs has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
braincrash has quit [Quit: bye bye]
alfiemax has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
impermanence has joined #ruby
orbyt_ has quit [Client Quit]
tdy has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
tdy has joined #ruby
jintseng has joined #ruby
jintseng has quit [Client Quit]
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tpanarch1st has quit [Ping timeout: 255 seconds]
gendarme has quit [Quit: Konversation terminated!]
turbo_choo has quit [Remote host closed the connection]
fig-le-deunch has quit [Quit: Konversation terminated!]
jenrzzz has joined #ruby
brandoncc has joined #ruby
impermanence has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brandoncc has joined #ruby
Intelo has joined #ruby
brandoncc has quit [Client Quit]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
cthu| has quit [Ping timeout: 265 seconds]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
s3nd1v0g1us has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
chalkmonster has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
turbo_choo has joined #ruby
gix- has quit [Ping timeout: 265 seconds]
wallace_mu has quit [Remote host closed the connection]
alfiemax has joined #ruby
wallace_mu has joined #ruby
jenrzzz has joined #ruby
hutch has quit [Ping timeout: 240 seconds]
Helenah has quit [Read error: Connection reset by peer]
wallace_mu has quit [Ping timeout: 260 seconds]
Helenah has joined #ruby
thebananaking has quit [Quit: Connection closed for inactivity]
s2013 has joined #ruby
s2013 is now known as sss
howdoi has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
DarthGandalf has quit [Remote host closed the connection]
DarthGandalf has joined #ruby
Intelo has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
x0n has quit [Read error: Connection reset by peer]
x0n has joined #ruby
cd has quit [Quit: cd]
orbyt_ has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
sergioro has quit [Quit: leaving]
glytchbinary has joined #ruby
cthu| has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Sauvin has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
cthu| has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
alfiemax has quit [Remote host closed the connection]
FastJack has quit [Ping timeout: 265 seconds]
FastJack has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
naxxatoe has joined #ruby
alex` has joined #ruby
alex` is now known as Guest80208
Guest80208 is now known as alex``
chalkmonster has joined #ruby
buckworst has quit [Quit: WeeChat 2.7]
_whitelogger_ has joined #ruby
_whitelogger has quit [Remote host closed the connection]
glytchbinary has quit [Quit: glytchbinary]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkstardev13 has quit [Ping timeout: 272 seconds]
fphilipe has quit [Ping timeout: 260 seconds]
clemens3 has quit [Quit: WeeChat 2.1]
darkstardevx has joined #ruby
TomyWork has joined #ruby
sdu has joined #ruby
schne1der has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
x0n has quit [Quit: ZNC - https://znc.in]
x0n has joined #ruby
vondruch has joined #ruby
fphilipe has joined #ruby
Intelo has joined #ruby
sdu has quit [Ping timeout: 260 seconds]
sdu has joined #ruby
fphilipe has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
AlHafoudh has joined #ruby
jenrzzz has joined #ruby
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
malibeg has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
chalkmonster has joined #ruby
conta1 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
lxsameer has joined #ruby
mikecmpbll has joined #ruby
FastJack has quit [Ping timeout: 265 seconds]
FastJack has joined #ruby
dinfuehr has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
fphilipe has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #ruby
wallace_mu has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
evert_ has quit [Quit: ZNC - https://znc.in]
evert has joined #ruby
wallace_mu has quit [Ping timeout: 272 seconds]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
chalkmonster has joined #ruby
fphilipe has joined #ruby
TvL2386_ has quit [Quit: leaving]
TvL2386 has joined #ruby
wallace_mu has joined #ruby
wallace__ has joined #ruby
wallace_mu has quit [Ping timeout: 256 seconds]
wallace__ has quit [Ping timeout: 256 seconds]
troulouliou_dev has joined #ruby
fphilipe has quit [Ping timeout: 256 seconds]
fphilipe has joined #ruby
linuus[m] has quit [Quit: killed]
qbrd[m] has quit [Quit: killed]
kp666[m] has quit [Quit: killed]
ellcs has joined #ruby
execat[m] has quit [Quit: killed]
sepp2k has quit [Quit: killed]
mistergibson[m] has quit [Quit: killed]
Fernando-Basso has joined #ruby
AlHafoudh has quit [Quit: ZNC - http://znc.in]
AlHafoudh has joined #ruby
AlHafoudh has quit [Quit: ZNC - http://znc.in]
AlHafoudh has joined #ruby
Intelo has quit [Remote host closed the connection]
lmns has quit [Quit: Ping timeout (120 seconds)]
Keltia has quit [Read error: Connection reset by peer]
lmns has joined #ruby
mahlon has quit [Ping timeout: 246 seconds]
lineus has quit [Remote host closed the connection]
akemhp has quit [Ping timeout: 240 seconds]
akemhp_ has joined #ruby
lineus has joined #ruby
conta1 has quit [Quit: conta1]
jenrzzz has joined #ruby
dostoyevsky has quit [Ping timeout: 268 seconds]
dostoyevsky has joined #ruby
Intelo has joined #ruby
mahlon has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
TzilTzal has joined #ruby
AlHafoudh has quit [Quit: ZNC - http://znc.in]
AlHafoudh has joined #ruby
fphilipe has quit [Ping timeout: 260 seconds]
AlHafoudh has quit [Quit: ZNC - http://znc.in]
AlHafoudh has joined #ruby
sdu has quit [Remote host closed the connection]
royal_screwup21 has joined #ruby
fphilipe has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 240 seconds]
execat[m] has joined #ruby
kp666[m] has joined #ruby
sepp2k has joined #ruby
linuus[m] has joined #ruby
turt2live has joined #ruby
qbrd[m] has joined #ruby
mistergibson[m] has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
fphilipe has joined #ruby
chalkmonster has joined #ruby
wallace_mu has joined #ruby
zlogan has joined #ruby
wallace_mu has quit [Ping timeout: 260 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
royal_screwup21 has joined #ruby
drincruz has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has quit [Ping timeout: 240 seconds]
chalkmonster has joined #ruby
drincruz has joined #ruby
sh7d has quit [Ping timeout: 268 seconds]
fercell has joined #ruby
akemhp_ has quit [Quit: Leaving]
burningserenity has joined #ruby
yokel has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
phaul has quit [Ping timeout: 272 seconds]
royal_screwup21 has quit [Remote host closed the connection]
lucasb has joined #ruby
jenrzzz has joined #ruby
claudiuinberlin has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
turbo_choo has quit [Read error: Connection timed out]
turbo_choo has joined #ruby
stryek has joined #ruby
FastJack has quit [Ping timeout: 265 seconds]
FastJack has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
jinie has quit [Ping timeout: 268 seconds]
jinie has joined #ruby
tpanarch1st has joined #ruby
jcalla has joined #ruby
bsdbandit-01 has joined #ruby
jenrzzz has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
hutch has joined #ruby
ratah has joined #ruby
wallace_mu has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
x0n has quit [Ping timeout: 265 seconds]
wallace_mu has quit [Ping timeout: 256 seconds]
jinie has quit [Ping timeout: 260 seconds]
jinie has joined #ruby
_whitelogger has joined #ruby
Helenah has quit [Ping timeout: 256 seconds]
<ratah> Apart from NodeBB requiring JavaScript for its front-end, which in itself is a huge security risk -- while Thredded is fully functional without. Any thoughts?
ropeney has quit [Quit: ZNC 1.7.4 - https://znc.in]
Helenah has joined #ruby
alfiemax has joined #ruby
alfiemax_ has joined #ruby
nibbo has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 268 seconds]
Ai9zO5AP has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
i9zO5AP has quit [Ping timeout: 272 seconds]
Axy has quit [Ping timeout: 268 seconds]
Helenah has quit [Read error: Connection reset by peer]
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
ropeney has joined #ruby
jetpack_joe has joined #ruby
grr12314 has joined #ruby
Helenah has joined #ruby
<grr12314> hi, when executing some shell command with backticks, how can i make part of the command be dynamic/variable ?
<_phaul> just normal #{} interpolation?
<_phaul> like in ""
john2496 has joined #ruby
<_phaul> &>> a = 'ls -a'; `#{a}`
<rubydoc> # => ".\n..\n" (https://carc.in/#/r/8iy4)
<grr12314> thank you
<_phaul> yw
akemhp has joined #ruby
jinie has quit [Ping timeout: 272 seconds]
<grr12314> &>> `ls -ld #{`pwd`}`
<rubydoc> # => "drwxrwxrwt 2 root ruby 40 Feb 7 14:50 .\n" (https://carc.in/#/r/8iy6)
<ratah> Anybody here know much about security?
<grr12314> &>> `pwd`
<rubydoc> # => "" (https://carc.in/#/r/8iy8)
AlHafoudh has quit [Ping timeout: 256 seconds]
bsdbandit-01 has quit [Ping timeout: 240 seconds]
x0n has joined #ruby
alfiemax has joined #ruby
nibbo has joined #ruby
Helenah has quit [Ping timeout: 272 seconds]
Helenah has joined #ruby
DaRock has quit [Ping timeout: 260 seconds]
ep4sh2k___ has joined #ruby
malibeg has quit [Quit: Leaving]
jinie has joined #ruby
spacesuitdiver has joined #ruby
duderonomy has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnk has joined #ruby
<lmat> wow, strong parameters are so confusing.
impermanence has joined #ruby
<lmat> params.require(:user); returns the slice of params keyed with :user.
wallace_mu has joined #ruby
<lmat> params.permit(:user); returns the params with everything but :user removed.
TomyWork has quit [Remote host closed the connection]
<lmat> What if I want to require "name" and "email" parameters INSIDE the user value, and permit "address" inside the user object?
<lmat> I thought this was a validation routine, but require unexpectedly (to me) churns out a modified dictionary!
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lmat> params.require(:user => [:name, :email]).permit(:user => [:address]) seems reasonable, but totally incorrect.
<lmat> "...churns out a modified dictionary!" I actually did expect it to modify the dictionary, but not by changing the root object. I thought .permit would trim elements that shouldn't be in there (which it does), and .require would not modify params at all if everything's okay, or raise an exception if something's missing.
TzilTzal has quit [Quit: Leaving.]
chalkmonster has quit [Quit: WeeChat 2.7]
conta1 has joined #ruby
conta1 has quit [Client Quit]
meinside has quit [Quit: Connection closed for inactivity]
grr12314 has quit [Remote host closed the connection]
SeepingN has joined #ruby
<lmat> Okay, I think I'm ready to post a cogent question...sort of ^_^
<lmat> My UserController has params.require(:user).permit(:id, :name) That means I'm expecting params that look like this: { user: { id: 1, name: 'steve' } } right?
<lmat> So if I get params like this: {id: 1, name: 'steve'} it won't work. The error is "param is missing or the value is empty: user", right?
<havenwood> lmat: yup
fercell has quit [Quit: WeeChat 2.7]
turbo_choo has quit [Ping timeout: 240 seconds]
<lmat> havenwood: When I user = User.find_by(email: params[:email]); redirect_to user; it's passing params like {id: 1}
ttoocs has quit [Ping timeout: 240 seconds]
freshmaker666 has quit [Quit: ZNC 1.7.2 - https://znc.in]
freshmaker666 has joined #ruby
freshmaker666 has joined #ruby
<lmat> How do I get it to pass {user: {id: 1} } instead?
<lmat> I tried this: redirect_to user, params: {user: user.id} but when I follow_redirect! the redirect is to /users/1 and since the route is /users/:id, I'm only getting params {id: 1}. This all makes sense...but how do I make it work? ^_^
spacesuitdiver has joined #ruby
chalkmonster has joined #ruby
spacesuitdiver has quit [Remote host closed the connection]
spacesuitdiver has joined #ruby
<lmat> My first response would be to remove .require(:user) . That's no good though because another controller extends this one.
<lmat> (that other controller is invoice, and probably many others)
<lmat> So, when an invoice is requested, :id is set to the invoice ID, but when the user controller checks for the current user, the :id is an invoice ID! So checking for the user goes sideways.
poontangmessiah has joined #ruby
<lmat> Seems like the best way then is to require params like this: { user: {id:1}, invoice: {id:1} }
jinie_ has joined #ruby
jinie has quit [Ping timeout: 272 seconds]
jinie_ is now known as jinie
claudiuinberlin has joined #ruby
johnny56_ has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
Helenah has quit [Read error: Connection reset by peer]
Helenah has joined #ruby
poontangmessiah has quit [Quit: WeeChat 2.7]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
<lmat> havenwood: GOT IT! \o/ my redirect_to needed to look like this: redirect_to users_path(user, params: {user: { id: user.id} })
<lmat> I had done redirect_to user, params: {user: {id: user.id} } but that wasn't any good.
renich has joined #ruby
<lmat> Well, that was close. That was taking me to the index action. I needed the show action, so this works; redirect_to user_path(user, params: {user: { id: user.id} })
impermanence14 has joined #ruby
impermanence14 has quit [Remote host closed the connection]
impermanence98 has joined #ruby
impermanence98 has quit [Remote host closed the connection]
<lmat> win 1
mikecmpbll has quit [Quit: inabit. zz.]
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
Helenah has quit [Ping timeout: 272 seconds]
conta1 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta1 has quit [Client Quit]
leitz has joined #ruby
ellcs has quit [Ping timeout: 272 seconds]
oncall-pokemon has joined #ruby
Helenah has joined #ruby
<leitz> Anyone know if there's a way to remove a gem from RubyGems?
s3nd1v0g1us has joined #ruby
zlogan has quit [Remote host closed the connection]
zlogan has joined #ruby
claudiuinberlin has joined #ruby
teardown has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby
wildtrees has joined #ruby
dStromboli has joined #ruby
Helenah has quit [Ping timeout: 272 seconds]
cthulchu has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
gix has joined #ruby
sss has quit [Quit: Textual IRC Client: www.textualapp.com]
FastJack has quit [Ping timeout: 265 seconds]
FastJack has joined #ruby
<havenwood> leitz: Yes, you can yank gems. You have to yank every published version.
Helenah has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
<leitz> havenwood, thanks! I'm going to roll one into another, and want to keep things clean.
<havenwood> leitz: Keep in mind, the old name will be unavailable for a period.
<leitz> After I fix a test. [:upper:] or [:alpha:] aren't UTF-8 compatible, or my data source is wonky.
lxsameer has quit [Ping timeout: 240 seconds]
<leitz> havenwood, that'll be okay, I already have the other gem in place.
<havenwood> leitz: I'd unfix that test. :P
jinie has quit [Ping timeout: 272 seconds]
<leitz> havenwood, I'm just trying to match names. Some pass, some don't. I thought upper and alpha were utf-8 okay, but I'm not sure.
jaequery has joined #ruby
<leitz> "Nanci" seems normal, but failed the test.
john2496 has quit [Remote host closed the connection]
jinie has joined #ruby
nowhere_man has quit [Ping timeout: 272 seconds]
alex`` has quit [Quit: WeeChat 2.7]
alex` has joined #ruby
alex` is now known as Guest41381
Guest41381 is now known as alex``
jinie has quit [Client Quit]
jinie has joined #ruby
jaequery has quit [Remote host closed the connection]
Intelo has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
jaequery has quit [Remote host closed the connection]
NODE has quit [Quit: changing servers]
bvdw has quit [Read error: Connection reset by peer]
NODE has joined #ruby
jaequery has joined #ruby
bvdw has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
john2496 has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
clemens3 has joined #ruby
NODE has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
fphilipe has joined #ruby
cthulchu has quit [Read error: Connection reset by peer]
AlHafoudh has joined #ruby
AlHafoudh has quit [Remote host closed the connection]
chalkmonster has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
fphilipe has quit [Read error: Connection reset by peer]
chalkmonster has quit [Quit: WeeChat 2.7]
howdoi has joined #ruby
jmcgnh has joined #ruby
renich_ has joined #ruby
cthulchu has joined #ruby
renich has quit [Ping timeout: 268 seconds]
renich has joined #ruby
renich_ has quit [Ping timeout: 272 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sauvin has quit [Read error: Connection reset by peer]
<havenwood> &>> 'Nanci'.match?(/[[:upper:]][[:alpha:]]*/)
conta1 has joined #ruby
<rubydoc> # => true (https://carc.in/#/r/8j0j)
<havenwood> leitz: You're missing square brackets.
<havenwood> leitz: [[:upper:]] rather than [:upper:]
lucasb has quit [Quit: Connection closed for inactivity]
<bougyman> ARGH hating this lack of ruby docs in the red-arrow tools.
<havenwood> bougyman: red-arrow tools?
<bougyman> Just trying to figure out how to add a LogicalType to the parquet schema.
<bougyman> havenwood: apache-arrow glib bindings.
<havenwood> ahh
jmcgnh has quit [Ping timeout: 240 seconds]
<bougyman> which means there's not even ruby c extension code to look at for docs.
<bougyman> it uses glib introspection.
alexherbo2 has joined #ruby
<bougyman> wish there were a pure ruby implementation of this stuff.
conta1 has quit [Client Quit]
<bougyman> or even python.
<bougyman> or _anything_ but C++
<bougyman> I have to guess at how the glib introspection presents objects and stuff.
<bougyman> pry's tabcomplete has been the most useful tool, heh.
<leitz> havenwood, thanks!
<leitz> Oddly, though, it often worked.
jmcgnh has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 256 seconds]
akemhp has quit [Quit: Leaving]
akemhp has joined #ruby
jaequery has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jaequery has joined #ruby
nofxx has joined #ruby
nofxx_ has quit [Ping timeout: 260 seconds]
drincruz has quit [Ping timeout: 260 seconds]
jaequery has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
alexherbo21 has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo21 is now known as alexherbo2
alex`` has quit [Ping timeout: 256 seconds]
alex`` has joined #ruby
lxsameer has joined #ruby
banisterfiend has joined #ruby
mikdusan has joined #ruby
<mikdusan> hi. 'optparse' has builtin switch handler for '-v', '--version'; is there any way I can disable/remove builtin handlers?
<havenwood> mikdusan: It looks like you could override the delete the version proc: OptionParser::Officious.delete('version')
<havenwood> mikdusan: GNU standards do require a --version flag, fwiw.
jaequery has joined #ruby
<havenwood> "All programs should support two standard options: ‘--version’ and ‘--help’."
renich has quit [Read error: Connection reset by peer]
burningserenity has quit [Quit: Leaving.]
stooj has quit [Quit: ZNC 1.7.5 - https://znc.in]
stooj has joined #ruby
<mikdusan> havenwood: thanks I'll try working with OptionParser::Officious. I have a front-end parser to one or more backends and am interested in pass-thru whatever is not picked off by front, with out resorting to '--' handling
jaequery has quit [Ping timeout: 240 seconds]
mikdusan has left #ruby ["WeeChat 2.5"]
renich has joined #ruby
hiroaki has joined #ruby
fphilipe has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> What readline file does irb require? Using CentOS 7, and readline worked the other day; prior to a gem update.
fphilipe has quit [Ping timeout: 268 seconds]
wildtrees has quit [Remote host closed the connection]
fphilipe has joined #ruby
wildtrees has joined #ruby
jaequery has joined #ruby
ChmEarl has joined #ruby
<dStromboli> Hey all, I'm working on setting the CSS for a partiular HTML element, and I found an answer but I'm not quite sure what I'm looking at. This goes in the .haml file: %th{:class => @title_header}
<dStromboli> I know that @title_header is a controller variable, but what's the deal with :class, and why's it in brackets? I'd appreciate an API page link or something similar because I'm having a hard time figuring out what to search. Many thanks.
jaequery has quit [Ping timeout: 256 seconds]
s2013 has joined #ruby
zapata has quit [Quit: WeeChat 2.7]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
john2496 has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
cd has joined #ruby
sergioro has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
teej has joined #ruby
ratah has quit []
cthulchu has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
<havenwood> dStromboli: `:class` is a Symbol, and it's used here as the key for a Hash.
<havenwood> dStromboli: You could write it: file: %th{class: @title_header}
schne1der has quit [Ping timeout: 272 seconds]
<dStromboli> Where's the hashmap defined?
<havenwood> dStromboli: class: @title_header
<dStromboli> havenwood: Oh, gotcha. Thanks.
ratah has joined #ruby
<ratah> That feeling when you realize you've learned in the Rails Guide the hard way
<ratah> Should have just read the guides in the first place :)
<ratah> Helenah: or what?
<ratah> Helenah: hey what was your soundcloud again?
<ratah> Helenah: mines https://soundcloud.com/tepstad oops thats my sister
<ratah> made in ruby (c) 2020
cthulchu has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
DaRock has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
im0nde has joined #ruby
im0nde_ has quit [Ping timeout: 256 seconds]
impermanence has quit [Remote host closed the connection]
pwnd_nsfw has quit [Read error: Connection reset by peer]
<ratah> * that feeling when you realize you've learned something the hard way, that you realize you could have learned through the rails guide the easy way
<ratah> yeah that's it
<ratah> man i wish english was my first language
<ratah> unfortunately ruby is my first language :D
<ratah> * that feeling when you realize you've learned something the hard way that you could have learned through the rails guides the easy way
leitz has quit [Quit: Leaving]
<ratah> yeah there we go
jenrzzz has joined #ruby
<ratah> why was this so hard to formulate. english sucks VIKING INFLUENCE on the English Language! - https://www.youtube.com/watch?v=CDAU3TpunwM
<havenwood> ratah: require 'English'
<ratah> hehe :)
davidw has quit [Ping timeout: 240 seconds]