« Back to channel list

#RubyOnRails - 08 March 2017

« Back 1 day Forward 1 day »
[00:01:19] mwlang: has joined #RubyOnRails
[00:04:25] chopin: has joined #RubyOnRails
[00:04:45] nyaa: has joined #RubyOnRails
[00:05:35] nyaa: has joined #RubyOnRails
[00:08:38] sid_fules: has joined #RubyOnRails
[00:09:31] alex88: has joined #RubyOnRails
[00:10:38] universa1: has joined #RubyOnRails
[00:18:02] fourcolors: has joined #RubyOnRails
[00:18:20] evansparkman: has joined #RubyOnRails
[00:23:23] quazimodo: has joined #RubyOnRails
[00:28:59] aperkins81: has joined #RubyOnRails
[00:29:45] universa1: has joined #RubyOnRails
[00:32:08] ArTiSTiX: has joined #RubyOnRails
[00:39:41] harfangk: has joined #RubyOnRails
[00:39:48] duderono_: has joined #RubyOnRails
[00:41:50] hotpancakes: has joined #RubyOnRails
[00:41:57] pur3eval: has joined #RubyOnRails
[00:43:05] benlieb: has joined #RubyOnRails
[00:45:10] _djbkd: has joined #RubyOnRails
[00:46:40] sam`: has joined #RubyOnRails
[00:47:28] sam`: Hi there! I have a question about mongoid (in particular, mongoid-history). Would this be a good place to ask / are there people here that use it?
[00:48:04] sam`: I'm having issues getting changes to embedded objects to be tracked in the parent document's history
[00:48:41] sam`: I have `track_history on: [:fields, :embedded_relations]` in the parent model
[00:49:17] sam`: The parent model has an `embed_one :submodel`, and the submodel has `embedded_in :parentmodel`
[00:49:39] sam`: And I use `accepts_nested_attributes_for :submodel`
[00:50:00] sam`: So I can do p.submodel.subfield = something; p.save
[00:50:10] sam`: and that works fine to save the change to the embedded document
[00:50:20] sam`: but no change is recorded in the history_tracks for it
[00:50:31] sam`: changes to fields of the parent model are tracked fine
[00:50:53] universa1: has joined #RubyOnRails
[00:52:15] versigtig: has joined #RubyOnRails
[00:54:31] ArTiSTiX: has joined #RubyOnRails
[01:01:05] tildes: has joined #RubyOnRails
[01:01:09] nyaa: has joined #RubyOnRails
[01:01:39] superlou: has joined #RubyOnRails
[01:02:58] hotpancakes: has joined #RubyOnRails
[01:06:54] Jameser: has joined #RubyOnRails
[01:07:34] ArTiSTiX: has joined #RubyOnRails
[01:16:52] hotpancakes: has joined #RubyOnRails
[01:17:17] kristofferR: has joined #RubyOnRails
[01:17:47] universa1: has joined #RubyOnRails
[01:26:47] universa1: has joined #RubyOnRails
[01:33:53] versigtig: has joined #RubyOnRails
[01:35:57] doodlehaus: has joined #RubyOnRails
[01:38:43] zacts: has joined #RubyOnRails
[01:39:07] arBmind: has joined #RubyOnRails
[01:46:04] SteenJobs: has joined #RubyOnRails
[01:51:02] LBRapid: has joined #RubyOnRails
[01:56:43] lessless: has joined #RubyOnRails
[01:58:26] nyaa: has joined #RubyOnRails
[02:02:17] lexileo: has joined #RubyOnRails
[02:02:36] mheld: has joined #RubyOnRails
[02:03:44] chopin: has joined #RubyOnRails
[02:06:59] evansparkman: has joined #RubyOnRails
[02:10:10] irishfromua: has joined #RubyOnRails
[02:10:15] esparkman: has joined #RubyOnRails
[02:10:35] itsautomatisch: has joined #RubyOnRails
[02:12:38] pur3eval: has joined #RubyOnRails
[02:14:16] universa1: has joined #RubyOnRails
[02:15:24] Guest69206: has joined #RubyOnRails
[02:17:02] cschneid_: has joined #RubyOnRails
[02:23:47] nacsurte: has joined #RubyOnRails
[02:24:21] nacsurte: is there a tool to create migrations from database schema? i've inherited an old codebase that didn't use migrations now i'm trying to generate tests for it
[02:26:57] Radar: Anyone got an example app which uses webpacker that I could use for "inspiration"?
[02:27:03] Radar: preferably with react
[02:27:04] SteenJobs: has joined #RubyOnRails
[02:29:07] mikecmpbll: has joined #RubyOnRails
[02:32:41] universa1: has joined #RubyOnRails
[02:35:00] madebymarkca: has joined #RubyOnRails
[02:37:14] versigtig: has joined #RubyOnRails
[02:44:16] universa1: has joined #RubyOnRails
[02:47:01] madebymarkca: has joined #RubyOnRails
[02:57:25] ss_much: has joined #RubyOnRails
[02:59:32] universa1: has joined #RubyOnRails
[03:02:09] nacsurte: has joined #RubyOnRails
[03:04:52] libastral: has joined #RubyOnRails
[03:11:58] nacsurte: has joined #RubyOnRails
[03:21:52] evansparkman: has joined #RubyOnRails
[03:28:04] jenrzzz: has joined #RubyOnRails
[03:28:04] jenrzzz: has joined #RubyOnRails
[03:31:57] nacsurte: has joined #RubyOnRails
[03:33:59] nyaa: has joined #RubyOnRails
[03:35:09] camilasan: has joined #RubyOnRails
[03:36:46] chopin: has joined #RubyOnRails
[03:36:53] universa1: has joined #RubyOnRails
[03:37:01] nacsurte: has joined #RubyOnRails
[03:37:23] nyaa: has joined #RubyOnRails
[03:46:10] tofutoon: has left #RubyOnRails: ()
[03:46:25] n1lo: has joined #RubyOnRails
[03:47:53] universa1: has joined #RubyOnRails
[03:52:11] fourcolo_: has joined #RubyOnRails
[03:53:35] universa1: has joined #RubyOnRails
[03:54:18] tofutoon: has joined #RubyOnRails
[03:56:52] xall_: has joined #RubyOnRails
[03:58:26] pur3eval: has joined #RubyOnRails
[04:14:23] bungoman: I don't, but I did find this: https://github.com/rails/webpacker/blob/master/README.md#ready-for-react
[04:15:59] bungoman: I haven't tried it myself, but it seems pretty self explanatory.
[04:17:13] universa1: has joined #RubyOnRails
[04:19:11] TheGymBull: has joined #RubyOnRails
[04:26:33] lessless: has joined #RubyOnRails
[04:27:17] universa1: has joined #RubyOnRails
[04:27:38] versigtig: has joined #RubyOnRails
[04:28:55] xall_: has joined #RubyOnRails
[04:41:44] hotpanca_: has joined #RubyOnRails
[04:44:41] universa1: has joined #RubyOnRails
[04:45:02] lessless: has joined #RubyOnRails
[04:49:37] chopin: has joined #RubyOnRails
[04:56:16] duderonomy: has joined #RubyOnRails
[04:56:54] Suslov: has joined #RubyOnRails
[04:59:10] pur3eval: has joined #RubyOnRails
[04:59:31] nacsurte: has joined #RubyOnRails
[05:00:25] SteenJobs: has joined #RubyOnRails
[05:03:33] Suslov: has joined #RubyOnRails
[05:03:42] knight33: has joined #RubyOnRails
[05:04:03] knight33: Can someone tell me if this is true? Cause I'm having a hard time proving it: "https://betterexplained.com/articles/intermediate-rails-understanding-models-views-and-controllers/" - Controller instance variables (@foo) are available in all views and partials (wow!)
[05:04:33] cschneid_: has joined #RubyOnRails
[05:04:39] knight33: I have the same instance variables in "def index" and "def show", but can only refer to one, so I believe this to be false.
[05:07:28] Suslo: has joined #RubyOnRails
[05:10:22] fryguy: knight33: it is true, but in the context of a controller action
[05:10:26] fryguy: you only run 1 controller action at at ime
[05:10:37] fryguy: variables defined in that controller action will be available in any rendered partial
[05:11:10] knight33: Cause I'm on localhost/users/show/10, and I've simply defined an instance variables as two different strings, and one in the show method works...the other doesn't :p
[05:11:42] universa1: has joined #RubyOnRails
[05:12:00] doodlehaus: has joined #RubyOnRails
[05:12:10] knight33: Ahh, so technically, UsersController.show would give me access to all the instances variables defined within the show method?
[05:12:17] knight33: Cause that doesn't seem useful, haha.
[05:19:42] irishfromua: has joined #RubyOnRails
[05:19:48] Guest77: has joined #RubyOnRails
[05:33:52] universa1: has joined #RubyOnRails
[05:35:54] naprimer_3: has joined #RubyOnRails
[05:38:38] pawnbox: has joined #RubyOnRails
[05:41:42] xall_: has joined #RubyOnRails
[05:42:59] fragamus: has joined #RubyOnRails
[05:45:29] cschneid_: has joined #RubyOnRails
[05:48:39] universa1: has joined #RubyOnRails
[05:50:05] xall: has joined #RubyOnRails
[05:55:18] patarr: has joined #RubyOnRails
[05:56:32] universa1: has joined #RubyOnRails
[06:02:05] Jameser`: has joined #RubyOnRails
[06:04:43] dminuoso: Radar: Oh I see. Any special plans?
[06:04:59] Radar: dminuoso: Going over to Adelaide :)
[06:05:56] dminuoso: Oh neat. Despite the fact that I had to look up what that was. :)
[06:06:09] _3dwardsharp: has joined #RubyOnRails
[06:07:20] universa1: has joined #RubyOnRails
[06:08:39] dminuoso: What can I say, I'm ignorant when it comes to countries on the other side of the flat earth.
[06:08:57] pawnbox_: has joined #RubyOnRails
[06:09:04] dminuoso: Radar: Jokes aside though, who is responsible for the rubyonrails.org site?
[06:09:17] chopin: has joined #RubyOnRails
[06:09:25] Radar: dminuoso: I am not sure. I think matthewd might know?
[06:09:43] matthewd: Yeah.. define responsible?
[06:09:48] dminuoso: ACTION pokes matthewd with a boomstick
[06:10:08] dminuoso: Oh I don't know, someone to shoot when things break?
[06:11:12] matthewd: I can either fix things or pass them on.. otherwise I've seen people just open an issue on rails/rails
[06:12:04] matthewd: @fxn generally manages the API docs & guides sites, if you mean operations-broken
[06:12:08] tdy: has joined #RubyOnRails
[06:12:11] tildes: has joined #RubyOnRails
[06:12:38] dminuoso: @fxn as in @github fxn?
[06:12:48] dminuoso: And that I do mean indeed.
[06:12:52] dminuoso: Right thanks
[06:13:44] fourcolors: has joined #RubyOnRails
[06:13:45] universa1: has joined #RubyOnRails
[06:20:01] pLaTo0n: has joined #RubyOnRails
[06:20:31] pulkit4tech: has joined #RubyOnRails
[06:27:07] universa1: has joined #RubyOnRails
[06:29:09] jenrzzz: has joined #RubyOnRails
[06:29:09] jenrzzz: has joined #RubyOnRails
[06:30:23] _3dwardsharp: ohhey, so i've got this older, quite large, rails2 app. after a week of upgrade dependency hell i thought "i need to figure out a way to refactor this in smaller bits. oh, right, drb!" so, i put together this prototype: https://gist.github.com/edwardsharp/7ca042e43bdf15cead95b4d8058ad7c6 that is a sort of object proxy (for activerecord models). what projects out there are doing something like this? i remember spork,
[06:30:24] _3dwardsharp: but that's moreso setup for a testing environment
[06:38:30] matthewd: _3dwardsharp: That sounds rather a lot like a "now you've got two problems" sort of a solution to me
[06:47:47] fourcolors: has joined #RubyOnRails
[06:47:57] pur3eval: has joined #RubyOnRails
[06:50:06] _3dwardsharp: yeah? yeah, hmm. exploring ways to slice up an otherwise large/long refactor project. keeping workers/tasks in operation seems like an option. so maybe just need to think more about a distributed job queue and less about drb proxy objects...
[06:51:47] brent__: has joined #RubyOnRails
[06:52:00] nyaa: has joined #RubyOnRails
[06:52:58] conta: has joined #RubyOnRails
[06:53:59] mjolnird: has joined #RubyOnRails
[07:16:10] helpa: has joined #RubyOnRails
[07:18:27] Tatey: has joined #RubyOnRails
[07:19:31] DaniG2k: has joined #RubyOnRails
[07:21:43] Jameser: has joined #RubyOnRails
[07:23:52] universa1: has joined #RubyOnRails
[07:26:20] Qchmqs: has joined #RubyOnRails
[07:28:32] jdm: has joined #RubyOnRails
[07:38:01] pawnbox: has joined #RubyOnRails
[07:40:20] universa1: has joined #RubyOnRails
[07:41:00] nOwz: has joined #RubyOnRails
[07:45:32] _3dwardsharp: has joined #RubyOnRails
[07:47:43] cschneid_: has joined #RubyOnRails
[07:49:11] rahim__: has joined #RubyOnRails
[07:49:23] bruce_lee: has joined #RubyOnRails
[07:49:23] bruce_lee: has joined #RubyOnRails
[07:50:17] rahim__: I have a question for iterating trough activerecord.
[07:50:43] rahim__: i know how to iterate with a simple each, but how to nested loop ?
[07:51:47] rahim__: on a same table
[07:53:07] matthewd: rahim__: What are you trying that's not working?
[07:53:51] srinidhi: has joined #RubyOnRails
[07:53:58] rahim__: hi mattewd, i have this error "undefined method `each' for "type d'annonce":String"
[07:54:29] rahim__: my code is the following : <% @rfannonces.each do |cat| %> <% cat.categorie_lib.each do |i| %> <% p i %> <% end %> <% end %>
[07:55:25] rahim__: is it recommended to have multiple loop on an activerecord set ?
[07:56:05] nOwz: has joined #RubyOnRails
[07:56:10] patarr: has joined #RubyOnRails
[07:57:01] artto: has joined #RubyOnRails
[07:58:43] nOwz: has joined #RubyOnRails
[07:59:32] kristofferR: has joined #RubyOnRails
[08:02:12] Radar: has joined #RubyOnRails
[08:12:08] xall: has joined #RubyOnRails
[08:13:17] pwnd_nsfw: rahim__, you're trying to each on a string
[08:13:20] artto: has joined #RubyOnRails
[08:13:57] rahim__: but how to iterate on the second level
[08:14:02] pwnd_nsfw: you could use each_char
[08:14:17] pwnd_nsfw: I'd also prefer your code be in http://gist.github.com
[08:14:31] universa1: has joined #RubyOnRails
[08:14:32] pwnd_nsfw: Don't really know what @rfannonces is
[08:14:38] pwnd_nsfw: Like, what the variable actually contains
[08:14:41] rahim__: do I have to convert all the activerecord set into an array, an after iterate on the many sub level ?
[08:15:07] pwnd_nsfw: When you do something like ModelName.all, you're getting an array
[08:15:09] pwnd_nsfw: Well, not technically
[08:15:15] pwnd_nsfw: but you can use it like an array for the most part
[08:17:24] pwnd_nsfw: rahim__, have an example of what you'd accomplish? Even if you've just described the algorithm in words
[08:19:28] fourcolors: has joined #RubyOnRails
[08:20:46] pawnbox: has joined #RubyOnRails
[08:22:26] aganov: has joined #RubyOnRails
[08:25:49] rahim_: has joined #RubyOnRails
[08:26:00] rahim_: sorry, disconnected
[08:26:48] rahim_: the type I obtain for @rfannonces = RfAnnonce.all, is RfAnnonce::ActiveRecord_Relation
[08:29:11] d0nn1e: has joined #RubyOnRails
[08:29:23] zero1one0: has joined #RubyOnRails
[08:29:34] pwnd_nsfw: Still unclear as to what you're trying to accomplish rahim_
[08:30:24] pwnd_nsfw: What do you want the end result to be, and from what kind of data? Simple terms, you don't even have to use anything programming related
[08:30:50] pwnd_nsfw: "I want all of the names from the author's of every book in the world, and I want to reverse only their first names"
[08:30:52] pwnd_nsfw: something like such
[08:31:21] universa1: has joined #RubyOnRails
[08:32:41] mauro1254: has joined #RubyOnRails
[08:35:32] antgel: has joined #RubyOnRails
[08:35:53] mauro1254: I'm using Devise for authentication and I'm interested in Timeoutable feature. Devise store in the session the last_request timestamp, but... what about the session creation timestamp ?
[08:36:07] pulkit4tech: has joined #RubyOnRails
[08:36:37] mauro1254: I would like the session to timeout after 30 minutes of inactivity, but I also want the session to last at maximum 4 hours
[08:36:41] pur3eval: has joined #RubyOnRails
[08:37:27] ych: has joined #RubyOnRails
[08:38:22] pwnd_nsfw: You want people to be logged out while they're in the middle of shit?
[08:38:56] pwnd_nsfw: LIFE CHANGING DATA BEING SUBMITTED: .... wait... WAIT,... NO, THIS CANT BE, NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[08:38:57] pwnd_nsfw: http://www.giantfreakinrobot.com/wp-content/uploads/2011/08/vadernoo.jpg
[08:39:28] mauro1254: pwnd_nsfw : I can set 24 hours instead of 4 hours
[08:39:42] fourcolors: has joined #RubyOnRails
[08:41:21] mauro1254: pwnd_nsfw : I think it is not safe to let the session (potentially) last forever
[08:42:08] pwnd_nsfw: https://www.google.com/search?q=devise+set+maximum+session+length&oq=devise+set+maximum+session+length&aqs=chrome..69i57.4771j0j7&sourceid=chrome&ie=UTF-8
[08:43:06] twinings_: has joined #RubyOnRails
[08:44:39] universa1: has joined #RubyOnRails
[08:46:49] twinings_: Hi. A question: what's the meaning of the method "helper" in a controller, if at the same time "By default, each controller will include all helpers." If "helper" includes a helper, but that's already being done anyway?
[08:47:25] jeyraof^mbpr: has joined #RubyOnRails
[08:48:35] pwnd_nsfw: yo dawg, I heard you like helpers, so we put helpers in your helpers so you can help while you help
[08:48:45] Cohedrin: has joined #RubyOnRails
[08:49:32] nhanpc: has joined #RubyOnRails
[08:51:47] fourcolors: has joined #RubyOnRails
[08:51:59] matthewd: `helper` in a controller marks one of that controller's methods as a helper method, so it will be exposed to any view it renders
[08:52:37] matthewd: (Unlike helper *modules*, whose methods are automatically provided)
[08:52:39] universa1: has joined #RubyOnRails
[08:52:49] twinings_: matthewd: isn't that rather "helper_method"? http://apidock.com/rails/ActionController/Helpers/ClassMethods/helper_method
[08:53:04] nOwz: has joined #RubyOnRails
[08:54:15] matthewd: Errr... yes
[08:54:48] pwnd_nsfw: "Precisely"
[08:55:14] matthewd: Ah, I think helper modules *used* to only be included in the same-named controller, but are now included everywhere (making that method not very useful) unless you change the config option
[08:55:37] matthewd: Are you more willing to buy that one? ;)
[08:55:42] DaniG2k: has joined #RubyOnRails
[08:56:10] twinings_: yes. "making that method not very useful".
[08:57:01] twinings_: but it's confusing to encounter this method in code, and then wonder why, because it looks unnecessary.
[09:00:07] mark_66: has joined #RubyOnRails
[09:00:30] fourcolors: has joined #RubyOnRails
[09:00:46] pwnd_nsfw: Until you need it, of course
[09:02:56] marr: has joined #RubyOnRails
[09:04:11] xall: has joined #RubyOnRails
[09:05:33] mikecmpbll: has joined #RubyOnRails
[09:06:29] arBmind: has joined #RubyOnRails
[09:07:02] universa1: has joined #RubyOnRails
[09:07:19] maqr: has joined #RubyOnRails
[09:07:33] brent__: has joined #RubyOnRails
[09:07:42] srinidhi: has joined #RubyOnRails
[09:08:17] baweaver: has joined #RubyOnRails
[09:08:37] conta: has joined #RubyOnRails
[09:13:40] universa1: has joined #RubyOnRails
[09:14:03] Sylario: If someone know omniauth, I can't find any documentation on how to post data to the API :http://stackoverflow.com/questions/42655616/how-am-i-supposed-to-post-data-to-a-ominauth-oauth2-token
[09:15:00] zpe: has joined #RubyOnRails
[09:15:14] gloscombe: has joined #RubyOnRails
[09:16:40] pwnd_nsfw: sylario, http://stackoverflow.com/questions/34262102/how-to-perform-get-post-request-using-omniauth
[09:16:46] pwnd_nsfw: Only 1 year old too!
[09:16:53] jsrn_: has joined #RubyOnRails
[09:17:36] Sylario: pwnd_nsfw: the answer is literraly what I am doing
[09:17:43] Sylario: It does not work
[09:19:11] pwnd_nsfw: ACTION shrugs
[09:19:12] cek: Hi. I'm looking for the fastest method of updating a model from data of another one. Sadly, I need to process data before feeding it to destination model, so plain SQL won't work much.
[09:19:18] pwnd_nsfw: I don't know what "It does not work" means
[09:19:33] pwnd_nsfw: But I do know what it means
[09:19:37] Sylario: pwnd_nsfw: what i said in the question, i see no params on the API
[09:19:38] pwnd_nsfw: if I take the time to look at your SO
[09:19:55] nOwz: has joined #RubyOnRails
[09:19:56] pwnd_nsfw: I don't know anything about omniauth except that it is useful for things I don't use lol
[09:24:12] tedwing: has joined #RubyOnRails
[09:27:45] artto: has joined #RubyOnRails
[09:29:32] lessless: has joined #RubyOnRails
[09:37:21] artto: has joined #RubyOnRails
[09:37:24] pur3eval: has joined #RubyOnRails
[09:38:15] fourcolors: has joined #RubyOnRails
[09:38:57] lxsameer: has joined #RubyOnRails
[09:41:14] universa1: has joined #RubyOnRails
[09:43:27] Sylario: I am currently browsing through multiple gems to understand how to use a function, Is there any tools that would allow me to do that while debugging instead of searching through github ?
[09:45:55] stamina: has joined #RubyOnRails
[09:46:43] pawnbox: has joined #RubyOnRails
[09:47:25] pawnbox: has joined #RubyOnRails
[09:48:30] pawnbox: has joined #RubyOnRails
[09:49:57] nyaa: has joined #RubyOnRails
[09:50:46] arBmind: has joined #RubyOnRails
[09:51:55] hotpancakes: has joined #RubyOnRails
[09:53:22] matthewd: sylario: Some editors can be configured to know how to load everything from the active bundle, for example, if that's what you mean
[09:53:29] nyaa: has joined #RubyOnRails
[09:53:53] hotpanca_: has joined #RubyOnRails
[09:54:06] matthewd: sylario: You still have the limitations of tools' abilities to statically analyze ruby to know which instance of a given method is actually getting called, though
[09:56:03] workmad3: has joined #RubyOnRails
[09:57:04] patarr: has joined #RubyOnRails
[09:57:08] Sylario: matthewd: I have an undocumented model from a gem, and to find how it works, I just browsed through 3 gems gemspec on github, and I am doing a lot of ctrl f, and searching through the module to find the next layer of code
[09:57:49] Sylario: I was wondering If I could use some tool to do that faster
[09:57:56] matthewd: What were the gemspecs telling you?
[09:58:06] universa1: has joined #RubyOnRails
[09:58:52] Sylario: omniauth-oauth2 gemspec told me the token was from Omniauth
[09:59:08] Sylario: Omniauth gemspec told me the token was from Oauth2 gem
[09:59:30] Sylario: Oauth2 token.rb told me the post was calling request
[09:59:50] Sylario: request method is using a @client variable
[10:00:02] Sylario: @client variable is an instance of client.rb
[10:01:14] boshhead: has joined #RubyOnRails
[10:03:54] Sylario: of course in each gem I had first to browse the gem before realising the code was in a dependency
[10:05:10] DrYockel: has joined #RubyOnRails
[10:07:40] Sylario: So that's why I am asking if there is a tool to do that?
[10:08:51] xall: has joined #RubyOnRails
[10:09:42] sid_fules: has joined #RubyOnRails
[10:13:00] pawnbox: has joined #RubyOnRails
[10:20:43] conta: has joined #RubyOnRails
[10:23:16] Sylario: Is my english that bad ?
[10:23:56] blackhuey: has joined #RubyOnRails
[10:25:08] blackhuey: has left #RubyOnRails: ()
[10:25:38] universa1: has joined #RubyOnRails
[10:28:34] _3dwardsharp: sylario: um, pry, maybe?
[10:28:47] xall: has joined #RubyOnRails
[10:31:48] universa1: has joined #RubyOnRails
[10:32:43] dminuoso: Is there a way to turn off implicit actions in controllers?
[10:33:01] Sylario: _3dwardsharp: i am investing it, thanks
[10:33:12] dminuoso: i.e. if a "show" action is expected, I want this to *need* a show method.
[10:34:52] artto: has joined #RubyOnRails
[10:37:39] nyaa: has joined #RubyOnRails
[10:46:11] ferr1: has joined #RubyOnRails
[10:46:29] hotpancakes: has joined #RubyOnRails
[10:46:41] mc_fail: ok, i finally migrated this damn website to rrails 4
[10:46:42] dionysus70: has joined #RubyOnRails
[10:46:50] mc_fail: but somehow assets still don't work
[10:47:17] mc_fail: at least i don't see anything from application.js in generated html pages
[10:47:20] mc_fail: where i should dig?
[10:47:40] banandana: has joined #RubyOnRails
[10:49:14] universa1: has joined #RubyOnRails
[10:51:25] _3dwardsharp: ...did you generate them? rake assets:precompile
[10:53:59] harfangk: has joined #RubyOnRails
[10:55:25] doodlehaus: has joined #RubyOnRails
[10:55:25] mc_fail: _3dwardsharp do i have to precompile them in devo?
[10:55:35] mc_fail: if i have config.assets.compile = true ?
[10:56:14] pawnbox: has joined #RubyOnRails
[10:56:56] nyaa: has joined #RubyOnRails
[10:58:04] sagax: has joined #RubyOnRails
[10:58:44] _3dwardsharp: um, i think it tries to do that on every load, or when it thinks the file has changed. but did you run the rake task? if it fails, that should help you
[11:00:42] mc_fail: _3dwardsharp rake test fails in a weird way
[11:00:46] mc_fail: btw, https://gist.github.com/anonymous/1221936728991cf5a6a12f2aa66d2d73
[11:00:50] mc_fail: why is that?
[11:01:10] mc_fail: i use in-memory database, and according to the log i see that table was inserted
[11:05:50] artto: has joined #RubyOnRails
[11:07:56] tvw: has joined #RubyOnRails
[11:08:08] _3dwardsharp: um, there could be a lot happening where you've got ....
[11:09:17] mc_fail: not really https://gist.github.com/anonymous/b21af77307e26df315ec8861ef5e62da
[11:09:37] patarr: has joined #RubyOnRails
[11:11:53] artto_: has joined #RubyOnRails
[11:13:00] _3dwardsharp: well you might need to load your schema.rb, dunno what your test case is like
[11:13:31] kristofferR: has joined #RubyOnRails
[11:14:10] universa1: has joined #RubyOnRails
[11:14:51] mc_fail: _3dwardsharp but don't all this create_table mean that schema.rb is loaded?
[11:15:06] mc_fail: i don't even have an ide whare it is loaded
[11:15:15] mc_fail: it seems like ruby magic triggers it somehow
[11:19:44] mc_fail: it seems like some magic is done by factory_girl
[11:21:49] artto: has joined #RubyOnRails
[11:21:52] antgel: has joined #RubyOnRails
[11:22:46] itsgokul: has joined #RubyOnRails
[11:23:17] _3dwardsharp: oh, https://github.com/thoughtbot/factory_girl_rails/issues/74
[11:25:22] universa1: has joined #RubyOnRails
[11:26:13] pur3eval: has joined #RubyOnRails
[11:26:54] nOwz: has joined #RubyOnRails
[11:31:14] hotpancakes: has joined #RubyOnRails
[11:32:36] universa1: has joined #RubyOnRails
[11:33:42] teddysmoker: has joined #RubyOnRails
[11:36:45] mochiyoda_: has joined #RubyOnRails
[11:37:30] ldnunes: has joined #RubyOnRails
[11:40:08] kristofferR: has joined #RubyOnRails
[11:40:31] nettoweb: has joined #RubyOnRails
[11:40:39] akshat: has joined #RubyOnRails
[11:40:47] Jameser: has joined #RubyOnRails
[11:42:53] fourcolors: has joined #RubyOnRails
[11:43:55] universa1: has joined #RubyOnRails
[11:46:05] kristofferR: has joined #RubyOnRails
[11:46:34] morfin: has joined #RubyOnRails
[11:46:49] morfin: where can i read about commonly used patterns on RoR
[11:47:10] matthewd: sylario: Method#source_location can help with some of that
[11:47:31] matthewd: morfin: What sorts of patterns do you have in mind?
[11:48:28] teddysmoker: I would recommend "Practical object-oriented design in ruby", it's not focused on Rails.. but on Ruby and that is, in my opinion, a lot more helpful.
[11:48:44] morfin: hmm maybe )
[11:49:43] hotpancakes: has joined #RubyOnRails
[11:49:50] kristoff_: has joined #RubyOnRails
[11:50:18] morfin: i want to rewrite one shop which is Yii 1.1(and Yupe) right now and pretty ugly
[11:54:49] nettoweb: has joined #RubyOnRails
[11:56:12] urbanmonk: has joined #RubyOnRails
[11:56:34] kristofferR: has joined #RubyOnRails
[11:59:06] pickle_: has joined #RubyOnRails
[12:01:08] universa1: has joined #RubyOnRails
[12:03:15] arkaros: has joined #RubyOnRails
[12:04:05] harfangk_: has joined #RubyOnRails
[12:04:36] conta: has joined #RubyOnRails
[12:05:06] harfangk__: has joined #RubyOnRails
[12:07:31] pawnbox: has joined #RubyOnRails
[12:10:49] pawnbox: has joined #RubyOnRails
[12:11:07] artto: has joined #RubyOnRails
[12:11:28] kristofferR: has joined #RubyOnRails
[12:13:58] fox_mulder_cp: oho. some idiotic servers have an idiotic api which not crud like (
[12:20:54] universa1: has joined #RubyOnRails
[12:22:14] guardianJ: has joined #RubyOnRails
[12:25:52] doodlehaus: has joined #RubyOnRails
[12:32:46] tvw: has joined #RubyOnRails
[12:38:05] fourcolors: has joined #RubyOnRails
[12:38:10] hotpancakes: has joined #RubyOnRails
[12:38:19] guardianJ: has joined #RubyOnRails
[12:38:45] nOwz: has joined #RubyOnRails
[12:41:04] universa1: has joined #RubyOnRails
[12:42:49] adlerdias_: has joined #RubyOnRails
[12:43:05] Jasaka: has joined #RubyOnRails
[12:46:28] cschneid_: has joined #RubyOnRails
[12:53:59] xaviergmail: has joined #RubyOnRails
[13:03:42] shiznsh: has joined #RubyOnRails
[13:04:16] shiznsh: I'm trying to post to a Mailchimp API with Rails and Angular but I'm getting `ERROR bad URI `/[object%20Object]'`, any tips? If you need more code just ask
[13:05:49] pawnbox: has joined #RubyOnRails
[13:08:13] shiznsh: Any tips on this problem?
[13:08:42] fox_mulder_cp: shiznsh: [object%20Object] - is really, object :)
[13:08:53] fox_mulder_cp: not a string or some like api
[13:09:00] shiznsh: Object {email_address: "adfsdsf@asdffsda.com", status: "subscribed"}
[13:09:17] shiznsh: that is what is being submitted
[13:09:36] fox_mulder_cp: and u must use object[:email_address], than object
[13:10:09] shiznsh: So you mean, var member = { "email_address": scope.email, "status": "subscribed" } (that's my data) is not correct?
[13:10:53] fox_mulder_cp: i don't know your code
[13:11:05] fox_mulder_cp: u must send string to api, not object
[13:11:24] sean797: has joined #RubyOnRails
[13:11:25] universa1: has joined #RubyOnRails
[13:14:39] Guest29306: has joined #RubyOnRails
[13:14:56] pur3eval: has joined #RubyOnRails
[13:15:18] Ergo: has joined #RubyOnRails
[13:15:41] kristofferR: has joined #RubyOnRails
[13:17:56] pawnbox: has joined #RubyOnRails
[13:19:18] pawnbox: has joined #RubyOnRails
[13:20:09] cek: How do I create a .where.not() condition referencing eager-loaded field?
[13:22:31] pawnbox: has joined #RubyOnRails
[13:24:18] universa1: has joined #RubyOnRails
[13:24:34] brent__: has joined #RubyOnRails
[13:24:54] cek: that is, transform where('field != assoc_model.field') into more DSL way
[13:25:00] Jameser: has joined #RubyOnRails
[13:33:03] artto: has joined #RubyOnRails
[13:33:07] universa1: has joined #RubyOnRails
[13:33:45] nettoweb: has joined #RubyOnRails
[13:37:43] doodlehaus: has joined #RubyOnRails
[13:38:32] knight33: has joined #RubyOnRails
[13:40:17] harfangk: has joined #RubyOnRails
[13:41:14] mwlang: has joined #RubyOnRails
[13:41:20] doodlehaus: has joined #RubyOnRails
[13:44:47] itsautomatisch: has joined #RubyOnRails
[13:46:54] universa1: has joined #RubyOnRails
[13:47:00] mc_fail: why does my rails request different css after upgrading to rails 4?
[13:47:03] mc_fail: like /stylesheets/all.css
[13:47:10] mc_fail: i've never had it
[13:47:30] matthewd: What was it requesting before?
[13:48:09] nyaa: has joined #RubyOnRails
[13:48:18] fourcolors: has joined #RubyOnRails
[13:48:30] mc_fail: everything i have in /public/stylesheets
[13:49:20] Tempesta: has joined #RubyOnRails
[13:49:20] Tempesta: has joined #RubyOnRails
[13:49:27] rajdesai: has joined #RubyOnRails
[13:51:39] brent__: has joined #RubyOnRails
[13:56:12] quazimodo: has joined #RubyOnRails
[13:56:35] universa1: has joined #RubyOnRails
[14:03:44] artto: has joined #RubyOnRails
[14:03:46] Derperperd: has joined #RubyOnRails
[14:04:13] universa1: has joined #RubyOnRails
[14:05:09] epochwolf: How did you upgrade to rails 4?
[14:05:32] epochwolf: I'm pretty sure you would have to have changed something to cause that to happen.
[14:05:57] epochwolf: Did you turn on the asset pipeline?
[14:07:14] rajdesai: has joined #RubyOnRails
[14:08:55] Derperperd: has joined #RubyOnRails
[14:10:30] artto: has joined #RubyOnRails
[14:10:47] pawnbox: has joined #RubyOnRails
[14:11:04] rajdesai: has joined #RubyOnRails
[14:11:14] rajdesai: has joined #RubyOnRails
[14:13:03] rajdesai: has joined #RubyOnRails
[14:13:26] universa1: has joined #RubyOnRails
[14:13:50] TvL2386: has joined #RubyOnRails
[14:14:09] pawnbox_: has joined #RubyOnRails
[14:15:40] ramortegui: has joined #RubyOnRails
[14:17:40] tedwing: has joined #RubyOnRails
[14:18:52] universa1: has joined #RubyOnRails
[14:19:45] andrcmdr: has joined #RubyOnRails
[14:21:45] _3dwardsharp: has joined #RubyOnRails
[14:22:35] rajdesai: has joined #RubyOnRails
[14:28:17] conta: has joined #RubyOnRails
[14:28:56] safetypin: has joined #RubyOnRails
[14:30:17] DLSteve: has joined #RubyOnRails
[14:31:56] pawnbox: has joined #RubyOnRails
[14:32:54] SteenJobs: has joined #RubyOnRails
[14:34:43] chouhoulis: has joined #RubyOnRails
[14:35:15] dionysus69: has joined #RubyOnRails
[14:36:50] universa1: has joined #RubyOnRails
[14:41:00] fox_mulder_cp: mc_fail: read about stylesheets and js assets pipeline
[14:41:13] fox_mulder_cp: u don't need do something manually
[14:46:25] universa1: has joined #RubyOnRails
[14:47:17] alex88: has joined #RubyOnRails
[14:53:09] nettoweb: has joined #RubyOnRails
[14:55:47] tvw: has joined #RubyOnRails
[15:00:08] pawnbox: has joined #RubyOnRails
[15:00:18] versigtig: has joined #RubyOnRails
[15:01:41] soahccc^: Are there edge cases in where rails validators will use the model.column accessor method over the model[column] accessor? I can't reproduce an issue which should be reproducible every time
[15:03:23] dminuoso: I hate rails.
[15:03:25] dminuoso: ActionController::RoutingError at /api/v1/fiber_order_attachments uninitialized constant API::V1::FiberOrderAttachmentsController
[15:03:41] pur3eval: has joined #RubyOnRails
[15:04:12] pwnd_nsfw: dminuoso, hate yourself 'cause I bet you don't have that class defined correctly
[15:04:19] dminuoso: pwnd_nsfw: I have.
[15:04:23] dminuoso: pwnd_nsfw: I have checked this 7 times.
[15:04:45] soahccc^: We have a column "price" but we overwrote #price to return a price object (with base/current/etc. methods). I already noticed that since rails 5 the form helper will use #column (where it used #[] before) but it breaks now in numericality (gt: 0) validation (undefined method > for price object). For me it works, for another user it doesn't... ARGH
[15:05:12] dps: has joined #RubyOnRails
[15:05:31] pwnd_nsfw: yeay, everyone is happy
[15:05:40] dminuoso: pwnd_nsfw: https://gist.github.com/dminuoso/591418d426de89b47aaa3e2c5fcebee5
[15:05:50] soahccc^: pwnd_nsfw: if it wouldn't be so easy :D it's a shop so it's like used everywhere
[15:06:02] pwnd_nsfw: Api, not API
[15:06:17] dminuoso: pwnd_nsfw: I have an inflector for the acronym 'api'
[15:06:23] pwnd_nsfw: fukken liar
[15:06:36] dminuoso: https://gist.github.com/dminuoso/591418d426de89b47aaa3e2c5fcebee5
[15:06:44] dminuoso: inflect.acronym 'API'
[15:06:54] pwnd_nsfw: told you he was lying
[15:07:03] dminuoso: pwnd_nsfw: So, whats your next theory?
[15:07:15] dminuoso: I hate rails for giving me shit diagnostics to trace this down.
[15:07:39] pwnd_nsfw: How about dat routes.rb file
[15:09:59] fourcolors: has joined #RubyOnRails
[15:14:22] pawnbox: has joined #RubyOnRails
[15:14:39] universa1: has joined #RubyOnRails
[15:16:21] shinnya: has joined #RubyOnRails
[15:16:48] pawnbox: has joined #RubyOnRails
[15:19:05] naprimer_2: has joined #RubyOnRails
[15:20:32] universa1: has joined #RubyOnRails
[15:22:21] artto: has joined #RubyOnRails
[15:24:11] dminuoso: pwnd_nsfw: https://gist.github.com/dminuoso/591418d426de89b47aaa3e2c5fcebee5
[15:25:55] universa1: has joined #RubyOnRails
[15:26:46] dminuoso: pwnd_nsfw: The super fucking strange thing is, that from inside the live console that constant is loaded *JUST FINE*
[15:27:07] dminuoso: And before you ask, I dont have spring
[15:27:11] dminuoso: And yes, I also tried restarting the server.
[15:31:16] dminuoso: pwnd_nsfw: Haha.
[15:31:33] dminuoso: I found the mistake, but this surely must be a rails bug.
[15:31:38] agent_white: has joined #RubyOnRails
[15:32:02] dminuoso: pwnd_nsfw: I was just missing the _controller.rb of the filename, this should not blow up like that.
[15:36:38] artto_: has joined #RubyOnRails
[15:38:22] soahccc^: I mean I can fix it by passing only the ID instead of the model but does this only surprise me? https://gist.github.com/2called-chaos/44ed3a76e5698a175d58ba367c33e274
[15:38:44] pwnd_nsfw: dminuoso, lmfao
[15:38:57] pwnd_nsfw: I hadn't noticed either
[15:39:06] dminuoso: pwnd_nsfw: The thing is, autoloading is happy with it.
[15:39:36] pwnd_nsfw: I'm assuming it checks for all rb files, but that's just a guess after this case
[15:40:00] dminuoso: pwnd_nsfw: Im filing a bug report on this.
[15:40:05] dminuoso: Even if its by design, it needs far better diagnostics.
[15:40:25] dminuoso: Because once you're inside the shell you feel like Rails is lying back to you
[15:40:28] dminuoso: 16:26 < dminuoso> pwnd_nsfw: The super fucking strange thing is, that from inside the live console that constant is loaded *JUST FINE*
[15:42:02] AzaToth: has joined #RubyOnRails
[15:42:55] matthewd: > autoloading is happy with it
[15:43:05] safetypin: has joined #RubyOnRails
[15:43:06] matthewd: huh? Isn't the fact it wasn't autoloading exactly the problem?
[15:43:17] matthewd: (sorry, just catching up)
[15:43:21] hotpancakes: has joined #RubyOnRails
[15:44:19] dminuoso: matthewd: No, that's the really crazy strange thing.
[15:44:44] matthewd: I would expect it to work in production, but fail in development
[15:44:52] dminuoso: It fails in development.
[15:45:06] dminuoso: I agree with that expectation however.
[15:45:24] matthewd: In production, we load app/*/*.rb, so it would be defined. In dev, we autoload, so if the filename doesn't match the constant, we just won't find it.
[15:46:50] matthewd: If you get it wrong the other way around, we give you a better message: "expected file foo_bar.rb to define constant FooBar"
[15:47:56] dionysus69: has joined #RubyOnRails
[15:47:58] matthewd: But I'm not sure how we can do better for this case: as far as we know, without loading every other file in the app, fiber_order_attachments.rb is supposed to be named as it is, and is there to define a FiberOrderAttachments constant
[15:48:42] universa1: has joined #RubyOnRails
[15:50:02] dminuoso: matthewd: Then why can I access that constant from the live shell?
[15:50:27] matthewd: "live shell" == 'rails c' in development mode?
[15:50:29] agent_white: Mornin' folks
[15:50:50] fourcolors: has joined #RubyOnRails
[15:55:04] artto: has joined #RubyOnRails
[16:00:09] dminuoso: matthewd: the live shell from the rails error display in dev mode
[16:00:18] dminuoso: (And no Im not using better_errors)
[16:00:21] Fernando-Basso: has joined #RubyOnRails
[16:00:41] dminuoso: though I think better_errors with binding_of_caller should be correct
[16:00:56] dminuoso: This was the better_errors shell
[16:01:00] dminuoso: ACTION hides from matthewd 
[16:02:03] matthewd: Does better_errors load extra stuff to try to improve what it can tell you, or something?
[16:02:19] matthewd: I'm still not seeing how the constant is getting loaded
[16:02:58] universa1: has joined #RubyOnRails
[16:04:20] chopin: has joined #RubyOnRails
[16:04:27] pur3eval: has joined #RubyOnRails
[16:05:22] poeirn: has joined #RubyOnRails
[16:06:01] poeirn: I have a form which has no model (<%= form_tag('/developer/subscribe', novalidate: 'novalidate') do %>). Is there a way that I can add custom validations to this?
[16:06:20] poeirn: As you can see I've disabled HTML5 validations because, well, they're just ugly.
[16:07:23] poeirn: I was hoping I could do something with Javascript or Jquery but I could not find any good resources to implement within Rails :(
[16:08:50] cschneid_: has joined #RubyOnRails
[16:09:16] fourcolors: has joined #RubyOnRails
[16:09:25] poeirn: Any tips?
[16:13:28] patarr: has joined #RubyOnRails
[16:13:52] tumbacoco: has joined #RubyOnRails
[16:14:10] tumbacoco: Greetings everyone, been a while
[16:14:56] tumbacoco: in Rails, in an application.html.erb layout, is there a helper or method that can tell me what partial views are going to be loaded?
[16:15:13] tumbacoco: id like to load certain asset depending on the partial view name.
[16:16:24] dminuoso: matthewd: Im not sure but I may debug it later on.
[16:16:40] dminuoso: tumbacoco: have the partial insert an assets tag.
[16:16:54] dminuoso: tumbacoco: or use content_for
[16:17:25] tumbacoco: So go to the individual views that I want the script to load for, set a content_for, then yield it in application.html.erb?
[16:17:32] tumbacoco: dminuoso: ^
[16:18:37] tumbacoco: See, I was trying to avoid having to duplicate the content_for on all the views. Instead I wanted to write one line only in the application layout that will read the partial view names, if it sees a name that I specified for the views then load the script
[16:20:19] matthewd: dminuoso: +1.. I'm definitely interested in anything we can do to make it clearer, or at least more consistently broken
[16:20:35] zpe: has joined #RubyOnRails
[16:21:37] samdvr: has joined #RubyOnRails
[16:21:39] matthewd: dminuoso: It took you a bunch of frustration to spot it; it's 100x easier for a beginner to make that sort of mistake, and they're likely to give up before they work out what happened
[16:21:40] safetypin: has joined #RubyOnRails
[16:22:28] arup_r: has joined #RubyOnRails
[16:26:03] universa1: has joined #RubyOnRails
[16:26:51] dminuoso: matthewd: Is there a developer channel?
[16:28:42] safetypin: has joined #RubyOnRails
[16:29:11] baweaver: #rails-contrib
[16:30:09] Xentil: has joined #RubyOnRails
[16:30:36] matthewd: dminuoso: ^^ ... but that's basically just me ;)
[16:31:29] brent__: has joined #RubyOnRails
[16:39:56] lexileo: has joined #RubyOnRails
[16:42:58] fourcolors: has joined #RubyOnRails
[16:46:23] universa1: has joined #RubyOnRails
[16:46:38] baweaver: matthewd: you mean there are other Rails contributors other than you? *mind blown*
[16:48:09] matthewd: baweaver: We're all actually Rafael. Sometimes he gets bored of having his name on everything, so he uses secondary identities.
[16:48:32] baweaver: rfranca hasn't been on in a while has he?
[16:48:56] baweaver: I thought that t.enderlove did a lot of it too
[16:49:20] baweaver: (trying not to go alerting random people)
[16:50:33] matthewd: Yes, t'lo does a lot of stuff too.. but no-one can compete with RF
[16:50:50] username1: has joined #RubyOnRails
[16:50:53] matthewd: I mostly just talk a lot
[16:51:14] kinduff: has joined #RubyOnRails
[16:55:20] SteenJobs: has joined #RubyOnRails
[16:56:11] fourcolors: has joined #RubyOnRails
[16:58:05] tvw: has joined #RubyOnRails
[16:58:12] brendan6: has joined #RubyOnRails
[16:58:29] conta: has joined #RubyOnRails
[16:59:51] universa1: has joined #RubyOnRails
[17:01:00] nOwz: has joined #RubyOnRails
[17:02:20] umdstu: has joined #RubyOnRails
[17:02:42] tylerwillingham: has joined #RubyOnRails
[17:02:49] umdstu: i just deployed a rails app to a new server. i got this weird error from sprockets: code converter not found (UTF-8 to UTF-32LE)
[17:04:32] pwnd_nsfw: umdstu, gemfile?
[17:05:04] tylerwillingham: I recognize that when scaling an application and a somewhat public API is necessary, Rails makes it easy to respond at the controller level with JSON allowing you to quickly stand up an API for mobile apps/whatever. However, I know it’s also common practice to break out separate controllers for versioning an API. Other than versioning purposes and encapsulation of API-specific logic, can anyone speak to the
[17:05:04] tylerwillingham: reasons why it’s beneficial to avoid just using respond_to and returning JSON in your standard app controllers?
[17:05:08] pur3eval: has joined #RubyOnRails
[17:05:38] rajdesai: has joined #RubyOnRails
[17:06:24] pwnd_nsfw: tylerwillingham, because a view doesn't want json...?
[17:06:42] pwnd_nsfw: Or, if I know what you're saying, it's better to separate things by usage
[17:07:15] tylerwillingham: pwnd_nsfw: fwiw, i’m bought in on the separate controllers. This is just how I’ve always been taught and done it. But I’ve never considered the advantages and now I need to speak to the disadvantages of throwing everything in a single controller
[17:07:30] tylerwillingham: Other than the obvious controller bloat
[17:07:43] pwnd_nsfw: not even bloat, but clutter
[17:08:16] pwnd_nsfw: organization
[17:08:24] pwnd_nsfw: maintainability
[17:08:56] pwnd_nsfw: but does it scale?
[17:09:10] tylerwillingham: well if i wanted it to scale i wouldn’t use rails, obviously
[17:09:19] rajdesai: has joined #RubyOnRails
[17:09:25] tbuehlmann: API-specific logic and versioning sounds good to me, buying it
[17:09:28] pwnd_nsfw: OOOOOOOOOOOOOOOOOOOOOOOOOOOO
[17:09:52] pwnd_nsfw: we all know that PHP is the only lang that truly scales
[17:09:53] tylerwillingham: i think i’ll just pitch a microservice for every api endpoint instead of unique controllers
[17:10:06] pwnd_nsfw: lel, even better
[17:10:23] pwnd_nsfw: Are you trying to convince a client to give you more money? lele
[17:10:40] tylerwillingham: i’ve just heard that concurrency is cool - that’s all
[17:10:56] pwnd_nsfw: Yeah, he's a cool bro
[17:11:18] gusrub: has joined #RubyOnRails
[17:11:25] universa1: has joined #RubyOnRails
[17:13:03] envint: has joined #RubyOnRails
[17:17:51] bahamas: has joined #RubyOnRails
[17:19:39] arup_r: has joined #RubyOnRails
[17:19:40] bahamas: hello. rails newbie here. I see that when running db:create db:migrate the schema version changes. this happens even if I run the commands multiple times, so they produce any changes after the firs time. can the version change only when the commands actually do something?
[17:21:00] envint: has joined #RubyOnRails
[17:21:15] arup_r: yes it is as per the feature. but if you do `rake db:create db:schema:load` timestamp will not change.
[17:22:56] Suslov: has joined #RubyOnRails
[17:23:06] chouhoulis: has joined #RubyOnRails
[17:24:48] universa1: has joined #RubyOnRails
[17:25:04] conta: has joined #RubyOnRails
[17:27:32] xaviergmail: has joined #RubyOnRails
[17:29:43] bahamas: arup_r: will that take care of migrations?
[17:29:56] ldnunes: has joined #RubyOnRails
[17:30:45] pwnd_nsfw: bahamas, why are you interested in this changing?
[17:34:01] ariedler: has joined #RubyOnRails
[17:34:54] djbkd: has joined #RubyOnRails
[17:35:00] bahamas: pwnd_nsfw: I'm deploying my app by using git pull. this means I want to have a deployment flow that makes the latest changes to code and database. what would be the nondestructive command for the database? initially I used rake db:setup, but that nukes everything
[17:35:11] tildes: has joined #RubyOnRails
[17:35:41] bahamas: now I'm trying rake db:create db:migrate. but if that changes db/schema.rb, when I try to pull again, that pull will fail because of existing changes in the repo
[17:36:53] envint: has joined #RubyOnRails
[17:37:11] fourcolors: has joined #RubyOnRails
[17:38:01] manzo: has joined #RubyOnRails
[17:39:23] pwnd_nsfw: For an app that is existing, you'd just migrate the database
[17:39:35] pwnd_nsfw: if you'd like to start clean, just load the schema.
[17:40:12] mustmodify: has joined #RubyOnRails
[17:40:29] dps: has joined #RubyOnRails
[17:40:33] tbuehlmann: when running db:migrate locally, the schema.rb should change. once done, commit that, push/pull the changes to your remote machine and run db:migrate there. the schema.rb shouldn't change
[17:41:00] mustmodify: Clients have custom fields. Should my clients/:id.json endpoint emit the field names or the formatted lables? like, :frame_code or 'Frame Code' ?
[17:41:07] pwnd_nsfw: right, but you still have to make changes to the database itself
[17:41:30] pwnd_nsfw: mustmodify, depends on what you need bruh
[17:41:36] mustmodify: Either way I'm going to have to convert. If I emit the field names, I will have to convert to the labels, and vice versa. I could emmit both but...
[17:41:42] bahamas: pwnd_nsfw: I want a deployment command that works for the first time but also for subsequent times. that's why I'm running db:create
[17:41:59] pwnd_nsfw: db:migrate...
[17:42:34] SteenJobs: has joined #RubyOnRails
[17:42:56] tbuehlmann: that wouldn't create the database. you want to create the database if not existing and always migrate, right?
[17:42:57] bahamas: tbuehlmann: so, if I understand, my best option is to have db:create db:schema:load. that means whenever someone makes changes to the database, they need to run db:migrate so the schema version changes. what happens if they forget?
[17:43:09] pwnd_nsfw: fucking hell man
[17:43:09] bahamas: tbuehlmann: correct
[17:43:37] pwnd_nsfw: If they forget, that's their peoblem lol
[17:43:43] universa1: has joined #RubyOnRails
[17:43:48] bahamas: no, it's my problem
[17:44:03] pwnd_nsfw: honestly, you should have an alias or similar that runs migrate when you make any changes to the code
[17:44:46] pwnd_nsfw: Sure, and your solution is to fire them if they continue to forget
[17:45:31] mustmodify: bahamas: What if they forget to run db:migrate?
[17:45:38] mustmodify: is that your question?
[17:45:58] pwnd_nsfw: doesn't rails error instantly if migrations require running...
[17:46:04] mustmodify: that's what I was going to say.
[17:46:15] mustmodify: Rails will say, "Hey run your #)@$* migrations.
[17:46:21] pwnd_nsfw: just like that
[17:46:37] mustmodify: should be just like that. Though the actual message may be slightly more polite.
[17:46:42] mustmodify: But it's DHH so maybe not.
[17:46:48] pwnd_nsfw: hahah right?
[17:47:55] Suslov: has joined #RubyOnRails
[17:48:10] tbuehlmann: bahamas: what about `bin/rails db:create db:migrate`, shouldn't that do?
[17:48:21] pwnd_nsfw: lol, it's the same thing
[17:48:53] tbuehlmann: same as what?
[17:48:59] bahamas: tbuehlmann: that changes the version in db/schema.rb. then, if I try to pull again, I'll probably get an error saying that changes will be overriden
[17:50:03] bahamas: sounds like my best option is to run db:create db:schema:load and rely on migrations being ran and committed before
[17:50:14] tbuehlmann: how does that change the schema.rb?
[17:50:32] bahamas: tbuehlmann: version is a timestamp
[17:50:47] tbuehlmann: from the latest migration, which won't change, right?
[17:51:18] tbuehlmann: as you migrate locally, the schema.rb has the latest timestamp. when your remote machine pulls from the repo, the schema.rb has that version
[17:51:39] bahamas: ok, maybe I'm mistaken. I thought the version changes on every run, not on every migration.
[17:51:58] tbuehlmann: no, shoulnd't
[17:52:14] hahuang65: has joined #RubyOnRails
[17:52:45] bahamas: oh, cool. then I can use db:create db:migrate. thank you!
[17:53:30] tbuehlmann: when I had to deal with capistrano for deployment, I created the production database manually and only used db:migrate after that
[17:54:36] bahamas: I'm using ansible, but I'm creating the db programmatically. I'm also using vagrant for development, so I'm doing the same there
[17:55:06] pwnd_nsfw: you should be using migrations after your initial deploy/creation of the database...
[17:55:48] tbuehlmann: pwnd_nsfw: that's what is being done
[17:56:01] envint: has joined #RubyOnRails
[17:56:06] tbuehlmann: it's about not having to manually create the database but let the deployment do it
[17:57:03] hotpancakes: has joined #RubyOnRails
[17:58:55] djbkd: has joined #RubyOnRails
[17:59:55] Suslov: has joined #RubyOnRails
[18:00:23] arBmind: has joined #RubyOnRails
[18:03:43] Suslo: has joined #RubyOnRails
[18:04:11] Suslov_: has joined #RubyOnRails
[18:06:22] mustmodify: bahamas: just don't drop and recreate your production database.
[18:06:40] universa1: has joined #RubyOnRails
[18:08:06] brent__: how would i reference an assets/image/asdfas.png from react?
[18:08:21] brent__: <img src={?} />
[18:09:04] szulak_: has joined #RubyOnRails
[18:11:00] bahamas: mustmodify: I'll do my best
[18:11:14] envint: has joined #RubyOnRails
[18:12:26] hotpanca_: has joined #RubyOnRails
[18:14:30] dps: has joined #RubyOnRails
[18:14:59] P0w3r3d: has joined #RubyOnRails
[18:16:12] dminuoso: Bah, is there an equivalent of the scaffold_generator that works without generating code?
[18:16:51] dminuoso: *scaffold_controller I mean
[18:17:03] universa1: has joined #RubyOnRails
[18:17:07] dminuoso: Or.. heck this generates useless views too.
[18:20:01] tbuehlmann: you want a generator that generates.. no code?
[18:20:20] dminuoso: tbuehlmann: Idk. I want to scaffold a stupid CRUD api
[18:21:05] tbuehlmann: do you want scaffold_controller?
[18:21:07] matthewd: rails g scaffold_controller --api
[18:21:23] matthewd: (or scaffold if you do want the model)
[18:21:25] dminuoso: matthewd: Ahh, --api
[18:21:51] matthewd: IIRC that'll both skip the views and omit the new & edit actions
[18:22:09] Or1on: has joined #RubyOnRails
[18:22:15] dminuoso: matthewd: I kept looking for a scaffold_api :-)
[18:22:23] dminuoso: MMm, it generates haml templates though.
[18:22:57] uks: has joined #RubyOnRails
[18:23:01] matthewd: '-e erb' might help? Not sure.
[18:23:16] mustmodify: has left #RubyOnRails: ()
[18:23:28] matthewd: I'd guess that's a consequence of the haml generator not knowing about API mode. Or something.
[18:24:30] matthewd: (which, if that's the case, would be a bug for haml-rails I guess)
[18:25:51] amritoit: has joined #RubyOnRails
[18:27:53] universa1: has joined #RubyOnRails
[18:29:28] sean797: has joined #RubyOnRails
[18:30:05] envint: has joined #RubyOnRails
[18:31:20] FCser: has joined #RubyOnRails
[18:34:04] dminuoso: matthewd: I suppose what I really want is a custom generator.. :\
[18:34:48] xall: has joined #RubyOnRails
[18:39:04] ss_much: has joined #RubyOnRails
[18:39:37] gusrub: has joined #RubyOnRails
[18:42:51] universa1: has joined #RubyOnRails
[18:42:59] sonOfRa: has joined #RubyOnRails
[18:44:14] roadrunneratwast: has joined #RubyOnRails
[18:44:23] roadrunneratwast: : : Hi Rubyistas. I am learning ruby now with the Michael Hartl tutorial. I am roughly here. e https://www.railstutorial.org/book/static_pages#code-about_route The error output from the 'rails test' is "ActionController::RoutingError: uninitialized constant Static" which doesn't look like the expected error message. Is this okay?
[18:47:39] dminuoso: roadrunneratwast: no it does not. Please gist your config/routes.rb
[18:47:41] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[18:48:12] envint: has joined #RubyOnRails
[18:50:46] duderonomy: has joined #RubyOnRails
[18:50:56] pur3eval: has joined #RubyOnRails
[18:51:58] roadrunneratwast: dminuoso this should be a no-brainer but it's not working https://gist.github.com/mcverter/34a7fd20e8bb831640527b6a0d9dea6e
[18:52:59] dminuoso: roadrunneratwast: please add the full (not application) stack trace
[18:53:14] dminuoso: https://gist.github.com/mcverter/34a7fd20e8bb831640527b6a0d9dea6e#file-routes-rb-L6
[18:53:53] roadrunneratwast: thanks for directing me to the routes.rb file
[18:54:53] dminuoso: roadrunneratwast: For the future, if you look at the exception closely, you will see that it is a routing error
[18:55:07] apeiros: roadrunneratwast: re from #ruby - the backtrace almost certainly has routes.rb in it
[18:55:30] dminuoso: ACTION pokes apeiros with a monad
[18:55:33] apeiros: in framework-y situations, it's usually "scan from top until you hit a file you 'control'"
[18:55:48] apeiros: dminuoso: you can't. you're still in the moat I pushed you into yesterday
[18:56:27] dminuoso: apeiros: What if I use return to put you into the monad?
[18:56:35] hahuang65: has joined #RubyOnRails
[18:56:38] safetypin: has joined #RubyOnRails
[18:56:39] apeiros: I'll break and then continue
[18:56:43] dminuoso: Wait.. what
[18:56:52] dminuoso: My rails app needs Fibers.
[18:57:03] dminuoso: I have no clue why, but I want coroutines.
[18:57:07] apeiros: I'm sure that'll reduce the confusion :)
[18:57:11] apeiros: ACTION afk
[19:01:18] szulak: has joined #RubyOnRails
[19:01:46] mikecmpbll: has joined #RubyOnRails
[19:02:39] xall: has joined #RubyOnRails
[19:06:32] tfitts: has joined #RubyOnRails
[19:06:52] universa1: has joined #RubyOnRails
[19:09:22] chouhoulis: has joined #RubyOnRails
[19:16:00] nOwz: has joined #RubyOnRails
[19:16:56] Jasaka: has joined #RubyOnRails
[19:18:19] d0nn1e: has joined #RubyOnRails
[19:18:48] sid_fules: has joined #RubyOnRails
[19:19:28] universa1: has joined #RubyOnRails
[19:20:57] patarr: Does activerecord have some kind of "name" field in all models? Or is .name a Ruby object method?
[19:22:01] hotpancakes: has joined #RubyOnRails
[19:23:17] hotpanca_: has joined #RubyOnRails
[19:23:30] Cache_Money: has joined #RubyOnRails
[19:26:53] KnownSyntax: has joined #RubyOnRails
[19:26:53] KnownSyntax: has joined #RubyOnRails
[19:30:22] dminuoso: patarr: No and no.
[19:30:34] soahccc^: patarr: https://ruby-doc.org/core-2.2.0/Module.html#method-i-name
[19:30:49] dminuoso: soahccc_: That's not the same.
[19:31:31] soahccc^: I thought we were talking about SomeClass.name
[19:31:57] soahccc^: But I might be wrong :)
[19:32:45] dminuoso: Given "render :show, status: :created, location: @fiber_order_attachment", how can I have @fiber_order_attachment generate an URL inside a given namespace without having to manually specify the url/path helper?
[19:33:00] xall: has joined #RubyOnRails
[19:33:05] dminuoso: i.e. right now this crashes because there is no fiber_order_attachment_url but only an api_v1_order_attachment_url
[19:33:54] roadrunneratwast: has joined #RubyOnRails
[19:34:22] universa1: has joined #RubyOnRails
[19:37:13] hotpancakes: has joined #RubyOnRails
[19:37:20] epochwolf: dminuoso: you don't do that, you do location: api_v1_order_attachment_url(@fiber_order_attachment)
[19:38:16] dminuoso: epochwolf: That's what I want to avoid.
[19:38:34] dminuoso: epochwolf: I was hoping something similar to responders where I could do location [:api, :v1, @fiber_order_attachment]
[19:39:22] epochwolf: dminuoso: that would work if you had the routing set up properly for it.
[19:39:55] epochwolf: You'd need a namespace/module for :api and :v1 and a resource for :fiber_order_attachment
[19:40:10] dminuoso: epochwolf: I have that
[19:40:18] epochwolf: Then location [:api, :v1, @fiber_order_attachment]
[19:40:23] epochwolf: should work
[19:40:37] dminuoso: Mmm, let me try again
[19:41:20] dminuoso: epochwolf: Its working now.. Im really not sure why it didnt before
[19:41:53] epochwolf: The problem is solved.
[19:42:15] dminuoso: Yeah I guess
[19:43:00] meoblast001: has joined #RubyOnRails
[19:43:03] Cohedrin: has joined #RubyOnRails
[19:44:09] sam`: hey folks; i'm still stumped on my issue with mongoid-history and how to track changes on embedded documents
[19:44:16] sam`: anyone has experience doing that?
[19:44:52] sam`: i've explained my issue earlier: http://logs.ryanbigg.com/RubyOnRails?date=2017-03-08#6062523
[19:46:56] benlieb: has joined #RubyOnRails
[19:47:29] rangerscience: has joined #RubyOnRails
[19:48:20] TvL2386: has joined #RubyOnRails
[19:48:49] srinidhi: has joined #RubyOnRails
[19:51:42] pur3eval: has joined #RubyOnRails
[19:53:46] violarium: has joined #RubyOnRails
[19:53:49] epochwolf: sam`: Do you know how #changes works on ActiveModel classes?
[19:54:51] nOwz: has joined #RubyOnRails
[19:59:41] benlieb: has joined #RubyOnRails
[20:00:26] benlieb: has joined #RubyOnRails
[20:01:16] benlieb: has joined #RubyOnRails
[20:01:47] chouhoul_: has joined #RubyOnRails
[20:02:01] benlieb: has joined #RubyOnRails
[20:06:17] benlieb: has joined #RubyOnRails
[20:16:46] pawnbox: has joined #RubyOnRails
[20:17:07] chouhoulis: has joined #RubyOnRails
[20:20:37] envint: has joined #RubyOnRails
[20:23:12] planigan: has joined #RubyOnRails
[20:25:02] roadrunneratwast: has joined #RubyOnRails
[20:27:40] envint: I have a page behind auth that renders a React component which fetches data from one of our API endpoints. I need to be able to feed something to this React component to pass to the API to verify that the request is coming from an authenticated user. Any recommendations for what I can safely render from the server to the React component?
[20:30:00] Omnilord: has joined #RubyOnRails
[20:30:34] fox_mulder_cp: envint: gwt token can be generated when user succesfully authenticated via api call and than recieve it in headers when fetches data from api
[20:32:24] timdotrb: has joined #RubyOnRails
[20:34:10] brendan-: has joined #RubyOnRails
[20:34:13] envint: fox_mulder_cp: i think that makes sense. we don’t auth over our API, currently. right now users only sign in via the browser. which is ok for my purposes. perhaps i just need to grab the existing jwt that we already generate and pass that along
[20:35:04] fox_mulder_cp: envint: ok. main idea is for two different part of app - rails/django/etc as only json api server
[20:35:27] fox_mulder_cp: and different from it react/angular/vue/etc front app
[20:35:40] fox_mulder_cp: different teams, different repos, etc
[20:36:21] fox_mulder_cp: i write my apps hosting control panel now as described upper
[20:36:39] envint: yeah, that makes sense. we’re in a place where our Rails app just needs some highly interactive components and we’re using React for those. The entry-point for the React rendering is already in the Rails-served pages, behind our typical auth
[20:37:52] fox_mulder_cp: and i drops tons of gems - now my rails use small part of gems, such as devise, pundit for auth anf authorization, and when i post json pair from react app to api/users/signin, it returns for me jwt token
[20:38:06] fox_mulder_cp: and after i send in in headers for all my appsrequests
[20:38:46] fox_mulder_cp: i can change rails to django, perl, c# backend when i want. my react app reaaly different from rails
[20:40:06] fox_mulder_cp: i drop rails views from my app last september, when my ajax call stays like jquery macarone-style code
[20:40:33] rajdesai: has joined #RubyOnRails
[20:41:13] nOwz: has joined #RubyOnRails
[20:43:15] meoblast: has joined #RubyOnRails
[20:45:03] lxsameer: has joined #RubyOnRails
[20:45:04] timdotrb: has joined #RubyOnRails
[20:46:16] ap4y: has joined #RubyOnRails
[20:46:30] dps: has joined #RubyOnRails
[20:47:14] tildes: has joined #RubyOnRails
[20:50:41] Kestrel-029: Hi, is there anybody here who's experienced with the simple_form gem and how to configure routes.rb? I'm trying to create a custom form for a web app but I'm getting an error related to the path...
[20:52:49] versigtig: has joined #RubyOnRails
[20:52:54] szulak_: has joined #RubyOnRails
[20:55:00] hotpancakes: has joined #RubyOnRails
[20:56:42] pawnbox: has joined #RubyOnRails
[20:57:19] dpsk: has joined #RubyOnRails
[20:58:02] ldnunes: has joined #RubyOnRails
[20:59:47] sid_fules: has joined #RubyOnRails
[21:04:10] hotpanca_: has joined #RubyOnRails
[21:15:22] workmad3: has joined #RubyOnRails
[21:17:21] kitsuneyo: has joined #RubyOnRails
[21:18:13] hotpancakes: has joined #RubyOnRails
[21:19:48] Derperperd: has joined #RubyOnRails
[21:22:27] aperkins81: has joined #RubyOnRails
[21:24:57] yigitsadic: has joined #RubyOnRails
[21:26:02] dionysus69: has joined #RubyOnRails
[21:35:48] Jasaka: has joined #RubyOnRails
[21:40:24] pur3eval: has joined #RubyOnRails
[21:44:12] mwlang: has joined #RubyOnRails
[21:44:42] hotpancakes: has joined #RubyOnRails
[21:54:13] bennyzr: has joined #RubyOnRails
[21:54:34] Rodya_: has joined #RubyOnRails
[21:55:52] bennyzr: Hi, any suggetions on how to have javascript calculated values inline with dynamically added nested records?
[21:57:16] smeade: has joined #RubyOnRails
[21:57:39] djbkd: has joined #RubyOnRails
[21:57:59] Dysp: has joined #RubyOnRails
[21:59:23] nahtnam: has joined #RubyOnRails
[22:00:22] dionysus69: has joined #RubyOnRails
[22:01:00] pulkit4tech: has joined #RubyOnRails
[22:05:00] GodFather: has joined #RubyOnRails
[22:08:43] quazimodo: has joined #RubyOnRails
[22:09:48] Dysp: Hi there. https://gist.github.com/PrebenSivhat/7f285e4148e83030485c4a99dc1b189b
[22:10:11] hotpancakes: has joined #RubyOnRails
[22:10:22] Xentil: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[22:10:52] Dysp: I am trying to do some nested modelling, but I cant seem to get it to work. I've followed the railscast episodes on it, however only sporadically and in the wrong order, which probably messed something up for me.
[22:11:32] Dysp: Problem is that when creating a new "quiz", no form fields are created for the corresponding new answer that should be created and connected to the quiz.
[22:11:41] chouhoul_: has joined #RubyOnRails
[22:17:33] djbkd: has joined #RubyOnRails
[22:21:07] chopin: has joined #RubyOnRails
[22:21:46] tenderlove: has joined #RubyOnRails
[22:24:54] xaviergmail: has joined #RubyOnRails
[22:25:04] ahrs: has joined #RubyOnRails
[22:33:52] cnk: has joined #RubyOnRails
[22:41:09] pur3eval: has joined #RubyOnRails
[22:45:58] djbkd: has joined #RubyOnRails
[22:47:32] dminuoso: A UI item can have one of three states: committed, dirtyManual, dirtyAutomatic #=> what would you call this?
[22:48:27] dminuoso: Im looking for something not too generic (like state) in order to avoid future clashes with actual properties of models
[22:48:41] dminuoso: Because this is something that would be a PITA to refactor after a while
[22:50:06] dminuoso: I suppose "committed" could be renamed to "pristine"
[22:52:34] hakash: has joined #RubyOnRails
[22:54:36] roadrunneratwast: has joined #RubyOnRails
[22:54:46] mochiyoda_: has joined #RubyOnRails
[22:55:09] pawnbox: has joined #RubyOnRails
[22:56:09] apeiros: changeState, mutationState, modificationState (why camelCase btw?)
[22:56:10] jenrzzz: has joined #RubyOnRails
[22:56:10] jenrzzz: has joined #RubyOnRails
[22:56:27] conta: has joined #RubyOnRails
[22:56:34] tildes: has joined #RubyOnRails
[22:58:36] dminuoso: apeiros: modificationState I like.
[22:58:47] dminuoso: apeiros: And camelCase because it's more consistent in the JavaScript world.
[22:59:50] apeiros: honestly I'm pondering to use a single convention in my private projects. right now I have 3 styles: ruby (snake_case), javascript (camelCase) and css (dash-thingy). it's annoying as hell.
[23:00:04] dminuoso: apeiros: ^- that's exactly what I do. :-)
[23:00:06] apeiros: just sucks with the existing JS code.
[23:00:33] apeiros: but hey, since I'm at framework level JS, I can make like 90% adhere to that and the JS core I can alias shit.
[23:01:02] dminuoso: apeiros: honestly Ive started to like camelCase a lot.
[23:01:14] apeiros: and I stopped caring
[23:01:19] apeiros: but I hate inconsistency
[23:01:30] apeiros: and even more I hate having to map
[23:01:30] dminuoso: As long as you are consistently inconsistent it's fine right?
[23:01:52] apeiros: generate json from ruby? have first_name there? where do you map it? serverside? clientside?
[23:02:09] apeiros: I mean, JS wants firstName, not first_name
[23:03:10] dminuoso: 00:01 < apeiros> generate json from ruby? have first_name there? where do you map it? serverside? clientside?
[23:03:13] dminuoso: I feel your pain
[23:03:31] dminuoso: in particular because database I will stick to snake_case until forever
[23:03:37] apeiros: it's one of the main reasons I'm trying the "fuck it, I'll go with ruby's style everywhere"
[23:03:51] apeiros: it translates to css as well
[23:04:05] apeiros: because do you have id="first-name"? and again, where to map?
[23:04:07] dminuoso: apeiros: what about data attributes?
[23:04:10] nOwz: has joined #RubyOnRails
[23:04:15] dminuoso: suddenly you have data-kind="first_name"
[23:04:22] apeiros: data- is just convention
[23:04:26] apeiros: browsers swallow everything
[23:04:28] dminuoso: apeiros: no its specification.
[23:04:37] apeiros: pfffeeeeehehehehehe, good joke.
[23:04:46] apeiros: the specs can suck my whatever.
[23:04:55] apeiros: it's not like anybody *ever* paid attention.
[23:06:06] apeiros: I've been sticking with specs for the last 20y and it didn't provide any benefit whatsoever. who cares about a "this is valid html5" badge?
[23:06:11] apeiros: right, nobody ever except the author.
[23:06:39] apeiros: and it's not like "valid html5 + valid css + valid JS" ever guaranteed that it looked the same, or even less correct on all browsers.
[23:06:52] apeiros: so yeah, fuck the specs.
[23:07:10] dminuoso: apeiros: Heh.
[23:07:30] dminuoso: Though the browsers have streamlined fucktons already.
[23:07:47] dminuoso: It's nowhere near the anarchaic state that browsers were in 10 years ago.
[23:07:52] apeiros: yes, it's less of a clusterfuck in "standard" cases and that's great.
[23:08:22] apeiros: the clusterfuck is still there though, it only moved to less common cases and newer technologies.
[23:08:46] apeiros: and there I'm in the lucky position that I can lock to a single browser.
[23:08:47] dminuoso: by the way, I opted to split this off and call them const modifiedState = { pristine: 1, dirty: 2 }; const modifiedBy = { automatic: 1, manual: 2 };
[23:09:10] apeiros: why numeric codes and not speaking textual ones?
[23:09:23] TvL2386: has joined #RubyOnRails
[23:09:27] dminuoso: apeiros: C habits. :S
[23:10:02] apeiros: I sometimes struggle for probably similar reasons with using textual codes.
[23:11:07] dminuoso: The point you make is extremely valid. Being able to see the meaning when you go into the redux webtools is priceless.
[23:19:30] rafaeldelucena: has joined #RubyOnRails
[23:25:20] sid_fules: has joined #RubyOnRails
[23:30:05] timdotrb: Afternoon, all
[23:30:31] timdotrb: Is it possible to use will_paginate’s page & per_page attributes in a model? I’m getting an error that per_page is undefined..
[23:37:12] pawnbox: has joined #RubyOnRails
[23:38:23] itsautomatisch: has joined #RubyOnRails
[23:55:58] sid_fules: has joined #RubyOnRails
[23:56:37] gusrub: has joined #RubyOnRails
[23:57:40] safetypin: has joined #RubyOnRails
[23:59:02] gusrub: has joined #RubyOnRails