« Back to channel list

#RubyOnRails - 11 March 2017

« Back 1 day Forward 1 day »
[00:00:01] zvonimir45: pwnd_nsf - I know a little bit of RoR and trying to find somebody to work together on useful project. Parallel with learning RoR.
[00:02:05] zvonimir45: pwnd_nsfw - I know a little bit of RoR and trying to find somebody to work together on useful project. Parallel with learning RoR.
[00:03:06] zvonimir45: What do you do with RoR?
[00:07:09] username1: has joined #RubyOnRails
[00:11:55] username1: this may be a silly question, but in production does rails force you to update pending migrations?
[00:12:17] yigitsadic: has joined #RubyOnRails
[00:16:10] username1: (by default)
[00:16:11] zvonimir45: has joined #RubyOnRails
[00:18:38] joshsmith: has joined #RubyOnRails
[00:21:27] dps: has joined #RubyOnRails
[00:29:10] ruid_: has joined #RubyOnRails
[00:32:50] pur3eval: has joined #RubyOnRails
[00:34:15] mwlang: has joined #RubyOnRails
[00:37:00] guacamole: has joined #RubyOnRails
[00:37:22] jhack: Are there any gems/resources out there that can help anyone understand the source code of a big application quicker? (Ex: Providing documentation based on the code/routes)
[00:37:22] ruid: has joined #RubyOnRails
[00:38:37] ResidentBiscuit: has joined #RubyOnRails
[00:43:51] blackhuey: has joined #RubyOnRails
[00:44:59] nOwz: has joined #RubyOnRails
[00:45:10] ResidentBiscuit: has joined #RubyOnRails
[00:50:08] knight33: has joined #RubyOnRails
[00:51:03] ariedler: has joined #RubyOnRails
[00:51:38] knight33: has joined #RubyOnRails
[00:56:13] eclecticjohny: has joined #RubyOnRails
[00:58:29] alfie: has joined #RubyOnRails
[01:00:28] pawnbox: has joined #RubyOnRails
[01:06:19] meoblast001: has joined #RubyOnRails
[01:10:33] bga57: has joined #RubyOnRails
[01:13:38] jhack: has joined #RubyOnRails
[01:13:39] jhack: has joined #RubyOnRails
[01:28:06] blackhuey: has left #RubyOnRails: ()
[01:28:50] xibalba: has joined #RubyOnRails
[01:28:53] juggler: has joined #RubyOnRails
[01:34:04] arBmind1: has joined #RubyOnRails
[01:38:48] MalMen: has joined #RubyOnRails
[01:40:08] pawnbox: has joined #RubyOnRails
[01:42:05] keerthana: has joined #RubyOnRails
[01:42:10] superlou: has joined #RubyOnRails
[01:51:31] doodlehaus: has joined #RubyOnRails
[01:56:44] timdotrb: has joined #RubyOnRails
[01:58:58] pur3eval: has joined #RubyOnRails
[02:03:09] timdotrb: Evening, all
[02:06:43] timdotrb: I inherited an app from someone that uses Active Admin. I’m trying to setup a resource that has 2 belongs_to relationships, but am having trouble with the Edit page. I’m getting an error, “Unable to autoload constant Activity_gif, expected /app/app/models/activity_gif.rb to define it. Obviously the model is not in /app/app, but in /app. I searched the app for the term “/app” but didn’t find anything.
[02:06:57] djbkd: has joined #RubyOnRails
[02:06:58] timdotrb: Does anyone know how I can specify the path to the model? This is my current resource: https://gist.github.com/willc0de4food/00a79831cf0f7d3ddccede0094b16b71
[02:07:09] Trynemjoel: has joined #RubyOnRails
[02:13:19] duderonomy: has joined #RubyOnRails
[02:15:55] ahrs: has joined #RubyOnRails
[02:20:19] chouhoulis: has joined #RubyOnRails
[02:22:35] DoctorMonocular: has joined #RubyOnRails
[02:25:12] Derperperd: has joined #RubyOnRails
[02:28:28] marcdel: has joined #RubyOnRails
[02:31:42] irishfromua: has joined #RubyOnRails
[02:45:40] iliketurtles: has joined #RubyOnRails
[03:07:09] libastral: has joined #RubyOnRails
[03:09:28] pawnbox: has joined #RubyOnRails
[03:11:37] _3dwardsharp: has joined #RubyOnRails
[03:15:28] xall: has joined #RubyOnRails
[03:24:18] hotpancakes: has joined #RubyOnRails
[03:26:40] marcdel: has joined #RubyOnRails
[03:29:44] _3dwardsharp: anyone familiar with shoulda? i've digging into some old tests (circa rails2, ruby 1.8.7) and getting failures because changes applied to an object in one should block are not present in the next should block. i've got a `context` block that contains a `setup` block and a handful of `should` blocks. i'm assuming these tests worked and passed at some point in time. i'm using ruby 2.3.3 now.
[03:33:16] Jameser: has joined #RubyOnRails
[03:33:52] hotpancakes: has joined #RubyOnRails
[03:35:58] marcdel: has joined #RubyOnRails
[03:36:26] hotpancakes: has joined #RubyOnRails
[03:36:50] fcser__: has joined #RubyOnRails
[03:38:29] fcser___: has joined #RubyOnRails
[03:39:25] pawnbox: has joined #RubyOnRails
[03:50:43] ocpysh: has joined #RubyOnRails
[03:50:54] xaviergmail: has joined #RubyOnRails
[03:51:05] keerthana: has joined #RubyOnRails
[03:53:13] rogue_koder: has joined #RubyOnRails
[03:54:50] hotpancakes: has joined #RubyOnRails
[03:55:11] hotpancakes: has joined #RubyOnRails
[04:07:17] eclecticjohny: has joined #RubyOnRails
[04:07:27] DoctorMonocular: has joined #RubyOnRails
[04:12:28] keerthana: has joined #RubyOnRails
[04:14:24] Tempesta: has joined #RubyOnRails
[04:17:53] quazimodo: has joined #RubyOnRails
[04:27:03] Technodrome: has joined #RubyOnRails
[04:27:19] rakesh_verma: has joined #RubyOnRails
[04:32:45] ocpysh: has joined #RubyOnRails
[04:38:18] gusrub: has joined #RubyOnRails
[04:46:24] nOwz: has joined #RubyOnRails
[04:50:39] pulkit4tech: has joined #RubyOnRails
[04:53:52] Tempesta_: has joined #RubyOnRails
[04:54:06] chouhoulis: has joined #RubyOnRails
[04:56:39] fourcolors: has joined #RubyOnRails
[04:56:54] fourcolors: has joined #RubyOnRails
[05:02:15] cschneid_: has joined #RubyOnRails
[05:02:42] iliketurtles: has joined #RubyOnRails
[05:06:41] jenrzzz: has joined #RubyOnRails
[05:06:41] jenrzzz: has joined #RubyOnRails
[05:09:30] Tempesta: has joined #RubyOnRails
[05:11:10] raul782: has joined #RubyOnRails
[05:18:22] pawnbox: has joined #RubyOnRails
[05:23:51] Derperperd: has joined #RubyOnRails
[05:25:07] gambl0re: has joined #RubyOnRails
[05:29:34] amritoit: has joined #RubyOnRails
[05:32:30] shinnya: has joined #RubyOnRails
[05:45:33] ResidentBiscuit: has joined #RubyOnRails
[05:49:35] knight33: has joined #RubyOnRails
[05:53:13] pickle_: has joined #RubyOnRails
[05:58:11] guardianN: has left #RubyOnRails: ()
[06:04:16] xaviergmail: has joined #RubyOnRails
[06:25:19] xall: has joined #RubyOnRails
[06:30:19] Jameser: has joined #RubyOnRails
[06:33:39] jenrzzz: has joined #RubyOnRails
[06:33:39] jenrzzz: has joined #RubyOnRails
[06:54:29] nOwz: has joined #RubyOnRails
[07:18:05] alex88: has joined #RubyOnRails
[07:35:10] pawnbox: has joined #RubyOnRails
[07:45:26] zero1one0: has joined #RubyOnRails
[07:46:26] ResidentBiscuit: has joined #RubyOnRails
[07:50:34] dionysus69: has joined #RubyOnRails
[07:50:57] brent__: has joined #RubyOnRails
[07:51:00] jenrzzz: has joined #RubyOnRails
[07:51:00] jenrzzz: has joined #RubyOnRails
[07:53:18] d0nn1e: has joined #RubyOnRails
[07:56:24] xall: has joined #RubyOnRails
[07:57:19] tildes_: has joined #RubyOnRails
[08:05:31] jenrzzz: has joined #RubyOnRails
[08:13:08] ocpysh: has joined #RubyOnRails
[08:19:21] Derperperd: has joined #RubyOnRails
[08:24:35] cschneid_: has joined #RubyOnRails
[08:29:30] pawnbox: has joined #RubyOnRails
[08:31:22] rakesh_verma: has joined #RubyOnRails
[08:31:28] Axy: has joined #RubyOnRails
[08:32:28] hotpancakes: has joined #RubyOnRails
[08:33:19] pLaTo0n: has joined #RubyOnRails
[08:35:19] pickle_: has joined #RubyOnRails
[08:35:30] Qchmqs: has joined #RubyOnRails
[08:37:25] Jasaka: has joined #RubyOnRails
[08:41:53] hotpancakes: has joined #RubyOnRails
[08:42:29] xall: has joined #RubyOnRails
[08:54:11] Pumukel: has joined #RubyOnRails
[08:57:35] iamse7en: has joined #RubyOnRails
[08:59:39] iamse7en: how would I change the url for just ONE id of a resource? i want 'user/2' or 'user/3' to remain for users#show but user/1 to route to 'customname' ?
[09:02:49] pickle_: has joined #RubyOnRails
[09:03:02] Pumukel: has joined #RubyOnRails
[09:05:32] hotpancakes: has joined #RubyOnRails
[09:05:47] conta: has joined #RubyOnRails
[09:07:52] fox_mulder_cp: has joined #RubyOnRails
[09:09:36] xaviergmail: has joined #RubyOnRails
[09:10:41] pickle_: has joined #RubyOnRails
[09:13:54] lopcarlo: has joined #RubyOnRails
[09:15:25] bruce_lee: has joined #RubyOnRails
[09:17:26] xall: has joined #RubyOnRails
[09:19:51] Pumukel: has joined #RubyOnRails
[09:20:37] tildes_: has joined #RubyOnRails
[09:22:34] cschneid_: has joined #RubyOnRails
[09:23:21] keerthana: has joined #RubyOnRails
[09:26:00] Pumukel: has joined #RubyOnRails
[09:28:22] pickle__: has joined #RubyOnRails
[09:28:28] hotpancakes: has joined #RubyOnRails
[09:35:31] neal: has joined #RubyOnRails
[09:36:31] jenrzzz: has joined #RubyOnRails
[09:36:31] jenrzzz: has joined #RubyOnRails
[09:36:55] neal: Good morning everyone, I'm trying to create a user session spec, but this spec runs on a subdomain and I'm quite stuck on this. All help/tips are welcome
[09:37:13] Pumukel: has joined #RubyOnRails
[09:39:42] duderonomy: has joined #RubyOnRails
[09:40:20] _3dwardsharp: neal http://guides.rubyonrails.org/configuring.html#configuring-action-dispatch
[09:41:28] hotpancakes: has joined #RubyOnRails
[09:42:09] neal: @_3dwardsharp, I found that aswell. I'm currently looking at `@request.host = "#{mock_subdomain}.example.com"` but the thing I don't understand is if I set this domain correctly for production how can this work locally?
[09:42:20] Pumukel: has joined #RubyOnRails
[09:42:32] pawnbox: has joined #RubyOnRails
[09:43:54] jenrzzz: has joined #RubyOnRails
[09:46:15] _3dwardsharp: um, well, if your tests are trying to connect to "#{mock_subdomain}.example.com" then you app needs to respond to "#{mock_subdomain}.example.com"
[09:46:56] ResidentBiscuit: has joined #RubyOnRails
[09:48:02] Pumukel: has joined #RubyOnRails
[09:53:17] Pumukel: has joined #RubyOnRails
[09:58:52] Pumukel: has joined #RubyOnRails
[10:00:44] defsdoor: has joined #RubyOnRails
[10:04:12] Pumukel: has joined #RubyOnRails
[10:05:10] hotpancakes: has joined #RubyOnRails
[10:06:40] brent__: has joined #RubyOnRails
[10:10:57] lxsameer: has joined #RubyOnRails
[10:15:48] pawnbox: has joined #RubyOnRails
[10:18:59] pLaTo0n: has joined #RubyOnRails
[10:19:39] pickle_: has joined #RubyOnRails
[10:25:19] pickle_: has left #RubyOnRails: ()
[10:26:21] Pumukel: has joined #RubyOnRails
[10:31:44] loechel: has joined #RubyOnRails
[10:37:27] Pumukel: has joined #RubyOnRails
[10:39:27] shinnya: has joined #RubyOnRails
[10:42:49] Pumukel: has joined #RubyOnRails
[10:47:32] hotpancakes: has joined #RubyOnRails
[10:48:39] Pumukel: has joined #RubyOnRails
[10:54:29] Pumukel: has joined #RubyOnRails
[11:00:16] Pumukel: has joined #RubyOnRails
[11:03:02] hotpancakes: has joined #RubyOnRails
[11:04:50] arBmind: has joined #RubyOnRails
[11:08:41] szulak: has joined #RubyOnRails
[11:11:15] Pumukel: has joined #RubyOnRails
[11:11:48] srinidhi: has joined #RubyOnRails
[11:16:39] patarr: has joined #RubyOnRails
[11:16:42] Pumukel: has joined #RubyOnRails
[11:17:58] jenrzzz: has joined #RubyOnRails
[11:20:52] sid_fules: has joined #RubyOnRails
[11:27:57] Pumukel: has joined #RubyOnRails
[11:33:30] Pumukel: has joined #RubyOnRails
[11:34:04] Jameser: has joined #RubyOnRails
[11:34:37] hotpancakes: has joined #RubyOnRails
[11:35:43] fourcolors: has joined #RubyOnRails
[11:37:36] DoubleMalt: has joined #RubyOnRails
[11:40:01] dionysus69: has joined #RubyOnRails
[11:42:36] zpe: has joined #RubyOnRails
[11:42:57] srinidhi: has joined #RubyOnRails
[11:45:06] Pumukel: has joined #RubyOnRails
[11:47:43] hotpancakes: has joined #RubyOnRails
[11:50:31] Pumukel: has joined #RubyOnRails
[11:52:54] JDeen: has joined #RubyOnRails
[11:54:17] JDeen: Hi... if I am writing an ActiveJob::TestCase, how would I check if the operation will change database count?
[11:56:13] Pumukel: has joined #RubyOnRails
[11:56:46] jordansz: has joined #RubyOnRails
[11:56:52] jordansz: hi everyone, how could i get the value of an object.id based on an variable?
[11:57:21] jordansz: would = row.read_attribute(:id) be the correct way? where row is a object from a collection i loop
[11:57:59] jordansz: the problem is how would i make ":id" dynamic based on variable?
[12:01:41] Pumukel: has joined #RubyOnRails
[12:01:52] AzaToth: has joined #RubyOnRails
[12:03:34] pawnbox: has joined #RubyOnRails
[12:03:47] JDeen: jordansz: You mean row.read_attribute(my_var) where is some thing like my_var = "id" ?
[12:04:00] jordansz: yes correct jdeen havent figured that out yet
[12:05:04] JDeen: jordansz: i haven't used the specific api, but chances are it accepts a string. if not, you can change a string to a sym by "abc".to_sym no?
[12:05:28] hotpancakes: has joined #RubyOnRails
[12:05:35] pawnbox: has joined #RubyOnRails
[12:06:00] conta: has joined #RubyOnRails
[12:06:57] Pumukel: has joined #RubyOnRails
[12:07:24] Qchmqs: has joined #RubyOnRails
[12:08:34] jordansz: i try that jdeen thanks
[12:09:51] nettoweb: has joined #RubyOnRails
[12:10:11] jordansz: = row.read_attribute("id".to_sym) indeed works thank you very much
[12:12:07] pawnbox: has joined #RubyOnRails
[12:12:38] Pumukel: has joined #RubyOnRails
[12:13:43] spicerack: has joined #RubyOnRails
[12:15:08] jenrzzz: has joined #RubyOnRails
[12:15:08] jenrzzz: has joined #RubyOnRails
[12:19:22] Aherin: has joined #RubyOnRails
[12:19:59] raul782: has joined #RubyOnRails
[12:22:03] raul782: Hello guys, I'm trying to use audited + rolify for my User model, but the audit table is not recording the auditable_id and auditable_type, what is the best approach to debug this issue?
[12:22:41] sid_fules: has joined #RubyOnRails
[12:22:43] raul782: This happens, When I made a change to a user, any other model audited works just fine
[12:28:27] patarr: has joined #RubyOnRails
[12:30:05] defsdoor: has joined #RubyOnRails
[12:30:18] quazimodo: has joined #RubyOnRails
[12:33:16] srinidhi: has joined #RubyOnRails
[12:35:05] Pumukel: has joined #RubyOnRails
[12:37:57] pickle_: has joined #RubyOnRails
[12:38:13] pickle_: has left #RubyOnRails: ()
[12:39:18] ruid: has joined #RubyOnRails
[12:39:19] ruid: has joined #RubyOnRails
[12:41:05] xaviergmail: has joined #RubyOnRails
[12:42:44] hotpancakes: has joined #RubyOnRails
[12:44:26] jordansz: i have array that looks like array =['1','2','3'], '1','2','3'] ] can't figure out how i could look that with only the unique element each time
[12:44:35] jordansz: so i want to return 2 rows with only 1,2,3
[12:45:04] jordansz: using a - columns.each_with_index do |column, index_column| it just outputs everything ( i try to break from the each to render a table )
[12:45:13] jordansz: anyone an idea how this might be a good way to tackle?
[12:45:23] jordansz: *look = loop
[12:45:28] Pumukel: has joined #RubyOnRails
[12:46:30] matthewd: jordansz: Huh?
[12:47:04] jordansz: i think i need to find a way to break the loop so it stops after 3 array items..
[12:47:11] jordansz: then you would get 2 rows of 3 items
[12:47:39] matthewd: What does the input array look like? The above isn't syntactically valid.
[12:47:53] Jameser: has joined #RubyOnRails
[12:49:30] pawnbox: has joined #RubyOnRails
[12:50:10] jordansz: matthewd i do something like this https://gist.github.com/jordanlance/1c4e32ff31ca8c0dabd22b11d1cca97f
[12:50:40] Pumukel: has joined #RubyOnRails
[12:50:45] jordansz: i made a renderer for table, hope that makes it a bit clear... the column part is problem, need to render the 3 items of each array element [1,2,3]
[12:50:55] jordansz: and then break from the loop so the next row is processed
[12:51:00] brent__: has joined #RubyOnRails
[12:51:41] jordansz: in comment i pasted my render method , perhaps it can be done better have to look at it later
[12:51:44] matthewd: I don't understand why you need a break at all
[12:52:03] matthewd: Is your problem on line 8?
[12:55:47] srinidhi: has joined #RubyOnRails
[12:55:50] srinidhi: has joined #RubyOnRails
[12:56:07] Pumukel: has joined #RubyOnRails
[12:56:38] Jameser: has joined #RubyOnRails
[12:57:22] hfp_work: has joined #RubyOnRails
[13:09:23] srinidhi: has joined #RubyOnRails
[13:09:31] User458764: has joined #RubyOnRails
[13:10:19] Jameser: has joined #RubyOnRails
[13:10:39] rakesh_verma: has joined #RubyOnRails
[13:12:11] jenrzzz: has joined #RubyOnRails
[13:12:11] jenrzzz: has joined #RubyOnRails
[13:12:53] Pumukel: has joined #RubyOnRails
[13:15:18] pawnbox: has joined #RubyOnRails
[13:19:06] nettoweb: has joined #RubyOnRails
[13:23:08] nettoweb: has joined #RubyOnRails
[13:28:57] Pumukel: has joined #RubyOnRails
[13:34:19] pawnbox: has joined #RubyOnRails
[13:34:21] Pumukel: has joined #RubyOnRails
[13:34:49] sid_fules: has joined #RubyOnRails
[13:39:58] Pumukel: has joined #RubyOnRails
[13:40:46] ruid: has joined #RubyOnRails
[13:40:50] ruid: has joined #RubyOnRails
[13:40:53] Jameser: has joined #RubyOnRails
[13:45:27] hfp_work: has joined #RubyOnRails
[13:45:37] Pumukel: has joined #RubyOnRails
[13:49:46] HoierM: has joined #RubyOnRails
[13:51:20] Pumukel: has joined #RubyOnRails
[13:55:29] ocpysh: has joined #RubyOnRails
[13:56:39] Jameser: has joined #RubyOnRails
[14:00:30] Derperperd: has joined #RubyOnRails
[14:01:52] lightheaded: has joined #RubyOnRails
[14:06:34] jhack: has joined #RubyOnRails
[14:07:49] Pumukel: has joined #RubyOnRails
[14:07:59] conta: has joined #RubyOnRails
[14:09:29] jenrzzz: has joined #RubyOnRails
[14:09:29] jenrzzz: has joined #RubyOnRails
[14:12:05] shinnya: has joined #RubyOnRails
[14:13:21] Pumukel: has joined #RubyOnRails
[14:16:39] keerthana: has joined #RubyOnRails
[14:18:48] Pumukel: has joined #RubyOnRails
[14:24:10] sid_fules: has joined #RubyOnRails
[14:24:42] matthewd: has joined #RubyOnRails
[14:24:42] Pumukel: has joined #RubyOnRails
[14:26:59] Blaguvest: has joined #RubyOnRails
[14:27:39] doodlehaus: has joined #RubyOnRails
[14:30:19] pLaTo0n: has joined #RubyOnRails
[14:30:21] Pumukel: has joined #RubyOnRails
[14:34:24] ss_much: has joined #RubyOnRails
[14:34:49] User458764: has joined #RubyOnRails
[14:39:29] xaviergmail: has joined #RubyOnRails
[14:46:28] srinidhi: has joined #RubyOnRails
[14:46:48] Pumukel: has joined #RubyOnRails
[14:48:19] Jameser: has joined #RubyOnRails
[14:48:22] hotpancakes: has joined #RubyOnRails
[14:51:53] Pumukel: has joined #RubyOnRails
[14:52:03] teddysmoker: has joined #RubyOnRails
[14:53:21] greengriminal: has joined #RubyOnRails
[14:53:30] tomasm-: has joined #RubyOnRails
[14:57:39] User458764: has joined #RubyOnRails
[14:59:29] keerthana: has joined #RubyOnRails
[15:05:03] DLSteve: has joined #RubyOnRails
[15:07:44] Pumukel: has joined #RubyOnRails
[15:08:31] eclecticjohny: has joined #RubyOnRails
[15:11:05] alan_w: has joined #RubyOnRails
[15:13:39] Pumukel: has joined #RubyOnRails
[15:15:14] sid_fules: has joined #RubyOnRails
[15:15:27] hotpancakes: has joined #RubyOnRails
[15:15:38] Or1on: has joined #RubyOnRails
[15:16:18] nettoweb: has joined #RubyOnRails
[15:17:43] asahi: has joined #RubyOnRails
[15:18:59] Pumukel: has joined #RubyOnRails
[15:19:27] naprimer_3: has joined #RubyOnRails
[15:20:32] User458764: has joined #RubyOnRails
[15:21:09] asahi: Hello, if I have a query like A.includes(b: [c, d]), can I set a condition on b using c? So for example I only want b where c.attr="foo"
[15:21:33] Psy-Q: has joined #RubyOnRails
[15:22:11] asahi: I know I can set conditions based on attributes of b, like .where(b: {attr: x })
[15:22:44] joelwallis: has joined #RubyOnRails
[15:23:27] matthewd: asahi: `.where("c.attr = 'foo' OR c.id IS NULL")` *might* do what you want?
[15:24:27] Pumukel: has joined #RubyOnRails
[15:25:09] nettoweb: has joined #RubyOnRails
[15:26:45] NoGodDamnIdea: has joined #RubyOnRails
[15:26:45] NoGodDamnIdea: has joined #RubyOnRails
[15:28:31] nettoweb: has joined #RubyOnRails
[15:33:18] asahi: matthewd: awesome. thanks!
[15:34:03] matthewd: asahi: Note that'll select rows where there is no c. If that's not what you want, you might want to move/remove the null condition
[15:37:37] asahi: matthewd: Yup, I removed that part, and I got the result I was looking for
[15:38:07] matthewd: Cool, in that case you could also use the hash form you mentioned, just swapping c for b
[15:40:05] nettoweb: has joined #RubyOnRails
[15:42:38] hotpancakes: has joined #RubyOnRails
[15:48:02] merzu: has joined #RubyOnRails
[15:51:07] Technodrome: has joined #RubyOnRails
[15:52:08] GodFather: has joined #RubyOnRails
[15:53:53] arBmind: has joined #RubyOnRails
[15:55:58] szulak: has joined #RubyOnRails
[15:57:15] hotpancakes: has joined #RubyOnRails
[16:03:39] jenrzzz: has joined #RubyOnRails
[16:05:55] sid_fules: has joined #RubyOnRails
[16:06:12] hotpancakes: has joined #RubyOnRails
[16:07:25] Pumukel: has joined #RubyOnRails
[16:08:08] matthewd: has joined #RubyOnRails
[16:13:10] Pumukel: has joined #RubyOnRails
[16:13:28] Fernando-Basso: has joined #RubyOnRails
[16:15:48] xaviergmail: has joined #RubyOnRails
[16:16:50] hotpancakes: has joined #RubyOnRails
[16:18:36] Pumukel: has joined #RubyOnRails
[16:23:08] conta: has joined #RubyOnRails
[16:23:27] netzfisch: has joined #RubyOnRails
[16:23:36] doublemalt_: has joined #RubyOnRails
[16:27:14] hotpancakes: has joined #RubyOnRails
[16:30:35] dcluna: has joined #RubyOnRails
[16:32:00] iamse7en: has joined #RubyOnRails
[16:32:14] iamse7en: how would I change the url for just ONE id of a resource? i want 'user/2' or 'user/3' to remain for users#show but user/1 to route to 'customname' ?
[16:32:19] pickle_: has joined #RubyOnRails
[16:37:00] pLaTo0n: has joined #RubyOnRails
[16:37:24] zpe: has joined #RubyOnRails
[16:37:29] Technodrome: has joined #RubyOnRails
[16:37:56] yottanami: has joined #RubyOnRails
[16:38:26] yottanami: What tools do you suggest for using an external Restful API in Rails ( I need a rest client )
[16:39:28] havenwood: yottanami: HTTP.rb
[16:39:51] havenwood: yottanami: https://github.com/httprb/http
[16:39:56] Pumukel: has joined #RubyOnRails
[16:40:10] yottanami: havenwood, What about rest-client
[16:40:51] hotpancakes: has joined #RubyOnRails
[16:41:03] havenwood: yottanami: RestClient is one of the Net::HTTP wrappers. It's not my personal favorite.
[16:41:45] havenwood: yottanami: I'd use HTTP.rb, HTTPClient, Typhoeus or just plain Net::HTTP before it myself.
[16:42:16] havenwood: yottanami: Or Faraday is a nice wrapper for multiple clients.
[16:42:41] knight33: has joined #RubyOnRails
[16:43:40] havenwood: yottanami: Give HTTP.rb a try! Or tell us more about the particulars of your usecase?
[16:44:12] szulak: has joined #RubyOnRails
[16:46:45] yottanami: havenwood, OK I will try HTTP.rb
[16:47:30] pawnbox: has joined #RubyOnRails
[16:47:40] eclecticjohny: has joined #RubyOnRails
[16:47:59] zpe: has joined #RubyOnRails
[16:49:56] User458764: has joined #RubyOnRails
[16:52:38] yottanami: havenwood, Should I create a module for my api client? is there any samples?
[16:55:49] hotpancakes: has joined #RubyOnRails
[16:59:05] doodlehaus: has joined #RubyOnRails
[17:00:26] matthewd: iamse7en: You'll need to write a custom helper
[17:00:37] |PiP|: has joined #RubyOnRails
[17:00:47] jenrzzz: has joined #RubyOnRails
[17:00:47] jenrzzz: has joined #RubyOnRails
[17:01:39] Pumukel: has joined #RubyOnRails
[17:02:24] matthewd: iamse7en: This is the problem solved by the new `resolve` method coming in Rails 5.1
[17:03:10] iamse7en: matthewd: thank you. is there a link of what this custom helper might look like? any direction you point me to would be very appreciated!
[17:04:10] matthewd: def get_the_right_url_for_user(user); if user == current_user; own_profile_path; else; user_path(user); end; end
[17:04:25] hotpancakes: has joined #RubyOnRails
[17:05:15] workmad3: has joined #RubyOnRails
[17:07:26] Pumukel: has joined #RubyOnRails
[17:07:44] iamse7en: oh, interesting. so this replaces my resources users right
[17:07:51] keerthana: has joined #RubyOnRails
[17:08:09] djbkd: has joined #RubyOnRails
[17:08:16] iamse7en: or just the show part
[17:08:21] matthewd: No, we're just defining a (view) helper method that you'll call as foo_whatever(@user) instead of user_path(@user)
[17:08:38] matthewd: You still need the route defined just the same: we're still invoking the original from inside the helper
[17:11:42] hotpancakes: has joined #RubyOnRails
[17:12:47] Pumukel: has joined #RubyOnRails
[17:12:59] fourcolors: has joined #RubyOnRails
[17:17:46] rogue_koder: has joined #RubyOnRails
[17:20:31] User458764: has joined #RubyOnRails
[17:24:47] sid_fules: has joined #RubyOnRails
[17:25:51] eclecticjohny: has joined #RubyOnRails
[17:26:03] netzfisch: has joined #RubyOnRails
[17:26:42] nyaa: has joined #RubyOnRails
[17:27:41] alex88: has joined #RubyOnRails
[17:27:52] sagax: has joined #RubyOnRails
[17:29:26] Pumukel: has joined #RubyOnRails
[17:31:39] zpe: has joined #RubyOnRails
[17:39:00] doodlehaus: has joined #RubyOnRails
[17:43:06] xaviergmail: has joined #RubyOnRails
[17:46:38] knight33: has joined #RubyOnRails
[17:48:56] tildes_: has joined #RubyOnRails
[17:51:22] gambl0re: has joined #RubyOnRails
[17:56:10] apotry: has joined #RubyOnRails
[17:57:48] jenrzzz: has joined #RubyOnRails
[17:57:58] neredsenvy: has joined #RubyOnRails
[18:00:56] gk-: has joined #RubyOnRails
[18:02:15] doodlehaus: has joined #RubyOnRails
[18:04:49] joelwallis: has joined #RubyOnRails
[18:07:27] Pumukel: has joined #RubyOnRails
[18:07:31] gk-: has joined #RubyOnRails
[18:07:40] oyemohit: has joined #RubyOnRails
[18:11:12] merzu1: has joined #RubyOnRails
[18:11:35] amritoit: has joined #RubyOnRails
[18:11:49] sid_fules: has joined #RubyOnRails
[18:13:07] Pumukel: has joined #RubyOnRails
[18:14:06] fragamus: has joined #RubyOnRails
[18:14:14] User458764: has joined #RubyOnRails
[18:14:23] pawnbox: has joined #RubyOnRails
[18:16:55] joelwallis: has joined #RubyOnRails
[18:18:21] szulak: has joined #RubyOnRails
[18:19:41] conta: has joined #RubyOnRails
[18:21:37] meoblast001: has joined #RubyOnRails
[18:22:54] jhack: has joined #RubyOnRails
[18:23:01] fourcolors: has joined #RubyOnRails
[18:23:52] Or1on: has joined #RubyOnRails
[18:24:32] sid_fules: has joined #RubyOnRails
[18:24:41] Pumukel: has joined #RubyOnRails
[18:30:25] Pumukel: has joined #RubyOnRails
[18:30:51] knight33: has joined #RubyOnRails
[18:31:45] sid_fules: has joined #RubyOnRails
[18:31:49] oyemohit: has joined #RubyOnRails
[18:34:02] bywaterloo: has joined #RubyOnRails
[18:34:24] bywaterloo: join #swgemuservers
[18:36:11] Pumukel: has joined #RubyOnRails
[18:37:59] hotpancakes: has joined #RubyOnRails
[18:41:14] pawnbox: has joined #RubyOnRails
[18:41:15] merzu1: has joined #RubyOnRails
[18:41:57] Pumukel: has joined #RubyOnRails
[18:46:08] User458764: has joined #RubyOnRails
[18:47:57] epochwolf: I could use a little help. I've got a lot of configuration for a POS system that I need to store somewhere. The system is designed to sell badges at the door for a convention.
[18:48:13] tildes__: has joined #RubyOnRails
[18:48:25] epochwolf: I'm not sure if I should shove this stuff in the database, yml files, or just in ruby code.
[18:48:37] epochwolf: Here's most of the configuration I'll need: https://gist.github.com/epochwolf/ad05548a625eda855ff4184081694a08
[18:49:54] Technodrome: has joined #RubyOnRails
[18:50:34] epochwolf: Where is gets complicated is as you add things to a badge (level, age_group, flair), they add or remove attributes from the badge until everything has been processed. So any of these configuration items have the potential to do changes.
[18:53:52] |PiP|`: has joined #RubyOnRails
[18:54:15] epochwolf: I started making everything as database models but it quickly got out of hand with complexity. I'm kind of stuck at where to go from here.
[18:55:03] jenrzzz: has joined #RubyOnRails
[18:55:03] jenrzzz: has joined #RubyOnRails
[18:58:43] Pumukel: has joined #RubyOnRails
[18:59:22] jhack_: has joined #RubyOnRails
[19:00:32] jhack: has joined #RubyOnRails
[19:01:16] szulak: has joined #RubyOnRails
[19:04:10] Pumukel: has joined #RubyOnRails
[19:04:49] alex88: has joined #RubyOnRails
[19:07:52] dps: has joined #RubyOnRails
[19:09:56] Pumukel: has joined #RubyOnRails
[19:15:25] Pumukel: has joined #RubyOnRails
[19:18:36] ResidentBiscuit: has joined #RubyOnRails
[19:19:53] sid_fules: has joined #RubyOnRails
[19:27:15] ResidentBiscuit: has joined #RubyOnRails
[19:32:09] Pumukel: has joined #RubyOnRails
[19:32:22] eclecticjohny: has joined #RubyOnRails
[19:34:39] Guest32509: has joined #RubyOnRails
[19:37:17] killert: has joined #RubyOnRails
[19:37:57] Pumukel: has joined #RubyOnRails
[19:38:37] hotpancakes: has joined #RubyOnRails
[19:43:42] akshat: has joined #RubyOnRails
[19:43:49] Nicmavr: Hi, so I'm trying to create a really simple rails app with a simple form but I'm getting an error related to ActionController::UnknownFormat. Anybody around who can take a quick look at my code and see what's going wrong?
[19:43:50] Pumukel: has joined #RubyOnRails
[19:45:36] epochwolf: Nicmavr: gist the code please. :)
[19:45:43] alan_w: has joined #RubyOnRails
[19:46:19] Nicmavr: epochwolf sure, one sec
[19:49:02] Nicmavr: epochwolf: here it is: https://gist.github.com/anonymous/e836bada00472ce4ce195a8ac531cfce
[19:49:22] Nicmavr: the error I'm getting is: StudentsController#new is missing a template for this request format and variant. request.formats: ["text/html"] request.variant: [] NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect
[19:49:22] Nicmavr: 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.
[19:49:53] Derperperd: has joined #RubyOnRails
[19:49:56] Nicmavr: I'm following a video tutorial on youtube so I'm not sure if i'm maybe missing something. the tutorial uses rails 2 and I'm using rails 5 if that makes any difference
[19:50:52] knight33: has joined #RubyOnRails
[19:51:11] epochwolf: Nicmavr: first off, huge... huge differences between 2 and 5.
[19:51:32] epochwolf: second... code looks okay but did you install haml?
[19:52:07] jenrzzz: has joined #RubyOnRails
[19:52:13] Nicmavr: I didn't do anything for haml no
[19:52:27] pickle__: has joined #RubyOnRails
[19:52:56] epochwolf: That would be your problem. You need to add haml to the Gemfile and do a `bundle install`
[19:53:38] matthewd: .. but it would really be worth trying to find a somewhat less out-of-date tutorial
[19:53:47] epochwolf: definitely.
[19:53:51] Nicmavr: epochwolf: sweet man, works now!
[19:53:58] Nicmavr: cant believe it was something so simple
[19:54:09] matthewd: Something that covers 4.x would be fine, 3.x would be livable... 2.x is going to leave you in pain.
[19:54:42] epochwolf: Only if I don't get to Nicmavr first... now. Where is my beatin' stick?
[19:55:08] Pumukel: has joined #RubyOnRails
[19:55:19] Nicmavr: I'll keep that in mind but surely the very basic stuff like that code are the same?
[19:55:35] epochwolf: As you just found out, Rails 2 doesn't have a Gemfile.
[19:55:46] Nicmavr: I dont intend to follow old tutorials forever, just trying to create something simple so I can get the hang of actually using rails
[19:56:10] matthewd: Nicmavr: A *lot* has changed in the last 7 years
[19:56:47] epochwolf: Controllers, Views, and Models are roughly in the same place... everything else... not even close.
[19:57:01] mjolnird: has joined #RubyOnRails
[19:57:07] epochwolf: As you just discovered, library management is different.
[19:57:19] epochwolf: As is how rails handles css and javascript.
[19:57:48] epochwolf: There's so many small things waiting to ruin your day.
[19:57:49] jenrzzz: has joined #RubyOnRails
[19:57:49] jenrzzz: has joined #RubyOnRails
[19:57:50] matthewd: And the controller API (strong params) and the database/model API (Relation API)
[19:58:01] Nicmavr: thanks guys :)
[19:58:01] Nicmavr: I generally find ruby annoying
[19:58:18] Nicmavr: in the sense that the error messages don't help and the slightest syntax error leaves you pulling your hair out while you try to figure what's wrong
[19:58:23] epochwolf: Nicmavr: what languages are you coming from?
[19:58:35] Nicmavr: unfortunately my university curriculum loves ruby
[19:58:42] Nicmavr: Java mostly
[19:58:44] epochwolf: unhelpful syntax errors? That's every language. XD
[19:58:48] Nicmavr: I've done python as well which I love
[19:59:01] epochwolf: Don't even use C.
[19:59:03] Nicmavr: idk, I just find java and python a lot easier to debug :P
[19:59:30] epochwolf: Nicmavr: do you use Eclipse or Netbeans for those?
[19:59:58] Nicmavr: but I used jEdit in the beginning when I was learning java
[20:00:04] epochwolf: Yeah, Eclipse will highlight syntax errors for you.
[20:00:07] Nicmavr: jEdit + compile and run from cmd
[20:00:15] matthewd: I suspect there's also a degree of familiarity involved there, but any feedback about *current* versions being avoidably opaque is welcome
[20:00:22] Nicmavr: Now I just use Eclipse because it points out bugs and runs everything for me
[20:00:54] epochwolf: Yeah... most languages outside of Java and .NET don't have tight IDE integration. It's a lot more manual out here.
[20:00:58] Pumukel: has joined #RubyOnRails
[20:01:01] Nicmavr: I don't mind plain ruby either tbh
[20:01:07] epochwolf: And python's syntax is a lot simplier than ruby's.
[20:01:13] Nicmavr: Its just I'm not used to everything rails has/does
[20:01:23] Nicmavr: epochwolf, that's the beauty of Python :>
[20:01:26] epochwolf: Rails is a 6 month learning curve to get good.
[20:01:48] matthewd: (in comparison to python, anyway... I'd say java's syntax, especially, is more regular, and thus easier for the parser to guess what you meant)
[20:01:49] Nicmavr: fair enough
[20:02:11] epochwolf: matthewd: java 1.4 maybe...
[20:02:38] epochwolf: Since then, they've added a kitchen sink full of features.
[20:03:12] matthewd: .. but if you're using many-year-old Rails, or current Rails while trying to follow an ancient-version tutorial, you're bringing it on yourself, and I'm neither sympathetic nor particularly interested in helping
[20:04:14] epochwolf: matthewd: speaking of helping, did you see my desperate cry for help earlier? I've over-engineered myself into a corner. :/
[20:05:36] matthewd: epochwolf: I got lost trying to work out what the "config" was for
[20:06:00] epochwolf: matthewd: oh. my bad.
[20:06:45] Pumukel: has joined #RubyOnRails
[20:07:01] matthewd: epochwolf: It felt like it was trying to be a DSL driving the whole app, and I wonder if it'd be more straightforward to approach first from the perspective of the parts that actually need data, and what they each need
[20:07:07] workmad3: has joined #RubyOnRails
[20:08:01] epochwolf: matthewd: that's roughly what it's supposed to be.
[20:08:14] ResidentBiscuit: has joined #RubyOnRails
[20:09:01] matthewd: To start at the top, :order_of_processing sounds scary as hell
[20:09:05] epochwolf: matthewd: https://gist.github.com/epochwolf/ad05548a625eda855ff4184081694a08
[20:09:19] epochwolf: Basically, all those configurations apply to the badges table.
[20:09:34] matthewd: I see that and I think I'm about to read a turing complete configuration language
[20:09:59] epochwolf: matthewd: it's the order the item applies to the badge
[20:10:08] epochwolf: It's not turning complete, it can't loop.
[20:11:11] epochwolf: So, a badge has a level, age group, and list of flair, from that, badge type, price, and swag are calculated.
[20:11:55] epochwolf: oh, badge also add_ons and payment_option
[20:12:32] Pumukel: has joined #RubyOnRails
[20:13:45] sid_fules: has joined #RubyOnRails
[20:14:09] ResidentBiscuit: has joined #RubyOnRails
[20:17:01] epochwolf: matthewd: I've updated the gist to include some notes.
[20:18:27] Pumukel: has joined #RubyOnRails
[20:24:09] Pumukel: has joined #RubyOnRails
[20:26:16] netzfisch: has joined #RubyOnRails
[20:30:24] Pumukel: has joined #RubyOnRails
[20:32:05] workmad3: has joined #RubyOnRails
[20:35:58] Pumukel: has joined #RubyOnRails
[20:38:17] bywaterloo: has joined #RubyOnRails
[20:38:25] meoblast001: has joined #RubyOnRails
[20:38:29] sid_fules: has joined #RubyOnRails
[20:38:57] srinidhi: has joined #RubyOnRails
[20:41:46] Pumukel: has joined #RubyOnRails
[20:42:50] Derperperd: has joined #RubyOnRails
[20:43:03] coatezy: has joined #RubyOnRails
[20:47:29] Pumukel: has joined #RubyOnRails
[20:53:05] apotry: has joined #RubyOnRails
[20:53:12] d0nn1e: has joined #RubyOnRails
[20:53:26] Pumukel: has joined #RubyOnRails
[20:55:01] jenrzzz: has joined #RubyOnRails
[20:59:20] Pumukel: has joined #RubyOnRails
[21:00:04] Suslov: has joined #RubyOnRails
[21:01:39] bpmedley: has joined #RubyOnRails
[21:05:02] Pumukel: has joined #RubyOnRails
[21:10:57] Pumukel: has joined #RubyOnRails
[21:12:54] Fernando-Basso: has joined #RubyOnRails
[21:16:40] Pumukel: has joined #RubyOnRails
[21:17:34] workmad3: has joined #RubyOnRails
[21:22:24] Pumukel: has joined #RubyOnRails
[21:23:36] Rodya_: has joined #RubyOnRails
[21:25:57] tenderlo_: has joined #RubyOnRails
[21:28:19] Pumukel: has joined #RubyOnRails
[21:28:49] sid_fules: has joined #RubyOnRails
[21:34:12] Pumukel: has joined #RubyOnRails
[21:35:03] ocpysh: has joined #RubyOnRails
[21:35:49] workmad3: has joined #RubyOnRails
[21:40:00] Pumukel: has joined #RubyOnRails
[21:41:31] tenderlove: has joined #RubyOnRails
[21:45:21] jhack_: has joined #RubyOnRails
[21:45:42] Pumukel: has joined #RubyOnRails
[21:46:14] Or1on: has joined #RubyOnRails
[21:46:46] sid_fules: has joined #RubyOnRails
[21:46:51] AnotherOne: has joined #RubyOnRails
[21:47:31] AnotherOne: has joined #RubyOnRails
[21:51:30] Pumukel: has joined #RubyOnRails
[21:57:18] Pumukel: has joined #RubyOnRails
[21:57:32] tenderlove: has joined #RubyOnRails
[22:00:28] doodlehaus: has joined #RubyOnRails
[22:01:32] szulak: has joined #RubyOnRails
[22:03:01] Pumukel: has joined #RubyOnRails
[22:03:08] ruid: has joined #RubyOnRails
[22:03:08] ruid: has joined #RubyOnRails
[22:08:14] sid_fules: has joined #RubyOnRails
[22:08:52] Pumukel: has joined #RubyOnRails
[22:12:05] Fischmiep: has joined #RubyOnRails
[22:14:33] Pumukel: has joined #RubyOnRails
[22:19:13] GodFather: has joined #RubyOnRails
[22:19:58] Pumukel: has joined #RubyOnRails
[22:25:28] Pumukel: has joined #RubyOnRails
[22:27:06] carlosd: has joined #RubyOnRails
[22:28:22] carlosd: I created the following generator: https://gist.github.com/fcb0907d87085ffaf8b8e4f26ca230e9
[22:28:57] carlosd: It's working, except for the attributes in the migration
[22:30:25] carlosd: I already played with the generators API, but no lucky until now :/
[22:30:59] Pumukel: has joined #RubyOnRails
[22:31:47] asahi: has joined #RubyOnRails
[22:34:28] xaviergmail: has joined #RubyOnRails
[22:37:33] ariedler: has joined #RubyOnRails
[22:40:40] sid_fules: has joined #RubyOnRails
[22:41:26] ResidentBiscuit: has joined #RubyOnRails
[22:42:12] Pumukel: has joined #RubyOnRails
[22:49:41] lxsameer: has joined #RubyOnRails
[22:50:54] |PiP|: has joined #RubyOnRails
[22:53:17] mostlybadfly: has joined #RubyOnRails
[22:55:56] |PiP|`: has joined #RubyOnRails
[22:58:01] |PiP|: has joined #RubyOnRails
[22:58:33] Pumukel: has joined #RubyOnRails
[23:00:14] sid_fules: has joined #RubyOnRails
[23:00:31] |PiP|`: has joined #RubyOnRails
[23:01:08] Technodrome: has joined #RubyOnRails
[23:03:06] |PiP|: has joined #RubyOnRails
[23:11:54] |PiP|`: has joined #RubyOnRails
[23:15:58] |PiP|: has joined #RubyOnRails
[23:19:05] sid_fules: has joined #RubyOnRails
[23:19:58] ahrs_: has joined #RubyOnRails
[23:20:41] Pumukel: has joined #RubyOnRails
[23:21:20] |PiP|`: has joined #RubyOnRails
[23:26:07] Trynemjoel: has joined #RubyOnRails
[23:26:12] Pumukel: has joined #RubyOnRails
[23:27:53] ruid: has joined #RubyOnRails
[23:31:43] Pumukel: has joined #RubyOnRails
[23:36:35] ahrs: has joined #RubyOnRails
[23:37:14] Pumukel: has joined #RubyOnRails
[23:41:15] mina: has joined #RubyOnRails
[23:42:40] Pumukel: has joined #RubyOnRails
[23:44:50] xaviergmail: has joined #RubyOnRails
[23:48:05] hive-mind: has joined #RubyOnRails
[23:48:11] Pumukel: has joined #RubyOnRails
[23:49:37] sid_fules: has joined #RubyOnRails
[23:51:07] sid_fules: has joined #RubyOnRails
[23:53:37] Pumukel: has joined #RubyOnRails
[23:56:07] sid_fules: has joined #RubyOnRails