« Back to channel list

#RubyOnRails - 19 June 2016

« Back 1 day Forward 1 day »
[00:08:04] Oliphaunte: has joined #RubyOnRails
[00:08:19] pawnbox: has joined #RubyOnRails
[00:10:22] haaj: has joined #RubyOnRails
[00:12:28] triptec: has joined #RubyOnRails
[00:14:27] adgtl: has joined #RubyOnRails
[00:16:15] guidocalvano: has joined #RubyOnRails
[00:18:19] chintanparikh: has joined #RubyOnRails
[00:18:38] jhack: has joined #RubyOnRails
[00:22:53] jhack: has joined #RubyOnRails
[00:24:57] adgtl: has joined #RubyOnRails
[00:28:05] silverdust: has joined #RubyOnRails
[00:28:07] triptec: has joined #RubyOnRails
[00:33:19] jenrzzz: has joined #RubyOnRails
[00:37:46] Nuck: has joined #RubyOnRails
[00:38:12] roamingdog: has joined #RubyOnRails
[00:39:41] chouhoul_: has joined #RubyOnRails
[00:40:40] smathy: has joined #RubyOnRails
[00:44:14] dblessing: has joined #RubyOnRails
[00:44:58] chipotle: has joined #RubyOnRails
[00:45:18] ur5us: has joined #RubyOnRails
[00:48:18] Oliphaunte: has joined #RubyOnRails
[00:51:02] evansbee: has joined #RubyOnRails
[00:51:25] yfeldblum: has joined #RubyOnRails
[00:52:50] Synthead: has joined #RubyOnRails
[00:55:57] adgtl: has joined #RubyOnRails
[00:57:44] DoctorMonocular: has joined #RubyOnRails
[01:01:40] soroot: has joined #RubyOnRails
[01:02:18] lightt: has joined #RubyOnRails
[01:04:06] macsteps: has joined #RubyOnRails
[01:04:07] pawnbox: has joined #RubyOnRails
[01:04:14] moeabdol: has joined #RubyOnRails
[01:07:13] yfeldblum: has joined #RubyOnRails
[01:11:27] haaj: has joined #RubyOnRails
[01:14:01] adgtl: has joined #RubyOnRails
[01:21:49] brandon_j: has joined #RubyOnRails
[01:25:25] srinidhi1: has joined #RubyOnRails
[01:27:08] rickmasta: has joined #RubyOnRails
[01:42:12] Oliphaunte: has joined #RubyOnRails
[01:47:57] adgtl: has joined #RubyOnRails
[01:50:36] patrick-sartent: has joined #RubyOnRails
[01:51:22] chipotle: has joined #RubyOnRails
[01:55:37] hardtail: has joined #RubyOnRails
[01:56:12] c355E3B: has joined #RubyOnRails
[01:57:34] northfurr: has joined #RubyOnRails
[01:58:28] pilne: has joined #RubyOnRails
[01:59:58] hahuang62: has joined #RubyOnRails
[02:08:06] phon: has joined #RubyOnRails
[02:09:37] prudhvi: has joined #RubyOnRails
[02:09:48] prudhvi: hi, i am rails begginer
[02:09:56] prudhvi: can someone pls help
[02:10:12] pdm_: has joined #RubyOnRails
[02:10:33] prudhvi: i dont know where to place the moderizr.js file and where to require it
[02:10:48] prudhvi: can somebody please explain
[02:11:44] vedu: has joined #RubyOnRails
[02:12:26] haaj: has joined #RubyOnRails
[02:13:44] TheMonster: has joined #RubyOnRails
[02:14:19] confounds: has joined #RubyOnRails
[02:16:46] pilne: has left #RubyOnRails: ("Leaving!")
[02:24:36] confounds: has joined #RubyOnRails
[02:25:29] t_p: has joined #RubyOnRails
[02:28:09] xibalba: prudhvi , might be helpful to read up on the asset pipeline
[02:28:47] jancel: has joined #RubyOnRails
[02:35:47] Darmani: has joined #RubyOnRails
[02:39:38] triptec: has joined #RubyOnRails
[02:40:30] Darmani: Hey guys, could someone take a look at this error for me? I don't know what it means.
[02:40:31] Darmani: https://gist.github.com/mfifth/9c9859f8a287415dcc110bdb1a4ab6a2
[02:41:24] DoctorMonocular: has joined #RubyOnRails
[02:42:35] pawnbox: has joined #RubyOnRails
[02:43:10] sypheren: has joined #RubyOnRails
[02:44:05] Synthead: has joined #RubyOnRails
[02:44:39] adgtl: has joined #RubyOnRails
[02:48:35] jtong: has joined #RubyOnRails
[02:51:52] evansbee: has joined #RubyOnRails
[02:53:57] adgtl: has joined #RubyOnRails
[02:54:09] nickenchuggets: has joined #RubyOnRails
[02:54:09] nickenchuggets: has joined #RubyOnRails
[02:55:15] triptec: has joined #RubyOnRails
[02:56:35] rroyal: has joined #RubyOnRails
[03:00:44] hahuang62: has joined #RubyOnRails
[03:04:05] draig: has joined #RubyOnRails
[03:07:50] jancel: has joined #RubyOnRails
[03:10:20] k3rn31: has joined #RubyOnRails
[03:11:23] northfurr: has joined #RubyOnRails
[03:12:07] globalall0c: has joined #RubyOnRails
[03:13:11] haaj: has joined #RubyOnRails
[03:19:47] braincrash: has joined #RubyOnRails
[03:21:20] jancel: has joined #RubyOnRails
[03:23:18] w09x: has joined #RubyOnRails
[03:27:45] Jasaka: has joined #RubyOnRails
[03:28:07] nettoweb: has joined #RubyOnRails
[03:30:12] patrick-sartent: has joined #RubyOnRails
[03:33:05] Technodrome: has joined #RubyOnRails
[03:34:48] d0nn1e: has joined #RubyOnRails
[03:35:06] gking: has joined #RubyOnRails
[03:38:22] rueben: has joined #RubyOnRails
[03:39:27] adgtl: has joined #RubyOnRails
[03:42:10] jancel: has joined #RubyOnRails
[03:47:33] jancel: has joined #RubyOnRails
[03:55:32] AnoHito: has joined #RubyOnRails
[03:59:38] AnoHito: has joined #RubyOnRails
[04:01:40] duncannz: has joined #RubyOnRails
[04:01:51] equilibrium990: has joined #RubyOnRails
[04:03:19] wethu: has joined #RubyOnRails
[04:05:23] northfurr: has joined #RubyOnRails
[04:11:04] patrick-sartent: has joined #RubyOnRails
[04:14:44] jancel: has joined #RubyOnRails
[04:15:08] ur5us: has joined #RubyOnRails
[04:16:37] pawnbox: has joined #RubyOnRails
[04:19:19] haaj: has joined #RubyOnRails
[04:21:09] blackhuey: has joined #RubyOnRails
[04:22:24] w09x: has joined #RubyOnRails
[04:29:52] phon: has joined #RubyOnRails
[04:31:56] TheMonster: has joined #RubyOnRails
[04:35:27] vedu: has joined #RubyOnRails
[04:36:44] Chirimbolito: has joined #RubyOnRails
[04:42:52] hahuang62: has joined #RubyOnRails
[04:43:27] adgtl: has joined #RubyOnRails
[04:46:50] gingray: has joined #RubyOnRails
[04:47:49] Oliphaunte: has joined #RubyOnRails
[04:49:52] yfeldblum: has joined #RubyOnRails
[04:52:40] evansbee: has joined #RubyOnRails
[04:55:08] quazimodo: has joined #RubyOnRails
[04:55:24] tildes: has joined #RubyOnRails
[04:55:47] Oliphaunte: has joined #RubyOnRails
[04:56:34] triptec: has joined #RubyOnRails
[04:59:50] gking: has joined #RubyOnRails
[05:00:04] dionysus69: has joined #RubyOnRails
[05:03:25] AmiMoench: has joined #RubyOnRails
[05:05:53] stardiviner: has joined #RubyOnRails
[05:09:36] pawnbox: has joined #RubyOnRails
[05:09:36] roamingdog: has joined #RubyOnRails
[05:10:17] wethu: has joined #RubyOnRails
[05:10:29] Hyuk: has joined #RubyOnRails
[05:10:32] roamingdog: has joined #RubyOnRails
[05:13:36] KnownSy2: has joined #RubyOnRails
[05:14:13] kgrz: has joined #RubyOnRails
[05:18:08] globalall0c_: has joined #RubyOnRails
[05:20:03] Oliphaunte: has joined #RubyOnRails
[05:20:03] haaj: has joined #RubyOnRails
[05:23:26] northfurr: has joined #RubyOnRails
[05:23:43] Oliphaunte: has joined #RubyOnRails
[05:24:43] pwnd_nsfw`: has joined #RubyOnRails
[05:26:08] pawnbox: has joined #RubyOnRails
[05:26:35] jeff-russ: has joined #RubyOnRails
[05:28:05] suyesh: has joined #RubyOnRails
[05:31:46] Cohedrin_: has joined #RubyOnRails
[05:34:08] Coldblackice: has joined #RubyOnRails
[05:35:27] jancel: has joined #RubyOnRails
[05:37:53] evansbee: has joined #RubyOnRails
[05:53:16] anon: has joined #RubyOnRails
[05:54:18] Guest93772: has left #RubyOnRails: ()
[05:56:59] Oliphaunte: has joined #RubyOnRails
[06:00:13] wethu: has joined #RubyOnRails
[06:01:51] pawnbox: has joined #RubyOnRails
[06:02:24] DoctorMonocular: has joined #RubyOnRails
[06:03:02] Oliphaunte: has joined #RubyOnRails
[06:04:31] w09x: has joined #RubyOnRails
[06:05:21] jas02: has joined #RubyOnRails
[06:08:22] Tempesta: has joined #RubyOnRails
[06:09:52] yardenbar: has joined #RubyOnRails
[06:13:14] pwnd_nsfw: has joined #RubyOnRails
[06:14:20] northfurr: has joined #RubyOnRails
[06:15:56] Technodrome: has joined #RubyOnRails
[06:16:11] lightt: has joined #RubyOnRails
[06:18:22] rroyal: has joined #RubyOnRails
[06:18:24] jeff-russ: has joined #RubyOnRails
[06:20:48] haaj: has joined #RubyOnRails
[06:21:50] noodle: has joined #RubyOnRails
[06:23:55] jeff-russ: has left #RubyOnRails: ()
[06:26:08] futilegames: has joined #RubyOnRails
[06:29:02] AntiSpamMeta: has joined #RubyOnRails
[06:33:17] blackhuey: has joined #RubyOnRails
[06:33:38] moeabdol: has joined #RubyOnRails
[06:36:35] Oliphaunte: has joined #RubyOnRails
[06:40:33] roamingdog: has joined #RubyOnRails
[06:43:39] hahuang62: has joined #RubyOnRails
[06:50:07] jtong: has joined #RubyOnRails
[07:14:40] SteenJobs: has joined #RubyOnRails
[07:17:05] pawnbox: has joined #RubyOnRails
[07:21:34] haaj: has joined #RubyOnRails
[07:23:52] chintanparikh: has joined #RubyOnRails
[07:28:11] k3rn31_: has joined #RubyOnRails
[07:28:51] AntiSpamMeta: has joined #RubyOnRails
[07:29:42] alfiemax: has joined #RubyOnRails
[07:38:15] solars: has joined #RubyOnRails
[07:44:07] AntiSpamMeta: has joined #RubyOnRails
[07:44:52] dionysus69: has joined #RubyOnRails
[07:46:27] mercerist: has joined #RubyOnRails
[07:53:06] pawnbox: has joined #RubyOnRails
[08:02:29] conta: has joined #RubyOnRails
[08:05:52] tvw: has joined #RubyOnRails
[08:05:59] triptec: has joined #RubyOnRails
[08:08:38] tildes: has joined #RubyOnRails
[08:16:27] soule: has joined #RubyOnRails
[08:18:38] pontiki: has joined #RubyOnRails
[08:20:55] jas02: has joined #RubyOnRails
[08:21:41] moeabdol: has joined #RubyOnRails
[08:22:18] haaj: has joined #RubyOnRails
[08:36:33] darutoko: has joined #RubyOnRails
[08:37:23] antgel: has joined #RubyOnRails
[08:39:25] apofis: has joined #RubyOnRails
[08:43:02] sevenseacat: has joined #RubyOnRails
[08:44:26] hahuang62: has joined #RubyOnRails
[08:56:30] SirOliver: has joined #RubyOnRails
[08:58:28] solars: has joined #RubyOnRails
[08:59:00] moeabdol: has joined #RubyOnRails
[08:59:52] jtong: has joined #RubyOnRails
[09:07:57] arooni: has joined #RubyOnRails
[09:09:10] quazimodo: has joined #RubyOnRails
[09:09:30] w09x: has joined #RubyOnRails
[09:10:32] jancel: has joined #RubyOnRails
[09:12:32] jas02: has joined #RubyOnRails
[09:13:30] Pazician: has joined #RubyOnRails
[09:13:30] Pazician: has joined #RubyOnRails
[09:14:01] wethu: has joined #RubyOnRails
[09:23:05] haaj: has joined #RubyOnRails
[09:35:03] futilegames: has joined #RubyOnRails
[09:36:30] jas02: has joined #RubyOnRails
[09:36:52] andywww: has joined #RubyOnRails
[09:39:11] srinidhi: has joined #RubyOnRails
[09:41:24] evansbee: has joined #RubyOnRails
[09:52:37] prudvi: has joined #RubyOnRails
[09:52:50] prudvi: somebody pls assist
[09:53:15] prudvi: i want to know where to place modernizr.js file in rails application
[09:53:17] SteenJobs: has joined #RubyOnRails
[09:53:19] SirOliver: has joined #RubyOnRails
[09:53:25] prudvi: and from where i have to require it
[09:57:39] AntiSpamMeta: has joined #RubyOnRails
[09:59:18] tildes: has joined #RubyOnRails
[10:01:40] jtong: has joined #RubyOnRails
[10:04:47] arBmind: has joined #RubyOnRails
[10:07:17] startupality: has joined #RubyOnRails
[10:17:20] mercerist: has joined #RubyOnRails
[10:20:48] wethu: has joined #RubyOnRails
[10:23:49] haaj: has joined #RubyOnRails
[10:27:32] harfangk: has joined #RubyOnRails
[10:28:09] pawnbox: has joined #RubyOnRails
[10:30:51] phrozen77: has joined #RubyOnRails
[10:32:24] artto: has joined #RubyOnRails
[10:34:17] SirOliver: has joined #RubyOnRails
[10:39:18] pydave6367: has joined #RubyOnRails
[10:41:15] gambl0re: has joined #RubyOnRails
[10:41:15] gambl0re: has joined #RubyOnRails
[10:45:08] hahuang62: has joined #RubyOnRails
[10:46:43] mahesh: has joined #RubyOnRails
[10:46:49] guidocalvano: has joined #RubyOnRails
[10:47:01] mahesh: can somebody assist me
[10:47:23] mahesh: i want to place modenizr.js file in rails appicatiom
[10:47:35] mahesh: where should i place it, how to require it
[10:47:40] mahesh: please guide me
[10:47:42] mahesh: ;thank you
[10:49:19] siaw23: has joined #RubyOnRails
[10:49:53] siaw23: i’m getting “ Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml” on my heroku ap even though i have this in my secrets.yml https://gist.github.com/siaw23/b79b00d3e4993173b3f6091bae5a9f8b
[10:49:56] siaw23: any help please?
[10:50:35] siaw23: in my heroku settings i have this: https://gyazo.com/6c822e95604150f76b16de7fd6349d8c
[10:52:09] sevenseacat: siaw23: check the indentation on that secrets.yml file
[10:52:22] sevenseacat: secret_key_base and secret_token are not indented under the production key
[10:54:16] siaw23: works :) thanks.
[10:55:39] mahesh: want to place modenizr.js file in rails appicatiom [16:17] <mahesh> where should i place it, how to require it [16:17] <mahesh> please guide me [16:17] <mahesh> ;thank you
[10:56:41] sevenseacat: mahesh: http://guides.rubyonrails.org/asset_pipeline.html#asset-organization
[10:56:58] sevenseacat: that section will answer the first part, the rest can also be found in the guide
[10:57:08] startupality: has joined #RubyOnRails
[10:58:40] jancel: has joined #RubyOnRails
[10:58:58] mahesh: @sevenseacat thank you very much i will go through the link
[11:01:52] alfiemax: has joined #RubyOnRails
[11:22:37] siaw23: haven’t touched heroku for some time but does anyone know why i’m getting this: https://gist.github.com/siaw23/e03da246c0945a906a64c6a4defc83e5
[11:22:56] siaw23: maybe something changed that i’m not aware of?
[11:24:34] haaj: has joined #RubyOnRails
[11:24:42] sevenseacat: version of rails?
[11:24:54] haaj: has joined #RubyOnRails
[11:25:24] alfiemax: has joined #RubyOnRails
[11:26:50] pwnd_nsfw`: has joined #RubyOnRails
[11:27:39] sevenseacat: so what did you change in your code?
[11:27:52] sevenseacat: are you getting the same error locally?
[11:28:31] siaw23: everything’s fine locally
[11:28:35] someish: has joined #RubyOnRails
[11:29:55] shinnya: has joined #RubyOnRails
[11:30:03] sevenseacat: so what changes have you made in your code since it was working last?
[11:30:24] sevenseacat: have you redefined rake in your Procfile or something weird like that?
[11:30:36] siaw23: i haven’t made any change
[11:30:45] siaw23: it works locally like just “rake db:migrate"
[11:30:56] siaw23: but on heroku i try to run “heroku run rake db:migrate"
[11:30:58] siaw23: and i get that
[11:31:06] sevenseacat: yes I get that
[11:31:10] sevenseacat: that does not answer my question
[11:32:08] mahesh: @sevenseacat Hi, i am getting this error:Uncaught ReferenceError: Modernizr is not defined
[11:32:14] mahesh: can you please help
[11:32:16] sevenseacat: mahesh: good to know.
[11:32:23] DoubleMalt: has joined #RubyOnRails
[11:32:41] siaw23: have you redefined rake in your Procfile or something weird like that? => nope
[11:33:10] mahesh: i have placed the files correctly in vendor/javascripts and required them in /assets/javascripts/application.js
[11:33:22] marr: has joined #RubyOnRails
[11:33:25] mahesh: @sevenseacat: please guide
[11:33:43] sevenseacat: mahesh: without seeing your code I cannot help you
[11:34:12] mahesh: @sevenseacat: i will send the gists please
[11:34:23] quazimodo: has joined #RubyOnRails
[11:35:43] mahesh: @sevenseacat: please checkout the application.js file here https://gist.github.com/anonymous/30ea5dd16065964b3a5c6b36d9a3a917
[11:36:05] mahesh: i have placed all the mentioned js files in /vendor/assets/javascript folder
[11:36:12] sevenseacat: you have a spelling mistake in "require"
[11:36:13] qejk: has joined #RubyOnRails
[11:36:22] sevenseacat: and what is the full error? what code is it coming from?
[11:36:29] Nuck: has joined #RubyOnRails
[11:37:00] mahesh: this is the error: Uncaught ReferenceError: Modernizr is not defined
[11:38:10] mahesh: the spelling error didnt silence the error..
[11:38:14] Fernando-Basso: has joined #RubyOnRails
[11:38:21] sevenseacat: what code is causing the error?
[11:39:05] mahesh: there is a enquiry form slider, it is causing the error
[11:39:23] mahesh: it is in shared folder which is common to all pages
[11:39:24] sevenseacat: thats not code. please gist the code causing the error.
[11:39:51] Robtop__: has joined #RubyOnRails
[11:41:05] mahesh: @sevenseacat: please check the code for enquiry form here https://gist.github.com/anonymous/071c330f711153f7fea9ca09bf9813b4
[11:41:28] sevenseacat: that code does not reference Modernizr therefore is not causing the error
[11:41:53] sevenseacat: the code causing the error will appear with the error in your browser console
[11:42:09] evansbee: has joined #RubyOnRails
[11:42:33] mahesh: @sevenseacat: yes you are right. please tell me how to proceed
[11:42:45] sevenseacat: mahesh: please show me the code causing the error.
[11:45:31] taxen: has joined #RubyOnRails
[11:45:54] hahuang62: has joined #RubyOnRails
[11:48:12] alfiemax: has joined #RubyOnRails
[11:56:51] AntiSpamMeta: has joined #RubyOnRails
[12:03:14] w09x: has joined #RubyOnRails
[12:08:39] yardenbar: has joined #RubyOnRails
[12:10:31] AntiSpamMeta: has joined #RubyOnRails
[12:12:38] triptec: has joined #RubyOnRails
[12:14:20] c355E3B: has joined #RubyOnRails
[12:17:55] salexa: has joined #RubyOnRails
[12:19:58] siaw23: can someone help with this? http://stackoverflow.com/questions/37906984/heroku-error-command-exec-not-recognized
[12:21:48] apofis: has joined #RubyOnRails
[12:22:33] sevenseacat: siaw23: still waiting to hear what you've changed since the last time it worked :)
[12:23:18] siaw23: i haven’t changed anything
[12:23:22] dionysus69: has joined #RubyOnRails
[12:23:24] SirOliver: has joined #RubyOnRails
[12:23:37] sevenseacat: what are you attempting to migrate then?
[12:24:20] siaw23: migrations in the app i made that’s working on my local machine
[12:24:40] sevenseacat: so you've made changes, you've got new migrations. what else have you changed?
[12:26:59] sevenseacat: you dont have any code that uses the changes in the migrations?
[12:29:46] siaw23: sevenseacat: i didn’t make any change in the migrations. i just created migrations for my models which i want to migrate
[12:33:17] globalall0c: has joined #RubyOnRails
[12:38:07] pydave6367: has joined #RubyOnRails
[12:44:45] adre: has joined #RubyOnRails
[12:45:37] wd40s: has joined #RubyOnRails
[12:45:52] andywww: has left #RubyOnRails: ()
[12:46:35] andywww: has joined #RubyOnRails
[12:46:40] hahuang62: has joined #RubyOnRails
[12:52:20] tildes: has joined #RubyOnRails
[12:54:03] blackmesa: has joined #RubyOnRails
[12:55:40] SirOliver: has joined #RubyOnRails
[12:57:33] gambl0re: has joined #RubyOnRails
[13:03:41] AzaToth: has joined #RubyOnRails
[13:04:17] harfangk: has joined #RubyOnRails
[13:04:36] w09x: has joined #RubyOnRails
[13:11:22] soroot: has joined #RubyOnRails
[13:11:55] mercerist: has joined #RubyOnRails
[13:17:50] conta: does rails console autoload /lib?
[13:19:00] sevenseacat: not unless you configure it to.
[13:21:14] haaj_: has joined #RubyOnRails
[13:21:24] conta: I see, do you happen to know it or should i google it?
[13:22:09] sevenseacat: you would need to add it to your autoload path in config/application.rb. but googling things before asking is always recommended.
[13:22:16] mercerist: has joined #RubyOnRails
[13:22:34] mercerist: has joined #RubyOnRails
[13:23:10] DoubleMalt: has joined #RubyOnRails
[13:23:26] Axilla: has joined #RubyOnRails
[13:30:57] User458764: has joined #RubyOnRails
[13:42:05] jgt: has joined #RubyOnRails
[13:42:53] evansbee: has joined #RubyOnRails
[13:43:10] mercerist: has joined #RubyOnRails
[13:43:20] mdw: has joined #RubyOnRails
[13:45:12] adre: has joined #RubyOnRails
[13:46:03] harfangk: has joined #RubyOnRails
[13:47:19] mello: has joined #RubyOnRails
[13:47:23] hahuang62: has joined #RubyOnRails
[13:47:36] artto: has joined #RubyOnRails
[13:48:48] sandelius: has joined #RubyOnRails
[13:50:59] maxx88: has joined #RubyOnRails
[13:51:25] pawnbox: has joined #RubyOnRails
[13:53:00] Rinzlit: has joined #RubyOnRails
[13:55:21] mercerist: has joined #RubyOnRails
[13:56:15] blackmesa: has joined #RubyOnRails
[13:57:15] SirOliver: has joined #RubyOnRails
[13:59:11] apofis: has joined #RubyOnRails
[14:11:50] guidocalvano: has joined #RubyOnRails
[14:14:37] artto: has joined #RubyOnRails
[14:17:35] roelof: has joined #RubyOnRails
[14:17:51] King_Rex: has joined #RubyOnRails
[14:18:04] roelof: Hello, When I run my rspec I see this error : No route matches [PATCH] "/account"
[14:18:59] roelof: but when I do rake routes I see that the route exist : https://gist.github.com/rwobben/805df7c7cc4bc6225736b7ac744a5c8b
[14:19:08] roelof: why still that error ?
[14:19:28] Robtop__: why do people still not post code?
[14:19:40] sevenseacat: roelof: no, it doesnt exist
[14:19:41] njero: has joined #RubyOnRails
[14:19:46] sevenseacat: roelof: you have /account/:id
[14:20:03] sevenseacat: thats not /account
[14:20:20] roelof: oke, so something on the form is not right ?
[14:20:30] pwnd_: Normally PUT/PATCH are on a specific record
[14:20:33] sevenseacat: depends which one's right, out of your form or your routes
[14:20:36] sevenseacat: we don't know
[14:21:19] roelof: oke, I can add my routes.rb and my form to the gist , if that helps ?
[14:21:34] sevenseacat: roelof: that wont tell us which one you want to use
[14:22:02] pwnd_: the form would probably be pretty helpful
[14:22:11] roelof: I just want the form to use for adding new record and for editing data
[14:23:02] roelof: form added to the gist
[14:23:26] roelof: I think this is the problem : url: account_index_path
[14:23:37] pwnd_: Yeah, just remove it
[14:23:38] pwnd_: see what happens
[14:23:43] roelof: I added it because otherwise I could not add records
[14:23:49] sevenseacat: that doesnt even make sense
[14:23:55] pwnd_: you can't even add records now
[14:24:01] sevenseacat: why do you have an account_index_path
[14:25:05] roelof: when I remove that part, all the test are failing with this error message : undefined method `accounts_path' for #<#<Class:0x0000000826f9c8>:0x007f065860a8c8>
[14:25:53] pwnd_: put your routes.rb into the gist..
[14:25:55] sevenseacat: roelof: can you please gist your routes? methinks you've got something wrong like resources :account in there
[14:26:24] SirOliver: has joined #RubyOnRails
[14:26:26] pwnd_: ^ ye, probably needs to be plural
[14:27:07] roelof: updated the gists with the contents of route.rb
[14:27:22] pwnd_: ^ ye, probably needs to be plural
[14:27:23] pwnd_: ^ ye, probably needs to be plural
[14:27:44] roelof: oke, so change account into accounts ?
[14:28:17] pwnd_: resources
[14:28:28] pwnd_: if it were "resource", you'd use singular.
[14:28:44] roelof: oke, so like this : resources :accounts, except: [:destroy]
[14:29:02] pwnd_: bro, you changed one character. Why do you need validation for that? Just run your tests
[14:29:11] blackmesa: has joined #RubyOnRails
[14:29:59] roelof: a lot of failing with routes on my code
[14:30:08] roelof: so I have to change that also :)
[14:30:14] pwnd_: because you've built your code around the incorrect code in your route
[14:30:26] mercerist: has joined #RubyOnRails
[14:34:20] siaw23: first time i’m using tavis. this link has 2 files. how my .travis.yml looks and the error travis is giving me: https://gist.github.com/siaw23/2a954e9b81acdf7cb7c045be0e862b91
[14:34:42] siaw23: can someone help me fix it? do i need to remove the “script” part in my .travis.yml?
[14:34:56] jancel: has joined #RubyOnRails
[14:42:06] sevenseacat: siaw23: your yaml file is not valid
[14:42:21] sevenseacat: compare - bundle exec rake db:setup and -rake test
[14:42:35] sevenseacat: for the second time today, indentation and whitespace *counts*
[14:43:00] roelof: one last question : I have now made this : first(:xpath, "//tr[td[contains(.,'Example Account')]]/td/*[@class='link']").click
[14:43:47] roelof: it looks for a table row with a cell which contains the text "Example Account". then I looks for a link with the class link in the same row
[14:44:18] roelof: Can I make this easy readable with css selectors. and if so, how do it looks like then ?
[14:44:37] quazimodo: has joined #RubyOnRails
[14:45:35] jas02: has joined #RubyOnRails
[14:48:08] hahuang62: has joined #RubyOnRails
[14:49:00] pwnd_: roelof, https://github.com/SirUncleCid/ticketee/blob/master/spec/support/capybara_finders.rb You can do something like this, and document your code
[14:49:04] pwnd_: Courtsey of R4IA
[14:50:58] roelof: pwnd_: I did some chapters of that book
[14:51:18] roelof: maybe I have to start again and do the whole book
[14:52:23] roelof: I quit because I had to do a project for a company what can be a payed job for me in the future
[14:52:57] chintanparikh: has joined #RubyOnRails
[14:56:24] k3rn31: has joined #RubyOnRails
[14:56:28] _underscore_: has joined #RubyOnRails
[14:56:37] superlou: has joined #RubyOnRails
[14:56:38] GodFather: has joined #RubyOnRails
[14:57:37] jhass: is there a way to fetch just the id of a record without allocating an array?
[14:58:57] srinidhi: has joined #RubyOnRails
[15:01:26] jancel: has joined #RubyOnRails
[15:03:23] globalall0c_: has joined #RubyOnRails
[15:04:51] Meow-J: has joined #RubyOnRails
[15:06:19] pwnd_: jhass, http://apidock.com/rails/ActiveRecord/Calculations/pluck
[15:06:48] harfangk: has joined #RubyOnRails
[15:08:26] jancel: has joined #RubyOnRails
[15:10:55] jhass: pwnd_: creates an array
[15:12:11] jhass: I basically want a .pluck_first(:id)
[15:12:45] ferr: has joined #RubyOnRails
[15:12:52] pwnd_: select('id').first
[15:12:54] pwnd_: ACTION shrugs
[15:13:04] jhass: worse, creates an AR::Base
[15:17:30] futilegames: has joined #RubyOnRails
[15:19:13] ferr: https://gist.github.com/Fercell/f73a1c9fa3f76003bcfa0f2024423534 Could anyone help me with these queries? I cannot understand the issue
[15:20:26] mdw: has joined #RubyOnRails
[15:22:28] tildes: has joined #RubyOnRails
[15:22:54] SteenJobs: has joined #RubyOnRails
[15:23:39] jtong: has joined #RubyOnRails
[15:23:52] tbuehlmann: jhass: postgres always returns an array, right?
[15:24:42] jhass: you mean the pg gem? no idea
[15:24:50] jhass: it's an AR question
[15:27:31] emachnic: has joined #RubyOnRails
[15:28:35] jhass: fwiw PG::Result#getvalue shouldn't allocate an array
[15:28:49] jhass: but I need this database agnostic
[15:32:17] salexa: has joined #RubyOnRails
[15:38:46] adavia: has joined #RubyOnRails
[15:43:43] evansbee: has joined #RubyOnRails
[15:45:45] Oliphaunte: has joined #RubyOnRails
[15:48:54] hahuang62: has joined #RubyOnRails
[15:51:26] d0nn1e: has joined #RubyOnRails
[16:00:17] triptec: has joined #RubyOnRails
[16:09:55] jancel: has joined #RubyOnRails
[16:12:04] sunya7a_1: ror 5 with zurb foundation 6. anyone run into issues with data-interchange for images? is there a known bug or incompatibility with turbo-links that is causing a problem?
[16:12:17] TheFarmingBunny: has joined #RubyOnRails
[16:12:51] Cohedrin: has joined #RubyOnRails
[16:14:41] lurch_: has joined #RubyOnRails
[16:17:39] jscheel: has joined #RubyOnRails
[16:21:08] banister: has joined #RubyOnRails
[16:21:40] jancel: has joined #RubyOnRails
[16:25:17] jgt: has joined #RubyOnRails
[16:28:29] rueben: has joined #RubyOnRails
[16:33:05] jancel: has joined #RubyOnRails
[16:36:24] pwnd_nsfw: has joined #RubyOnRails
[16:37:57] banister: has joined #RubyOnRails
[16:38:20] smathy: has joined #RubyOnRails
[16:38:55] GodFather: has joined #RubyOnRails
[16:39:34] jhack: has joined #RubyOnRails
[16:41:24] arup_r: has joined #RubyOnRails
[16:42:02] siaw23: my travis shows code coverage of 93.98% https://gist.github.com/siaw23/eeebe0ddf423e445c10898729d493f3a but badge on my github repo shows 76% https://github.com/siaw23/monterail_meals
[16:42:08] Axilla: has joined #RubyOnRails
[16:42:16] ArTiSTiX: has joined #RubyOnRails
[16:42:18] siaw23: is this like a matter of waiting for code coverage to update? or what? first time using it
[16:43:05] moeabdol: has joined #RubyOnRails
[16:47:30] evansbee: has joined #RubyOnRails
[16:49:02] pwnd_nsfw`: has joined #RubyOnRails
[16:49:39] hahuang62: has joined #RubyOnRails
[16:52:25] Oliphaunte: has joined #RubyOnRails
[16:53:00] dionysus69: has joined #RubyOnRails
[16:53:05] brandon_j: has joined #RubyOnRails
[16:56:22] ppnlo: has joined #RubyOnRails
[16:58:35] DoubleMalt: has joined #RubyOnRails
[16:58:46] diegoviola: has joined #RubyOnRails
[17:01:17] chintanparikh: Does anyone have experience using Nginx with Puma? I'm trying to get it all set up but when I try to load the port, it gets stuck on Connecting and doesn't ever hit the rails server
[17:01:22] chintanparikh: I'm not really sure where to start debugging
[17:02:00] pawnbox: has joined #RubyOnRails
[17:03:35] jhass: chintanparikh: try using curl on the nginx host to send a request to puma
[17:04:28] jokke: i'm trying to write a rack middleware that just parses some headers and sets stuff on env. I don't want the middleware to actually handle the request. how can i achieve this? (in sinatra)
[17:04:44] jhass: what do you mean handling the whole request?
[17:05:32] adaedra: that's the way middleware work actually, intercept the request, do stuff on it, and pass it down
[17:05:48] chintanparikh: jhass: Looks like it just times out and never hits the rails server. I'd assume something is wrong with my nginx config but I'm not sure
[17:06:17] jhass: chintanparikh: the curl? the idea was to not involve nginx
[17:06:48] chintanparikh: jhass: Hm, yeah it gave me "curl: (7) Failed to connect to 72.14.176.22 port 5000: Operation timed out"
[17:06:53] jokke: jhass: i mean that i want my sinatra app to respond, not my middleware
[17:07:01] jhass: chintanparikh: then it has nothing to do with nginx
[17:07:13] jhass: chintanparikh: I guess your packetfilter drops packets on port 5000
[17:07:31] jhass: jokke: show what you have so far
[17:07:35] adaedra: jokke: do you have code already?
[17:07:39] jokke: jhass: nothing yet
[17:07:43] chintanparikh: jhass: What's the best way to check that? Is that through iptables?
[17:07:54] jhass: jokke: then try to write something, you'll see it's a non-issue
[17:08:04] jokke: jhass: oh ok
[17:08:39] jhass: chintanparikh: it's likely iptables in the end, whether you have some nicer management interface ontop of it, how would I know
[17:11:39] Technodrome: has joined #RubyOnRails
[17:12:01] chintanparikh: jhass: Gotcha thanks
[17:16:16] Weavel: has joined #RubyOnRails
[17:16:23] ppnlo: has joined #RubyOnRails
[17:17:07] jhack: has joined #RubyOnRails
[17:17:21] netzfisch: has joined #RubyOnRails
[17:18:43] Pazician: has joined #RubyOnRails
[17:18:43] Pazician: has joined #RubyOnRails
[17:18:54] triptec: has joined #RubyOnRails
[17:21:03] Oliphaunte: has joined #RubyOnRails
[17:24:08] dionysus69: has joined #RubyOnRails
[17:25:02] meoblast001: has joined #RubyOnRails
[17:31:32] enkristoffer: has joined #RubyOnRails
[17:31:40] dionysus69: has joined #RubyOnRails
[17:31:42] tildes: has joined #RubyOnRails
[17:31:53] salexa: has left #RubyOnRails: ("PART #ruby :QUIT :Leaving.")
[17:34:31] SirOliver: has joined #RubyOnRails
[17:35:48] yfeldblum: has joined #RubyOnRails
[17:36:49] Oliphaunte: has joined #RubyOnRails
[17:37:36] jscheel: has joined #RubyOnRails
[17:44:33] k3rn31: has joined #RubyOnRails
[17:45:29] someish: has joined #RubyOnRails
[17:49:27] netzfisch: has joined #RubyOnRails
[17:50:24] hahuang62: has joined #RubyOnRails
[17:55:07] Pazician: has joined #RubyOnRails
[17:55:33] Sashimi: has joined #RubyOnRails
[17:56:03] dionysus70: has joined #RubyOnRails
[17:59:59] Pazician: has joined #RubyOnRails
[18:00:41] arup_r: has joined #RubyOnRails
[18:02:08] jancel: has joined #RubyOnRails
[18:03:50] DoctorMonocular: has joined #RubyOnRails
[18:07:47] pawnbox: has joined #RubyOnRails
[18:09:02] conta: has joined #RubyOnRails
[18:09:09] globalall0c: has joined #RubyOnRails
[18:09:09] Sashimi_: has joined #RubyOnRails
[18:15:43] w09x: has joined #RubyOnRails
[18:20:32] triptec: has joined #RubyOnRails
[18:21:20] Dimik: has joined #RubyOnRails
[18:24:07] blackmesa: has joined #RubyOnRails
[18:24:42] arup_r: has joined #RubyOnRails
[18:24:51] shinnya: has joined #RubyOnRails
[18:32:43] mercerist: has joined #RubyOnRails
[18:34:52] banister: has joined #RubyOnRails
[18:38:13] melkor: has joined #RubyOnRails
[18:38:37] melkor: Is there a good way to do a site wide redirect?
[18:39:38] KnownSyntax: has joined #RubyOnRails
[18:39:38] KnownSyntax: has joined #RubyOnRails
[18:40:46] jas02_: has joined #RubyOnRails
[18:41:35] i90j: has joined #RubyOnRails
[18:41:44] melkor: er, not so much sitewide, but app wide. I have a ruby application, and it is being served via apache + passenger. I don't have access to setup the apache configs, but I would like my app to redirect.
[18:42:20] jlpeters_: has joined #RubyOnRails
[18:42:21] DoubleMalt: has joined #RubyOnRails
[18:42:48] jhack: has joined #RubyOnRails
[18:43:08] meinside_: has joined #RubyOnRails
[18:43:49] Meow-J_: has joined #RubyOnRails
[18:44:32] Jamo_: has joined #RubyOnRails
[18:44:38] devn: has joined #RubyOnRails
[18:44:41] darrik_: has joined #RubyOnRails
[18:45:03] sunya7a: has joined #RubyOnRails
[18:45:07] philtr_: has joined #RubyOnRails
[18:45:14] Weavel_: has joined #RubyOnRails
[18:45:30] Alek: has joined #RubyOnRails
[18:45:39] Confiks_: has joined #RubyOnRails
[18:46:48] alfiemax: got a quick question
[18:47:31] alfiemax: is Model.includes(:association).where(field: value).first(n) == Model.where(field: value).includes(:association).first(n)
[18:47:53] alfiemax: is there any difference in changing the order of where and includes ?
[18:48:07] tiago_: has joined #RubyOnRails
[18:48:15] Mch1: has joined #RubyOnRails
[18:48:23] noah256_: has joined #RubyOnRails
[18:48:24] Haydos_: has joined #RubyOnRails
[18:48:24] tekk: has joined #RubyOnRails
[18:48:29] mayamai: has joined #RubyOnRails
[18:48:34] jhass|off: has joined #RubyOnRails
[18:48:39] DiabolikFreenode: has joined #RubyOnRails
[18:48:52] iooner-: has joined #RubyOnRails
[18:49:00] Mweshi: has joined #RubyOnRails
[18:49:15] tbuehlmann: alfiemax: there shouldn't be a difference
[18:49:26] alfiemax: awesome, thanks :)
[18:49:56] bodie__: has joined #RubyOnRails
[18:50:26] eggoez: has joined #RubyOnRails
[18:50:28] markelite: has joined #RubyOnRails
[18:50:55] Fire-Dragon-DoL: has joined #RubyOnRails
[18:51:09] hahuang62: has joined #RubyOnRails
[18:51:29] banister: has joined #RubyOnRails
[18:52:46] alfiemax: hey, what would you except the output of `false.present?` to be? (if you haven't checked the source for present?)
[18:53:39] enkristoffer: has joined #RubyOnRails
[18:55:07] lord4163: has joined #RubyOnRails
[18:56:49] k3rn31: has joined #RubyOnRails
[18:57:42] arup_r: I want to include only admin which did subscribe. What approach is good a) scope :subscribed_members, -> { includes(:subscriptions).where.not(subscriptions: { admin_id: nil }) } b) scope :subscribed_members, -> { joins(:subscriptions) } ?
[18:58:40] alfiemax: arup_r, i would say the first
[18:58:56] arup_r: ok, can u give me the reasoning?
[18:59:07] arup_r: that's what I need.. :)
[18:59:35] alfiemax: well, second one would create duplicates
[18:59:52] arup_r: I really don't need the subscriptions in my view. Then why to pre load? I am not able to give myself the justifucation
[18:59:58] alfiemax: but you could call `distinct` to get the uniq results too
[19:00:17] arup_r: ok.. nice point *duplicate*
[19:00:31] arup_r: alfiemax: thanks
[19:00:35] arup_r: I got my answer
[19:00:48] gingray: has joined #RubyOnRails
[19:01:07] Mweshi: has joined #RubyOnRails
[19:01:34] Emily: has joined #RubyOnRails
[19:02:47] wd40s: has joined #RubyOnRails
[19:02:47] yardenbar: has joined #RubyOnRails
[19:05:41] mweshi__: has joined #RubyOnRails
[19:06:20] enkristoffer: has joined #RubyOnRails
[19:08:35] DoubleMalt: has joined #RubyOnRails
[19:09:44] whathappens: has joined #RubyOnRails
[19:10:45] jhack: has joined #RubyOnRails
[19:10:51] kitsuneyo: has joined #RubyOnRails
[19:11:25] kitsuneyo: is it possible to view all source files from a previous commit in bitbucket?
[19:13:48] jas02: has joined #RubyOnRails
[19:13:54] alfiemax: don't think so
[19:14:25] kitsuneyo: that's a shame, thanks anyway
[19:14:36] Emily_: has joined #RubyOnRails
[19:17:04] futilegames: has joined #RubyOnRails
[19:21:37] Mweshi: has joined #RubyOnRails
[19:21:53] Oliphaunte: has joined #RubyOnRails
[19:25:13] jtong: has joined #RubyOnRails
[19:25:57] armyriad: has joined #RubyOnRails
[19:28:00] yardenbar: has joined #RubyOnRails
[19:30:14] SirOliver: has joined #RubyOnRails
[19:33:38] startupality: has joined #RubyOnRails
[19:35:01] banister: has joined #RubyOnRails
[19:35:20] chintanparikh: has joined #RubyOnRails
[19:35:28] chintanparikh: I set some environmental variables using rbenv-vars, and running >rbenv vars printed them out correctly. Now, when i go and update my .rbenv-vars file, the command >rbenv vars still gives me the old environmental variables
[19:35:39] emachnic: has joined #RubyOnRails
[19:35:41] chintanparikh: Anyone know why this could be happening?
[19:37:05] frojnd: has joined #RubyOnRails
[19:37:09] frojnd: Hi there.
[19:37:11] Markhor1991: hmm. in what way did you update, from the working version to the not owrking version?
[19:37:38] chintanparikh: Markhor1991: Just added some more variables. I can post the file if you want
[19:38:01] Markhor1991: yeah, post both using whatever is in the MOTD. i think it's gist
[19:38:34] chintanparikh: https://gist.github.com/chintanparikh/0e6259d130a4601a9aee7f4c371b5cab
[19:38:37] Markhor1991: or whatever the rules say are allowed for pasting
[19:38:47] chintanparikh: Before, my last line was DATABASE_PASSWORD
[19:38:59] frojnd: So here is the deal. I'd like to get forcast info for the next 16 days from openweathermap.org and show part where it says sunny or cloud into each date within simple_calendar gem. I already show stuff withing simple_calendar but how can I fetch data from openweathermap and show it?
[19:39:11] jhack: has joined #RubyOnRails
[19:39:30] chintanparikh: Updated the gist with my rbenv vars output
[19:39:48] chintanparikh: frojnd: Does open weather map have an API?
[19:39:54] chintanparikh: Otherwise you will have to crape
[19:40:00] jancel: has joined #RubyOnRails
[19:40:08] frojnd: chintanparikh: ofcourse, I use it for android, but I started fiddling with rails
[19:40:12] Markhor1991: it has a LOt of api information, yes
[19:40:37] viiralvx: has joined #RubyOnRails
[19:41:02] Oliphaunte: has joined #RubyOnRails
[19:41:02] Uranio: has joined #RubyOnRails
[19:41:06] Markhor1991: also sadly, i'm not much of a ruby on rails person. chintanparikh, have you tried moving the vars around within the file? putting the database stuff last?
[19:41:08] chintanparikh: frojnd: So you already know how to use an API? In that case check out RestClient or similar libraries to make the calls
[19:41:21] chintanparikh: Markhor1991: No I haven't, let me give that a go
[19:41:29] frojnd: chintanparikh: restclient .. ok
[19:42:15] xlegoman: has joined #RubyOnRails
[19:42:23] futilegames: has joined #RubyOnRails
[19:42:26] chintanparikh: Markhor1991: No luck
[19:42:43] chintanparikh: It's almost like what I'm doing to the file isn't changing anything
[19:42:43] Markhor1991: is it still outputting what it did before, or nothing at all this time?
[19:42:52] Markhor1991: oh, make sure you are saving the file.
[19:42:58] Markhor1991: i'm just saying, i forget that too sometimes
[19:43:24] Oliphaunte: has joined #RubyOnRails
[19:43:54] nettoweb: has joined #RubyOnRails
[19:43:54] chintanparikh: So I tried replacing .rbenv-vars with a blank file
[19:44:03] chintanparikh: And then running the rbenv vars command gave me nothing
[19:44:06] chintanparikh: Which makes sense
[19:44:09] jgt: has joined #RubyOnRails
[19:44:23] chintanparikh: And then switching it back still gives me the same environmental vars
[19:44:53] tildes: has joined #RubyOnRails
[19:44:57] chintanparikh: I had colons instead of equals
[19:45:09] Markhor1991: that'll probably do it.
[19:45:41] Oliphaun_: has joined #RubyOnRails
[19:45:44] ur5us: has joined #RubyOnRails
[19:49:22] Oliphaunte: has joined #RubyOnRails
[19:51:53] hahuang62: has joined #RubyOnRails
[19:56:00] GodFather: has joined #RubyOnRails
[19:56:27] DoctorMonocular: has joined #RubyOnRails
[19:58:35] GodFather: has joined #RubyOnRails
[20:01:06] frojnd: I'm looking at https://github.com/rest-client/rest-client where do I put require 'rest-client' require 'json' and url='' ?
[20:01:48] pLaTo0n: has joined #RubyOnRails
[20:01:52] srinidhi1: has joined #RubyOnRails
[20:01:52] srinidhi: has joined #RubyOnRails
[20:02:49] Oliphaunte: has joined #RubyOnRails
[20:03:45] SirOliver: has joined #RubyOnRails
[20:04:37] melkor: has joined #RubyOnRails
[20:06:27] SirOliver: has joined #RubyOnRails
[20:07:06] wsmoak: has joined #RubyOnRails
[20:08:45] arBmind: has joined #RubyOnRails
[20:09:48] Coldblackice: has joined #RubyOnRails
[20:09:58] Oliphaunte: has joined #RubyOnRails
[20:12:44] jtong: has joined #RubyOnRails
[20:13:09] Oliphaunte: has joined #RubyOnRails
[20:16:36] w09x: has joined #RubyOnRails
[20:16:38] srinidhi1: has joined #RubyOnRails
[20:22:10] cleopatra: has joined #RubyOnRails
[20:22:33] srinidhi: has joined #RubyOnRails
[20:22:47] cleopatra: hey what new here
[20:24:21] SirOliver: has joined #RubyOnRails
[20:27:00] jancel: has joined #RubyOnRails
[20:28:18] rueben: has joined #RubyOnRails
[20:30:34] SirOliver: has joined #RubyOnRails
[20:30:34] emachnic: has joined #RubyOnRails
[20:32:27] pawnbox: has joined #RubyOnRails
[20:35:55] confounds: has joined #RubyOnRails
[20:36:07] DTZUBDUB: has joined #RubyOnRails
[20:36:26] alfiemax: i'm making a query like, Lead.joins(:contacts).distinct but, that is giving me an error because i have a json field in my leads table
[20:36:58] alfiemax: how can i get the distinct leads after joining, maybe just based on the id and not the whole object
[20:42:19] triptec: has joined #RubyOnRails
[20:44:13] northfurr: has joined #RubyOnRails
[20:45:42] yfeldblum: has joined #RubyOnRails
[20:50:45] hahuang62: has joined #RubyOnRails
[20:56:09] banisterfiend: has joined #RubyOnRails
[20:56:37] hahuang62: has joined #RubyOnRails
[20:58:43] serbalgi: has joined #RubyOnRails
[21:00:00] roamingdog: has joined #RubyOnRails
[21:00:14] solars: has joined #RubyOnRails
[21:00:37] frojnd: anyone here familiar with httparty? After creating lib/url_api.rb and put in require 'httparty' url='apiurl' response = HTTParty.get(url) response.parsed_response how do I show the result in my view?
[21:01:02] Sashimi: has joined #RubyOnRails
[21:01:03] jhack: has joined #RubyOnRails
[21:01:30] Rodya_: has joined #RubyOnRails
[21:02:46] SirOliver: has joined #RubyOnRails
[21:03:46] pawnbox: has joined #RubyOnRails
[21:08:18] arooni: has joined #RubyOnRails
[21:09:11] rueben: has joined #RubyOnRails
[21:14:38] arooni: has joined #RubyOnRails
[21:14:41] confounds: has joined #RubyOnRails
[21:15:02] marr: has joined #RubyOnRails
[21:16:40] guidocalvano: has joined #RubyOnRails
[21:21:08] chopin: has joined #RubyOnRails
[21:21:09] fschuindt: has joined #RubyOnRails
[21:23:46] evansbee: has joined #RubyOnRails
[21:24:07] xall_: has joined #RubyOnRails
[21:24:32] emachnic: has joined #RubyOnRails
[21:25:40] fschuindt: Folks, in order to prevent a model (Post) being created multiple times, I check it with: "if @users.posts.empty?" and then create it. My app executes this code more than one time during a single request, but it's passing even the table isn't empty. It's creating a instance for every time it's called. But after the requests finishes it don't passes anymore. Any tip?
[21:25:56] greengriminal: has joined #RubyOnRails
[21:27:13] boshhead: has joined #RubyOnRails
[21:28:41] boshhead: has joined #RubyOnRails
[21:30:29] jhass: @users.posts.exist?
[21:30:41] jhass: @users.posts.reload.empty?
[21:30:46] boshhead: has joined #RubyOnRails
[21:30:51] jhass: but neither is likely the most efficient solution
[21:31:09] jhass: you should do @users.posts << post at least
[21:31:10] boshhead: has joined #RubyOnRails
[21:32:59] ur5us: has joined #RubyOnRails
[21:33:00] xall_: has joined #RubyOnRails
[21:35:26] confounds: has left #RubyOnRails: ()
[21:35:30] fschuindt: Hmm, let me try it
[21:37:00] jgt1: has joined #RubyOnRails
[21:40:52] GodFather: has joined #RubyOnRails
[21:41:33] boshhead: has joined #RubyOnRails
[21:41:50] northfurr: has joined #RubyOnRails
[21:42:00] boshhead: has joined #RubyOnRails
[21:42:31] chintanparikh: has joined #RubyOnRails
[21:43:31] boshhead: has joined #RubyOnRails
[21:44:23] Wolfram74: has joined #RubyOnRails
[21:44:54] Wolfram74: I'm having trouble finding an example of an rspec test for an unauthenticated access page
[21:45:10] jhass: oh it's exists?
[21:45:23] jhass: wolfram74: get :page
[21:46:09] Wolfram74: I meant someone without authentication trying to access an authentication-only page
[21:46:35] jhass: get :page
[21:46:43] Wolfram74: it should redirect to a log-in page, and it does when i test manually, but in rspec response.body just has the page in full
[21:46:45] jhass: just don't sign them in first
[21:46:59] helpa: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[21:47:34] Wolfram74: http://dpaste.com/2T92H6C
[21:47:51] Wolfram74: the first auth test passes, the second one fails
[21:49:11] Wolfram74: more details needed?
[21:51:14] pwnd_nsfw`: wolfram74, which tests unauthenticated user being denied a page?
[21:51:29] pwnd_nsfw`: what is render_views..?
[21:51:38] pwnd_nsfw`: I'd basically just do
[21:52:14] DoctorMonocular: has joined #RubyOnRails
[21:52:22] pwnd_nsfw`: get :whatever_page; expect(response).to redirect_to :some_page
[21:52:56] Wolfram74: 'it can tell when a user isn\'t authenticated' is me trying to understand unauthenticated behavior in tests
[21:53:19] Wolfram74: and at the moment it doesn't redirect, but i'll try your test
[21:53:35] Hobogrammer: has joined #RubyOnRails
[21:54:02] Wolfram74: yeah, just code 200
[21:54:08] upsell5: has joined #RubyOnRails
[21:54:15] jhass: you shouldn't need to set the mapping like that
[21:54:30] Wolfram74: the devise documentation said I should?
[21:54:44] Wolfram74: https://github.com/plataformatec/devise/wiki/How-To:-Test-controllers-with-Rails-3-and-4-(and-RSpec)
[21:54:49] jhass: http://www.rubydoc.info/gems/devise/Devise/TestHelpers#sign_in-instance_method
[21:55:02] jhass: that's just wrong
[21:55:14] jhass: see ^, the helper specifically takes a mapping
[21:55:23] mdw: has joined #RubyOnRails
[21:55:23] jhass: sign_in :user, user
[21:55:30] Wolfram74: I mean, I did itin that particular test instead of a helper, because I wanted to do it all in one spot first before make a general solution
[21:55:38] jhass: but that's just sign_in user if you only have a single mapping anyway
[21:56:05] jhass: anyway, from the code given there should be no user authenticated in the second test
[21:56:15] jhass: if there is, it's done somewhere you didn't show
[21:56:19] jhass: for example the spec helper or so
[21:56:49] jhass: or your test or code is simply broken because you include secret either way
[21:57:02] mikecmpbll: has joined #RubyOnRails
[21:57:02] Oliphaunte: has joined #RubyOnRails
[21:57:22] hahuang62: has joined #RubyOnRails
[21:58:34] jhass: also you never answered wth render_views is
[21:59:15] Radar: it's an rspec thing which will render the views rather than just evaluating what the controller returns
[21:59:30] Radar: https://www.relishapp.com/rspec/rspec-rails/v/2-1/docs/controller-specs/render-views
[21:59:44] jhass: interesting, never saw it before
[21:59:53] Wolfram74: so, I just double checked my manual test and hitting /secret does give a 302 followed by going to /users/sign_in
[22:00:03] Wolfram74: which means that I should be able to get this http://dpaste.com/2BRTEVS test to work
[22:00:08] w09x: has joined #RubyOnRails
[22:00:20] jhass: wolfram74: btw you should easily check whether you got another sign_in hidden somewhere by adding a sign_out :user before the get
[22:00:22] pawnbox: has joined #RubyOnRails
[22:00:28] Wolfram74: At this point I'm not expecting a solution, just double checking my assumptions
[22:01:53] jhass: I'm not suggesting it as the final solution
[22:02:28] Wolfram74: right, it struck me as kludgy as well, but it also didn't work
[22:02:41] Wolfram74: so I'm thinking maybe my testing environment isn't 100% properly set up?
[22:02:48] jhass: sounds like it
[22:03:00] meoblast001: has joined #RubyOnRails
[22:03:17] jhass: might even be just old code cached though
[22:03:21] Radar: wolfram74: I would recommend testing this using a feature spec rather than a controller spec.
[22:03:22] jhass: make sure to kill spring and what else
[22:04:11] Wolfram74: "kill spring" ?
[22:04:14] Radar: feature test would test that someone who is unauthenticated is redirected to /users/sign_in and then when they sign in then they're redirected straight back to that page.
[22:04:19] jhass: bin/spring stop
[22:04:23] Radar: wolfram74: the spring gem. If it's mentioned in your Gemfile...
[22:04:39] helpa: has joined #RubyOnRails
[22:06:00] flashpoint9: has joined #RubyOnRails
[22:07:51] Wolfram74: ok, doing "spring stop" and then rerunning tests didn't fix it
[22:08:21] Wolfram74: and Radar, why should I consider whether or not a route redirectrs to be outside the jurisdiction of contoller testing?
[22:08:48] Wolfram74: I mean, I'm having trouble doing it, but it should be a solvable problem
[22:12:10] jancel: has joined #RubyOnRails
[22:12:59] DoctorMonocular: has joined #RubyOnRails
[22:14:06] Wolfram74: well, I'm taking a blue berry picking break
[22:15:37] startupality: has joined #RubyOnRails
[22:16:29] apofis: has joined #RubyOnRails
[22:17:42] fox_mulder_cp: i have a string 'some.test.domain.com' and i split it as domain.split('.')[1..-1]
[22:18:17] fox_mulder_cp: i want merge shit splitted array into one string
[22:18:45] xall_: has joined #RubyOnRails
[22:20:17] xall: has joined #RubyOnRails
[22:21:23] ecksit: has joined #RubyOnRails
[22:21:48] wsmoak: anyone around who can opine on the performance characteristics of routing constraints?
[22:23:02] wsmoak: as far as I can tell... the constraint [it's in a separate class] gets initialized once at startup, then executed (the `matches?` method is called) only when the constrained route is requested.
[22:23:05] rafaelfranca: has joined #RubyOnRails
[22:23:05] rafaelfranca: has joined #RubyOnRails
[22:23:05] Cache_Money: has joined #RubyOnRails
[22:23:24] wsmoak: is there anything about constraints that 'happens' on every request and could be a problem?
[22:23:56] soule: has joined #RubyOnRails
[22:25:40] xall_: has joined #RubyOnRails
[22:28:10] lightt: has joined #RubyOnRails
[22:29:37] wethu: has joined #RubyOnRails
[22:38:00] Radar: wsmoak: not that I am aware of
[22:38:06] Axilla: has joined #RubyOnRails
[22:38:12] Radar: wsmoak: What are you seeing?
[22:39:23] flashpoint9: has joined #RubyOnRails
[22:39:52] Cache_Money: I want to set the `role` attribute on my User model when created. Should I use the `before_create` AR callback? It's not allowing me to successfully create a new record with this https://gist.github.com/anonymous/430a8694bd989b18774ef6cf255e6aa3
[22:40:05] Radar: > Should I use the `before_create` AR callback?
[22:40:22] Radar: The answer to this should always be "NOPE" unless you literally cannot think of any other way to implement it
[22:40:33] Cache_Money: Radar: Should I do it within the controller?
[22:40:36] Radar: Cache_Money: Yes.
[22:40:43] Radar: Cache_Money: Is it perhaps because you're using == when you should be using = ?
[22:40:44] Radar: https://gist.github.com/anonymous/430a8694bd989b18774ef6cf255e6aa3#file-user-rb-L41
[22:41:08] Cache_Money: Ahhh. But you'd advise I set that within the controller?
[22:41:18] wsmoak: Radar: I'm seeing the constraint initialized [the class instantiated] at startup, then only executed when the constrained route is requested. Someone else said there were perf issues and I made a test project to explore. Can't find it yet...
[22:41:36] xall: has joined #RubyOnRails
[22:41:37] Radar: wsmoak: I don't know what kind of perf issues there would be. I haven't seen any.
[22:41:41] Radar: Cache_Money: Yes, that is what I just said.
[22:41:45] Radar: [08:40:33] <Cache_Money> Radar: Should I do it within the controller?
[22:41:45] Radar: [08:40:36] <Radar> Cache_Money: Yes.
[22:42:24] mdw: has joined #RubyOnRails
[22:43:23] Wolfram74: I am amused that the most common form of this problem I'm finding is the opposite of what I'm getting
[22:44:01] Wolfram74: or at least the best documented solutions
[22:44:12] Radar: I don't understand.
[22:45:30] Wolfram74: like, an article goes into great detail how to pretend to be logged in to avoid getting 302 instead of 200, which is the opposite problem I have, I can't /not/ make it look like I'm logged in
[22:45:46] Radar: Can you show us again what you've tried?
[22:47:50] Wolfram74: http://dpaste.com/2C6ZWQV
[22:48:07] Wolfram74: so the first test works, the other 2 do not
[22:48:09] Radar: wolfram74: on line 11 there, the user should be signed out by default
[22:48:35] Wolfram74: someone reccomended it just to be thorough
[22:48:43] Radar: It's unnecessary.
[22:48:54] Radar: The environment is reset between each test. If it's not, then there's something bigger that is screwy.
[22:49:05] Wolfram74: I consider it necessary because it appears that the test on line 3 will always pass, whether or not things are working
[22:49:17] Rodya_: has joined #RubyOnRails
[22:49:22] Radar: What happens when you run the second test?
[22:49:53] Wolfram74: test on line 3 passes, lines 11 and 20 both fail
[22:50:23] Wolfram74: the body on line 15 is the same as would be returned if authed, and the response is 200, not 302
[22:50:39] Radar: Can you show us the relevant controller code too please?
[22:50:46] Radar: wolfram74: !gist for multiple files
[22:50:46] helpa: wolfram74: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[22:50:54] Radar: since it'll make it much easier to see all this on one URL
[22:51:31] Wolfram74: Does the fact the authentication occurs in the routes page instead ot the controller cause the problem?
[22:52:46] andatche: has joined #RubyOnRails
[22:52:53] Radar: I won't know until I can see some code.
[22:55:38] Wolfram74: https://gist.github.com/wolfram74/bf191590249422048f7941e97a040838
[22:57:17] zeknox: has joined #RubyOnRails
[22:58:08] hahuang62: has joined #RubyOnRails
[22:58:52] pwnd_nsfw: has joined #RubyOnRails
[23:01:57] pawnbox: has joined #RubyOnRails
[23:02:10] pwnd_nsfw`: has joined #RubyOnRails
[23:06:32] DoctorMonocular: has joined #RubyOnRails
[23:08:09] Sashimi: has joined #RubyOnRails
[23:10:49] rickmasta: has joined #RubyOnRails
[23:10:58] haaj: has joined #RubyOnRails
[23:12:39] emachnic: has joined #RubyOnRails
[23:13:07] xall: has joined #RubyOnRails
[23:13:38] quazimodo: has joined #RubyOnRails
[23:14:18] jtong: has joined #RubyOnRails
[23:17:04] Haydos: has joined #RubyOnRails
[23:17:16] Axsuul: has joined #RubyOnRails
[23:17:48] m_antis: has joined #RubyOnRails
[23:21:07] GodFather: has joined #RubyOnRails
[23:22:07] pawnbox: has joined #RubyOnRails
[23:23:19] helpa: has joined #RubyOnRails
[23:27:02] rickmasta: has joined #RubyOnRails
[23:28:27] dalbusch1t: has joined #RubyOnRails
[23:30:07] arooni: has joined #RubyOnRails
[23:32:58] drptbl: has joined #RubyOnRails
[23:34:24] nettoweb: has joined #RubyOnRails
[23:36:39] rickmasta: has joined #RubyOnRails
[23:38:54] brandon_j: has joined #RubyOnRails
[23:41:56] haaj_: has joined #RubyOnRails
[23:42:34] DoctorMonocular: has joined #RubyOnRails
[23:42:35] triptec: has joined #RubyOnRails
[23:43:09] ecksit: has joined #RubyOnRails
[23:44:52] armyriad: has joined #RubyOnRails
[23:45:20] Axsuul: has joined #RubyOnRails
[23:46:09] rickmasta: has joined #RubyOnRails
[23:46:46] djbkd: has joined #RubyOnRails
[23:49:49] pawnbox: has joined #RubyOnRails
[23:50:32] Rodya_: has joined #RubyOnRails
[23:54:59] rafaelfranca: has joined #RubyOnRails
[23:55:42] Osmosis311: has joined #RubyOnRails
[23:56:14] Osmosis311: i'm getting an error in an rspec that a method in application controller, being called from a view, cannot be found....any ideas?
[23:56:34] Osmosis311: "undefined local variable or method
[23:58:15] triptec: has joined #RubyOnRails
[23:58:43] Radar: Osmosis311: Did you make it available through helper_method?
[23:58:52] hahuang62: has joined #RubyOnRails
[23:58:57] Osmosis311: hmmm....no, how do i do that?
[23:59:04] Osmosis311: helper_method: <method name>?