« Back to channel list

#RubyOnRails - 20 March 2016

« Back 1 day Forward 1 day »
[00:01:07] hotpancakes: has joined #RubyOnRails
[00:06:08] drim: has joined #RubyOnRails
[00:08:00] htmldrum: has joined #RubyOnRails
[00:08:16] bronson: has joined #RubyOnRails
[00:10:31] Trynemjoel: has joined #RubyOnRails
[00:14:57] Technodrome: pipework you would push the static pages to a CDN?
[00:17:23] halfamind: has joined #RubyOnRails
[00:19:31] KnownSyntax: has joined #RubyOnRails
[00:19:34] KnownSyntax: has joined #RubyOnRails
[00:20:50] johnflux: has joined #RubyOnRails
[00:20:50] johnflux: has joined #RubyOnRails
[00:21:23] quazimodo: has joined #RubyOnRails
[00:22:36] one_zero: has joined #RubyOnRails
[00:30:23] halfamind: has joined #RubyOnRails
[00:30:53] halfamind1: has joined #RubyOnRails
[00:30:56] dalbusch1t: has joined #RubyOnRails
[00:35:17] samuelkadolph: has joined #RubyOnRails
[00:36:47] samuelka-: has joined #RubyOnRails
[00:38:44] rlf: has joined #RubyOnRails
[00:40:23] rlf: hello, is there a reason why capistrano and devise wouldn't work good together? capistrano keeps complaining i dont have devise.secret_key set, while i have it set in the config/initializers/devise.rb file (i get it through ENV['DEVISE_SECRET'] and i have set it with export DEVISE_SECRET)
[00:41:17] fryguy: capistrano shouldn't be doing anything with devise, can you show a full log
[00:42:25] rlf: there's really nothing interesting in it, just that message
[00:42:33] rlf: i'm wondering if the environment vars are messed up
[00:42:41] rlf: do i have to set them explicitly in the capistrano config?
[00:43:10] fryguy: you shouldn't have to set anything regarding devise in capistrano at all
[00:43:44] RegulationD: has joined #RubyOnRails
[00:46:45] stannard: has joined #RubyOnRails
[00:46:56] austingp: has joined #RubyOnRails
[00:49:22] Devalo: has joined #RubyOnRails
[00:51:09] nettoweb: has joined #RubyOnRails
[00:52:35] nettoweb: hey guys, how I can get a responde from an POST to url (api)? IM searching a good wway to achieve it but all found a lot different
[00:53:24] hotpancakes: has joined #RubyOnRails
[00:58:57] DoctorMonocular: has joined #RubyOnRails
[01:00:37] austingp: hey nettoweb, what exactly do you mean, like you make a POST and you want to get the response?
[01:01:17] nettoweb: yeah... I want to do a post and get a response from an API
[01:01:59] austingp: is this in a controller using ruby or a view using js?
[01:03:13] nettoweb: I can using curl on console but I want to know how to do it in controller
[01:03:50] austingp: checkout the gem httparty, its designed to do exactly what you want to do
[01:08:06] bePolite: has joined #RubyOnRails
[01:08:07] bePolite: has joined #RubyOnRails
[01:09:51] austingp: man I love working with ror vs my dayjob with ASP.Net
[01:09:52] bronson: has joined #RubyOnRails
[01:09:55] johnflux: has joined #RubyOnRails
[01:12:31] arBmind: has joined #RubyOnRails
[01:14:26] Pazician: has joined #RubyOnRails
[01:15:25] georgedrummond: has joined #RubyOnRails
[01:16:43] stannard: has joined #RubyOnRails
[01:20:56] humbledaisy: has joined #RubyOnRails
[01:29:00] dandaman: has joined #RubyOnRails
[01:32:06] samuelkadolph1: has joined #RubyOnRails
[01:32:22] ensyde_: has joined #RubyOnRails
[01:32:45] bob434: has joined #RubyOnRails
[01:34:38] bePolite: has joined #RubyOnRails
[01:36:24] dandaman: has joined #RubyOnRails
[01:40:26] halfamind: has joined #RubyOnRails
[01:43:08] chagel: has joined #RubyOnRails
[01:44:05] _bogus_: has joined #RubyOnRails
[01:44:06] _bogus_: has joined #RubyOnRails
[01:44:15] bob434: has joined #RubyOnRails
[01:44:51] RegulationD: has joined #RubyOnRails
[01:51:39] smoitra: has joined #RubyOnRails
[01:56:16] samuelkadolph: has joined #RubyOnRails
[01:57:47] samuelkadolph1: has joined #RubyOnRails
[01:59:22] |PiP|: has joined #RubyOnRails
[02:00:07] stannard_: has joined #RubyOnRails
[02:00:43] htmldrum: has joined #RubyOnRails
[02:04:26] stannard: has joined #RubyOnRails
[02:04:35] bronson: has joined #RubyOnRails
[02:06:14] samuelkadolph: has joined #RubyOnRails
[02:06:29] baweaver: has joined #RubyOnRails
[02:08:17] samuelkadolph1: has joined #RubyOnRails
[02:09:20] bricker: has joined #RubyOnRails
[02:10:36] Technodrome: I do appreciate rails
[02:10:44] Technodrome: systemsgotyou you really want to hear that again?
[02:11:05] new_bruins: has joined #RubyOnRails
[02:14:28] new_bruins: Anyone have a good walkthrough on using resque on a callback and then once the task is complete, then storing it to Active Record? Or is that a silly thing to do?
[02:14:39] humbledaisy: has joined #RubyOnRails
[02:18:22] qejk: has joined #RubyOnRails
[02:20:43] DoctorMonocular: has joined #RubyOnRails
[02:25:14] DmitryBochkarev: has joined #RubyOnRails
[02:29:31] joshhbk: has joined #RubyOnRails
[02:31:04] norc_: has joined #RubyOnRails
[02:31:23] zave: has joined #RubyOnRails
[02:33:59] slash_nick: new_bruins: i wonder if http://edgeguides.rubyonrails.org/active_support_instrumentation.html might work for you
[02:35:46] duncannz: has joined #RubyOnRails
[02:35:50] quazimodo: has joined #RubyOnRails
[02:37:21] onechr: has joined #RubyOnRails
[02:39:07] new_bruins: hmmmm,well most of that meant nothing to me, but I'll take a deeper look
[02:39:16] new_bruins: thank you though
[02:40:10] onechr: has joined #RubyOnRails
[02:42:05] ayoros: has joined #RubyOnRails
[02:46:44] chouhoulis: has joined #RubyOnRails
[02:50:47] Devalo: has joined #RubyOnRails
[02:51:55] Tempesta: has joined #RubyOnRails
[02:57:01] Synthead: has joined #RubyOnRails
[02:57:24] htmldrum: has joined #RubyOnRails
[02:59:19] jtong: has joined #RubyOnRails
[03:09:06] austingp: what are you guys using for deployment and hosting? is heroku still as good as it used to be, or would I be better off looking into AWS?
[03:10:19] fryguy: if you have sysadmin/operations resources available to you, moving on from heroku is a reasonable decision
[03:10:26] _Tariq: has joined #RubyOnRails
[03:12:44] Spami: has joined #RubyOnRails
[03:13:18] systemsgotyou: does "gem install rails" install the latest version?
[03:13:18] Spami: has joined #RubyOnRails
[03:13:45] fryguy: systemsgotyou: yes it should
[03:15:06] seaworthy: has joined #RubyOnRails
[03:15:07] seaworthy: has joined #RubyOnRails
[03:15:53] jaequery: has joined #RubyOnRails
[03:19:48] bronson: has joined #RubyOnRails
[03:22:58] baweaver: has joined #RubyOnRails
[03:31:08] oliver__: has joined #RubyOnRails
[03:33:34] austingp: I'm a one man operation fryguy, are you saying that heroku would be a good idea for my size then?
[03:34:21] drale2k: Awesome video series on learning about "Neural Networks" http://lumiverse.io/video/part-1-data-and-architecture
[03:35:23] fryguy: austingp: it's probably easier
[03:37:07] austingp: yeah, I've used it before (never for anything serious though) and you've got to love one line deployments...
[03:38:00] renanoronfle: has joined #RubyOnRails
[03:38:22] shmilan: has joined #RubyOnRails
[03:45:41] krz: has joined #RubyOnRails
[03:47:56] chouhoulis: has joined #RubyOnRails
[03:52:47] rickmasta: has joined #RubyOnRails
[03:55:58] chagel: has joined #RubyOnRails
[03:56:36] Technodrome: systemsgotyou are you using rvm?
[03:58:18] beauby: has joined #RubyOnRails
[04:01:23] jaequery_: has joined #RubyOnRails
[04:09:18] nerium_: has joined #RubyOnRails
[04:12:05] htmldrum: has joined #RubyOnRails
[04:13:00] baweaver: has joined #RubyOnRails
[04:15:59] braincrash: has joined #RubyOnRails
[04:23:38] mostlybadfly: has joined #RubyOnRails
[04:24:02] pawnbox: has joined #RubyOnRails
[04:25:00] hotpancakes: has joined #RubyOnRails
[04:26:11] treaki__: has joined #RubyOnRails
[04:26:17] PedramT: has joined #RubyOnRails
[04:29:33] jaequery: has joined #RubyOnRails
[04:31:24] bePolite: has joined #RubyOnRails
[04:32:25] drale2k: trying to get my head around how you would use native iOS controls with Turbolinks 5 instead of the web controls. Would you hide the web controls by injecting JS via the iOS app or hide them via CSS inside the rails app with CSS or use a different layout with variants
[04:33:12] uglybandersnatch: has joined #RubyOnRails
[04:36:05] PedramT: has joined #RubyOnRails
[04:36:06] pawnbox: has joined #RubyOnRails
[04:37:16] makerops: has joined #RubyOnRails
[04:40:27] PedramT: has joined #RubyOnRails
[04:40:41] halfamind: has joined #RubyOnRails
[04:44:07] Oliphaunte: has joined #RubyOnRails
[04:44:18] kdough: has joined #RubyOnRails
[04:46:09] PedramT: has joined #RubyOnRails
[04:47:44] yfeldblum: has joined #RubyOnRails
[04:48:27] hotpancakes: has joined #RubyOnRails
[04:48:38] chouhoulis: has joined #RubyOnRails
[04:48:52] zave: has joined #RubyOnRails
[04:52:18] Devalo: has joined #RubyOnRails
[04:53:07] |PiP|: has joined #RubyOnRails
[04:55:21] Oliphaunte: has joined #RubyOnRails
[04:55:31] zave: has joined #RubyOnRails
[04:56:59] _bogus_: hi there. im using activeadmin which uses formstastic, and ckeditor (using galetahub/ckeditor gem)... is there an easy way to load the ckeditor only if a select has a certain value ?
[05:01:53] _bogus_: has joined #RubyOnRails
[05:02:10] _bogus_: has joined #RubyOnRails
[05:03:01] nertzy: has joined #RubyOnRails
[05:10:46] pvertenten: has joined #RubyOnRails
[05:16:04] Oliphaunte: has joined #RubyOnRails
[05:18:00] Oliphaunte: has joined #RubyOnRails
[05:23:48] johnflux: has joined #RubyOnRails
[05:27:46] IFrank00: has joined #RubyOnRails
[05:29:21] awasum: has joined #RubyOnRails
[05:29:23] fedexo: has joined #RubyOnRails
[05:30:29] pawnbox: has joined #RubyOnRails
[05:34:26] w0rd-driven: has joined #RubyOnRails
[05:36:28] KnownSyntax: has joined #RubyOnRails
[05:36:31] KnownSyntax: has joined #RubyOnRails
[05:39:45] jdev: has joined #RubyOnRails
[05:44:29] jaequery: has joined #RubyOnRails
[05:49:01] dcunit3d: has joined #RubyOnRails
[05:49:18] chouhoulis: has joined #RubyOnRails
[05:52:33] Synthead: has joined #RubyOnRails
[05:54:47] bricker: has joined #RubyOnRails
[06:04:04] hotpancakes: has joined #RubyOnRails
[06:04:30] njero: has joined #RubyOnRails
[06:05:50] Synthead: has joined #RubyOnRails
[06:07:22] vampirehunter: has joined #RubyOnRails
[06:09:35] Oliphaunte: has joined #RubyOnRails
[06:12:24] sysodaff: has joined #RubyOnRails
[06:12:42] htmldrum: has joined #RubyOnRails
[06:19:11] arup_r: has joined #RubyOnRails
[06:20:41] bronson: has joined #RubyOnRails
[06:21:28] sysodaff: has joined #RubyOnRails
[06:22:16] sp1rs: has joined #RubyOnRails
[06:24:56] linkrules: has joined #RubyOnRails
[06:31:58] sevenseacat: has joined #RubyOnRails
[06:35:39] IFrank00: has joined #RubyOnRails
[06:40:14] bob434: has joined #RubyOnRails
[06:41:36] bob434: has joined #RubyOnRails
[06:45:04] hotpancakes: has joined #RubyOnRails
[06:46:26] hotpancakes: has joined #RubyOnRails
[06:47:02] Oliphaunte: has joined #RubyOnRails
[06:48:11] |PiP|: has joined #RubyOnRails
[06:51:15] dionysus69: has joined #RubyOnRails
[06:51:46] chouhoulis: has joined #RubyOnRails
[06:52:20] polyidus: has joined #RubyOnRails
[06:53:21] bePolite: has joined #RubyOnRails
[06:53:54] Devalo: has joined #RubyOnRails
[07:03:27] intrigueD: has joined #RubyOnRails
[07:03:42] intrigueD: has joined #RubyOnRails
[07:15:10] trosborn: has joined #RubyOnRails
[07:16:58] Pazician: has joined #RubyOnRails
[07:21:49] tildes: has joined #RubyOnRails
[07:27:09] fexilal: has joined #RubyOnRails
[07:30:49] oliver__: has joined #RubyOnRails
[07:31:57] hotpancakes: has joined #RubyOnRails
[07:32:36] _bogus_: has joined #RubyOnRails
[07:32:36] _bogus_: has joined #RubyOnRails
[07:34:08] juhoh: has joined #RubyOnRails
[07:36:58] axilaris: has joined #RubyOnRails
[07:39:45] srinidhi: has joined #RubyOnRails
[07:40:17] axilaris: hi, if i want to add a new route path method, how do i do that in my project ? say i want to add a method "export" to namespace admin->articles
[07:40:19] axilaris: https://github.com/axilaris/admin_user_devise_articles/blob/master/config/routes.rb
[07:40:25] axilaris: https://github.com/axilaris/admin_user_devise_articles/blob/master/app/controllers/admin/articles_controller.rb
[07:40:36] axilaris: thats my routes and articles_controller
[07:41:07] axilaris: i added "def export" in articles_controller but dont see it in rake routes | grep export
[07:42:19] t_p: has joined #RubyOnRails
[07:42:46] Pazician: has joined #RubyOnRails
[07:45:07] axilaris: collection do
[07:45:49] arup_r: has joined #RubyOnRails
[07:49:24] RegulationD: has joined #RubyOnRails
[07:52:30] chouhoulis: has joined #RubyOnRails
[07:56:12] DoctorMonocular: has joined #RubyOnRails
[07:56:23] zave: has joined #RubyOnRails
[07:59:35] scepticulous: has joined #RubyOnRails
[08:01:02] sol: has joined #RubyOnRails
[08:04:41] PedramT: has joined #RubyOnRails
[08:11:20] Oliphaunte: has joined #RubyOnRails
[08:13:07] htmldrum: has joined #RubyOnRails
[08:24:23] bronson: has joined #RubyOnRails
[08:28:10] n008f4g_: has joined #RubyOnRails
[08:31:41] joeytwiddle: has joined #RubyOnRails
[08:32:28] gingray: has joined #RubyOnRails
[08:34:17] onechr: has joined #RubyOnRails
[08:35:04] uglybandersnatch: has joined #RubyOnRails
[08:40:27] merida_: has joined #RubyOnRails
[08:40:27] merida: has joined #RubyOnRails
[08:42:06] arup_r: has joined #RubyOnRails
[08:44:01] Devalo: has joined #RubyOnRails
[08:47:25] |PiP|: has joined #RubyOnRails
[08:47:47] th0m_: has joined #RubyOnRails
[08:49:26] qejk: has joined #RubyOnRails
[08:51:16] patrick_star: has joined #RubyOnRails
[08:52:06] lessless: has joined #RubyOnRails
[08:53:19] chouhoulis: has joined #RubyOnRails
[08:55:28] lessless: Is it ok to ask here a question regarding cucumber?
[08:57:57] johnflux: has joined #RubyOnRails
[08:58:45] yardenbar: has joined #RubyOnRails
[09:03:57] Guest34101: has joined #RubyOnRails
[09:05:25] marr: has joined #RubyOnRails
[09:10:11] Guest9744: has left #RubyOnRails: ()
[09:13:32] hotpancakes: has joined #RubyOnRails
[09:18:45] PedramT: has joined #RubyOnRails
[09:19:10] chagel: has joined #RubyOnRails
[09:23:25] baweaver: has joined #RubyOnRails
[09:24:43] srinidhi: has joined #RubyOnRails
[09:28:02] dgncn: has joined #RubyOnRails
[09:28:47] sp1rs: has joined #RubyOnRails
[09:29:52] Cervajz: has joined #RubyOnRails
[09:32:04] Palsson: has joined #RubyOnRails
[09:36:42] djellemah_: has joined #RubyOnRails
[09:37:33] DoubleMalt: has joined #RubyOnRails
[09:38:46] n008f4g_: has joined #RubyOnRails
[09:40:46] merida_: has joined #RubyOnRails
[09:43:42] Pazician: has joined #RubyOnRails
[09:43:47] Devalo: has joined #RubyOnRails
[09:45:32] Cervajz_: has joined #RubyOnRails
[09:54:03] chouhoulis: has joined #RubyOnRails
[09:55:27] |PiP|: has joined #RubyOnRails
[09:57:26] smoitra: has joined #RubyOnRails
[10:00:46] fluxsource: has joined #RubyOnRails
[10:06:07] johnflux: has joined #RubyOnRails
[10:06:07] johnflux: has joined #RubyOnRails
[10:07:31] onechr: has joined #RubyOnRails
[10:12:10] SteenJobs: has joined #RubyOnRails
[10:13:22] nerium: has joined #RubyOnRails
[10:13:27] differentreality: has joined #RubyOnRails
[10:17:01] ayoros: has joined #RubyOnRails
[10:17:38] onechr: has joined #RubyOnRails
[10:18:26] tildes: has joined #RubyOnRails
[10:20:18] edwinvdgraaf: has joined #RubyOnRails
[10:20:41] mhoungbo: has joined #RubyOnRails
[10:21:03] edwinvdgraaf: has joined #RubyOnRails
[10:21:17] smoitra: has joined #RubyOnRails
[10:21:46] edwinvdgraaf: has joined #RubyOnRails
[10:24:40] sevenseacat: has joined #RubyOnRails
[10:25:37] bronson: has joined #RubyOnRails
[10:30:39] differentreality: has joined #RubyOnRails
[10:34:39] merida__: has joined #RubyOnRails
[10:34:40] merida___: has joined #RubyOnRails
[10:37:03] DmitryBochkarev: has joined #RubyOnRails
[10:41:13] Pazician: has joined #RubyOnRails
[10:41:38] yfeldblum: has joined #RubyOnRails
[10:43:34] differentreality: has joined #RubyOnRails
[10:46:59] arup_r: has joined #RubyOnRails
[10:50:23] onechr: has joined #RubyOnRails
[10:51:43] RegulationD: has joined #RubyOnRails
[10:52:56] djellemah_: has joined #RubyOnRails
[10:53:08] Cervajz: has joined #RubyOnRails
[10:57:37] srinidhi: has joined #RubyOnRails
[10:58:45] cd-rum: has joined #RubyOnRails
[11:01:19] Pazician: has joined #RubyOnRails
[11:02:25] darutoko: has joined #RubyOnRails
[11:04:08] hotpancakes: has joined #RubyOnRails
[11:05:59] muhammadn: has joined #RubyOnRails
[11:08:43] onechr: has joined #RubyOnRails
[11:14:25] krz: has joined #RubyOnRails
[11:14:51] n008f4g_: has joined #RubyOnRails
[11:16:17] Cervajz_: has joined #RubyOnRails
[11:17:28] onechr: has joined #RubyOnRails
[11:17:42] anjen: has joined #RubyOnRails
[11:23:36] Spami: has joined #RubyOnRails
[11:25:25] arup_r: has joined #RubyOnRails
[11:27:07] baweaver: has joined #RubyOnRails
[11:29:23] nerium: has joined #RubyOnRails
[11:30:20] GreatDanton: has joined #RubyOnRails
[11:30:27] MaxHoffman_: has joined #RubyOnRails
[11:30:28] hashtd: has joined #RubyOnRails
[11:32:21] moeabdol: has joined #RubyOnRails
[11:32:23] durexlw: has joined #RubyOnRails
[11:32:27] durexlw: afternoon all
[11:33:59] durexlw: Anyone know a gem that allows scaffold generation but with twitter-bootstrap css? I tried a few, but I never got one to work
[11:34:03] tildes: has joined #RubyOnRails
[11:34:52] soule: has joined #RubyOnRails
[11:35:12] bePolite: has joined #RubyOnRails
[11:40:59] krz: has joined #RubyOnRails
[11:41:33] bricker: has joined #RubyOnRails
[11:42:17] adaedra: has joined #RubyOnRails
[11:43:34] Ropeney: has joined #RubyOnRails
[11:46:09] sp1rs: has joined #RubyOnRails
[11:49:06] polyidus: has joined #RubyOnRails
[11:51:21] chagel: has joined #RubyOnRails
[11:52:49] srinidhi: has joined #RubyOnRails
[11:54:57] dionysus69: has joined #RubyOnRails
[11:55:37] chouhoulis: has joined #RubyOnRails
[11:55:43] roshanavand: has joined #RubyOnRails
[12:03:49] Cervajz: has joined #RubyOnRails
[12:04:39] axilaris: has joined #RubyOnRails
[12:05:41] axilaris: hi, if i had a route like this for post and get using the same name eg: get :import post :import
[12:05:50] axilaris: can i have a different method in controller ?
[12:06:06] axilaris: to handle get and post differently ?
[12:06:20] axilaris: of is there a way in the method to recognize if its a get or post ?
[12:09:01] hashtd: has joined #RubyOnRails
[12:09:09] durexlw: axilaris: you define in your routes.br where a certain request goes to: you can use the verbs in there
[12:09:39] axilaris: durexlw: thanks, can you explain a bit ? i dont quite understand
[12:10:06] axilaris: currently both the get&post request goes to "def import" in the controller
[12:10:25] durexlw: axilaris: what's teh controller name?
[12:10:27] arup_r: get :import => "Posts#show"; post :import => "Posts#create" axilaris
[12:10:38] durexlw: what arup says :)
[12:11:28] axilaris: oh... the controller name is ArticlesController
[12:11:50] axilaris: let me try just that arup_r
[12:16:22] axilaris: arup_r: i did just that https://gist.github.com/anonymous/8679c90643137e14da0e
[12:16:37] axilaris: but it failed uninitialized constant Articles
[12:17:13] durexlw: axilaris: you need quotes
[12:17:51] durexlw: "Articles#import1", and I wouldn't use caps, so "articles#import1"... and I wouldn't do "import1" but use something descriptive... this name is just a bad code smell if you ask me
[12:17:52] arup_r: axilaris: ^
[12:19:18] axilaris: thanks guys.. will try that... yeah just test coding anyways
[12:22:15] intrigueD: has joined #RubyOnRails
[12:22:15] intrigueD: has joined #RubyOnRails
[12:23:47] briam: has joined #RubyOnRails
[12:25:50] _Tariq: has joined #RubyOnRails
[12:26:59] AzaToth: has joined #RubyOnRails
[12:27:33] bronson: has joined #RubyOnRails
[12:27:43] _bogus_: hi, I have this line of code for setting up classes for some rows depending on the value of record.tipo ... its working fine, but i would like how to define more classes for more tipo values: index(:row_class => -> record { 'classe' if record.tipo == "legenda" } ) do .. can I have a help please?
[12:28:21] adaedra: has joined #RubyOnRails
[12:28:23] _bogus_: like, 'classe1' for tipo == 'tipo1', 'classe2' for 'tipo2', and so on
[12:28:50] smoitra: has joined #RubyOnRails
[12:30:44] durexlw: _bogus_: I don't understand the question
[12:33:30] _bogus_: sorry I'll try to be clearer , im using activeadmin and I want to stylize the show table, but Im not very sure about how those "->" lines works... but I found this one on stackoverflow and its working, but what I would like to do is something like this: ['class1', 'class2', 'class3'] if record.tipo == ['tipo1', 'tipo2', 'tipo3']... not sure if you get the idea.. this tipo is a enum field in the model so its also an integer, maybe it can b
[12:34:59] _bogus_: i think i should use %w{ } and somehow check the tipo integer value... but those single-line statements really confuses me.
[12:37:02] ltd: has joined #RubyOnRails
[12:37:26] meoblast001: has joined #RubyOnRails
[12:37:34] Silox|: has joined #RubyOnRails
[12:37:38] tvw: has joined #RubyOnRails
[12:38:03] Silox|: Hello there! Is it possible, using a form_for to set an html attribute to a value for all contained fields (even if they're hidden)?
[12:40:19] hashtd: has joined #RubyOnRails
[12:42:16] Oliphaunte: has joined #RubyOnRails
[12:42:46] |PiP|: has joined #RubyOnRails
[12:43:58] bricker: has joined #RubyOnRails
[12:44:45] arup_r: Silox|: you may write your own custom formbuilder.. and then it is possible..
[12:45:32] arup_r: form_for accepts an option builder: YourCustomeFormBuilder .. then inside the custom form builder you can do, what you are saying
[12:48:26] bePolite: has joined #RubyOnRails
[12:48:38] bePolite: has joined #RubyOnRails
[12:53:20] johnflux: has joined #RubyOnRails
[12:54:40] nennes: has joined #RubyOnRails
[12:56:15] chouhoulis: has joined #RubyOnRails
[12:58:06] Pazician: has joined #RubyOnRails
[12:58:36] stannard: has joined #RubyOnRails
[13:00:52] nerium: has joined #RubyOnRails
[13:00:57] Silox|: Can that approach be used to add attributes to <input type="hidden" name="_method" value="patch">?
[13:01:36] stannard_: has joined #RubyOnRails
[13:02:06] Devalo: has joined #RubyOnRails
[13:03:56] hotpancakes: has joined #RubyOnRails
[13:09:07] tkiel: has joined #RubyOnRails
[13:09:12] bitkiller: has joined #RubyOnRails
[13:13:28] nerium: has joined #RubyOnRails
[13:15:51] Silox|: Seems like that would require a lot of monkeypatching >< https://github.com/rails/rails/blob/1f5709086f1b248f1387173c9e1faa2475ecf302/actionview/lib/action_view/helpers/url_helper.rb#L596
[13:16:07] theod: has joined #RubyOnRails
[13:18:16] drale2k: Silox|: maybe manipulate it client side with JS ?
[13:18:33] drale2k: not the nicest way but better than monkey patching url_helper
[13:19:01] Silox|: drale2k: That would work but I was hoping for a cleaner solution :P
[13:19:06] Silox|: The full picture is this:
[13:19:21] Silox|: I had forms in tables (around the tr's) with some javascript hacks
[13:19:55] Silox|: Because forms around tr's isn't html valid, the inputs wouldn't be wrapped by the form tags, so problems all along
[13:20:06] Silox|: HTML5 added a new form= attribute to an <input> and <button> tag
[13:20:40] Silox|: so I was hoping to add form=f.options[:html][:id] to all inputs in the form, so I wouldn't have to use the ugly javascript anymore
[13:21:38] _Tariq: has joined #RubyOnRails
[13:21:39] Silox|: But that doesn't work for the hidden fields which are added automaticly... I'll follow your advice and use the newer javascript hack now, thanks :)
[13:22:49] drale2k: that was more loud thinking than advice but if it works sure ;D
[13:25:13] Noach_: has joined #RubyOnRails
[13:28:30] baweaver: has joined #RubyOnRails
[13:31:26] Silox|: drale2k: It's cleaner than my old hack anyway :D
[13:32:02] Silox|: http://pastie.org/10767332
[13:32:28] Silox|: I had to manually check the name of the button to figure out to use a post or a put
[13:33:00] walidvb: has joined #RubyOnRails
[13:33:02] walidvb: hi all! i'm trying to work out how to use taxonomies in rails, but having a hard time with ActsAsTaggableOn(which seems to be the go to gem for this)
[13:33:08] walidvb: i once upon a time come from drupal, where taxonomy is handled very differently(it seems to me)
[13:33:14] walidvb: mainly, the following: i have a User and a Book class
[13:33:47] walidvb: Book has acts_as_taggable_on :genre, and User has it on :favourite_genres
[13:34:27] walidvb: problem is, if they both use the same tag name('Science-Fiction'), the User.genre_counts reflects the addition of both science-fiction books _and_ users..
[13:34:58] walidvb: specifically, i'm trying to work out how to separate contexts and taggable_types, i think
[13:36:25] Oliphaunte: has joined #RubyOnRails
[13:36:55] tonyynot: has joined #RubyOnRails
[13:38:05] beauby: has joined #RubyOnRails
[13:39:49] hotpancakes: has joined #RubyOnRails
[13:49:40] walidvb: (and i'm starting to think the gem might not be appropriate for my usecase..)
[13:50:46] johnflux: has joined #RubyOnRails
[13:51:35] Tempesta: has joined #RubyOnRails
[13:53:44] quazimodo: has joined #RubyOnRails
[13:54:43] bricker: has joined #RubyOnRails
[13:56:59] chouhoulis: has joined #RubyOnRails
[14:02:30] delgiudices: has joined #RubyOnRails
[14:02:40] pvertenten: has joined #RubyOnRails
[14:03:57] walidvb: hm. no one here today :/
[14:04:41] delgiudices: I'm trying to use simple_form with bootstrap and i have the following view https://gist.github.com/delgiudices/d579dd8066b81b485926 but it's not adding the bootstrap classes
[14:04:43] delgiudices: Any ideas why?
[14:05:23] sp1rs1: has joined #RubyOnRails
[14:11:46] snowy: has joined #RubyOnRails
[14:13:00] hotpancakes: has joined #RubyOnRails
[14:15:50] walidvb: delgiudices: it doesn't look like you added the classes?
[14:15:59] walidvb: are you using some simple_form_bootstrap gem?
[14:16:14] delgiudices: i'm using simple_form gem
[14:16:33] srinidhi: has joined #RubyOnRails
[14:16:53] delgiudices: Isn't it supposed to add the bootstrap classes?
[14:17:05] walidvb: i may be missing something, but why would it add the bootstrap classes?
[14:17:16] delgiudices: Because that's what it does
[14:17:29] walidvb: did you run rails generate simple_form:install --bootstrap ?
[14:17:36] delgiudices: I think i found the problem
[14:17:51] delgiudices: No route matches /assets/bootstrap.min.css.map
[14:18:10] edwinvdg_: has joined #RubyOnRails
[14:18:14] delgiudices: But i have /assets/css/bootstrap.min.css
[14:18:14] walidvb: does it add the classes or not?
[14:18:26] walidvb: you can ignore the .map
[14:18:40] delgiudices: But i'm getting an error in the rails console
[14:18:47] walidvb: you do have the config/initializers/simple_form_bootstrap
[14:18:56] walidvb: did you restart your app?
[14:19:16] delgiudices: I have the bootstrap initializer and i restarted my app several times
[14:20:13] delgiudices: Do you think it might be the way i'm importing bootstrap?
[14:20:29] walidvb: if you run rails console, and double check that SimpleForm configuration is indeed configured to use bootstrap
[14:20:30] delgiudices: *= require bootstrap.min
[14:20:39] delgiudices: How can i check that
[14:20:51] intrigueD: has joined #RubyOnRails
[14:20:53] walidvb: no, if the classes aren't added then the problem is higher up
[14:22:15] walidvb: by running smth like SimpleForm.configuration
[14:22:40] delgiudices: configuration is not a method
[14:22:47] SteenJobs: has joined #RubyOnRails
[14:24:40] walidvb: ok, if you remove the 'do' block
[14:25:03] walidvb: so, simply use simple_form_for([:@business, @review])
[14:25:10] clayreed: has joined #RubyOnRails
[14:25:16] dcunit3d: has joined #RubyOnRails
[14:26:00] clayreed: What exactly does the multiline: true do in validates format:?
[14:26:24] walidvb: after a second look, it looks like you're not letting simple_form_for generate the form itself, but you're writing it yourself. So it makes sense that you need to manually add the classes
[14:27:00] durexlw: laterz all
[14:28:15] walidvb: delgiudices: ^
[14:28:29] delgiudices: walidvb what do you mean i'm not letting simple form generate the form
[14:29:01] walidvb: i'm not 100% sure because i don't use simple_form
[14:29:24] walidvb: but if you call simple_form_for(resource); it will build the form for you
[14:29:48] walidvb: if you call simple_form_for(resource) {|form|}, you need to build the form yourself
[14:29:59] walidvb: (which is what you are doing)
[14:30:32] delgiudices: But in the examples
[14:30:40] Oliphaunte: has joined #RubyOnRails
[14:30:41] delgiudices: They call simple_form_for(resource) { |form| }
[14:31:08] delgiudices: https://github.com/rafaelfranca/simple_form-bootstrap
[14:31:22] delgiudices: https://github.com/rafaelfranca/simple_form-bootstrap/blob/master/app/views/examples/_basic_example_sf.html.erb
[14:32:56] walidvb: and if you use f.input instead of f.text_area?
[14:33:19] walidvb: delgiudices: no i very much doubt it. the classes are independant of bootstrap's css
[14:33:26] delgiudices: It's working now
[14:33:37] delgiudices: So much time and that was the thing
[14:33:40] delgiudices: THanks walidvb
[14:43:18] |PiP|: has joined #RubyOnRails
[14:45:23] _djbkd: has joined #RubyOnRails
[14:48:35] Pazician: has joined #RubyOnRails
[14:54:27] RegulationD: has joined #RubyOnRails
[14:56:56] bricker: has joined #RubyOnRails
[14:57:30] herpless: has joined #RubyOnRails
[14:57:44] chouhoulis: has joined #RubyOnRails
[15:01:22] fernandomm: has joined #RubyOnRails
[15:02:02] merida: has joined #RubyOnRails
[15:02:07] merida_: has joined #RubyOnRails
[15:05:18] hotpancakes: has joined #RubyOnRails
[15:05:38] snowy: has joined #RubyOnRails
[15:09:23] syndikate: has joined #RubyOnRails
[15:09:56] scope: has joined #RubyOnRails
[15:12:02] zzach: has joined #RubyOnRails
[15:14:04] Oliphaunte: has joined #RubyOnRails
[15:14:32] dandaman: has joined #RubyOnRails
[15:15:47] Malgorath: has joined #RubyOnRails
[15:15:58] Malgorath: Anyone here use openproject?
[15:19:59] smoitra: has joined #RubyOnRails
[15:20:32] adavia: has joined #RubyOnRails
[15:21:17] Oliphaunte: has joined #RubyOnRails
[15:21:34] scope: if im using the brand navbar would i use the aplication.css.scss to move the brand to the left and up using margin left and margin top ???
[15:22:11] renanoronfle: has joined #RubyOnRails
[15:22:29] scope: or would i enter it into the _navbar with class navabr brand attribute
[15:24:11] hotpancakes: has joined #RubyOnRails
[15:26:39] bePolite: has joined #RubyOnRails
[15:29:18] baweaver: has joined #RubyOnRails
[15:33:44] awasum: has joined #RubyOnRails
[15:34:06] delgiudices: So the only way to do a contains is by .where("field like ?", "%keyword%") ?
[15:34:13] delgiudices: Isn't there a way that i don't have to write part of the query?
[15:34:37] Technodrome: has joined #RubyOnRails
[15:36:08] stannard: has joined #RubyOnRails
[15:38:56] georgedrummond: has joined #RubyOnRails
[15:40:23] smathy: has joined #RubyOnRails
[15:42:54] Technodrome: has joined #RubyOnRails
[15:45:31] dstrunk: has joined #RubyOnRails
[15:47:02] merida: has joined #RubyOnRails
[15:47:03] merida_: has joined #RubyOnRails
[15:47:20] hotpancakes: has joined #RubyOnRails
[15:47:23] kgutteridge: has joined #RubyOnRails
[15:47:40] baweaver: has joined #RubyOnRails
[15:51:12] dstrunk: has joined #RubyOnRails
[15:52:08] dstrunk: has joined #RubyOnRails
[15:52:46] Technodrome: Good day, Happy Sunday
[15:55:35] RegulationD: has joined #RubyOnRails
[15:58:43] chouhoulis: has joined #RubyOnRails
[15:59:09] scope: how to make a link open in a new tab and not the same one
[16:00:24] scope: thanks i realised just after haha
[16:00:29] scope: target blank
[16:04:18] arup_r: has joined #RubyOnRails
[16:07:55] dandaman: has joined #RubyOnRails
[16:07:56] silentpost: has joined #RubyOnRails
[16:07:58] Oliphaunte: has joined #RubyOnRails
[16:08:42] Malgorath: Anyone here use openproject? Or make plugins for it?
[16:08:49] tildes: has joined #RubyOnRails
[16:11:40] scope: nope sorry
[16:11:49] scope: but do you have a specific question
[16:11:58] scope: might know a place you can look
[16:14:51] dandaman: has joined #RubyOnRails
[16:19:14] workmad3: has joined #RubyOnRails
[16:19:56] Pazician: has joined #RubyOnRails
[16:20:32] Malgorath: looking for a guide NOT on their site as that is pretty much worthless.
[16:23:30] jaequery: has joined #RubyOnRails
[16:25:54] d0nn1e: has joined #RubyOnRails
[16:29:12] fedexo: has joined #RubyOnRails
[16:29:39] _Tariq: has joined #RubyOnRails
[16:30:26] _Tariq: has joined #RubyOnRails
[16:30:36] scope: guys when i use *= require jquery.ui.all i get an error saying it cant locate the jquery.ui.all files but i dont have any i just want to use the jquery and css files that come with it
[16:30:39] Malgorath: yeah doesn't seem many people use or like it, seems most ratings are 5.5/10 on it(mostly around the plugins)
[16:30:45] scope: should i use @import instead
[16:30:50] scope: try youtube
[16:30:55] scope: i saw lots of videos on there
[16:31:05] sp1rs: has joined #RubyOnRails
[16:33:34] Malgorath: Think I might install a different linux today also, ubuntu is loosing its... shine to me
[16:33:56] sp1rs: has joined #RubyOnRails
[16:34:54] smathy: scope, *= if it's a .css file, @import if it's a .scss file.
[16:35:11] scope: i have it set for .scss
[16:35:33] scope: but both the application.js and the aplication.css.scss dont seam to find it
[16:35:53] scope: im using the gem 'jquery-ui-rails'
[16:36:25] scope: and im using rails 4.2.6
[16:36:41] sp1rs: has joined #RubyOnRails
[16:36:46] smathy: scope, also, I've never seen that .all suffix, why do you have that there?
[16:38:20] _Tariq: has joined #RubyOnRails
[16:38:45] uglybandersnatch: has joined #RubyOnRails
[16:38:56] scope: one of the documentations i was looking at told me if i needed all of the themes css javascript etc to add that
[16:39:12] scope: http://stackoverflow.com/questions/17830313/couldnt-find-file-jquery-ui
[16:39:21] scope: im guessing that answer to the question was wrong then
[16:39:45] Hates_: scope: https://github.com/joliss/jquery-ui-rails/issues/89#issuecomment-82953377
[16:40:15] Hates_: scope: or the comment below it
[16:40:19] sp1rs: has joined #RubyOnRails
[16:40:23] scope: ah ok thanks
[16:41:19] scope: the link i posted then was the guy completely off or just an older version ???
[16:41:27] smathy: scope, oh, you're using < v5?
[16:42:03] smathy: scope, is there a reason you're not on 5.x?
[16:42:14] scope: im still struggling to learn 4
[16:42:22] scope: ive spent so much time trying to get my head around it
[16:42:28] scope: id like to finish learning
[16:42:34] scope: then i'll upgrade
[16:42:54] scope: im already getting so confused with different documentation etc
[16:43:13] smathy: Yeah, that'll continue while you're on an older version :)
[16:43:28] smathy: Anyway, ok, so it's probably just that css vs scss thing.
[16:43:30] georgedrummond: has joined #RubyOnRails
[16:44:14] scope: ah ok then with the application.js
[16:44:17] scope: would i add
[16:44:40] scope: /= require "jquery-ui/core";
[16:44:51] Hates_: scope: I thought you're using scss?
[16:45:05] scope: i need javascript and scss
[16:45:29] Hates_: scope: ah sorry, thought you were writing about the css still
[16:45:45] scope: no yours removed the error for the .scss file
[16:45:52] scope: now i get the error for the javascript filed
[16:45:57] Hates_: scope: ok, so in your JS you need the normal //= require jquery-ui
[16:46:14] scope: ok and that will ask for all the core theme and datepicker ??
[16:46:41] Hates_: scope: that will include everything :)
[16:46:46] scope: brilliant
[16:46:54] scope: sorry im a pain hahaha
[16:47:03] Hates_: scope: no worries, we're all here to help :)
[16:48:19] crankharder: is there some gem that provides a quick interface between any AR object and active job? thinking something like... my_ar_obj.later.some_method -- which just dups that ar_object and themethod name on a queue to be backgrounded
[16:48:20] scope: although <li><a href="#"><i class="t-1"> </i></a></li> the class t-1
[16:48:40] scope: does show the twitter image icon
[16:48:45] scope: same as f-1
[16:50:08] smathy: scope, did you decide to go to 5 afterall? I'm just trying to make sense of Hates_'s comments.
[16:50:22] scope: i stuck with 4.2.6
[16:50:27] smathy: scope, ok, then you need the .all
[16:50:27] scope: but nothing has changed
[16:50:41] scope: 1 sec as i think i still get the error
[16:50:41] smathy: scope, just change the *= to @import in your scss, as I said at the start.
[16:51:15] scope: @import "jquery-ui.all"
[16:51:27] scope: or @import "jquery.ui.all"
[16:52:03] Hates_: crankharder: delayed_job let you do that, but I don't think that style is available in activejob
[16:52:13] smathy: scope, both dots: https://github.com/joliss/jquery-ui-rails/tree/v4.2.1
[16:53:02] smathy: scope, wait, above you're talking about 4.2.6 - you're talking about the version of RAILS right?
[16:53:19] scope: rails yes
[16:53:19] smathy: scope, I was asking about the version of jquery-ui-rails that you were using, whether *that* was 5
[16:53:24] scope: rails v 4.2.6
[16:53:36] scope: let me check
[16:53:45] scope: see why my head is so mashed up
[16:53:47] smathy: You were probably right all along Hates_ :)
[16:53:48] scope: i refuse to give up
[16:53:57] scope: i will master this crap
[16:54:34] smathy: scope, see when I asked you where you got that `.all` suffix from you mentioned the Stack Overflow answer: http://stackoverflow.com/a/17830789/152786
[16:54:38] baweaver: has joined #RubyOnRails
[16:54:38] scope: jquery-ui-rails
[16:54:47] scope: jquery-ui-rails version 5.0.5
[16:54:52] smathy: scope, that is talking about the syntax for the jquery-ui-rails version < 5
[16:55:05] scope: ah i thought they were talking about rails
[16:55:14] scope: thats where im going wrong im miss understanding
[16:55:48] smathy: scope, right, so that's the latest version of jquery-ui-rails, so just follow the advice here: https://github.com/joliss/jquery-ui-rails#require-everything Except you'll use @import because you're using scss not css/Sprockets.
[16:56:11] gingray: has joined #RubyOnRails
[16:56:15] smathy: scope, @import in your .scss file, the .js syntax is as shown.
[16:57:12] scope: there we go no errors
[16:57:23] scope: although no design either
[16:57:29] mikecmpbll: has joined #RubyOnRails
[16:57:31] scope: and the twitter facebook icons dont show
[16:58:08] smathy: scope, and viewing the source you can see the jquery-ui css and js?
[16:59:06] onechr: has joined #RubyOnRails
[16:59:07] scope: erm how many should there be
[16:59:23] chouhoulis: has joined #RubyOnRails
[16:59:51] scope: i have over 20
[16:59:58] scope: but no css
[17:00:08] mrgreenfur: has joined #RubyOnRails
[17:00:16] smathy: The CSS will be inside the application.css
[17:00:18] matthias_: has joined #RubyOnRails
[17:00:22] bronson: has joined #RubyOnRails
[17:00:23] scope: ah thats the 1 css
[17:00:28] scope: application.self
[17:00:28] smathy: ...because you're using scss instead of Sprockets.
[17:00:38] nettoweb: has joined #RubyOnRails
[17:00:40] lxsameer: has joined #RubyOnRails
[17:00:49] sameerynho: has joined #RubyOnRails
[17:01:52] scope: although still no facebook or twitter icons
[17:03:13] Oliphaunte: has joined #RubyOnRails
[17:04:19] smathy: scope, show me the docs for whatever icons you're trying to produce?
[17:05:33] scope: https://gist.github.com/scope2229/ba482fc777b2f7eec5dd
[17:05:39] scope: thats the footer
[17:06:13] Hates_: What are you expecting? That t-1 shows the twitter logo?
[17:06:38] Hates_: I don't think jquery-ui provides styling for social icons?
[17:06:58] scope: hhhm so would it be better if i used a img tag
[17:07:28] smathy: scope, no, I was asking for the docs, like on the jquery-ui site, why do you think your <i class="t-1"> will be the twitter icon?
[17:07:45] scope: because thats what it should be
[17:08:08] smathy: scope, why do you think that?
[17:08:08] scope: class f-1 is facebook
[17:08:10] thebastl: has joined #RubyOnRails
[17:08:14] scope: because i told it too
[17:08:19] smathy: scope, where?
[17:08:27] scope: style.css
[17:08:34] smathy: scope, show us.
[17:08:53] intrigueD: has joined #RubyOnRails
[17:09:02] smathy: scope, and show us how you're including that CSS file in your page.
[17:09:35] scope: https://gist.github.com/scope2229/642bfa7196da67fccee8
[17:09:46] scope: yes its inside . aplication.css.scss
[17:09:57] srinidhi: has joined #RubyOnRails
[17:11:01] smathy: scope, with a @import ?
[17:11:11] smathy: scope, ok, so read this http://guides.rubyonrails.org/asset_pipeline.html#coding-links-to-assets - you're doing your path wrong.
[17:11:30] scope: under neath all my @import
[17:11:53] smathy: scope, with a *= require ?
[17:12:12] smathy: scope, ok.
[17:12:41] scope: https://gist.github.com/scope2229/4669e7b5faa439c0a1ad
[17:12:42] _Tariq: has joined #RubyOnRails
[17:13:27] smathy: Ok, so just inline.
[17:13:40] smathy: So yeah, read that guide above, you need to use a helper for assets.
[17:14:25] scope: man i hate asset pipeline hahahaha
[17:15:43] scope: i miss spelt turbolinks
[17:15:48] jaequery: has joined #RubyOnRails
[17:15:49] scope: turoblinks
[17:16:07] _Tariq: has joined #RubyOnRails
[17:16:16] scope: there we go
[17:16:45] scope: thats cool then with turbolinks it auto updates files inside the assets folder
[17:17:28] smathy: Not sure what you mean there, but you're all good now?
[17:17:29] apotry: has joined #RubyOnRails
[17:19:37] scope: yer its all gravey thanks
[17:21:04] tycoon177: has joined #RubyOnRails
[17:22:10] hnanon: has joined #RubyOnRails
[17:25:48] austingp: has joined #RubyOnRails
[17:26:08] kgutteridge: has joined #RubyOnRails
[17:26:48] hnanon: I have a Book A. I want to submit a comma-separated list of related books as an attribute of Book A. That list is static (it includes, say, 10 books, including Book A. I want to save the list, excluding the Book A.
[17:27:20] hnanon: Book B would have the same static list. Book B needs to be excluded from list upon save. And so on.
[17:28:16] netzfisch: has joined #RubyOnRails
[17:28:31] arup_r: has joined #RubyOnRails
[17:29:37] chouhoulis: has joined #RubyOnRails
[17:32:07] gingray_: has joined #RubyOnRails
[17:32:18] chouhoul_: has joined #RubyOnRails
[17:33:05] unreal: has joined #RubyOnRails
[17:33:20] moeabdol: has joined #RubyOnRails
[17:34:41] hnanon: I have so far:
[17:35:18] hnanon: book = "A"
[17:35:36] hnanon: related = "B, A, C, D"
[17:35:52] hnanon: related.split(", ")
[17:36:12] hnanon: ["B", "A", "C," "D"]
[17:36:43] hnanon: related - [book] gives me an error about the minus sign.
[17:37:07] hnanon: That last line is from here: http://stackoverflow.com/questions/10034678/ruby-how-can-i-delete-one-element-from-an-array-by-value
[17:38:39] gbgdev: has joined #RubyOnRails
[17:42:00] chouhoulis: has joined #RubyOnRails
[17:42:58] jaequery: has joined #RubyOnRails
[17:43:35] hnanon: I figured it out. I had to do related = related.split(", ")
[17:43:38] uglybandersnatch: has joined #RubyOnRails
[17:47:20] gingray: has joined #RubyOnRails
[17:47:54] johnflux: has joined #RubyOnRails
[17:47:54] johnflux: has joined #RubyOnRails
[17:51:05] sp1rs: has joined #RubyOnRails
[17:55:45] sp1rs: has joined #RubyOnRails
[17:56:02] scepticulous: has joined #RubyOnRails
[17:57:04] RegulationD: has joined #RubyOnRails
[17:57:46] Oliphaunte: has joined #RubyOnRails
[17:59:45] Guest34101: has joined #RubyOnRails
[18:01:36] georgedrummond: has joined #RubyOnRails
[18:02:28] scope: has joined #RubyOnRails
[18:07:24] clayreed: has joined #RubyOnRails
[18:09:39] renanoronfle: has joined #RubyOnRails
[18:11:27] jsrn: has joined #RubyOnRails
[18:14:46] scepticulous: has joined #RubyOnRails
[18:14:55] seaworthy: has joined #RubyOnRails
[18:15:22] jaequery: has joined #RubyOnRails
[18:16:15] _Tariq: has joined #RubyOnRails
[18:18:43] mtneug: has joined #RubyOnRails
[18:18:57] crystal77: has joined #RubyOnRails
[18:20:53] intrigueD: has joined #RubyOnRails
[18:20:53] intrigueD: has joined #RubyOnRails
[18:21:12] tildes: has joined #RubyOnRails
[18:22:54] jgt: has joined #RubyOnRails
[18:27:24] |PiP|: has joined #RubyOnRails
[18:28:07] _Tariq: has joined #RubyOnRails
[18:28:36] edwinvdgraaf: has joined #RubyOnRails
[18:28:47] Oliphaunte: has joined #RubyOnRails
[18:29:59] edwinvdgraaf: has joined #RubyOnRails
[18:30:53] DoctorMonocular: has joined #RubyOnRails
[18:32:46] Arazon: has joined #RubyOnRails
[18:33:12] IanMalcolm: has joined #RubyOnRails
[18:33:55] Miron: has joined #RubyOnRails
[18:33:59] bronson: has joined #RubyOnRails
[18:34:02] dionysus69: has joined #RubyOnRails
[18:34:14] IanMalcolm: has joined #RubyOnRails
[18:34:43] IanMalcolm: has joined #RubyOnRails
[18:35:33] IanMalcolm: has joined #RubyOnRails
[18:36:32] ruurd: has joined #RubyOnRails
[18:40:05] gbgdev_: has joined #RubyOnRails
[18:40:18] jaequery: has joined #RubyOnRails
[18:40:59] Arazon: Hey I was wondering if someone could answer a question I have regarding initializing variables for a view within a controller method
[18:44:53] _Tariq: has joined #RubyOnRails
[18:47:47] hotpancakes: has joined #RubyOnRails
[18:49:35] xlegoman: has joined #RubyOnRails
[18:50:13] gabr13l: has joined #RubyOnRails
[18:50:37] _Tariq: has joined #RubyOnRails
[18:51:43] hotpanca_: has joined #RubyOnRails
[18:52:00] arup_r: Arazon: ask please
[18:53:04] Arazon: Thank you! I'm actually in the middle of writing it up and posting to Stack Overflow, including code, can I post a link when I've completed it?
[18:53:14] gabr13l: has anyone worked w/ devise confirmable, heroku and send grid? i properly had sendgrid sending an email when a new user created an account w/ devise. Then I added confirmable. I set config/initializers/devise.rb, set config.mailer to "MyMailer" per these docs (https://github.com/plataformatec/devise/wiki/How-To:-Use-custom-mailer). Now when I create an account I get a flash w/ this message “A message with a confirmation link has been sent to your emai
[18:53:14] gabr13l: address. Please follow the link to activate your account.” but the email never arrives. Has anyone experienced anything like this?
[18:53:30] nerium: has joined #RubyOnRails
[18:54:18] Oliphaunte: has joined #RubyOnRails
[18:55:46] baweaver: has joined #RubyOnRails
[18:57:26] Oliphaunte: has joined #RubyOnRails
[19:05:35] xlegoman: has joined #RubyOnRails
[19:08:10] gabr13l: FWIW I figured it out.
[19:08:23] Disavowed: has joined #RubyOnRails
[19:08:39] gabr13l: I hadn’t set `config.action_mailer.default_url_options` in my environment file.
[19:11:13] Oliphaunte: has joined #RubyOnRails
[19:12:14] DoctorMonocular: has joined #RubyOnRails
[19:15:29] renegadeandy: has joined #RubyOnRails
[19:17:27] delgiudices: has joined #RubyOnRails
[19:19:17] Arazon: Ok guys here's my question: http://stackoverflow.com/questions/36118321/how-to-initialize-view-variables-for-a-specific-view-configuration-in-rails-cont
[19:19:31] fedexo: has joined #RubyOnRails
[19:19:57] _Tariq: has joined #RubyOnRails
[19:19:57] Arazon: I may be approaching the problem wrong, or have not Googled hard enough, so if someone could point me in the right direction I would be grateful.
[19:20:46] Miron: has joined #RubyOnRails
[19:27:05] Spami: has joined #RubyOnRails
[19:27:21] n008f4g_: has joined #RubyOnRails
[19:28:14] chouhoul_: has joined #RubyOnRails
[19:34:26] sp1rs: has joined #RubyOnRails
[19:37:00] hugsGunn: has joined #RubyOnRails
[19:37:01] rrrepsaj: has joined #RubyOnRails
[19:37:11] P4Titan: has joined #RubyOnRails
[19:37:18] Hutchins: has joined #RubyOnRails
[19:37:19] sypheren: has joined #RubyOnRails
[19:37:27] Hutchins: has left #RubyOnRails: ()
[19:37:47] P4Titan: Hello all. I have a .rvm-gemset in my main project directory, yet rvm doesn't seem to pick up on this and switch gemsets accordingly
[19:37:56] P4Titan: does anyone have ideas as to why?
[19:43:37] xlegoman: has joined #RubyOnRails
[19:43:42] Oliphaunte: has joined #RubyOnRails
[19:43:43] [dmp]: has joined #RubyOnRails
[19:45:02] arup_r: P4Titan: what is the content there in the .rvm-gemset?
[19:45:21] P4Titan: the name of the gemset I wish to set
[19:45:57] dcunit3d: has joined #RubyOnRails
[19:46:26] _Tariq: has joined #RubyOnRails
[19:47:10] mdw: has joined #RubyOnRails
[19:48:31] GreatDanton: has joined #RubyOnRails
[19:48:38] GreatDanton: has joined #RubyOnRails
[19:49:01] cd-rum: has joined #RubyOnRails
[19:51:42] dandaman: has joined #RubyOnRails
[19:52:49] diegoviola: has joined #RubyOnRails
[19:56:05] netzfisch: has joined #RubyOnRails
[19:58:17] RegulationD: has joined #RubyOnRails
[20:01:11] _Tariq: has joined #RubyOnRails
[20:02:32] georgedrummond: has joined #RubyOnRails
[20:02:43] solars: has joined #RubyOnRails
[20:03:02] bricker: has joined #RubyOnRails
[20:03:57] P4Titan: any input?
[20:04:33] pawnbox: has joined #RubyOnRails
[20:04:53] kirillzh: has joined #RubyOnRails
[20:05:41] kirillzh: What is the best way to cache data by request parameters and current user?
[20:09:03] kirillzh: Rails.cache.fetch([@user, params.to_h.to_query, 'products']) { @user.products }
[20:09:25] futilegames: has joined #RubyOnRails
[20:09:53] DoubleMalt: has joined #RubyOnRails
[20:16:32] francesc: has joined #RubyOnRails
[20:16:44] diego1: has joined #RubyOnRails
[20:17:14] rdeshpande: has joined #RubyOnRails
[20:21:52] _Tariq: has joined #RubyOnRails
[20:26:59] Disavowed: has joined #RubyOnRails
[20:29:17] chouhoulis: has joined #RubyOnRails
[20:30:57] i8igmac: has joined #RubyOnRails
[20:34:13] superlou: has joined #RubyOnRails
[20:34:37] bronson: has joined #RubyOnRails
[20:35:52] diego1: has joined #RubyOnRails
[20:40:29] flashpoint9: has joined #RubyOnRails
[20:41:25] _Tariq_: has joined #RubyOnRails
[20:42:38] SteenJobs: has joined #RubyOnRails
[20:45:11] mdw7: has joined #RubyOnRails
[20:45:56] |PiP|: has joined #RubyOnRails
[20:47:00] mdw: has joined #RubyOnRails
[20:48:05] mdw7_: has joined #RubyOnRails
[20:49:09] moeabdol: has joined #RubyOnRails
[20:49:42] yfeldblum: has joined #RubyOnRails
[20:49:54] FooMunki: has joined #RubyOnRails
[20:50:52] diego1: has joined #RubyOnRails
[20:52:23] moeabdol1: has joined #RubyOnRails
[20:53:19] Spami: has joined #RubyOnRails
[20:54:50] rikkipitt: has joined #RubyOnRails
[20:55:31] rikkipitt: hey people, could someone point me in a good direction for limiting AR models by subscription plan?
[20:55:36] diego2: has joined #RubyOnRails
[20:56:30] baweaver: has joined #RubyOnRails
[20:58:21] sypheren: has joined #RubyOnRails
[20:58:27] clouder`grr: has joined #RubyOnRails
[20:59:37] diego3: has joined #RubyOnRails
[20:59:56] sneakerhax: has joined #RubyOnRails
[21:02:26] kgutteridge: has joined #RubyOnRails
[21:03:04] tjohnson: has joined #RubyOnRails
[21:05:42] mrbubbles: has joined #RubyOnRails
[21:08:08] diego3: has joined #RubyOnRails
[21:11:47] _Tariq: has joined #RubyOnRails
[21:16:34] Spami: has joined #RubyOnRails
[21:17:40] dcunit3d: has joined #RubyOnRails
[21:21:51] cd-rum: has joined #RubyOnRails
[21:26:23] roshanavand: has joined #RubyOnRails
[21:27:24] _Tariq: has joined #RubyOnRails
[21:27:53] georgedrummond: has joined #RubyOnRails
[21:30:15] chouhoulis: has joined #RubyOnRails
[21:31:11] Oliphaunte: has joined #RubyOnRails
[21:31:39] crystal77: has joined #RubyOnRails
[21:33:45] uglybandersnatch: has joined #RubyOnRails
[21:35:56] Radar: GOOD MORNING
[21:36:06] delgiudices: Morning boss!
[21:40:04] dandaman: has joined #RubyOnRails
[21:41:06] uglybandersnatch: has joined #RubyOnRails
[21:41:38] intrigueD: has joined #RubyOnRails
[21:48:12] cd-rum: has joined #RubyOnRails
[21:49:49] Terens: has joined #RubyOnRails
[21:50:00] P4Titan`: has joined #RubyOnRails
[21:50:46] Radar: hello Terens
[21:51:45] Cohedrin: has joined #RubyOnRails
[21:52:07] _Tariq: has joined #RubyOnRails
[21:53:19] stannard: has joined #RubyOnRails
[21:55:52] n008f4g_: has joined #RubyOnRails
[21:56:24] silentpost: has joined #RubyOnRails
[21:56:57] djbkd: has joined #RubyOnRails
[21:57:53] _Tariq: has joined #RubyOnRails
[21:58:11] stannard_: has joined #RubyOnRails
[21:59:57] _Tariq: has joined #RubyOnRails
[22:00:08] RegulationD: has joined #RubyOnRails
[22:01:16] mdw: has joined #RubyOnRails
[22:01:36] delgiudices: has joined #RubyOnRails
[22:02:02] mdw: has joined #RubyOnRails
[22:02:48] mdw: has joined #RubyOnRails
[22:03:19] _Tariq: has joined #RubyOnRails
[22:03:58] nerium: has joined #RubyOnRails
[22:07:16] marr: has joined #RubyOnRails
[22:07:22] blackmesa: has joined #RubyOnRails
[22:08:36] _Tariq: has joined #RubyOnRails
[22:11:08] ss_much: has joined #RubyOnRails
[22:14:08] ensyde_: has joined #RubyOnRails
[22:18:25] B4daBing73: has joined #RubyOnRails
[22:18:38] B4daBing73: has joined #RubyOnRails
[22:20:48] juhoh: has joined #RubyOnRails
[22:21:14] _Tariq: has joined #RubyOnRails
[22:27:44] Darmani: has joined #RubyOnRails
[22:29:11] Darmani: Hi everyone! Quick question,
[22:29:20] Radar: Quick answer
[22:29:30] Darmani: oh hey Radar lol
[22:29:42] Radar: hey Darmani rofl
[22:30:06] Darmani: I was looking for an online course that teaches Rails, has anyone done something like this? And was it beneficial?
[22:31:11] Darmani: I'm talking about a paid course like Treehouse or Coursera or something like that.
[22:31:28] Radar: Darmani: You can't learn from a book?
[22:31:59] HenriettaSalt: has joined #RubyOnRails
[22:32:32] Darmani: Radar: I've read many books and read lots of material.
[22:32:33] chouhoulis: has joined #RubyOnRails
[22:32:44] Darmani: I still feel like I'm not sure what to do though.
[22:34:00] sneakerhax: has joined #RubyOnRails
[22:35:15] Darmani: Radar: Maybe I'm just not reading the right material I'm just confused on a few things.
[22:35:27] Radar: Darmani: Do you have any specifics that you can think of atm?
[22:35:38] cd-rum: has joined #RubyOnRails
[22:36:07] workmad3: has joined #RubyOnRails
[22:36:37] Darmani: Radar: I can but someone just called me, if you're still here I'll message you when I'm finished.
[22:36:50] nettoweb: has joined #RubyOnRails
[22:37:28] banister: has joined #RubyOnRails
[22:37:37] tomatoes: has joined #RubyOnRails
[22:38:00] workmad3: has joined #RubyOnRails
[22:38:00] bronson: has joined #RubyOnRails
[22:38:10] Radar: I'm here for at least another 8 hours.
[22:38:20] ensyde_: has joined #RubyOnRails
[22:40:49] cd-rum_: has joined #RubyOnRails
[22:43:01] workmad3: has joined #RubyOnRails
[22:43:26] Inside: has joined #RubyOnRails
[22:43:47] htmldrum: has joined #RubyOnRails
[22:43:51] workmad3: has joined #RubyOnRails
[22:44:29] Inside: Hi folks. I'm having an issue with an app I'm trying to run on windows. I'm getting this error: Permission denied @ utime_failed - [...]/BMS-Demo/tmp/cache/assets/development/sprockets/v3.0/[......].cache
[22:44:51] Inside: It looks like there's some sort of write conflict to a cache file.
[22:45:00] Radar: ACTION read up to "Windows"
[22:45:03] JoshGlzBrk: has joined #RubyOnRails
[22:45:05] Inside: I know that i've had this issue before when trying to develop on windows, I just forget what I did to solve it.
[22:45:08] Inside: ACTION hugs Radar 
[22:45:12] Radar: Stopped using Windows?
[22:45:17] Radar: That was probably it.
[22:45:20] Inside: I develop at work on a windows macine as well
[22:45:28] Radar: ACTION pats Inside on the shoulder sympathetically.
[22:45:30] Inside: but it's my home install that's squirelly somehow.
[22:46:12] MaxHoffman: has joined #RubyOnRails
[22:46:37] workmad3: has joined #RubyOnRails
[22:46:42] Inside: > https://github.com/rails/sprockets/issues/136
[22:47:47] Radar: I can't help you, sorry. Every time I help with Windows my vision gets redder and redder and then I wake up the next morning not knowing what happened.
[22:48:00] Inside: looks to be an issue with *nix installs too ;) ;) ;)
[22:48:18] Radar: using latest sprockets gem?
[22:48:41] workmad3: has joined #RubyOnRails
[22:49:10] workmad3: has joined #RubyOnRails
[22:49:41] workmad3: has joined #RubyOnRails
[22:51:06] Inside: ACTION updates to the latest..
[22:51:39] intrigueD: has joined #RubyOnRails
[22:52:55] Inside: I remember what the issue is
[22:53:07] Inside: I'm developing inside of dropbox
[22:53:11] Radar: Does it start with "W" and end in "indows"?
[22:53:16] Inside: it's a dropbox issue
[22:53:20] Radar: So stop doing that?
[22:53:23] Radar: Backup your code to GitHub?
[22:53:33] Inside: It's already there
[22:53:35] Radar: "Dr! Dr! It hurts when I do this!" "So stop doing it?"
[22:53:41] Inside: dude, radar, calm down
[22:54:01] Radar: Why do you have Dropbox and GitHub for your code?
[22:54:23] Inside: because if I forget to check in my code from home
[22:54:35] Inside: I can log on to drop box and manually copy it over when I'm at work :p
[22:54:39] Radar: I think you'll learn not to do that v. quickly ;)
[22:55:54] workmad3: Inside: https://chrome.google.com/webstore/detail/chrome-remote-desktop/gbchcmhmhahfdphkhkmpfmihenigjmpp?hl=en
[22:56:35] Inside: that's one possibility
[22:56:43] Inside: but if the PC is off then no bueno
[22:57:01] workmad3: Inside: what is this 'off'?
[22:57:17] Inside: it's a thing that people do when they want to save energy
[22:57:31] workmad3: if I want to save energy, I sit still...
[23:01:01] nertzy: has joined #RubyOnRails
[23:06:01] timdotrb: has joined #RubyOnRails
[23:06:38] ss0x53: has joined #RubyOnRails
[23:07:20] sysodaff: has joined #RubyOnRails
[23:07:33] Thomas-0725: has joined #RubyOnRails
[23:10:52] zz_denym_: has joined #RubyOnRails
[23:13:21] otherj: has joined #RubyOnRails
[23:14:04] n008f4g_: has joined #RubyOnRails
[23:14:19] otherj: anyone have a hint for getting rails older than 1.0 to 1. tell me what version it is exactly and 2. use changes to environments/production.rb?
[23:15:24] kgutteridge: has joined #RubyOnRails
[23:15:38] trosborn: has joined #RubyOnRails
[23:15:46] chipotle: has joined #RubyOnRails
[23:16:02] Radar: otherj: OLDER than 1.0?
[23:16:19] Radar: otherj: is there a config/boot.rb or config/environment.rb file?
[23:16:23] otherj: I know, I know. that's why I don't know for sure how to do stuff!
[23:16:57] Radar: what's the contents of those files?
[23:17:13] otherj: I can gist 'em unless you need something specific
[23:17:24] Radar: yes please.
[23:17:34] ql6wlld: has joined #RubyOnRails
[23:17:46] otherj: I'm only even looking at it because it stopped sending email via sendgrid, and I'm not sure if that's because of sendgrid or something on its server
[23:18:11] smathy: otherj, is there a RAILS_GEM_VERSION set inside config/environment.rb ?
[23:18:22] Radar: smathy: spoilers
[23:18:35] Inside: older than 1.0?
[23:18:49] Radar: Inside: yes such a thing does exist ;)
[23:19:09] Inside: I mean I assumed that there would be
[23:19:21] Inside: because of, you know, the versioning system
[23:19:27] Radar: An app that is running a pre-1.0 version of Rails is considered a relic.
[23:19:30] otherj: well, I should say, they TOLD me it's that old. I don't know for sure, which is why I'm asking!
[23:19:46] Radar: If it were an ancient artefact it would be akin to a Dead Sea Scroll or something of that variety in terms of rarity.
[23:19:52] Inside: IT SHOULD BE IN A MUSEUM!
[23:19:56] Radar: Inside: EXACTLY.
[23:20:49] otherj: https://gist.github.com/otherjustin/d5fc641b5193ffccf2f8
[23:20:53] rikkipitt: has joined #RubyOnRails
[23:21:10] otherj: actually it references 1.1.6 here, so maybe it's just VERY old and not DEAD SEA SCROLL
[23:21:10] marcdel: has joined #RubyOnRails
[23:21:27] cd-rum: has joined #RubyOnRails
[23:21:53] otherj: it doesn't have a Gemfile lads. this is serious.
[23:22:21] ql6wlld: has joined #RubyOnRails
[23:22:59] rodfersou: has joined #RubyOnRails
[23:24:34] smathy: Yeah, bundler isn't anywhere near that old.
[23:24:53] Radar: Very interesting.
[23:25:00] trosborn: Hi Rails fam. Best practices question: My application.html.haml loads a template that doesn’t need to be loaded in the /order section of the site. My current idea is to put in a switch statement checking the path and loading the relevent templates based on that evaluation. Is there a more maintable or cleaner way to load path specific templates?
[23:25:00] otherj: I actually don't even see rails listed in `gem list`, so I'm not sure how it was installed back then
[23:25:17] Radar: otherj: Might be in a vendor/rails dir
[23:25:35] smathy: otherj, right, so this is referencing RAILS_GEM_VERSION - as I suggested. Just grep for that.
[23:26:05] P4Titan``: has joined #RubyOnRails
[23:27:38] drale2k: I have an iOS app for a chat which is a webview with Rails 5 running using ActionCable. Now that Turbolinks partial replacements are gone, what's a good way of replacing the messages with new ones. Or only adding new ones to the current message list
[23:28:04] drale2k: ajax polling ? -.-
[23:28:29] dandaman: has joined #RubyOnRails
[23:28:37] havenwood: has joined #RubyOnRails
[23:28:44] drale2k: if the app is closed and then re-opened, i need to pull the delta of messages and add it to the chat so a user gets the messages he mised
[23:28:48] havenwood: has joined #RubyOnRails
[23:28:49] otherj: smathy, I see that, and I'm grepping, but I gotta say I'm not finding an actual number. the hunt continues.
[23:30:39] ql6wlld: has joined #RubyOnRails
[23:30:49] juhoh: has joined #RubyOnRails
[23:31:09] georgedrummond: has joined #RubyOnRails
[23:31:27] mrgreenfur: has joined #RubyOnRails
[23:32:14] quazimodo: has joined #RubyOnRails
[23:33:05] Oliphaunte: has joined #RubyOnRails
[23:33:08] chouhoulis: has joined #RubyOnRails
[23:33:23] zz_denym_: has joined #RubyOnRails
[23:33:30] smathy: drale2k, so send the "cursor" (ie. last message the client has received) whenever it requests new messages.
[23:33:44] sysodaff: has joined #RubyOnRails
[23:34:05] kdough: has joined #RubyOnRails
[23:34:17] drale2k: smathy: so just do an ajax call, return the HTML and throw it into the DOM?
[23:36:16] kgutteridge: has joined #RubyOnRails
[23:37:14] smathy: Or just send the cursor when you (re)open the websocket.
[23:40:16] algernop_k: has joined #RubyOnRails
[23:40:33] tbuehlmann: has joined #RubyOnRails
[23:41:14] drale2k: smathy: that's what i am more interested in, to use websockets as much as possible
[23:42:10] HenriettaSalt: has joined #RubyOnRails
[23:42:57] smathy: drale2k, yeah, that's what I'd do if you're using websockets for the rest of your comms.
[23:45:38] jaequery: has joined #RubyOnRails
[23:47:00] crystal77: has joined #RubyOnRails
[23:48:19] otherj: 0.9.5 for those wondering!
[23:48:52] otherj: and thanks old sports
[23:50:29] smathy: ...and now the real hell begins.
[23:50:39] Guest60834: has left #RubyOnRails: ()
[23:50:48] ruurd: has joined #RubyOnRails
[23:51:36] Arcaire: 10:48 AM <otherj> and thanks old sports
[23:51:38] Arcaire: Good grief
[23:51:50] Arcaire: didn't realise we had Jay Gatsby come back to learn Rails.
[23:52:58] Arcaire: drale2k: I wouldn't use websockets for that, to be honest.
[23:53:17] Arcaire: Also make sure you're sending some form of timestamp as your "last message", not the last message contents itself (seen that one before lol)
[23:53:54] juhoh: has joined #RubyOnRails
[23:55:07] drale2k: Arcaire: ye timestamp for sure. You would do an regular ajax call and return a partial?
[23:55:31] drale2k: the last thing i want to do is to return json and render it client side
[23:56:29] Arcaire: that's what I'd do.
[23:57:25] drale2k: meh, then i need a client side template and so on ..
[23:58:56] Arcaire: I'm not a major fan of working with partials in that way
[23:59:03] Arcaire: and this isn't really "streaming", so I wouldn't personally use WS.