catbusters

Activity Graph

Page 1 of 3 | Next »

2019-09-13

[15:13:23] catbusters: has joined #RubyOnRails
[15:13:33] catbusters: has joined #ruby
[17:43:01] catbusters: Quit: Connection closed for inactivity

2019-09-10

[18:48:44] catbusters: has joined #RubyOnRails
[18:48:54] catbusters: has joined #ruby
[18:49:33] catbusters: How can I silence the SQL statements logged out in dev mode? I'm finding it extremely distracting
[18:50:52] catbusters: Got it. ActiveRecord::Base.logger.level = 1
[20:58:10] catbusters: Quit: Connection closed for inactivity

2019-09-08

[00:29:27] catbusters: has joined #RubyOnRails
[00:29:37] catbusters: has joined #ruby
[03:19:12] catbusters: Quit: Connection closed for inactivity

2019-09-02

[21:31:50] catbusters: has joined #RubyOnRails
[21:32:03] catbusters: has joined #ruby
[21:34:16] catbusters: How can I update the starting day for a week in Date.commercial?
[23:51:23] catbusters: Quit: Connection closed for inactivity

2019-08-28

[00:18:48] catbusters: has joined #RubyOnRails
[00:19:00] catbusters: has joined #ruby
[04:48:29] catbusters: Quit: Connection closed for inactivity

2019-08-21

[00:59:23] catbusters: Quit: Connection closed for inactivity

2019-08-20

[18:12:05] catbusters: has joined #RubyOnRails
[18:12:17] catbusters: has joined #ruby

2019-08-12

[20:29:58] catbusters: has joined #RubyOnRails
[20:30:10] catbusters: has joined #ruby
[23:09:38] catbusters: Quit: Connection closed for inactivity

2019-07-24

[00:05:47] catbusters: Quit: Connection closed for inactivity

2019-07-23

[21:46:03] catbusters: has joined #RubyOnRails
[21:46:15] catbusters: has joined #ruby

2019-07-03

[16:30:49] catbusters: has joined #RubyOnRails
[16:31:01] catbusters: has joined #ruby
[21:20:08] catbusters: Quit: Connection closed for inactivity

2019-06-05

[20:36:59] catbusters: has joined #ruby
[23:06:09] catbusters: Quit: Connection closed for inactivity

2019-06-03

[11:48:31] catbusters: has joined #RubyOnRails
[11:48:39] catbusters: has joined #ruby
[12:56:33] catbusters: Ping timeout: 250 seconds
[12:59:26] catbusters: has joined #RubyOnRails
[12:59:34] catbusters: has joined #ruby
[19:15:14] catbusters: Quit: Connection closed for inactivity

2019-05-30

[21:03:47] catbusters: has joined #RubyOnRails
[21:03:58] catbusters: has joined #ruby
[23:23:11] catbusters: Quit: Connection closed for inactivity

2019-05-29

[15:05:36] catbusters: has joined #RubyOnRails
[15:05:47] catbusters: has joined #ruby
[17:45:19] catbusters: Quit: Connection closed for inactivity

2019-05-28

[19:30:05] catbusters: has joined #RubyOnRails
[19:30:16] catbusters: has joined #ruby
[21:39:43] catbusters: Quit: Connection closed for inactivity

2019-05-21

[15:22:43] catbusters: has joined #RubyOnRails
[15:22:54] catbusters: has joined #ruby
[19:32:09] catbusters: Quit: Connection closed for inactivity

2019-05-19

[19:16:39] catbusters: has joined #RubyOnRails
[19:16:50] catbusters: has joined #ruby
[21:36:21] catbusters: Quit: Connection closed for inactivity

2019-05-12

[19:01:10] catbusters: has joined #RubyOnRails
[19:01:22] catbusters: has joined #ruby
[21:40:41] catbusters: Quit: Connection closed for inactivity

2019-05-08

[14:22:09] catbusters: has joined #RubyOnRails
[14:22:16] catbusters: has joined #ruby
[17:41:10] catbusters: Quit: Connection closed for inactivity

2019-04-18

[12:46:45] catbusters: has joined #RubyOnRails
[12:46:53] catbusters: has joined #ruby
[15:06:28] catbusters: Quit: Connection closed for inactivity

2019-04-17

[08:15:17] catbusters: has joined #RubyOnRails
[08:15:24] catbusters: has joined #ruby
[08:16:09] catbusters: What's the best way to add something like this to a Rails app?
[08:16:54] catbusters: The user needs to be able to edit the static text on the site that there would only be a single copy of for the entire site
[08:17:09] catbusters: So don't know if putting that in the DB makes much sense
[11:25:01] catbusters: Quit: Connection closed for inactivity

2019-04-14

[18:11:00] catbusters: has joined #RubyOnRails
[18:11:08] catbusters: has joined #ruby
[21:40:45] catbusters: Quit: Connection closed for inactivity

2019-04-08

[11:50:52] catbusters: has joined #RubyOnRails
[11:51:00] catbusters: has joined #ruby
[14:20:18] catbusters: Quit: Connection closed for inactivity

2019-04-05

[19:15:54] catbusters: has joined #RubyOnRails
[19:16:01] catbusters: has joined #ruby
[19:22:41] catbusters: Why is Rails So. Damn. Slow. in development?
[19:23:03] catbusters: It's extremely frustrating having to wait 30+ second after each code change for the page to reload
[19:23:13] catbusters: I set `config.assets.debug = false`
[19:52:22] catbusters: I'll try that Pro777. Been that experience with several Rails apps I've worked with though, some from scratch some inherited
[19:55:39] catbusters: It's Puma by default right?
[19:55:48] catbusters: I haven't changed anything related to the web server
[19:59:35] catbusters: And I don't get any performance issues in production mode
[19:59:52] catbusters: Been driving me nuts :/
[20:32:41] catbusters: Yes, don't face the issues then
[20:32:51] catbusters: All config is default Rails config
[20:33:58] catbusters: And yes on spring / bootsnap
[20:40:20] catbusters: rails runner '0' just prints Running via Spring preloader in process 72148 and exits
[20:41:06] catbusters: So how did you get the benchmark output?
[20:42:07] catbusters: https://www.irccloud.com/pastebin/HWbBUN3y/
[20:42:53] catbusters: Yes I did that
[20:43:17] catbusters: I'll try hyperfine
[20:44:47] catbusters: For fresh app https://www.irccloud.com/pastebin/ObVb6Yl5/
[20:45:09] catbusters: For slow app https://www.irccloud.com/pastebin/bEC5yIXf/
[20:45:25] catbusters: Doesn't look like this is the problem
[21:23:10] catbusters: Comment.votes.where(user_id: 666) should work I guess
[23:55:38] catbusters: Quit: Connection closed for inactivity

2019-04-04

[01:26:23] catbusters: Quit: Connection closed for inactivity

2019-04-03

[12:41:31] catbusters: has joined #ruby
[15:11:07] catbusters: Quit: Connection closed for inactivity
[20:26:48] catbusters: has joined #ruby

2019-04-01

[20:56:19] catbusters: has joined #ruby
[23:05:07] catbusters: Quit: Connection closed for inactivity

2019-03-30

[11:14:07] catbusters: has joined #RubyOnRails
[11:14:07] catbusters: has joined #ruby
[13:33:17] catbusters: Quit: Connection closed for inactivity
[18:56:48] catbusters: has joined #RubyOnRails
[18:56:48] catbusters: has joined #ruby
[21:46:18] catbusters: Quit: Connection closed for inactivity

2019-03-22

[15:03:19] catbusters: has joined #RubyOnRails
[15:03:19] catbusters: has joined #ruby
[22:22:23] catbusters: Quit: Connection closed for inactivity

2019-03-17

[00:27:59] catbusters: has joined #ruby
[00:28:00] catbusters: has joined #RubyOnRails
[00:29:14] catbusters: I'm trying to do a query like this: ((a = 1 OR b = 2) AND (y = 1 OR z = 2))
[00:29:36] catbusters: I know how I can chain multiple OR queries but how would I write a query like this?
[03:07:30] catbusters: Quit: Connection closed for inactivity

2019-03-11

[18:42:22] catbusters: has joined #RubyOnRails
[18:42:22] catbusters: has joined #ruby
[21:11:39] catbusters: Quit: Connection closed for inactivity

2019-03-03

[03:22:02] catbusters: Quit: Connection closed for inactivity

2019-03-02

[23:52:49] catbusters: has joined #RubyOnRails
[23:52:49] catbusters: has joined #ruby

2019-02-25

[02:42:47] catbusters: Quit: Connection closed for inactivity

2019-02-24

[02:40:51] catbusters: Quit: Connection closed for inactivity
[14:04:08] catbusters: has joined #ruby
[14:04:09] catbusters: has joined #RubyOnRails
[14:12:13] catbusters: I've this weird issue with the rails guides
[14:12:43] catbusters: They don't load on my browser, the page loads half a quarter of the way and then becomes blank and hangs
[14:13:02] catbusters: I've been forced to use the Kindle version of the guides due to this
[14:46:38] catbusters: Maybe you could use a before save hook? I know it's hacky but if it works...
[19:13:32] catbusters: Quit: Connection closed for inactivity
[23:03:18] catbusters: has joined #RubyOnRails
[23:03:18] catbusters: has joined #ruby
[23:03:52] catbusters: Anyone using devise with omniauth?

2019-02-23

[11:21:49] catbusters: has joined #RubyOnRails
[11:21:49] catbusters: has joined #ruby
[11:22:57] catbusters: I have a table that rails keeps modifying in schema.rb upon migration
[11:23:26] catbusters: `create_table "friendly_id_slugs", id: :integer, default: nil, force: :cascade do |t|`
[11:23:31] catbusters: gets changed to
[11:23:39] catbusters: `create_table "friendly_id_slugs", id: :serial, force: :cascade do |t|`
[11:23:41] catbusters: Using postgres
[11:57:54] catbusters: I don't see why not
[11:58:06] catbusters: The code you're talking about is generic enough
[13:01:20] catbusters: The whole table
[16:02:27] catbusters: Check out https://github.com/ohler55/ox
[16:02:57] catbusters: It has a streaming parser module
[16:30:22] catbusters: You could import the XML files into postgres locally as the next best thing
[18:08:12] catbusters: Maybe you could use https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html
[19:22:19] catbusters: How fassster?

2019-02-19

[06:42:32] catbusters: has joined #RubyOnRails
[06:42:32] catbusters: has joined #ruby
[09:31:57] catbusters: Quit: Connection closed for inactivity

2019-02-17

[18:17:25] catbusters: has joined #RubyOnRails
[18:17:25] catbusters: has joined #ruby
[18:19:37] catbusters: Do you generally leave turbolinks on or turn it off in rails apps?
[21:56:53] catbusters: Quit: Connection closed for inactivity

2019-02-16

[04:28:40] catbusters: has joined #RubyOnRails
[04:28:40] catbusters: has joined #ruby
[07:04:49] catbusters: What's the "correct" way to do controller specific or action specific javascript in rails?
[11:17:56] catbusters: Quit: Connection closed for inactivity
[16:23:08] catbusters: has joined #RubyOnRails
[16:23:23] catbusters: has joined #ruby
[18:42:27] catbusters: Quit: Connection closed for inactivity

2019-02-15

[13:44:50] catbusters: has joined #RubyOnRails
[13:44:50] catbusters: has joined #ruby
[13:45:49] catbusters: Anyone using Grape?
[17:04:15] catbusters: Quit: Connection closed for inactivity
[17:16:40] catbusters: has joined #ruby
[17:16:41] catbusters: has joined #RubyOnRails
[19:34:15] catbusters: Quit: Connection closed for inactivity

2019-02-12

[14:00:35] catbusters: has joined #RubyOnRails
[14:00:35] catbusters: has joined #ruby
[16:39:48] catbusters: Quit: Connection closed for inactivity

2019-02-11

[06:50:51] catbusters: has joined #ruby
[06:50:52] catbusters: has joined #RubyOnRails
[09:33:35] catbusters: It's my first time deploying a Rails application. When I set RAILS_ENV to production, I get this error and the application errors out `ActionView::Template::Error (The asset "application.js" is not present in the asset pipeline.)`
[09:33:47] catbusters: I understand I need to precompile the assets?
[09:34:23] catbusters: `RAILS_ENV=production rails assets:precompile` like this, is that correct?
[09:35:53] catbusters: Okay. When I do this, the application starts working, but all the files from the public directory get `404`ed
[09:38:00] catbusters: That makes it work, thanks
[09:38:10] catbusters: But I guess that's not the recommended way of doing things?
[09:40:01] catbusters: I do have Nginx set up already
[09:56:37] catbusters: Figured it out, thanks for the help tbuehlmann
[11:14:34] catbusters: I'm facing a problem with ActiveStorage only in production. The image links that are produced result in 404s (using S3, and they do get uploaded in the bucket, I checked)
[11:15:06] catbusters: I did `ActiveStorage::Blob.find_signed`
[11:15:18] catbusters: Got this `#<ActiveStorage::Blob id: 7, key: "VBmLQMxmroSDt1zkwYXxn7S3", filename: "WD2.jpg", content_type: "image/jpeg", metadata: {"identified"=>true, "width"=>1698, "height"=>898, "analyzed"=>true}, byte_size: 316932, checksum: "H60SeSt+Df8IB7vIjb1YhA==", created_at: "2019-02-11 10:54:32">`
[11:27:25] catbusters: `image_tag(url_for(f.object.cover_image))` in formtastic
[11:28:13] catbusters: When I did the same thing locally it had worked
[11:32:20] catbusters: I'm getting an nginx 404 error, opening the link doesn't add anything to `production.log`
[11:35:58] catbusters: Yeah I got it
[11:36:14] catbusters: The previous rule I had set for the public folder assets not loading
[11:36:27] catbusters: It was intercepting the active_storage path
[11:39:39] catbusters: I can't figure out what to do with the nginx config though
[11:40:39] catbusters: https://bpaste.net/show/62e5f222e2ec
[11:41:13] catbusters: If I remove the images block the files in the public folder don't load, and if I add it in, active_storage files don't load
[11:55:00] catbusters: Okay I figured it out
[12:39:04] catbusters: Why does Spring keep regenerating Gemfile.lock? Gave me a literal headache with so many merge conflicts
[12:45:12] catbusters: Well I was trying to do a git pull, but it kept saying Gemfile.lock had changed. I tried it so many times to revert the changes, but each time I would, it'd get changed again. I tried deleting it, but it came back again.
[12:45:23] catbusters: Finally I did bin/spring stop and it started working
[12:58:19] catbusters: What should be used isntead?
[19:54:52] catbusters: I'm facing this really weird issue. I've got a form and I'm trying to listen to `ajax:success`
[19:55:01] catbusters: Works perfectly on desktop doesn't work at all on mobile
[19:55:29] catbusters: Is Turbolinks to blame?
[22:45:43] catbusters: Quit: Connection closed for inactivity

2019-02-10

[11:49:26] catbusters: has joined #RubyOnRails
[11:49:26] catbusters: has joined #ruby
[11:50:02] catbusters: How can I access a credential stored in `credentials.yml.enc`
[11:50:49] catbusters: I can do `Rails.application.credentials` but I have to add `Rails.application.credentials.development` to make it work
[11:51:38] catbusters: Then how do I store environment specific secrets?
[11:51:56] catbusters: API keys and all
[12:04:29] catbusters: Alright thanks
[14:17:28] catbusters: Quit: Connection closed for inactivity
[18:48:08] catbusters: has joined #RubyOnRails
[18:48:08] catbusters: has joined #ruby
[23:06:35] catbusters: Quit: Connection closed for inactivity

2019-02-08

[06:19:46] catbusters: has joined #ruby
[06:19:47] catbusters: has joined #RubyOnRails
[06:40:09] catbusters: Do you have `# encoding: utf-8` set in the page? It's most likely not the cause, but couldn't hurt to try
[06:41:36] catbusters: That goes in your html file
[06:41:54] catbusters: in your top level layout file
[06:48:26] catbusters: There's a gem called http you might want to try
[06:49:02] catbusters: haxx0r glad it worked :)
[06:52:20] catbusters: https://github.com/httprb/http is what I've been using and they claim to have been inspired by requests
[13:19:10] catbusters: Quit: Connection closed for inactivity

2019-02-07

[13:26:23] catbusters: https://dpaste.de/XTFw
[13:26:52] catbusters: I've tried the two snippets and it still removes all existing query params
[13:41:14] catbusters: lwwwr: What problem are you facing?
[17:07:19] catbusters: Quit: Connection closed for inactivity