<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>
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]
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
<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]
<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
<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