« Back to channel list

#RubyOnRails - 17 July 2019

« Back 1 day Forward 1 day »
[00:10:40] skryking: has joined #RubyOnRails
[00:15:18] thatkid1: Hi, I am trying to use graphiql, but getting an error. How to figureout what went wrong? https://dpaste.de/GBGp
[00:21:44] tdy: has joined #RubyOnRails
[00:56:58] Technodrome: has joined #RubyOnRails
[01:05:11] crankharder: has joined #RubyOnRails
[01:14:50] orbyt_: has joined #RubyOnRails
[01:23:01] tdy: has joined #RubyOnRails
[01:34:12] tdy: has joined #RubyOnRails
[02:18:48] agent_white: has joined #RubyOnRails
[02:36:25] Saukk: has joined #RubyOnRails
[02:40:15] Exuma: has joined #RubyOnRails
[02:47:11] _aeris_: has joined #RubyOnRails
[04:05:46] DTZUZO: has joined #RubyOnRails
[04:16:54] _aeris_: has joined #RubyOnRails
[04:17:27] crankharder: has joined #RubyOnRails
[04:58:03] Technodrome: has joined #RubyOnRails
[05:12:11] ariedler: has joined #RubyOnRails
[05:17:41] conta: has joined #RubyOnRails
[05:19:19] srinidhi: has joined #RubyOnRails
[05:32:05] lankanmon: has joined #RubyOnRails
[06:19:20] schne1der: has joined #RubyOnRails
[06:38:33] duderonomy: has joined #RubyOnRails
[06:49:25] ur5us: has joined #RubyOnRails
[06:50:33] lxsameer: has joined #RubyOnRails
[07:13:06] ariedler: has joined #RubyOnRails
[07:24:47] duderonomy: has joined #RubyOnRails
[07:33:34] corellian: has joined #RubyOnRails
[07:38:47] duderonomy: has joined #RubyOnRails
[07:47:27] deepredsky: has joined #RubyOnRails
[08:01:51] Sylario: has joined #RubyOnRails
[08:22:23] BloopMonster: has joined #RubyOnRails
[08:26:25] conta: has joined #RubyOnRails
[08:58:27] prestorium: has joined #RubyOnRails
[09:06:08] schneider: has joined #RubyOnRails
[09:09:41] DTZUZO: has joined #RubyOnRails
[09:13:14] conta: has joined #RubyOnRails
[09:13:50] ariedler: has joined #RubyOnRails
[09:54:55] conta: has joined #RubyOnRails
[09:55:49] tdy: has joined #RubyOnRails
[09:56:06] agent_white: has joined #RubyOnRails
[10:06:16] dionysus69: I am building a gem for fun/testing, the road to a real gem, so I hit this roadblock, how can I return a action_view object so I can render it later in controller action? so basically what the gem does is prepare a view, and return it ready to be `render { template: template_name }`ed
[10:07:14] dionysus69: so far I was able to return rendered html
[10:07:29] dionysus69: but as I understand it, render doesn't take in html as argument
[10:08:43] dionysus69: https://apidock.com/rails/ActionView/Partials
[10:08:59] erts: has joined #RubyOnRails
[10:11:00] dionysus69: I also could do this render :text => <html>html_content</html>
[10:11:11] dionysus69: but doesn't feel or look good
[10:13:30] za1b1tsu: has joined #RubyOnRails
[10:16:34] conta: has joined #RubyOnRails
[10:17:36] prestori_: has joined #RubyOnRails
[10:18:28] Ropeney_: has joined #RubyOnRails
[10:19:41] schneider: has joined #RubyOnRails
[10:39:50] phin89: has joined #RubyOnRails
[10:55:08] ariedler: has joined #RubyOnRails
[10:55:15] Ergo: has joined #RubyOnRails
[11:10:40] lankanmon: has joined #RubyOnRails
[11:12:13] pavelz: hi. i want to has_many return data from 2 tables.
[11:12:28] pavelz: is it possible? one is photos and other is videos
[11:12:39] pavelz: without making a join table
[11:17:21] pavelz: i guess question is how to run a join and pull collated records of different types, sorted by date in chunks
[12:12:07] za1b1tsu: has joined #RubyOnRails
[12:14:27] za1b1tsu_: has joined #RubyOnRails
[12:16:25] jefffrails35: has joined #RubyOnRails
[12:16:54] conta1: has joined #RubyOnRails
[12:41:57] Dbugger: has joined #RubyOnRails
[13:02:54] duderonomy: has joined #RubyOnRails
[13:23:14] srinidhi: has joined #RubyOnRails
[13:27:04] tf2ftw: has joined #RubyOnRails
[13:51:28] Technodrome: has joined #RubyOnRails
[13:54:01] corellian: Hi, I have an app that is using Capistrano to do deploys, but my hosting provider now requires me to deploy the app inside a Docker container, does anyone know a good tutorial on how to configure Capistrano to do this?
[13:55:34] tdy: has joined #RubyOnRails
[14:13:32] tdy: has joined #RubyOnRails
[14:34:10] safetypin: has joined #RubyOnRails
[14:50:50] ule: Hey guys, what is the best way to write raw queries AND sanitize parameters using Rails?
[14:51:29] ule: Ideally, I'm looking for somehting that does something like this: Model.connection.execute("my raw query WHERE foo = ?", foo)
[14:51:40] ule: But looks like it is not an option
[14:52:26] Linell: has joined #RubyOnRails
[14:52:53] schneider: has joined #RubyOnRails
[14:55:05] Linell: I'm trying to create good, branded error pages. First I just created an errors controller and views and used those.
[14:55:14] Linell: But I want to make it so that if the app is down, my error pages still work.
[14:55:26] Linell: So based off of StackOverflow I'm trying to put HTML into my asset pipeline, so that I can easily use my stylesheets.
[14:55:47] Linell: But the stylesheet_link_tags are 404'ing. Any ideas why or better suggestions on how to do that?
[15:12:28] srinidhi: has joined #RubyOnRails
[15:15:13] skryking: has joined #RubyOnRails
[15:24:30] emachnic: has joined #RubyOnRails
[15:33:43] srinidhi: has joined #RubyOnRails
[15:38:09] u1nt: has joined #RubyOnRails
[15:38:25] u1nt: Anyone ever had problems with rdebug-ide + puma? My rails application is halting after continuing on a breakpoint
[15:45:13] schneider: has joined #RubyOnRails
[15:54:25] orbyt_: has joined #RubyOnRails
[15:55:37] za1b1tsu_: has joined #RubyOnRails
[15:58:52] srinidhi: has joined #RubyOnRails
[16:00:12] deepredsky: has joined #RubyOnRails
[16:00:42] emachnic: has joined #RubyOnRails
[16:08:54] XavierDavis: has joined #RubyOnRails
[16:09:08] XavierDavis: Just getting into Rails 6 here and I'm confused by the URL helpers
[16:09:33] ellcs: has joined #RubyOnRails
[16:09:34] XavierDavis: I used to be able to do stuff like form_for([:admin,@modelname])
[16:10:01] XavierDavis: passing an arrya to form, link_to or redirect helpers would instantly generate the paths but this seems to not work at all in Rails 6
[16:11:38] XavierDavis: actually it works with link_to, but the form_for method breaks with "undefined method `empty?' for 2:Integer"
[16:13:42] XavierDavis: huzzah i found it
[16:13:46] XavierDavis: form_with model: [:cms,@model]
[16:14:16] tdy: has joined #RubyOnRails
[16:19:21] Linell: Glad you figured it out!
[16:26:36] orbyt_: has joined #RubyOnRails
[16:28:22] XavierDavis: It's a little odd at first but I like not having to distinguish between form_for and form_tag anymore. As usual Rails makes better decisions everytime
[16:33:47] Exuma: has joined #RubyOnRails
[16:37:09] deepredsky: has joined #RubyOnRails
[16:44:38] deepreds1: has joined #RubyOnRails
[16:50:42] neanderslob: has joined #RubyOnRails
[17:04:27] duderonomy: has joined #RubyOnRails
[17:29:14] emachnic: has joined #RubyOnRails
[18:34:17] Hard_vard: has joined #RubyOnRails
[18:36:18] Hard_vard: Hey. I know Python and Django and Flask. Please, answer honestly. Is it worth learning and using ROR in 2019?
[18:37:06] Hard_vard: has joined #RubyOnRails
[18:37:32] Linell: It definitely is! It's a wonderful product with a vibrant community.
[18:37:45] Linell: s/product/project I guess, but the point stands
[18:40:35] Hard_vard: I do not like dynamic applications (Vue, React). I prefer to write a few JS lines. Will ROR be a good solution then? I also have a big problem with auth, that's why I use Django. Will ROR be a good solution for me?
[18:42:07] Linell: Yep. You can use as much or as little JS as you'd like, and there's plenty of built in support for it all.
[18:42:10] Linell: As far as auth: http://devise.plataformatec.com.br/#starting-with-rails
[18:42:21] Linell: That project works super well.
[19:15:07] safetypin: has joined #RubyOnRails
[19:17:48] conta1: has joined #RubyOnRails
[19:20:00] _aeris_: has joined #RubyOnRails
[19:45:55] deepreds1: has joined #RubyOnRails
[19:50:00] Exuma: has joined #RubyOnRails
[20:37:43] skranga: has joined #RubyOnRails
[21:05:30] skranga: Hi there. I'm working with polymorphic controllers that save a resource belongs to different parents. I would like to execute different logic depending on the parent. Any ideas for where/how in the code to handle this? I would prefer not to use an explicit if/then for each type of parent. I'm hoping for a more generic solution.
[21:07:07] Dbugger: has joined #RubyOnRails
[21:08:29] snickers: has joined #RubyOnRails
[21:17:12] dviola: has joined #RubyOnRails
[21:22:14] Technodrome: has joined #RubyOnRails
[22:11:47] dviola: has joined #RubyOnRails
[23:26:01] orbyt_: has joined #RubyOnRails
[23:45:40] hope_canyon: has joined #RubyOnRails
[23:47:45] thoraxe: has joined #RubyOnRails
[23:48:06] thoraxe: dumb question because google-fu is failing me: i'm trying to do a hacky ugly csv export of some data within the rails console but i can't figure out how to turn off page breaks
[23:51:20] thoraxe: hmm looks like i can use ";0" at the end of stuff to prevent it from pretty-printing the object being manipulated, so that's a start
[23:57:36] hope_canyon: Hi, folks. I have an activity model that has_one parent activity - an association of the same class. I don't know how to implement this in FactoryBot, and it's causing problems in my test suite. Could someone take a look at this gist for me? You'll see my error code in a comment at the top of the file, line 11 is the association that's halting my test suite. Thank you https://gist.github.com/newplasticideas/5dc0094752dd0bc40085443c3793dc02