pvalenta_ has quit [Remote host closed the connection]
pvalenta has joined #ruby
pvalenta has quit [Changing host]
pvalenta has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
walez_ has joined #ruby
Vonter has joined #ruby
markong has joined #ruby
Hobbyboy has quit [Quit: The BNC has broken!]
jenrzzz_ has joined #ruby
walez_ has quit [Remote host closed the connection]
walez_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
walez_ has quit [Remote host closed the connection]
walez_ has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
Paris has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
<joto>
I was wondering, now that I installed Turbo in my Rails web app, where would this code need to go: window.$(function() { const $ = window.$; $("#root .toast").toast({ delay: 5000 }).toast("show"); }. It seems to not work anymore. Only when I put the "toast" functionality within an eventListener that listens for "turbo:load", it starts working
<joto>
again. But I honestly don't know whether that would be best practice or just a hacky way of doing it :-).
A_Dragon is now known as Festive_Derg
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
xlymian has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
Linux_Kerio has quit [Ping timeout: 252 seconds]
Linux_Kerio has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
Paris has quit [Quit: quit]
CrazyEddy has joined #ruby
markong has quit [Remote host closed the connection]
graywolf has joined #ruby
m_antis has joined #ruby
jenrzzz_ has joined #ruby
walez_ has quit [Remote host closed the connection]
walez_ has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
caedmon has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
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
jenrzzz_ has joined #ruby
Rounin has quit [Remote host closed the connection]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
CrazyEddy has quit [Ping timeout: 255 seconds]
Hobbyboy has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
xlymian has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz_ has joined #ruby
swine_ has joined #ruby
<swine_>
hi, i'm trying to modify an old ror codebase that's generating url addresses incorrect. i see a file that appears to define the logic for the appropriate set of routes and i see some code like this: row :results_imported do raw("#{event.results.count} results | #{link_to('Upload Data', upload_data_admin_event_url(event))}")
<swine_>
i can find no other reference to "upload_data_event_admin_event_url" anywhere else in the codebase
jenrzzz_ has quit [Ping timeout: 256 seconds]
smp_ has joined #ruby
jenrzzz_ has joined #ruby
smp has quit [Ping timeout: 268 seconds]
smp_ is now known as smp
CrazyEddy has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
Linux_Kerio has quit [Ping timeout: 245 seconds]
___nick___ has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
<weaksauce>
swine_ check the output of `rails routes`
<weaksauce>
should have that helper listed
<swine_>
weaksauce, what would i be looking for exactly?
<weaksauce>
though without the _url
<weaksauce>
one to see if that url helper exists
<swine_>
i don't see it. i grepped through the entire codebase
<weaksauce>
it's dynamic and not static in your codebase
<swine_>
it's not there
<swine_>
the output from "routes" is weird though. it's listing some files and prompting me to overwrite them
<weaksauce>
how old is this?
<weaksauce>
could be rake routes if it's quite old
<swine_>
over a decade
<swine_>
ruby 1.8.7
<swine_>
Could not find rake-0.9.2.2 in any of the sources is what i see
CrazyEddy has left #ruby [#ruby]
CrazyEddy has joined #ruby
<weaksauce>
bundle exec rake routes is probably what you need at that point
<weaksauce>
that is super super old btw...
<swine_>
same output
<weaksauce>
which rails is that?
<swine_>
2.3.11 it seems
jenrzzz_ has quit [Ping timeout: 255 seconds]
<weaksauce>
at this point it could be that 2.3 didn't include the url/path helpers in routes or some gem is adding it somehow
<weaksauce>
i'd read the docs for 2.3 and see what's up
<weaksauce>
i see the other chat is giving you basically the same advice
<swine_>
yeah, i'm not really sure what to do with this advice. i don't have a lot of experience with ruby or rails. some understanding of how this stuff is generated seems like it would be helpful
<swine_>
since searching through the codebase doesn't seem to yield much