Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
grenierm has joined #ruby
grenierm has quit [Quit: Client closed]
mange has quit [Ping timeout: 260 seconds]
shuvarek has joined #ruby
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
teclator has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
schne1der has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
grenierm has joined #ruby
Paris has joined #ruby
jenrzzz_ has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
Paris has quit [Quit: quit]
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
Furai has quit [Quit: WeeChat 4.1.2]
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
Furai has joined #ruby
Guest93 has joined #ruby
<Guest93>
hello
Guest93 has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
aesthetikx has quit [Ping timeout: 256 seconds]
pgib has quit [Quit: 00 PC LOAD LETTER]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Linux_Kerio has quit [Ping timeout: 264 seconds]
u0_a368 has joined #ruby
<u0_a368>
hi
u0_a368 has quit [Client Quit]
u0_a368 has joined #ruby
u0_a368 has quit [Client Quit]
u0_a368 has joined #ruby
u0_a368 has quit [Client Quit]
<barak>
hi :)
aesthetikx has joined #ruby
vigumnov has joined #ruby
victori has quit [Ping timeout: 264 seconds]
thodg has quit [Read error: Connection reset by peer]
thodg has joined #ruby
grenierm has quit [Quit: Client closed]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
johnjaye has quit [Ping timeout: 245 seconds]
MomosOrDeath9 has joined #ruby
MomosOrDeath has quit [Ping timeout: 245 seconds]
MomosOrDeath9 is now known as MomosOrDeath
AndreYuhai has joined #ruby
<AndreYuhai>
Hi there! We've got a JSON endpoint. But for some reason, for some of the requests it returns 404 in HTML. We've already checked the controller and everything renders JSON there. How could I go about inspecting this issue?
<AndreYuhai>
We also checked other controllers that our main controller inherits from.
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
infinityfye has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
hwrd has joined #ruby
g_sg has joined #ruby
Bounga has joined #ruby
caleb has joined #ruby
whereiseveryone has joined #ruby
johnhamelink has joined #ruby
patrick has joined #ruby
goofansu has joined #ruby
tsujp has joined #ruby
jmcantrell has joined #ruby
alexisg has joined #ruby
fourstepper has joined #ruby
slondr has joined #ruby
KOTP has joined #ruby
srushe has joined #ruby
toonlink has joined #ruby
pjaspers has joined #ruby
eax_ has joined #ruby
graemefawcett has joined #ruby
matta has joined #ruby
matta has quit [Ping timeout: 260 seconds]
pjaspers has quit [Ping timeout: 260 seconds]
toonlink has quit [Ping timeout: 260 seconds]
johnhamelink has quit [Ping timeout: 260 seconds]
goofansu has quit [Ping timeout: 260 seconds]
whereiseveryone has quit [Ping timeout: 260 seconds]
Bounga has quit [Ping timeout: 260 seconds]
eax_ has quit [Ping timeout: 260 seconds]
patrick has quit [Ping timeout: 260 seconds]
g_sg has quit [Ping timeout: 268 seconds]
hwrd has quit [Ping timeout: 268 seconds]
graemefawcett has quit [Ping timeout: 260 seconds]
fourstepper has quit [Ping timeout: 260 seconds]
caleb has quit [Ping timeout: 260 seconds]
srushe has quit [Ping timeout: 260 seconds]
alexisg has quit [Ping timeout: 260 seconds]
KOTP has quit [Ping timeout: 260 seconds]
slondr has quit [Ping timeout: 260 seconds]
jmcantrell has quit [Ping timeout: 260 seconds]
tsujp has quit [Ping timeout: 260 seconds]
graywolf has quit [Quit: WeeChat 4.0.4]
graywolf has joined #ruby
slondr has joined #ruby
caleb has joined #ruby
fourstepper has joined #ruby
eax_ has joined #ruby
matta has joined #ruby
pjaspers has joined #ruby
Bounga has joined #ruby
hwrd has joined #ruby
tsujp has joined #ruby
srushe has joined #ruby
toonlink has joined #ruby
johnhamelink has joined #ruby
caleb has quit [Ping timeout: 276 seconds]
fourstepper has quit [Ping timeout: 276 seconds]
pjaspers has quit [Ping timeout: 260 seconds]
johnhamelink has quit [Ping timeout: 264 seconds]
tsujp has quit [Ping timeout: 276 seconds]
hwrd has quit [Ping timeout: 276 seconds]
toonlink has quit [Ping timeout: 276 seconds]
srushe has quit [Ping timeout: 276 seconds]
Bounga has quit [Ping timeout: 276 seconds]
matta has quit [Ping timeout: 276 seconds]
eax_ has quit [Ping timeout: 276 seconds]
slondr has quit [Ping timeout: 276 seconds]
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
AndreYuhai has quit [Quit: leaving]
<adam12>
AndreYuhai: Too many variables to likely debug over IRC, but maybe some of the requests are neglecting to negotiate for JSON somehow (leaving off Accept header, not calling .json if this is a Rails app, etc).
jenrzzz has joined #ruby
Vonter has quit [Ping timeout: 276 seconds]
Vonter has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Linux_Kerio has joined #ruby
AkyRhO has joined #ruby
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz_ has quit [Ping timeout: 264 seconds]
xdminsy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
jenrzzz has joined #ruby
donofrio has quit [Remote host closed the connection]
Paris has joined #ruby
donofrio has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
jas-maelstrom has quit [Remote host closed the connection]
jenrzzz has joined #ruby
schne1der has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
polishdub has quit [Remote host closed the connection]
Paris has quit [Remote host closed the connection]
jenrzzz has joined #ruby
xdminsy has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
mange has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
mahlon has quit [Quit: PotatoTech]
jenrzzz has joined #ruby
zayd has joined #ruby
mahlon has joined #ruby
cata has quit [Quit: WeeChat 4.1.2]
jenrzzz has quit [Ping timeout: 276 seconds]
Linux_Kerio has joined #ruby
bambanxx has joined #ruby
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<noahmg123>
I have a Rails application that's poorly documented. I got a new MySQL sever up and running. There is documentation on how to run `rails db:migrate`, but that doesn't seem to work on a fresh install. Are there any other commands, and, if so, where are they all documented?
polishdub has quit [Read error: Connection reset by peer]
bambanxx has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<noahmg123>
Ok it looks like `rails db:create` works. Migration still fails after that, but it looks like that's maybe because of poorly written migration scripts.
jenrzzz has quit [Ping timeout: 264 seconds]
<weaksauce>
noahmg123 on a fresh install you'd probably want to skip migrations and use the schema
<weaksauce>
there might be some migrations that are required though so it's not always 100% just use the schema
<noahmg123>
weaksauce: is `db:create` enough for that? Or are there additional commands?
xdminsy has joined #ruby
<weaksauce>
db:schema:load
<noahmg123>
Oh dang ok
<weaksauce>
what will happen is a migration will reference some constant that doesn't exist anymore because of design changes or whatever and it will fail
<weaksauce>
there are a lot of things that can go wrong
<noahmg123>
Yeah, some missing table or something
<noahmg123>
This whole project is poorly documented. I'm trying to fix that lol.
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
schne1der has quit [Ping timeout: 264 seconds]
<noahmg123>
Is there a list anywhere of all the `db:` commands?
<weaksauce>
just type rails in a rails project
<weaksauce>
unless it's really old
<weaksauce>
probably a rails guide iirc
<noahmg123>
I see. I was looking at the official documentation and all it says is "`create` and `migrate` are common, check this guide for more info on migrations"
jenrzzz has joined #ruby
<weaksauce>
if it's old you can use rake -T
<weaksauce>
actually i'd suggest using rake -T since it shows the doc explanation
<weaksauce>
regardless
<noahmg123>
Is the Rake way deprecated? You mentioned to use it if it's old.
<weaksauce>
rails is generally the way to use those commands since 4 or 5
<weaksauce>
but they are still just rake tasks under the hood
<weaksauce>
just for looking up what tasks are available use rake -T to see the docstring
<weaksauce>
if you need a refresh on just the names of the commands rails is fine
jenrzzz has quit [Ping timeout: 264 seconds]
<noahmg123>
I'm fairly new to Ruby. Do a lot of people run really old versions of things? Looking at it Rails 4 and 5 are from several years ago.
<weaksauce>
depends on the company
<weaksauce>
i'd say a lot upgrade
<noahmg123>
Fair enough. This is a fucking Ruby 2.7 project, lol. At least it's got Rails 5.
<weaksauce>
yeah upgrading from 5 on is somewhat straightforward
<noahmg123>
Yeah. I also upgraded in place to Ruby 3.3.0 and the server didn't immediately crash so that's promising.
<noahmg123>
Well, after some tweaks
<noahmg123>
But not many
jenrzzz has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
bambanxx has joined #ruby
bambanxx has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
donofrio has quit [Remote host closed the connection]