« Back to channel list

#RubyOnRails - 22 October 2018

« Back 1 day Forward 1 day »
[00:20:34] pharma_joe: has joined #RubyOnRails
[00:35:15] Stabby: has joined #RubyOnRails
[00:35:39] kies: has joined #RubyOnRails
[00:38:29] Stabby: has joined #RubyOnRails
[00:45:23] Stabby: Trouble with Ruby on Rails, just created a controller, can't visit root homepage. Problem with the default application view:
[00:45:24] Stabby: Showing C:/Sites/drinkmeway/app/views/layouts/application.html.erb where line #7 raised:
[00:45:30] Stabby: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
[00:45:39] Stabby: TypeError: El objeto no acepta esta propiedad o m├ętodo
[00:46:02] Stabby: I believe this one got fixed before with some sort of javascript update, but I just installed myself node.js and it didn't fix anything. Ideas?
[00:53:48] Stabby: Sorry I posted it here. Github just happens to be down specifically today.
[01:12:32] mangold: has joined #RubyOnRails
[01:14:00] fragamus: has joined #RubyOnRails
[01:49:19] fragamus: has joined #RubyOnRails
[01:51:37] pharma_joe: has joined #RubyOnRails
[02:00:41] uks: has joined #RubyOnRails
[02:04:37] Stabs: has joined #RubyOnRails
[02:19:50] skwurl: has joined #RubyOnRails
[02:21:54] skwurl: im trying to build a rails app for a rpg character generator. ive already built a ruby program to do the same. In the ruby program i used a textfile.
[02:23:04] skwurl: could i do the same in a rails app? is there a way to build a controller method to reference a textfile, and where would i store the textfiles if so?
[02:27:12] orbyt_: Yes you can read a local file with rails
[02:35:06] skwurl: got it? thanks orbyt_ for the right question
[03:09:38] braincrash: has joined #RubyOnRails
[03:12:54] fragamus: has joined #RubyOnRails
[03:15:36] choke: has joined #RubyOnRails
[03:36:07] i8igmac: havenwood: is there a way to use nokogiri to pull variables from a url like stuff?list=VAR
[03:36:23] i8igmac: or list=value
[03:38:45] i8igmac: nvm url lib does the trick
[04:07:59] mangold: has joined #RubyOnRails
[04:10:42] danguita: has joined #RubyOnRails
[04:26:29] kurko__: has joined #RubyOnRails
[04:28:32] beholders_eye: has joined #RubyOnRails
[04:29:15] sevenseacat: has joined #RubyOnRails
[04:41:23] tdy: has joined #RubyOnRails
[04:41:33] Jervis_: has joined #RubyOnRails
[04:46:41] choke: has joined #RubyOnRails
[04:50:56] kapil____: has joined #RubyOnRails
[04:55:50] Jervis_: has joined #RubyOnRails
[05:05:59] Tempesta: has joined #RubyOnRails
[05:07:22] Jervis_: has joined #RubyOnRails
[05:11:11] eckhardt_: has joined #RubyOnRails
[05:27:47] Jervis_: has joined #RubyOnRails
[05:34:29] fragamus: has joined #RubyOnRails
[05:37:59] Arkaniad: has joined #RubyOnRails
[05:46:53] reber: has joined #RubyOnRails
[06:10:27] MoritaShinobu: has joined #RubyOnRails
[06:17:58] sandstrom: has joined #RubyOnRails
[06:35:35] snickers: has joined #RubyOnRails
[07:01:59] tuor: has joined #RubyOnRails
[07:03:30] ellcs: has joined #RubyOnRails
[07:12:49] za1b1tsu: has joined #RubyOnRails
[07:18:03] lexileo: has joined #RubyOnRails
[07:34:28] srinidhi: has joined #RubyOnRails
[07:37:20] lypsis: has joined #RubyOnRails
[07:52:43] sandstrom: has joined #RubyOnRails
[07:58:52] josefhovad: has joined #RubyOnRails
[08:13:55] lxsameer: has joined #RubyOnRails
[08:14:13] mikecmpbll: has joined #RubyOnRails
[08:30:47] Robdgreat: has joined #RubyOnRails
[08:38:07] blackmesa: has joined #RubyOnRails
[08:59:37] blackmesa: has joined #RubyOnRails
[09:02:25] whysthatso: has joined #RubyOnRails
[09:05:43] srinidhi: has joined #RubyOnRails
[09:12:45] sunny2976: has joined #RubyOnRails
[09:13:10] whysthatso: has joined #RubyOnRails
[09:14:46] blackmesa: has joined #RubyOnRails
[09:15:02] sunny2976: Ive got a weird problem and was hoping for some help
[09:15:22] sunny2976: I know yall are busy, but I figured Id cast a line into the void
[09:16:18] whysthatso: has joined #RubyOnRails
[09:16:41] sunny2976: I get a doublerender error even when I have only a render method and a return in my controller. And I have no idea how thats even possible
[09:16:55] sunny2976: https://stackoverflow.com/questions/52925651/doublerendererror-with-no-content-return-and-no-other-code
[09:17:01] sunny2976: In case anyone wants to help
[09:17:27] whysthatso: has joined #RubyOnRails
[09:18:53] whysthatso: has joined #RubyOnRails
[09:19:32] sevenseacat: you need a bit more information
[09:19:41] sevenseacat: can you gist the full code and error, please
[09:21:20] sunny2976: Oh hey, thanks man.
[09:21:44] sunny2976: one sec while I make it pretty
[09:22:11] sevenseacat: then run it after you make it pretty, and share the error.
[09:27:18] sunny2976: https://gist.github.com/kelpycreek/ed2388877d641fe3ab0120ed26748ec7
[09:28:37] sevenseacat: oh there we go
[09:29:03] sevenseacat: and what's the full error?
[09:29:13] sunny2976: aaaand here
[09:29:14] sunny2976: https://gist.github.com/kelpycreek/cb622a456298029895f73017accc7b4b
[09:30:51] sunny2976: The thing I dont get is that if my return statement is the second line after that head :no_content, where is there a chance to produce a second render?
[09:31:05] sunny2976: I dont even actually destroy the content at this point!
[09:31:14] sevenseacat: waiting for github to catch up so I can see the error...
[09:32:17] sunny2976: Thanks again :)
[09:33:30] sevenseacat: thats... impossible to read
[09:33:51] sevenseacat: can you copy and paste just the error message out of your logs?
[09:34:11] sunny2976: haha, yeah sure. Ive been copy pasting the html into the w3 try it tool
[09:34:55] sunny2976: arc-api_1 | App 8597 output: AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
[09:35:01] sunny2976: Is the important line
[09:35:40] sevenseacat: with no backtrace
[09:35:53] sevenseacat: and no request information
[09:37:42] sunny2976: As in you WANT no backtrace?
[09:37:47] sunny2976: or you want the backtrace?
[09:38:03] sevenseacat: no, I want the complete information from your server log. show the request being made, the error, the backtrace
[09:39:20] sunny2976: https://gist.github.com/kelpycreek/7f6d8626dac22d64e9ae5e74fdc78af2
[09:42:02] sunny2976: Just updated it to give request info
[09:42:06] sunny2976: might need to reload
[09:43:06] sevenseacat: still waiting for github. its been up and down all day
[09:44:13] sunny2976: Again, thanks
[09:48:28] morfin60: has joined #RubyOnRails
[09:55:45] danguita: has joined #RubyOnRails
[10:00:22] blackmesa: has joined #RubyOnRails
[10:14:38] zorp: has joined #RubyOnRails
[10:15:39] blackmesa: has joined #RubyOnRails
[10:18:56] MoritaShinobu: has joined #RubyOnRails
[10:43:03] kapil____: has joined #RubyOnRails
[10:48:31] apparition47: has joined #RubyOnRails
[10:50:23] sandstrom: has joined #RubyOnRails
[11:08:47] lankanmon: has joined #RubyOnRails
[11:15:35] wojnar: has joined #RubyOnRails
[11:23:08] hive-mind: has joined #RubyOnRails
[11:29:37] whysthatso: has joined #RubyOnRails
[11:35:55] sandstrom: has joined #RubyOnRails
[12:31:57] nOgAnOo: has joined #RubyOnRails
[12:37:17] Ergo: has joined #RubyOnRails
[12:55:57] jottr: has joined #RubyOnRails
[13:04:22] ariejan: has joined #RubyOnRails
[13:15:24] GodFather: has joined #RubyOnRails
[13:17:42] NL3limin4t0r: has joined #RubyOnRails
[13:18:55] IanMalcolm: has joined #RubyOnRails
[13:19:06] lexileo: has joined #RubyOnRails
[13:21:50] thomasfedb: has joined #RubyOnRails
[13:31:01] GodFather: has joined #RubyOnRails
[13:40:24] gregf_: has joined #RubyOnRails
[13:53:37] hammer065: has joined #RubyOnRails
[13:53:41] ss942: has joined #RubyOnRails
[13:57:58] ss942: I asked on Redmine channel and got no answer, so I try here.
[13:57:58] ss942: When I create issue, I can set back_url parameter and it would redirect me to path than been set after creation of new issue new?continue=true&back_url=google.com
[13:57:58] ss942: But same dosn't work for documents, is there a way to do it for documents?
[13:57:58] ss942: useful links: https://www.rubydoc.info/github/edavis10/redmine/IssuesController https://www.rubydoc.info/github/edavis10/redmine/DocumentsController
[13:59:30] snowy: has joined #RubyOnRails
[14:07:01] mostlybadfly: has joined #RubyOnRails
[14:07:58] whysthatso: has joined #RubyOnRails
[14:17:01] blackmesa: has joined #RubyOnRails
[14:31:01] GodFather: has joined #RubyOnRails
[14:40:58] Dbugger: has joined #RubyOnRails
[14:46:10] srinidhi: has joined #RubyOnRails
[15:00:18] GodFather: has joined #RubyOnRails
[15:01:20] snickers: has joined #RubyOnRails
[15:02:43] orbyt_: has joined #RubyOnRails
[15:05:41] tdy: has joined #RubyOnRails
[15:13:17] nzst: has joined #RubyOnRails
[15:16:19] nzst: My asset precompilation has been maxing out my cpu on deploys, sometimes failing. What is the current state of improving asset precompilation cpu efficiency and time? any good article or practices? most of the stuff i'm finding is a bit outdated and doesn't include any webpacker infos
[15:18:20] conta1: has joined #RubyOnRails
[15:26:15] lexileo: has joined #RubyOnRails
[15:26:50] IanMalcolm: has joined #RubyOnRails
[15:32:29] maryo: has joined #RubyOnRails
[15:35:52] srinidhi: has joined #RubyOnRails
[15:40:15] ariejan: has joined #RubyOnRails
[15:49:54] nzst: does anyone else notice node hosing the cpu on asset:precompile? i'm wondering if i'm under-specced or misconfigured
[15:59:02] srinidhi: has joined #RubyOnRails
[15:59:51] srinidhi: has joined #RubyOnRails
[16:01:40] conta1: has joined #RubyOnRails
[16:02:37] gregf_: has joined #RubyOnRails
[16:11:40] jottr: has joined #RubyOnRails
[16:14:35] IanMalcolm: has joined #RubyOnRails
[16:27:55] GodFather: has joined #RubyOnRails
[16:42:22] pLaTo0n: has joined #RubyOnRails
[16:42:37] orbyt_: has joined #RubyOnRails
[16:47:02] drale2k_: has joined #RubyOnRails
[16:47:24] drale2k_: Is it possible to add a file from disk to rails via Active Storage ?
[16:50:24] nzst: i found https://edgeguides.rubyonrails.org/active_storage_overview.html CMD+F "Store files locally"
[16:53:14] wojnar_: has joined #RubyOnRails
[16:55:29] snowy: has joined #RubyOnRails
[16:58:42] drale2k_: nzst: i am already storing them locally. I am talking about grabbing a file from disk instead a form or API
[17:00:33] nzst: drale2k_: like this? https://edgeguides.rubyonrails.org/active_storage_overview.html#attaching-file-io-objects
[17:01:28] drale2k_: ah yes that looks like it, thanks
[17:02:43] drale2k_: nzst: do you by any chance know if this will trigger an upload through the rails stack or just move the file on disk and create a db record ?
[17:03:23] nzst: no, i don't know that off the top of my head, i was just helping search through the docs
[17:21:19] snowy: has joined #RubyOnRails
[17:23:47] sameerynho: has joined #RubyOnRails
[17:30:13] maryo: has joined #RubyOnRails
[17:58:34] dviola: has joined #RubyOnRails
[18:02:40] sameerynho: has joined #RubyOnRails
[18:10:54] GodFather: has joined #RubyOnRails
[18:15:53] wojnar: has joined #RubyOnRails
[18:18:13] desperek: has joined #RubyOnRails
[18:33:41] IanMalcolm: has joined #RubyOnRails
[18:33:49] KevinSjoberg: has joined #RubyOnRails
[18:34:14] GodFather: has joined #RubyOnRails
[18:51:29] trif: has joined #RubyOnRails
[18:51:51] whysthatso: has joined #RubyOnRails
[19:06:50] nzst: has left #RubyOnRails: ("Using Circe, the loveliest of all IRC clients")
[19:12:08] LiftLeft: has joined #RubyOnRails
[19:12:23] GodFather: has joined #RubyOnRails
[19:18:05] Scient: well crap... the ActiveRecord attributes API is pretty neat and everything, but for some reason the model instance is never exposed to the type classes, making it impossible to create neat instance aware stuff (like stuff with instance caching etc)
[19:18:09] Scient: unless im missing something...
[19:22:26] defsdoor: has joined #RubyOnRails
[19:23:59] jottr: has joined #RubyOnRails
[19:35:53] luckyruby: has joined #RubyOnRails
[19:37:29] luckyruby: Does activestorage support image resizing on create out of the box?
[19:43:48] samort7: has joined #RubyOnRails
[19:45:10] lexileo: has joined #RubyOnRails
[19:49:05] alexertech: has joined #RubyOnRails
[19:49:21] choke: has joined #RubyOnRails
[19:49:34] fragamus: has joined #RubyOnRails
[19:53:02] sandstrom: has joined #RubyOnRails
[19:57:51] Scient: luckyruby: i wish, it has this overly simplistic approach of doing everything on demand
[20:00:13] orbyt_: has joined #RubyOnRails
[20:03:52] wojnar: has joined #RubyOnRails
[20:12:58] choke: has joined #RubyOnRails
[20:29:35] Jervis_: has joined #RubyOnRails
[20:33:43] jottr_: has joined #RubyOnRails
[20:49:00] jottr_: has joined #RubyOnRails
[20:53:50] tdy: has joined #RubyOnRails
[21:03:07] orbyt_: has joined #RubyOnRails
[21:15:05] pharma_joe: has joined #RubyOnRails
[21:26:19] lexileo: has joined #RubyOnRails
[21:30:22] Dimik: has joined #RubyOnRails
[21:31:13] LiftLeft: has joined #RubyOnRails
[21:32:38] GodFather: has joined #RubyOnRails
[21:35:44] luckyruby: has joined #RubyOnRails
[21:35:46] fragamus: has joined #RubyOnRails
[21:48:00] w0rd-driven: has joined #RubyOnRails
[21:55:16] jottr: has joined #RubyOnRails
[22:06:41] morfin60: has joined #RubyOnRails
[22:38:03] beowuff: has joined #RubyOnRails
[22:41:37] fragamus: has joined #RubyOnRails
[22:43:11] mikecmpbll: has joined #RubyOnRails
[22:57:29] mochiyoda: has joined #RubyOnRails
[22:58:07] w0rd-driven: has joined #RubyOnRails
[23:02:07] orbyt_: has joined #RubyOnRails
[23:32:16] NL3limin4t0r: has joined #RubyOnRails
[23:33:59] IanMalcolm: has joined #RubyOnRails
[23:42:03] tdy: has joined #RubyOnRails
[23:43:17] luckyruby: has joined #RubyOnRails
[23:47:38] kurko_: has joined #RubyOnRails