adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.2, 3.1.4, 3.0.6, 2.7.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
yaw has quit [Ping timeout: 268 seconds]
Lotte has joined #ruby
Shortstop has joined #ruby
<Shortstop> Can anyone here please help me figure out why a specific library is not being able to be installed as a result of a Rails + Vue based template from GitHub?
<Shortstop> Related Command I Used:
<Shortstop> $ rails new clickclock --skip-webpack-install --skip-javascript -d postgresql -m https://raw.githubusercontent.com/IsraelDCastro/rails-vite-tailwindcss-template/master/template.rb --vue
<Shortstop> Related error:
<Shortstop> Could not open library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory
<Shortstop> Full traceback:
<Shortstop> Related GitHub repo I tried using the README instructions from:
incont has quit [Ping timeout: 255 seconds]
subgod23 has joined #ruby
Lotte has quit [Ping timeout: 246 seconds]
<adam12> Shortstop: You need libvips installed. Could try installing through homebrew if you're on a mac? brew install vips
<Shortstop> I'm on Linux aka Linux Mint, but yeah I JUST found this GitHub issues page funnily enough, so thank you for the heads up
<Shortstop> Currently waiting for the results of the related dependency, "apt-get install libvips libvips-dev" to be installed
<Shortstop> Sweet, it was able to do that command without an error, thanks for the common sense tip
<Shortstop> Go figure
<Shortstop> Never knew about that library though, will check it out regardless. Was just trying to use a template so I can quickly get a Vue.js app going
<Shortstop> thanks adam12 a ton
<adam12> Shortstop: Cheers.
subgod23 has quit [Ping timeout: 246 seconds]
yaw has joined #ruby
Shortstop has quit [Quit: Client closed]
unpros61 has joined #ruby
yaw has quit [Ping timeout: 255 seconds]
yaw has joined #ruby
yaw has quit [Ping timeout: 265 seconds]
helveticamono has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 260 seconds]
helveticamono has joined #ruby
yaw has joined #ruby
agent_white has joined #ruby
razetime has joined #ruby
eddof13 has joined #ruby
yaw has quit [Ping timeout: 255 seconds]
Sankalp has quit [Ping timeout: 250 seconds]
Sankalp has joined #ruby
razetime1 has joined #ruby
razetime has quit [Ping timeout: 276 seconds]
razetime1 is now known as razetime
yaw has joined #ruby
yaw has quit [Ping timeout: 248 seconds]
unpros61 has quit [Ping timeout: 268 seconds]
yaw has joined #ruby
jhass has quit [Ping timeout: 250 seconds]
jhass has joined #ruby
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #ruby
yaw has quit [Ping timeout: 260 seconds]
yaw has joined #ruby
yaw has quit [Ping timeout: 252 seconds]
shokohsc2 has joined #ruby
shokohsc has quit [Ping timeout: 276 seconds]
shokohsc2 is now known as shokohsc
yaw has joined #ruby
yaw has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
razetime has quit [Ping timeout: 268 seconds]
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
yaw has joined #ruby
MalusVulgaris has joined #ruby
sphex has quit [Remote host closed the connection]
yaw has quit [Ping timeout: 255 seconds]
gonix has joined #ruby
yaw has joined #ruby
yaw has quit [Ping timeout: 265 seconds]
razetime has joined #ruby
yaw has joined #ruby
yaw has quit [Ping timeout: 276 seconds]
yaw has joined #ruby
gonix has quit [Ping timeout: 250 seconds]
yaw has quit [Ping timeout: 260 seconds]
yaw has joined #ruby
yaw has quit [Ping timeout: 276 seconds]
markov_twain has quit [Quit: markov_twain]
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #ruby
FetidToot has quit [Quit: Ping timeout (120 seconds)]
FetidToot has joined #ruby
Cache_Money has joined #ruby
yaw has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
Linux_Kerio has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
yaw has quit [Ping timeout: 248 seconds]
yaw has joined #ruby
yaw has quit [Ping timeout: 248 seconds]
eddof13 has joined #ruby
teclator has joined #ruby
yaw has joined #ruby
yaw has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
yaw has joined #ruby
razetime has quit [Quit: See You Space Cowboy]
Linux_Kerio has quit [Quit: Konversation terminated!]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
yaw has quit [Ping timeout: 268 seconds]
otisolsen70 has joined #ruby
yaw has joined #ruby
_ht has joined #ruby
Guest8 has joined #ruby
AndreYuhai has joined #ruby
<AndreYuhai> Hi, how do they get those fields in this article mentioned? https://tanzu.vmware.com/content/blog/avoid-using-fixture-file-upload-with-factorygirl-and-paperclip
<AndreYuhai> Especially the ones supporting_documentation_file_name, supporting_documentation_content_type etc.
<AndreYuhai> I've got a column that's called image_file, I can't do the same.
henk has quit [*.net *.split]
egality has quit [*.net *.split]
nektro has quit [*.net *.split]
Pixi has quit [*.net *.split]
brw has quit [*.net *.split]
pvalenta has quit [*.net *.split]
miah has quit [*.net *.split]
peder has quit [*.net *.split]
phenom has quit [*.net *.split]
micro has quit [*.net *.split]
ule has quit [*.net *.split]
balo_ has quit [*.net *.split]
wmoxam has quit [*.net *.split]
rapha has quit [*.net *.split]
cornett has quit [*.net *.split]
depesz has quit [*.net *.split]
sol has quit [*.net *.split]
PedroG1 has quit [*.net *.split]
henk has joined #ruby
rapha has joined #ruby
micro has joined #ruby
cornett has joined #ruby
ule has joined #ruby
sol has joined #ruby
nektro has joined #ruby
peder has joined #ruby
depesz has joined #ruby
brw has joined #ruby
micro has joined #ruby
micro has quit [Changing host]
rapha has quit [Changing host]
rapha has joined #ruby
wmoxam has joined #ruby
PedroG1 has joined #ruby
egality has joined #ruby
pvalenta has joined #ruby
Pixi has joined #ruby
phenom has joined #ruby
miah has joined #ruby
balo has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
yaw has quit [Ping timeout: 276 seconds]
yaw has joined #ruby
crespire1 has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
PaulW2U has joined #ruby
yaw has quit [Ping timeout: 248 seconds]
crespire1 has quit [Ping timeout: 256 seconds]
crespire has joined #ruby
c10l has quit [Quit: See ya! o/]
c10l has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
yaw has joined #ruby
jvalleroy has joined #ruby
Guest8 has quit [Ping timeout: 260 seconds]
yaw_ has joined #ruby
yaw has quit [Ping timeout: 276 seconds]
desnudopenguino has quit [Quit: desnudopenguino]
agent_white has quit [Quit: later]
hightower2 has quit [Ping timeout: 250 seconds]
Guest9179 has joined #ruby
Guest9179 has quit [Client Quit]
razetime has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
MalusVulgaris has quit [Ping timeout: 276 seconds]
weaksauce has joined #ruby
weaksauc_ has quit [Ping timeout: 260 seconds]
gcd has quit [Quit: Lost terminal]
<adam12> AndreYuhai: You're using paperclip for file attachments?
MalusVulgaris has joined #ruby
razetime has quit [Quit: See You Space Cowboy]
Guest8 has joined #ruby
<AndreYuhai> adam12: Well, I am not sure I know we're using carrierwave :D It's been a while since I touched Ruby. How I fixed it in test was basically to use update_column(:image_file, nil). That seemed to be easiest and most straight forward way :D
<adam12> AndreYuhai: Ah. Vrey good.
gcd has joined #ruby
henk has left #ruby [#ruby]
razetime has joined #ruby
yaw has joined #ruby
yaw_ has quit [Ping timeout: 252 seconds]
razetime has quit [Quit: See You Space Cowboy]
Guest8 has quit [Quit: Client closed]
razetime has joined #ruby
alligator has joined #ruby
yaw has quit [Ping timeout: 248 seconds]
thecliguy has quit [Ping timeout: 276 seconds]
alligator has quit [Quit: Client closed]
yaw has joined #ruby
yaw has quit [Ping timeout: 250 seconds]
MalusVulgaris has quit [Ping timeout: 246 seconds]
yaw has joined #ruby
razetime has quit [Remote host closed the connection]
razetime has joined #ruby
shokohsc4 has joined #ruby
shokohsc has quit [Ping timeout: 250 seconds]
shokohsc4 is now known as shokohsc
yaw has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
hightower2 has joined #ruby
yaw has joined #ruby
razetime has quit [Quit: See You Space Cowboy]
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
rvalue has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
yaw has quit [Ping timeout: 250 seconds]
MalusVulgaris has joined #ruby
yaw has joined #ruby
yaw has quit [Ping timeout: 276 seconds]
razetime has joined #ruby
razetime has quit [Client Quit]
rvalue has joined #ruby
yaw has joined #ruby
DHH3_147 has joined #ruby
<DHH3_147> Hello rubyists!
<DHH3_147> I have a small query regarding string quoting
<DHH3_147> Single quotes return literals, Eg: 'Brave\.'
<DHH3_147> Double quotes interpolate
<DHH3_147> So a literal representation of backslash should be '\'
<DHH3_147> ^But, on ruby 3.2.2, inside irb, '\' isnt interpreted as a literal backslash
<adam12> DHH3_147: Yeah, that's kinda bizarre?
<adam12> I wonder if older versions of Ruby treat it literally.
<adam12> Funny, ?\ doesn't give me what I'd want either....
infinityfye has joined #ruby
<DHH3_147> ruby 3.2.2
<DHH3_147> [username@hostname rails0]$ irb
<DHH3_147> >> puts "\\"
<DHH3_147> \
<DHH3_147> => nil
<DHH3_147> >> puts '\\'
<DHH3_147> \
<DHH3_147> => nil
<DHH3_147> >>
<DHH3_147> I was expecting 2 backslashes for the single quoted put ess
<DHH3_147> Ditto behavior on version ruby 3.0.5p211 too
yaw has quit [Ping timeout: 240 seconds]
<DHH3_147> >> '\.' == '\\.'
<DHH3_147> => true
<DHH3_147> >>
yaw has joined #ruby
yaw has quit [Ping timeout: 240 seconds]
yaw has joined #ruby
yaw_ has joined #ruby
yaw has quit [Ping timeout: 252 seconds]
<DHH3_147> bye
DHH3_147 has quit [Quit: Client closed]
dviola has quit [Ping timeout: 252 seconds]
hightower2 has quit [Ping timeout: 265 seconds]
yaw has joined #ruby
yaw_ has quit [Ping timeout: 240 seconds]
markong has joined #ruby
standp3 has joined #ruby
dviola has joined #ruby
standp3 has quit [Ping timeout: 240 seconds]
elemen has joined #ruby
elemen has quit [Ping timeout: 265 seconds]
yaw has quit [Ping timeout: 240 seconds]
AndreYuhai has quit [Ping timeout: 248 seconds]
CrazyEddy has quit [Ping timeout: 252 seconds]
markov_twain has joined #ruby
yaw has joined #ruby
yaw has quit [Ping timeout: 248 seconds]
CrazyEddy has joined #ruby
gr33n7007h has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
polishdub has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Client closed]
polishdub has joined #ruby
yaw has joined #ruby
AndreYuh2i has joined #ruby
yaw has quit [Ping timeout: 240 seconds]
AndreYuh2i has quit [Ping timeout: 276 seconds]
xuochi has joined #ruby
yaw has joined #ruby
xuochi has quit [Quit: leaving]
yaw has quit [Ping timeout: 255 seconds]
MalusVulgaris1 has joined #ruby
MalusVulgaris has quit [Ping timeout: 240 seconds]
MalusVulgaris1 is now known as MalusVulgaris
yaw has joined #ruby
desnudopenguino has joined #ruby
yaw has quit [Ping timeout: 240 seconds]
yaw has joined #ruby
jhass has quit [Quit: Bye]
yaw has quit [Ping timeout: 240 seconds]
dviola has quit [Ping timeout: 240 seconds]
Rousse has joined #ruby
yaw has joined #ruby
jhass has joined #ruby
dviola has joined #ruby
<myappie> Worked a bit on a Falcon logo but v2 is going to be thousands of times better: https://imgur.com/a/sAaYsr3
markov_twain has quit [Quit: markov_twain]
gcd has quit [Quit: leaving]
Fridtjof has quit [Ping timeout: 265 seconds]
<adam12> myappie: nice
gcd has joined #ruby
MalusVulgaris has quit [Quit: MalusVulgaris]
Fridtjof has joined #ruby
PaulW2U has left #ruby [#ruby]
yaw_ has joined #ruby
yaw has quit [Ping timeout: 240 seconds]
yaw_ has quit [Ping timeout: 255 seconds]
debate has joined #ruby
Rousse has quit [Ping timeout: 256 seconds]
markong has quit [Ping timeout: 240 seconds]
AndreYuhai has joined #ruby
autodev has joined #ruby
AndreYuhai has quit [Ping timeout: 240 seconds]
miah has quit [Quit: WeeChat 3.6]
miah has joined #ruby
miah has quit [Read error: Connection reset by peer]
teclator has quit [Ping timeout: 260 seconds]
dannyAAM has quit [Ping timeout: 276 seconds]
AndreYuh2i has joined #ruby
dannyAAM has joined #ruby
AndreYuh2i has quit [Ping timeout: 276 seconds]
hightower2 has joined #ruby
moldorcoder7 has joined #ruby
Linux_Kerio has quit [Ping timeout: 240 seconds]
debate has quit [Ping timeout: 255 seconds]
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
dviola has quit [Ping timeout: 246 seconds]
autodev has quit [Remote host closed the connection]
<polychromata> pandabot: rb %?%%%%?%??%??
<polychromata> how does this work? :o
<polychromata> %?? can be a string delimiter…
AndreYuh2i has joined #ruby
<polychromata> so as far as I can tell, it's equivalent to "%%%%" "" ""
AndreYuh2i has quit [Ping timeout: 240 seconds]
FetidToot9 has joined #ruby
FetidToot has quit [Ping timeout: 255 seconds]
FetidToot9 is now known as FetidToot
_ht has quit [Quit: _ht]
FetidToot has quit [Ping timeout: 276 seconds]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Read error: Connection reset by peer]
FetidToot has joined #ruby
tomtmym has quit [Quit: Gone.]
bambanxx has joined #ruby
infinityfye has quit [Ping timeout: 276 seconds]
miah has joined #ruby
autodev has joined #ruby
dviola has joined #ruby
<gr33n7007h> polychromata: ripper is your friend 😃
<gr33n7007h> >> require 'ripper'; Ripper.lex('%?%%%%?%??%??').map{ _1.last(3).shift(2) }
<ruby[bot]> gr33n7007h: # => (https://carc.in/#/r/ev25)
<gr33n7007h> >> require 'ripper'; Ripper.lex('%?%%%%?%??%??').map{ _1.last(3).shift(2) }
<ruby[bot]> gr33n7007h: # => [[:on_tstring_beg, "%?"], [:on_tstring_content, "%%%%"], [:on_tstring_end, "?"], [:on_op, "%"], [:on ...check link for more (https://carc.in/#/r/ev26)
autodev has quit [Remote host closed the connection]
<gr33n7007h> >> %q{%%%%}.%(??).%(??) # this might make easier for you to understand
<ruby[bot]> gr33n7007h: # => "%" (https://carc.in/#/r/ev27)
<gr33n7007h> >> "%%%%".%(??).%(??) # or this
<ruby[bot]> gr33n7007h: # => "%" (https://carc.in/#/r/ev28)
sphex has joined #ruby
<gr33n7007h> ? is for character literal e.g ?? => "?" or ?A => "A"
<gr33n7007h> the last two are method calls String#%
otisolsen70 has quit [Quit: Leaving]
markong has joined #ruby
ur5us has joined #ruby
helge has quit [Ping timeout: 250 seconds]
AndreYuhai has joined #ruby
AndreYuhai has quit [Ping timeout: 276 seconds]
autodev has joined #ruby
autodev has quit [Client Quit]
helge has joined #ruby
infinityfye has joined #ruby
shokohsc has quit [Ping timeout: 255 seconds]
shokohsc has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
broot has joined #ruby
broot_ has joined #ruby
broot_ has quit [Remote host closed the connection]
<joto> Can rails questions be asked in here?
hrberg has quit [Quit: No Ping reply in 180 seconds.]
<myappie> joto: I think you'll be forgiven :)
<joto> haha okay. I'm going to try out one last thing before asking
infinityfye has quit [Ping timeout: 252 seconds]
hrberg has joined #ruby
<myappie> adam12: Thank you man!
markong has quit [Ping timeout: 240 seconds]
<joto> I have two models Template and Revision where Template has_many :revisions. Now, when creating a new Template+Revision I get the following: "Unpermitted parameter: :revisions.". But I have permitted it via: params.require(:template).permit([:name, :revisions]).
<adam12> joto: revisions_attributes maybe?
<joto> I did try it out to no avail but gonna do it again just for sanity
<joto> To be more complet, this is how the parameters are getting posted into the controller: Unpermitted parameter: :revisions. Context: params: {"authenticity_token"=>"[FILTERED]", "template"=>{"name"=>"test", "revisions"=>{"comment"=>"Initial version"}}, "controller"=>"templates", "action"=>"create"} }
<joto> To be more complete*
gr33n7007h has quit [Ping timeout: 276 seconds]
markong has joined #ruby
broot has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
fercell has joined #ruby
<ox1eef_> Try params.require(:templates).permit(:name, :revisions).
<ox1eef_> Or: params.require(:template).permit(:name, revisions: [:comment]).
AndreYuh2i has joined #ruby
<ox1eef_> It doesn't quite make sense though. "revisions" should be an array of Hash objects if it is for a has many association.
<joto> Thanks ox1eef_, going to try it out. I am generation the input field like so: template[revisions][comment]. If there is a way to write it properly so that rails will get passed an actual array, then let me know. I don't know how to write that in the html.
<joto> generating*
AndreYuh2i has quit [Ping timeout: 240 seconds]
markong has quit [Ping timeout: 255 seconds]
<joto> Like so in the html: <input type="hidden" name="template[revisions][comment]" value="Initial version">
<joto> ox1eef_, your second suggestion gave me the following: ActiveRecord::AssociationTypeMismatch (Revision(#334520) expected, got ["comment", "Initial version"] which is an instance of Array(#2400)):
<joto> so yes, I believe I am doing it wrong in the html but not sure how to write it properly
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
<weaksauce> joto this might be helpful to reference
<weaksauce> the conventions are not too crazy
bambanxx has quit [Client Quit]
<joto> ah great. thanks!
desnudopenguino1 has joined #ruby
<weaksauce> looks like you probably also want to brush up on the strong parameters section as that trips up people too
<weaksauce> joto ^
<joto> yeah, definitly will need to read through that too.
<weaksauce> it's good you are reading them... i've seen a lot of people bang their head at the wall for hours trying to debug something when taking 10 min to read a relevant section solves it for them instantly
<weaksauce> (myself included at times)