« Back to channel list

#RubyOnRails - 17 April 2016

« Back 1 day Forward 1 day »
[00:02:46] diegoaguilar: has joined #RubyOnRails
[00:02:49] wethu: has joined #RubyOnRails
[00:05:57] w09x: has joined #RubyOnRails
[00:08:38] bronson: has joined #RubyOnRails
[00:12:20] Sergart: has joined #RubyOnRails
[00:17:09] Cohedrin_: has joined #RubyOnRails
[00:19:19] duncannz: has joined #RubyOnRails
[00:21:14] idefine: has joined #RubyOnRails
[00:21:51] delgiudices: has joined #RubyOnRails
[00:22:41] beilabs: has joined #RubyOnRails
[00:26:27] DZj091231kld: has joined #RubyOnRails
[00:29:40] pawnbox: has joined #RubyOnRails
[00:29:51] King_Rex: has joined #RubyOnRails
[00:30:43] Graphettion: has joined #RubyOnRails
[00:32:11] aloneintheworld: has joined #RubyOnRails
[00:36:26] michael_mbp: Any reason one would call directly to an instance of OrmAdapter in Rails?
[00:36:35] michael_mbp: found an interesting use-case inside Devise
[00:37:02] michael_mbp: https://github.com/plataformatec/devise/blob/master/lib/devise/token_generator.rb#L20
[00:39:41] nettoweb: has joined #RubyOnRails
[00:44:35] flashpoint9: has joined #RubyOnRails
[00:46:58] petor: has joined #RubyOnRails
[00:48:05] Rodya_: has joined #RubyOnRails
[00:49:13] macsteps: has joined #RubyOnRails
[00:49:28] ur5us: has joined #RubyOnRails
[00:51:53] daed: has joined #RubyOnRails
[00:55:24] phredus: has joined #RubyOnRails
[00:56:23] bruno-: has joined #RubyOnRails
[00:56:40] bob434: has joined #RubyOnRails
[00:57:18] idefine: has joined #RubyOnRails
[01:01:23] bruno-: has joined #RubyOnRails
[01:13:17] DZj091231kld: has joined #RubyOnRails
[01:14:55] bruno-: has joined #RubyOnRails
[01:15:34] SteenJobs: has joined #RubyOnRails
[01:24:38] ur5us: has joined #RubyOnRails
[01:28:42] baweaver: has joined #RubyOnRails
[01:31:04] Denart_: has joined #RubyOnRails
[01:40:05] newjersey: has joined #RubyOnRails
[01:42:57] PedramT: has joined #RubyOnRails
[01:47:27] Rodya_: has joined #RubyOnRails
[01:49:16] barajasfab: has joined #RubyOnRails
[01:52:30] phredus: has joined #RubyOnRails
[01:55:19] JakFrist: has joined #RubyOnRails
[01:57:05] ur5us: has joined #RubyOnRails
[01:59:57] bruno-: has joined #RubyOnRails
[02:00:40] pawnbox: has joined #RubyOnRails
[02:05:03] Caerus: has joined #RubyOnRails
[02:05:12] RegulationD: has joined #RubyOnRails
[02:06:47] Rodya__: has joined #RubyOnRails
[02:08:13] blackmes1: has joined #RubyOnRails
[02:10:14] DZj091231kld: has joined #RubyOnRails
[02:12:15] agent_white: has joined #RubyOnRails
[02:12:19] AckZ: has joined #RubyOnRails
[02:12:26] joaomdmoura__: has joined #RubyOnRails
[02:15:29] bruno-: has joined #RubyOnRails
[02:20:37] gmas: has joined #RubyOnRails
[02:21:22] FailBit: has left #RubyOnRails: ("WeeChat 0.4.2")
[02:22:06] Cohedrin: has joined #RubyOnRails
[02:22:38] siaW: do i need a route to serve images from the public folder?
[02:23:12] siaW: cause i have some images in my public folder and trying to access them from heroku i get an error that there’s no route matching the url
[02:23:16] idefine: has joined #RubyOnRails
[02:25:03] nickenchuggets: has joined #RubyOnRails
[02:25:03] nickenchuggets: has joined #RubyOnRails
[02:34:49] adavia: has joined #RubyOnRails
[02:35:14] bruno-: has joined #RubyOnRails
[02:36:19] idefine: has joined #RubyOnRails
[02:36:45] ur5us: has joined #RubyOnRails
[02:37:14] flashpoint9: has joined #RubyOnRails
[02:37:14] chagel: has joined #RubyOnRails
[02:39:02] flashpoint9: has joined #RubyOnRails
[02:39:19] idefine: has joined #RubyOnRails
[02:41:59] idefine: has joined #RubyOnRails
[02:43:33] nettoweb: has joined #RubyOnRails
[02:46:58] DZj091231kld: has joined #RubyOnRails
[02:48:00] atrius: has joined #RubyOnRails
[02:48:05] petor: has joined #RubyOnRails
[02:48:09] Devalo: has joined #RubyOnRails
[02:48:55] duderonomy: has joined #RubyOnRails
[02:50:18] pawnbox: has joined #RubyOnRails
[02:54:20] diego1: has joined #RubyOnRails
[02:56:11] shinnya: has joined #RubyOnRails
[02:57:23] hxegon: has joined #RubyOnRails
[03:01:57] robbyoconnor: has joined #RubyOnRails
[03:12:14] ur5us: has joined #RubyOnRails
[03:15:00] bruno-: has joined #RubyOnRails
[03:15:06] arBmind1: has joined #RubyOnRails
[03:16:21] ZerGabriel: has joined #RubyOnRails
[03:17:37] braincrash: has joined #RubyOnRails
[03:18:37] EpixRu: has joined #RubyOnRails
[03:33:08] flashpoint9: has joined #RubyOnRails
[03:36:37] DZj091231kld: has joined #RubyOnRails
[03:37:02] crameth: has joined #RubyOnRails
[03:37:44] diego1: has joined #RubyOnRails
[03:43:45] shinnya: has joined #RubyOnRails
[03:45:44] bruno-: has joined #RubyOnRails
[03:51:21] beilabs: has joined #RubyOnRails
[03:57:02] ur5us: has joined #RubyOnRails
[04:20:27] pawnbox: has joined #RubyOnRails
[04:21:27] lxsameer: has joined #RubyOnRails
[04:23:40] hxegon: has joined #RubyOnRails
[04:34:39] S1kx: has joined #RubyOnRails
[04:38:49] flashpoint9: has joined #RubyOnRails
[04:43:01] smoitra: has joined #RubyOnRails
[04:43:35] baweaver: has joined #RubyOnRails
[04:43:50] alexG: has joined #RubyOnRails
[04:44:07] alexG: does anyone know what the default route is for form_for?
[04:44:27] Guest92645: does anyone know what the default route is for form_for?
[04:49:16] petor: has joined #RubyOnRails
[04:49:52] Radar: Guest92645: depends on how it is used.
[04:50:23] Guest92645: or how it usually creates the default route?
[04:50:29] Radar: Guest92645: What default route?
[04:50:34] Radar: Guest92645: !rule0
[04:50:34] helpa: Guest92645: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[04:51:45] bruno-: has joined #RubyOnRails
[04:57:22] jtong: has joined #RubyOnRails
[04:58:44] djbkd: has joined #RubyOnRails
[04:59:42] idefine: has joined #RubyOnRails
[04:59:51] pawnbox: has joined #RubyOnRails
[05:01:12] sarink: has joined #RubyOnRails
[05:02:10] idefine: has joined #RubyOnRails
[05:03:04] sarink: has joined #RubyOnRails
[05:10:06] sarink: has joined #RubyOnRails
[05:10:12] tildes: has joined #RubyOnRails
[05:12:55] jbcden2: has joined #RubyOnRails
[05:18:37] zpe: has joined #RubyOnRails
[05:32:35] dopie: has joined #RubyOnRails
[05:33:20] PedramT: has joined #RubyOnRails
[05:34:28] _3by8: has joined #RubyOnRails
[05:38:42] PedramT: has joined #RubyOnRails
[05:39:36] bradleyprice: has joined #RubyOnRails
[05:50:38] darkxploit: has joined #RubyOnRails
[05:53:18] one_zero: has joined #RubyOnRails
[06:02:12] crdpink: has joined #RubyOnRails
[06:05:10] krz: has joined #RubyOnRails
[06:06:26] AmiMoench: has joined #RubyOnRails
[06:06:42] RegulationD: has joined #RubyOnRails
[06:10:57] bronson: has joined #RubyOnRails
[06:11:30] joelsmith: has joined #RubyOnRails
[06:12:30] Cohedrin: has joined #RubyOnRails
[06:13:06] diego1: has joined #RubyOnRails
[06:13:29] diego1: has joined #RubyOnRails
[06:14:29] djbkd: has joined #RubyOnRails
[06:19:27] zpe: has joined #RubyOnRails
[06:21:54] PedramT: has joined #RubyOnRails
[06:26:35] sarink: has joined #RubyOnRails
[06:28:10] sevenseacat: has joined #RubyOnRails
[06:31:26] Yeomra: has joined #RubyOnRails
[06:34:24] brunto: has joined #RubyOnRails
[06:35:00] PedramT: has joined #RubyOnRails
[06:35:10] pawnbox: has joined #RubyOnRails
[06:39:06] chagel: has joined #RubyOnRails
[06:40:23] diegoaguilar: has joined #RubyOnRails
[06:41:58] idefine: has joined #RubyOnRails
[06:48:46] mbreedlove: has joined #RubyOnRails
[06:49:19] blackhuey1: has joined #RubyOnRails
[06:49:39] duderono_: has joined #RubyOnRails
[06:49:56] arBmind: has joined #RubyOnRails
[06:50:26] petor: has joined #RubyOnRails
[06:51:04] Puffball: has joined #RubyOnRails
[06:51:56] daed: has joined #RubyOnRails
[06:54:56] sevenseacat: has joined #RubyOnRails
[06:55:28] mtaw: has joined #RubyOnRails
[06:55:39] Trynemjoel: has joined #RubyOnRails
[06:55:42] braincrash: has joined #RubyOnRails
[06:55:53] mbreedlo_: has joined #RubyOnRails
[06:57:37] mtaw1: has joined #RubyOnRails
[06:58:06] roqo: has joined #RubyOnRails
[06:59:45] PedramT: has joined #RubyOnRails
[07:03:46] czerasz2: has joined #RubyOnRails
[07:03:56] diegoaguilar: has joined #RubyOnRails
[07:04:19] S1kx: has joined #RubyOnRails
[07:08:51] lxsameer: there will be no Rack::Lock in rails 5 right ?
[07:09:35] srinidhi: has joined #RubyOnRails
[07:09:41] sevenseacat: check the code
[07:11:11] idefine: has joined #RubyOnRails
[07:11:35] jenrzzz: has joined #RubyOnRails
[07:12:58] mbreedlove: has joined #RubyOnRails
[07:19:32] PedramT: has joined #RubyOnRails
[07:20:09] zpe: has joined #RubyOnRails
[07:27:41] beilabs: has joined #RubyOnRails
[07:36:50] mikecmpbll: has joined #RubyOnRails
[07:38:00] User458764: has joined #RubyOnRails
[07:39:12] mbreedlove: has joined #RubyOnRails
[07:39:12] antgel: has joined #RubyOnRails
[07:42:46] ur5us: has joined #RubyOnRails
[07:43:09] agent_white: has joined #RubyOnRails
[07:44:09] njero: has joined #RubyOnRails
[07:46:47] AzaToth: has joined #RubyOnRails
[07:47:12] helpa: has joined #RubyOnRails
[07:47:14] hervie: has joined #RubyOnRails
[07:47:25] eljimador: has joined #RubyOnRails
[07:47:46] siaw_: has joined #RubyOnRails
[07:47:48] lemur: has joined #RubyOnRails
[07:47:59] djbkd_: has joined #RubyOnRails
[07:49:07] Gkj8899_: has joined #RubyOnRails
[07:50:22] pawnbox_: has joined #RubyOnRails
[07:50:31] d0nn1e_: has joined #RubyOnRails
[07:52:26] aujt74_: has joined #RubyOnRails
[07:52:32] jgrevich_: has joined #RubyOnRails
[07:54:24] fernandomm: has joined #RubyOnRails
[07:54:37] nobitano_: has joined #RubyOnRails
[07:54:49] tw1sted_: has joined #RubyOnRails
[07:54:50] dmcc_: has joined #RubyOnRails
[07:55:31] zrl__: has joined #RubyOnRails
[07:55:54] alxndr_: has joined #RubyOnRails
[07:55:56] idefine: has joined #RubyOnRails
[07:56:58] kumavis_: has joined #RubyOnRails
[07:57:08] Nuck: has joined #RubyOnRails
[07:57:10] M-shine1: has joined #RubyOnRails
[07:58:42] braincrash: has joined #RubyOnRails
[07:59:05] algernop_k: has joined #RubyOnRails
[07:59:13] podman: has joined #RubyOnRails
[08:00:10] Takumo: has joined #RubyOnRails
[08:00:11] Takumo: has joined #RubyOnRails
[08:00:45] marr: has joined #RubyOnRails
[08:10:08] helpa-bot: has joined #RubyOnRails
[08:10:14] werd-driven: has joined #RubyOnRails
[08:10:18] malcolmva: has joined #RubyOnRails
[08:10:19] targaf_: has joined #RubyOnRails
[08:10:20] waseem__: has joined #RubyOnRails
[08:10:20] samuelkadolph: has joined #RubyOnRails
[08:10:24] IcyDragon: has joined #RubyOnRails
[08:10:26] aep_: has joined #RubyOnRails
[08:10:29] Gizmokid2010: has joined #RubyOnRails
[08:10:38] ur5us_: has joined #RubyOnRails
[08:10:40] machuga_: has joined #RubyOnRails
[08:10:41] chridal_: has joined #RubyOnRails
[08:10:48] tomaw_: has joined #RubyOnRails
[08:11:00] Junaos_: has joined #RubyOnRails
[08:11:24] KorriX: has joined #RubyOnRails
[08:12:15] bphogan: has joined #RubyOnRails
[08:12:24] elaptics`away: has joined #RubyOnRails
[08:12:24] phredus: has joined #RubyOnRails
[08:12:25] Mchl: has joined #RubyOnRails
[08:12:26] D9: has joined #RubyOnRails
[08:12:31] adaedra: has joined #RubyOnRails
[08:12:46] urkle: has joined #RubyOnRails
[08:13:30] mtaw1: has joined #RubyOnRails
[08:13:30] Cork: has joined #RubyOnRails
[08:13:35] nickenchuggets: has joined #RubyOnRails
[08:13:35] nickenchuggets: has joined #RubyOnRails
[08:13:44] funnel: has joined #RubyOnRails
[08:13:45] deur-: has joined #RubyOnRails
[08:13:45] devn: has joined #RubyOnRails
[08:13:50] Janno: has joined #RubyOnRails
[08:13:51] Papierkorb: has joined #RubyOnRails
[08:13:56] bmf: has joined #RubyOnRails
[08:14:01] AntiSpamMeta: has joined #RubyOnRails
[08:14:15] helpa: has joined #RubyOnRails
[08:14:34] strongcode: has joined #RubyOnRails
[08:14:46] mtaw11: has joined #RubyOnRails
[08:14:52] cgfbee: has joined #RubyOnRails
[08:15:19] AnoHito: has joined #RubyOnRails
[08:16:03] duderonomy: has joined #RubyOnRails
[08:16:49] darutoko: has joined #RubyOnRails
[08:17:09] gmas: has joined #RubyOnRails
[08:17:59] mtaw: has joined #RubyOnRails
[08:18:16] czerasz2: has joined #RubyOnRails
[08:18:25] lxsameer: has joined #RubyOnRails
[08:18:29] patrick_star: has joined #RubyOnRails
[08:18:50] FaresKAlaboud: has joined #RubyOnRails
[08:19:03] unreal: has joined #RubyOnRails
[08:19:04] martinbjeldbak: has joined #RubyOnRails
[08:19:27] suffice: has joined #RubyOnRails
[08:19:44] clamstar: has joined #RubyOnRails
[08:21:20] S1kx: has joined #RubyOnRails
[08:21:35] acetoxy: has joined #RubyOnRails
[08:21:36] zrl_: has joined #RubyOnRails
[08:21:39] rtl: has joined #RubyOnRails
[08:22:05] brunto: has joined #RubyOnRails
[08:22:13] M-shine: has joined #RubyOnRails
[08:22:31] dionysus69: has joined #RubyOnRails
[08:23:45] roqo: has joined #RubyOnRails
[08:24:34] d0nn1e: has joined #RubyOnRails
[08:25:12] chrisml: has joined #RubyOnRails
[08:25:41] th0m: has joined #RubyOnRails
[08:26:09] tjvc: has joined #RubyOnRails
[08:26:09] tjvc: has joined #RubyOnRails
[08:26:24] daxroc: has joined #RubyOnRails
[08:26:43] Fridtjof: has joined #RubyOnRails
[08:27:54] zpe: has joined #RubyOnRails
[08:28:16] wmoxam: has joined #RubyOnRails
[08:30:18] rubyonrailed: has joined #RubyOnRails
[08:30:29] sami: has joined #RubyOnRails
[08:31:49] pawnbox: has joined #RubyOnRails
[08:36:29] njero: has joined #RubyOnRails
[08:38:54] gmci: has joined #RubyOnRails
[08:39:03] ewilliam: has joined #RubyOnRails
[08:40:34] darrik: has joined #RubyOnRails
[08:42:56] kaspergrubbe: has joined #RubyOnRails
[08:48:20] yfeldblum: has joined #RubyOnRails
[08:48:35] pawnbox_: has joined #RubyOnRails
[08:49:35] hoylemd: has joined #RubyOnRails
[08:50:23] PedramT: has joined #RubyOnRails
[08:51:29] petor: has joined #RubyOnRails
[08:52:09] mentero: has joined #RubyOnRails
[08:52:25] Yeomra: has joined #RubyOnRails
[08:52:55] pawnbox: has joined #RubyOnRails
[08:55:05] PedramT_: has joined #RubyOnRails
[08:55:41] pawnbox_: has joined #RubyOnRails
[08:57:37] willwright: has joined #RubyOnRails
[08:59:35] jtong: has joined #RubyOnRails
[08:59:52] mikecmpbll: has joined #RubyOnRails
[09:00:06] pawnbox: has joined #RubyOnRails
[09:00:48] PedramT: has joined #RubyOnRails
[09:01:29] srinidhi: has joined #RubyOnRails
[09:03:32] kallisti5: has joined #RubyOnRails
[09:05:31] joelsmith: has joined #RubyOnRails
[09:05:31] Zackio: has joined #RubyOnRails
[09:05:31] brainslug: has joined #RubyOnRails
[09:05:31] bbrowning_away: has joined #RubyOnRails
[09:11:02] arathald: has joined #RubyOnRails
[09:13:01] pawnbox: has joined #RubyOnRails
[09:15:25] PedramT: has joined #RubyOnRails
[09:16:03] barajasfab: has joined #RubyOnRails
[09:16:35] reber: has joined #RubyOnRails
[09:17:35] hypnosb: has joined #RubyOnRails
[09:17:35] flopsec: has joined #RubyOnRails
[09:17:35] mlitwiniuk: has joined #RubyOnRails
[09:17:35] wopi: has joined #RubyOnRails
[09:17:35] tbuehlmann: has joined #RubyOnRails
[09:17:38] flopsec: has joined #RubyOnRails
[09:17:52] tbuehlmann: has joined #RubyOnRails
[09:18:13] hypnosb: has joined #RubyOnRails
[09:18:37] PedramT: has joined #RubyOnRails
[09:18:48] eisi: has joined #RubyOnRails
[09:19:03] flopsec: has joined #RubyOnRails
[09:20:22] PedramT: has joined #RubyOnRails
[09:23:46] shtirlic: has joined #RubyOnRails
[09:25:00] Cohedrin: has joined #RubyOnRails
[09:25:24] floooop: has joined #RubyOnRails
[09:25:37] Devalo: has joined #RubyOnRails
[09:30:54] sar1nk: has joined #RubyOnRails
[09:34:05] brunto: has joined #RubyOnRails
[09:37:15] ur5us: has joined #RubyOnRails
[09:38:52] hervie_: has joined #RubyOnRails
[09:40:56] rubyonrailed: has joined #RubyOnRails
[09:42:26] zpe: has joined #RubyOnRails
[09:43:16] idefine: has joined #RubyOnRails
[09:44:53] Guest51505: has joined #RubyOnRails
[09:46:13] d0nn1e: has joined #RubyOnRails
[09:46:23] tweeeaks: has joined #RubyOnRails
[09:47:05] ur5us: has joined #RubyOnRails
[09:52:03] krz: has joined #RubyOnRails
[09:54:14] bmf: has joined #RubyOnRails
[10:00:32] chagel: has joined #RubyOnRails
[10:02:31] Andr3as: hello everyone
[10:05:18] Andr3as: i have no code yet, lets say i have a user and there is two bolean fields - admin and author - and i want to built the menu according to those fields. i have a user menu, an admin menu and a n author menu.. when someone is an admin, i want to show all menus, when someone is an author i want to exclude the admin menu, but i do not want to show the author menu twice.. any hint on how to handle that (very beginner question maybe,
[10:05:18] Andr3as: but i dont get it, somehow)
[10:06:00] Andr3as: *twice when he is an admin and author (for some reason)
[10:07:17] FernandoBasso: has joined #RubyOnRails
[10:08:09] RegulationD: has joined #RubyOnRails
[10:09:39] n008f4g_: has joined #RubyOnRails
[10:11:47] dionysus69: has joined #RubyOnRails
[10:12:21] triptec: has joined #RubyOnRails
[10:13:11] bronson: has joined #RubyOnRails
[10:15:58] Hates_: Andr3as: the basic way would be to use an if/else check. first see if the user is an admin then show the admin section, then for the author menu if the user is an admin or an author then display that section too
[10:16:04] brunto: has joined #RubyOnRails
[10:16:48] Andr3as: Hates_: yeah, thats what i thought too, but the caveat is, an admin should see the author section too
[10:16:52] lyoshajapan: has joined #RubyOnRails
[10:16:56] Andr3as: and an admin + author only once
[10:17:27] Andr3as: if i'd set this up like this, and admin + author would see it twice
[10:18:10] Andr3as: and if this and not that is a bit lame
[10:19:30] Hates_: Andr3as: no, as the admin case would only contain the admin section
[10:19:30] petor: has joined #RubyOnRails
[10:20:00] Andr3as: but then it would miss the author-part, no?
[10:20:42] Andr3as: or, maybe a helper method and do the author check in that, instead of a normal boolean comparison
[10:20:51] Andr3as: and an admin is always an author
[10:20:55] Hates_: Andr3as: you have to sections, admin and author. If you're an admin show the admin section, if you're an admin or an author show the author section. So then it's not repeated
[10:21:16] Andr3as: that should work
[10:21:56] Hates_: Andr3as: np. if you get stuck put your view in a gist and we can take a look :)
[10:22:32] Andr3as: thanks Hates_, appreceate it!
[10:22:41] Andr3as: *appreciate
[10:23:08] krz: has joined #RubyOnRails
[10:33:44] FooMunki: has joined #RubyOnRails
[10:40:05] mikecmpbll: has joined #RubyOnRails
[10:41:51] bmf: has joined #RubyOnRails
[10:47:20] siaW: has joined #RubyOnRails
[10:50:27] Rixius: has joined #RubyOnRails
[10:53:39] beilabs: has joined #RubyOnRails
[10:54:20] bodie_: has joined #RubyOnRails
[10:54:40] baweaver: has joined #RubyOnRails
[10:56:00] triptec: has joined #RubyOnRails
[10:58:03] yfeldblum: has joined #RubyOnRails
[10:58:25] dici: has joined #RubyOnRails
[11:05:04] nettoweb: has joined #RubyOnRails
[11:05:22] Disavowed: has joined #RubyOnRails
[11:06:10] bmf: has joined #RubyOnRails
[11:07:07] brunto: has joined #RubyOnRails
[11:11:34] Vircung: has joined #RubyOnRails
[11:11:51] ayonkhan: has joined #RubyOnRails
[11:13:21] srinidhi: has joined #RubyOnRails
[11:13:39] Depili: has joined #RubyOnRails
[11:14:15] ereslibre: has joined #RubyOnRails
[11:14:24] FCser: has joined #RubyOnRails
[11:14:55] nibbo: has joined #RubyOnRails
[11:14:59] fox_mulder_cp: has joined #RubyOnRails
[11:15:02] pydave6367: has joined #RubyOnRails
[11:15:18] Skelz0r: has joined #RubyOnRails
[11:15:22] jto: has joined #RubyOnRails
[11:15:36] pawnbox: has joined #RubyOnRails
[11:16:52] helpa-bot: has joined #RubyOnRails
[11:17:35] triptec: has joined #RubyOnRails
[11:18:52] helpa-bot: has joined #RubyOnRails
[11:19:02] w0rd-driven: has joined #RubyOnRails
[11:19:02] chridal: has joined #RubyOnRails
[11:19:02] chridal: has joined #RubyOnRails
[11:19:51] thomasfedb: has joined #RubyOnRails
[11:19:51] thomasfedb: has joined #RubyOnRails
[11:20:08] rahc: has joined #RubyOnRails
[11:20:19] TheMoonMaster: has joined #RubyOnRails
[11:20:24] sung: has joined #RubyOnRails
[11:20:40] blackhuey: has joined #RubyOnRails
[11:20:53] helpa: has joined #RubyOnRails
[11:22:29] context: has joined #RubyOnRails
[11:23:00] redondos: has joined #RubyOnRails
[11:23:06] herenow: has joined #RubyOnRails
[11:25:18] pawnbox: has joined #RubyOnRails
[11:30:42] chagel: has joined #RubyOnRails
[11:30:51] pcpanic: has joined #RubyOnRails
[11:31:36] pcpanic: Sup peoples, stupid question here, how do I know if I am using rbenv or rvm? `which rvm` and `which rbenv` both have outputs
[11:32:49] rubyonrailed: has joined #RubyOnRails
[11:33:46] siaW: my app on heroku stores images in the public folder. yesterday i could view the images, this morning i get “
[11:33:46] siaW: The page you were looking for doesn't exist.
[11:33:47] siaW: You may have mistyped the address or the page may have moved.
[11:33:53] siaW: why’s that? how can i fix it?
[11:34:17] lxsameer: has joined #RubyOnRails
[11:34:17] lxsameer: has joined #RubyOnRails
[11:39:23] mdw: has joined #RubyOnRails
[11:39:28] dangerousdave: has joined #RubyOnRails
[11:42:48] brunto: has joined #RubyOnRails
[11:46:27] sevenseacat: siaw: you know how I told you a few days ago you needed to store your external images and assets somewhere like s3? yeah.
[11:47:12] n008f4g_: has joined #RubyOnRails
[11:47:42] siaW: yes i know. that’s what i wanted to do. and that’s what i’d do. but there’s this tiny app i’m working on and the senior there is insisting i find a way to store images in the db or the app itself
[11:48:44] siaW: i told him about s3 advantages and why it’s a bad idea what he’s asking me to do and he told me to “cut the crap and get the job done”
[11:49:06] siaW: and i’m wanting to join the team so i’m fighting a stupid fight
[11:49:36] siaW: it’s funny and stupid i know
[11:58:53] petor: has joined #RubyOnRails
[11:59:40] dezull: has joined #RubyOnRails
[12:06:25] delgiudices: has joined #RubyOnRails
[12:10:23] ZerGabriel: has joined #RubyOnRails
[12:13:01] chagel: has joined #RubyOnRails
[12:23:50] jtong: has joined #RubyOnRails
[12:24:17] szulak: has joined #RubyOnRails
[12:32:48] King_Rex: has joined #RubyOnRails
[12:35:58] diegoaguilar: has joined #RubyOnRails
[12:42:43] IrishGringo: has joined #RubyOnRails
[12:45:21] stannard: has joined #RubyOnRails
[12:46:17] chocoelho: has joined #RubyOnRails
[12:46:29] \13k: has joined #RubyOnRails
[12:46:30] andywww: has joined #RubyOnRails
[12:50:29] shilon: has joined #RubyOnRails
[12:55:41] brunto: has joined #RubyOnRails
[12:56:04] krz: has joined #RubyOnRails
[12:57:20] baweaver: has joined #RubyOnRails
[12:57:29] darkxploit: has joined #RubyOnRails
[12:59:15] n008f4g_: has joined #RubyOnRails
[12:59:44] rodfersou: has joined #RubyOnRails
[13:00:52] bruno-: has joined #RubyOnRails
[13:00:56] jetpack_joe: has joined #RubyOnRails
[13:01:36] delgiudices: has joined #RubyOnRails
[13:02:14] darkxploit: has joined #RubyOnRails
[13:03:58] ZerGabriel: has joined #RubyOnRails
[13:04:31] ZerGabriel: has joined #RubyOnRails
[13:04:33] jtong: has joined #RubyOnRails
[13:05:51] fox_mulder_cp: pwnd_nsfw: by default hosting planned to work based on docker image with apache+php - container per site
[13:06:36] fox_mulder_cp: pwnd_nsfw: because tonn of jooomla/drupal/wp and other php-based sites
[13:08:05] krz: has joined #RubyOnRails
[13:08:22] fox_mulder_cp: postgresql as store for panel, powerdns, ftp, also mysql for users too
[13:09:23] fox_mulder_cp: ansible for drop my trash scripting.
[13:09:55] fox_mulder_cp: oh, email, domain registration and all other images for docker planned too
[13:10:15] fox_mulder_cp: and billing + api for integrations
[13:10:52] fox_mulder_cp: also, all ansible supported modules for aws/azure etc can be used too
[13:11:58] fox_mulder_cp: now point of failure only storage - i can't select from ceph, gluster ort some other fs for cluster tolerance ^(
[13:13:49] michael_mbp: hmm, RSpec feature specs seem like they are lacking something in their 'scenario' syntax.
[13:14:11] michael_mbp: it doesn't convey the objective.
[13:14:34] fox_mulder_cp: michael_mbp: oh, i have some tryes to write test, but have a fails ((
[13:14:45] michael_mbp: i.e. scenario 'visit sign-in' // it says what we are doing, but doesn't convey what the outcome should be.
[13:14:51] michael_mbp: fox_mulder_cp: heh.
[13:15:09] sarink: has joined #RubyOnRails
[13:15:42] michael_mbp: feel like scenario should be more descriptive as a result
[13:15:57] michael_mbp: "visit sign-up and redirect to dashboard"
[13:16:16] michael_mbp: which is normally handled better via the describe/it syntax.
[13:16:30] fox_mulder_cp: michael_mbp: when make a alpha of my panel, me be push it to gh and somebody try to help me with tests
[13:16:36] michael_mbp: i.e. context 'visit sign-up'; it 'redirects to ...'
[13:17:00] fox_mulder_cp: michael_mbp: can u see my phrases about panel?
[13:17:14] maqr: has joined #RubyOnRails
[13:17:15] michael_mbp: fox_mulder_cp: hard to comprehend you mate. Use English as it was intended to and better yet share a gist of your issue.
[13:17:36] michael_mbp: damn you helpa.
[13:17:49] fox_mulder_cp: michael_mbp: i say for pwnd_nsfw abut my panel
[13:17:58] fox_mulder_cp: before your16:13 < michael_mbp> hey Hates_
[13:18:02] michael_mbp: fox_mulder_cp: no idea what you're saying.
[13:18:46] fox_mulder_cp: seems that my phrases viewed only by network bots..
[13:19:17] fox_mulder_cp: i'm authorized on bot later, than post story about my panel here
[13:20:19] someish: has joined #RubyOnRails
[13:22:11] tildes: has joined #RubyOnRails
[13:23:03] triptec: has joined #RubyOnRails
[13:23:16] shibly: has joined #RubyOnRails
[13:23:49] michael_mbp: resorting to the likes of scenario "On completing 'Forgot your password?', receive password reset email instructions"
[13:27:50] tk: has joined #RubyOnRails
[13:30:50] shibly: has left #RubyOnRails: ("Leaving")
[13:33:45] dionysus69: has joined #RubyOnRails
[13:34:47] rubyonrailed: has joined #RubyOnRails
[13:35:08] PedramT: has joined #RubyOnRails
[13:38:16] newjersey: has joined #RubyOnRails
[13:38:58] diegoaguilar: has joined #RubyOnRails
[13:42:26] krz: has joined #RubyOnRails
[13:42:32] mdw: has joined #RubyOnRails
[13:44:52] idefine: has joined #RubyOnRails
[13:45:21] zpe: has joined #RubyOnRails
[13:49:04] rafaelfr_: has joined #RubyOnRails
[13:51:32] quazimodo: has joined #RubyOnRails
[13:51:40] quazimod1: has joined #RubyOnRails
[13:54:40] pawnbox: has joined #RubyOnRails
[14:04:25] triptec: has joined #RubyOnRails
[14:06:05] mooru: has joined #RubyOnRails
[14:08:21] siaW: has joined #RubyOnRails
[14:09:40] RegulationD: has joined #RubyOnRails
[14:12:32] ekinmur: has joined #RubyOnRails
[14:13:10] IrishGringo: has joined #RubyOnRails
[14:15:07] bronson: has joined #RubyOnRails
[14:20:15] idefine: has joined #RubyOnRails
[14:24:26] Zackio: has joined #RubyOnRails
[14:25:00] barajasfab: has joined #RubyOnRails
[14:25:13] beilabs: has joined #RubyOnRails
[14:25:39] idefine: has joined #RubyOnRails
[14:30:55] NullVoxPopuli_: has joined #RubyOnRails
[14:31:10] NullVoxPopuli_: hello, are we allowed to share gems that we've made on here?
[14:33:40] triptec: has joined #RubyOnRails
[14:35:01] crameth: has joined #RubyOnRails
[14:35:02] lxsameer: has joined #RubyOnRails
[14:40:48] chitech: has joined #RubyOnRails
[14:43:43] fox_mulder_cp: hm. can some help me with devise user and its polymorphic relations to client and reseller classes>
[14:45:28] macsteps: has joined #RubyOnRails
[14:46:13] krz: has joined #RubyOnRails
[14:50:53] jtong: has joined #RubyOnRails
[14:51:24] ekinmur: has joined #RubyOnRails
[14:56:21] jtong: has joined #RubyOnRails
[14:57:02] chitech: has joined #RubyOnRails
[14:58:11] baweaver: has joined #RubyOnRails
[14:59:58] context: has joined #RubyOnRails
[15:00:21] triptec: has joined #RubyOnRails
[15:03:03] mooru: has joined #RubyOnRails
[15:05:33] Kallis: has joined #RubyOnRails
[15:07:22] Scientz: sometimes this ruby thing here... blargh
[15:07:32] Scientz: i have a hash that returns false for hash.is_?(Hash)
[15:07:40] Scientz: is_a?(Hash) that is
[15:08:44] petor: has joined #RubyOnRails
[15:08:59] pawnbox: has joined #RubyOnRails
[15:09:31] chitech: has joined #RubyOnRails
[15:09:45] adaedra: Well then it's not really a Hash
[15:10:33] hxegon: has joined #RubyOnRails
[15:11:30] adaedra: what does .class says?
[15:12:13] JoshL: has joined #RubyOnRails
[15:13:40] qejk: has joined #RubyOnRails
[15:14:03] bmf: has joined #RubyOnRails
[15:14:04] andatche: has joined #RubyOnRails
[15:15:31] lxsameer: has joined #RubyOnRails
[15:21:29] mice: has joined #RubyOnRails
[15:21:34] jtong_: has joined #RubyOnRails
[15:21:48] hervie: has joined #RubyOnRails
[15:22:02] K1NGREX: has joined #RubyOnRails
[15:23:26] werd-driven: has joined #RubyOnRails
[15:23:26] mikecmpb_: has joined #RubyOnRails
[15:24:54] ereslibre_laptop: has joined #RubyOnRails
[15:25:25] Skelz0r_: has joined #RubyOnRails
[15:25:36] andatche: has joined #RubyOnRails
[15:25:41] quazimodo: has joined #RubyOnRails
[15:25:46] quazimod2: has joined #RubyOnRails
[15:25:56] mice: i'm trying to write a little app to manage my own media files that i have all in the same directory, jpg, mp3, mp4, 3gp, wav ... so i list the directory with Dir.glob and then trying to view or listen to the files through the app, so far it looks something like this https://gist.github.com/mices/bc681e47ec753a8be35d5d8fb8cbab90 but i'm not sure if this approach is worth debugging, before i go any further with this app i wanna ask am i taking the righ
[15:25:56] mice: t approach?
[15:26:40] zpe: has joined #RubyOnRails
[15:26:44] apeiros: adaedra: I guess they figured they've been wrong when they thought hash was a hash? :D
[15:26:50] ekinmur_: has joined #RubyOnRails
[15:26:57] Shilon_: has joined #RubyOnRails
[15:27:04] adaedra: ¯\_(ツ)_/¯
[15:28:18] fox_mulder_cp: mice: hm, i think that u can create class media which has_many media (polymorphic) and foreground job to perioric rescan directories with media
[15:28:47] fox_mulder_cp: and buttons to upload, download and mp3tag it )
[15:28:53] aloneintheworld: has joined #RubyOnRails
[15:29:14] fox_mulder_cp: and for next iteration - online media player with playlists :)
[15:29:26] FCser: has joined #RubyOnRails
[15:29:32] sung: has joined #RubyOnRails
[15:29:49] FastJack_: has joined #RubyOnRails
[15:29:49] d0nn1e_: has joined #RubyOnRails
[15:30:47] MuffinPimp: has joined #RubyOnRails
[15:31:03] mice: fox_mulder_cp: a model? should be a subclass of ActiveRecord::Base ? i dunno what you mean by create class media
[15:31:06] Zacketh: has joined #RubyOnRails
[15:31:34] herenow: has joined #RubyOnRails
[15:32:25] tomaw: has joined #RubyOnRails
[15:33:07] tweeeaks: has joined #RubyOnRails
[15:34:16] Vircung: has joined #RubyOnRails
[15:34:51] macsteps: has joined #RubyOnRails
[15:34:56] adavia: has joined #RubyOnRails
[15:35:38] rubyonrailed: has joined #RubyOnRails
[15:36:01] tvon: has joined #RubyOnRails
[15:38:23] AntiSpamMeta: has joined #RubyOnRails
[15:39:12] FernandoBasso: has joined #RubyOnRails
[15:39:44] reber: has joined #RubyOnRails
[15:39:45] Ratler: has joined #RubyOnRails
[15:41:49] Rodya_: has joined #RubyOnRails
[15:42:01] Palsson: has joined #RubyOnRails
[15:42:47] zz_timnovinger: has joined #RubyOnRails
[15:43:12] mooru: has joined #RubyOnRails
[15:44:52] delgiudices: has joined #RubyOnRails
[15:55:06] macsteps: has joined #RubyOnRails
[15:57:11] dionysus69: has joined #RubyOnRails
[16:02:24] Graphettion: has joined #RubyOnRails
[16:02:58] greg: has joined #RubyOnRails
[16:03:26] bruno-: has joined #RubyOnRails
[16:04:41] mbreedlove: has joined #RubyOnRails
[16:05:23] brunto: has joined #RubyOnRails
[16:06:39] JonasOSDever: has joined #RubyOnRails
[16:09:18] zz_timnovinger: has joined #RubyOnRails
[16:09:25] lxsameer: has joined #RubyOnRails
[16:15:01] bruno-: has joined #RubyOnRails
[16:19:07] roelof: has joined #RubyOnRails
[16:19:44] roelof: I have done the Micheal Hartl's tutorial but still a little bit confused about something
[16:20:32] shinnya: has joined #RubyOnRails
[16:21:10] roelof: Suppoise I have a Profit model which has many Category . Category belongs to Profit. Suppose I have a category named "post". Is there a way I can find out to which part the profit model is ?
[16:21:50] zz_timnovinger: has joined #RubyOnRails
[16:22:34] ctrlrsf: has joined #RubyOnRails
[16:22:35] ctrlrsf: has joined #RubyOnRails
[16:23:18] ddv: has joined #RubyOnRails
[16:24:00] srinidhi1: has joined #RubyOnRails
[16:24:56] mbreedlo_: has joined #RubyOnRails
[16:25:06] Depili_: has joined #RubyOnRails
[16:25:52] IrishGringo_: has joined #RubyOnRails
[16:26:15] RegulationD: has joined #RubyOnRails
[16:26:43] bookies: has joined #RubyOnRails
[16:27:02] bookies: Good day. Can anyone take a look here? http://stackoverflow.com/questions/36677284 . Thanks
[16:27:04] rafaelfranca: has joined #RubyOnRails
[16:27:28] Skelz0r: has joined #RubyOnRails
[16:29:14] _Ducky-: has joined #RubyOnRails
[16:31:04] chridal_: has joined #RubyOnRails
[16:32:05] tildes: has joined #RubyOnRails
[16:32:26] krz: has joined #RubyOnRails
[16:32:32] rails918: has joined #RubyOnRails
[16:33:20] rails918: Hi guys, I have a form.submit in a view I would like to change from a HTML input to a <button> http://pastebin.com/raw/GnTbAzJS
[16:33:32] rails918: doing :type => 'button' only changes the 'type' attribute
[16:33:41] rails918: I would like to change the actual <input> to be a <button>
[16:34:03] anna`: has joined #RubyOnRails
[16:34:14] pawnbox: has joined #RubyOnRails
[16:37:48] diegoaguilar: has joined #RubyOnRails
[16:38:15] creature: has joined #RubyOnRails
[16:38:15] creature: has joined #RubyOnRails
[16:39:51] triptec: has joined #RubyOnRails
[16:40:14] stannard: has joined #RubyOnRails
[16:41:52] PedramT: has joined #RubyOnRails
[16:45:36] Rodya_: has joined #RubyOnRails
[16:45:46] DragonPunch: has joined #RubyOnRails
[16:51:16] mikecmpbll: has joined #RubyOnRails
[16:52:44] Rodya_: has joined #RubyOnRails
[16:53:13] someish_: has joined #RubyOnRails
[16:53:34] IrishGringo: has joined #RubyOnRails
[16:53:35] ereslibre: has joined #RubyOnRails
[16:53:35] ereslibre: has joined #RubyOnRails
[16:55:27] drupald: has joined #RubyOnRails
[16:55:52] swav: has joined #RubyOnRails
[16:55:59] jtoy: has joined #RubyOnRails
[16:56:08] Depili: has joined #RubyOnRails
[16:56:30] Gm4n: has joined #RubyOnRails
[16:56:40] beilabs_: has joined #RubyOnRails
[16:57:48] FastJack_: has joined #RubyOnRails
[16:59:30] d0nn1e: has joined #RubyOnRails
[16:59:32] tomaw_: has joined #RubyOnRails
[16:59:45] Rixius|Alt: has joined #RubyOnRails
[17:00:41] triptec: has joined #RubyOnRails
[17:01:08] anna`: has joined #RubyOnRails
[17:03:04] fox_mulder_cp: has joined #RubyOnRails
[17:04:06] mdw: has joined #RubyOnRails
[17:06:57] bmf: has joined #RubyOnRails
[17:07:08] mdw7: has joined #RubyOnRails
[17:08:16] wenchenx_: has joined #RubyOnRails
[17:09:46] petor: has joined #RubyOnRails
[17:10:18] markelite: has joined #RubyOnRails
[17:17:32] arathald: has joined #RubyOnRails
[17:19:00] dionysus69: has joined #RubyOnRails
[17:23:44] Ducky-: has joined #RubyOnRails
[17:24:25] tvon: has joined #RubyOnRails
[17:25:14] mwlang: has joined #RubyOnRails
[17:25:23] Cervajz: has joined #RubyOnRails
[17:27:13] ql6wlld: has joined #RubyOnRails
[17:29:49] smoitra: has joined #RubyOnRails
[17:30:09] sarink: has joined #RubyOnRails
[17:32:09] jtong: has joined #RubyOnRails
[17:37:02] stannard: has joined #RubyOnRails
[17:38:46] djbkd: has joined #RubyOnRails
[17:39:49] Puffball: has joined #RubyOnRails
[17:44:36] baweaver: has joined #RubyOnRails
[17:46:02] krz: has joined #RubyOnRails
[17:46:51] Rodya_: has joined #RubyOnRails
[17:50:11] markelite: has joined #RubyOnRails
[17:53:16] Rodya_: has joined #RubyOnRails
[17:55:36] mbreedlove: has joined #RubyOnRails
[17:58:20] bauerbob: has joined #RubyOnRails
[17:59:37] PedramT: has joined #RubyOnRails
[18:00:17] bauerbob: hi. some of my models don’t trigger the callbacks. i tried after_commit, after_save. how do i find out why?
[18:00:33] sandelius: has joined #RubyOnRails
[18:00:49] petor: has joined #RubyOnRails
[18:00:53] bauerbob: can i inspect the class? what do i need to look for?
[18:02:20] robbyoconnor: has joined #RubyOnRails
[18:03:00] Graphettion: has joined #RubyOnRails
[18:04:15] ponzii: has joined #RubyOnRails
[18:04:29] beilabs: has joined #RubyOnRails
[18:05:21] ponzii: How do I express this Pg sql in Active Record: to_char(eventdate,'DD Mon YYYY') as eventdate
[18:05:26] sarink: has joined #RubyOnRails
[18:07:50] constantinexvi: has joined #RubyOnRails
[18:07:54] LateralOctober: has joined #RubyOnRails
[18:08:10] tildes: bauerbob: how do you know they are not called?
[18:08:14] Shidash: has joined #RubyOnRails
[18:08:15] Radar: has joined #RubyOnRails
[18:09:20] flashpoint9: has joined #RubyOnRails
[18:09:45] bauerbob: tildes: they trigger a worker, which will do another update in the database, an update to a counter. but the counter remains the same
[18:10:17] tildes: bauerbob: ok so the behaviour is not what is expected
[18:10:32] tildes: bauerbob: I would still seek to first verify, if they are called or not.
[18:10:48] tildes: bauerbob: it could be they are called, but something within the method is not working as expected
[18:10:54] Guest12: has joined #RubyOnRails
[18:10:58] tildes: and if this is the case, it's a better starting point already
[18:11:10] bauerbob: shouldn’t i get an error in that case? there’s no error in the development.log
[18:11:21] tildes: bauerbob: not necessarily, depends a lot on your code
[18:11:48] tildes: bauerbob: it is possible to do unexpected things, or not do them, without exceptions, depending entirely on the methods you are using
[18:11:51] bauerbob: okay… so if i only do a “puts ‘you triggered me’” i should see that in the logfile, right?
[18:11:52] SteenJobs: has joined #RubyOnRails
[18:12:01] tildes: bauerbob: I would start right there
[18:12:35] Psy-Q: has joined #RubyOnRails
[18:12:38] arup_r: has joined #RubyOnRails
[18:14:39] szulak: has joined #RubyOnRails
[18:14:57] bauerbob: lol, you’re right, that’s it. the trigger works, so my worker seems to run into an error. unfortunately the error doesn’t appear in the logs. but at least i know where to search for the error now
[18:15:00] bauerbob: thank you!!!
[18:16:58] bronson: has joined #RubyOnRails
[18:17:08] abracadaniel: has joined #RubyOnRails
[18:17:47] tildes: bauerbob: you're welcome, happy to help
[18:18:13] tildes: bauerbob: you could try debugging with a gem called 'byebug'
[18:18:29] tildes: bauerbob: in case you're not using it yet :)
[18:19:03] tildes: it allows you to set a breakpoint in your code, check what are the current variables, if I remember correctly even change variables on the go, and continue execution step by step
[18:19:40] bauerbob: even in workers that run in the background? like sucker_punch?
[18:20:28] matthewd: has joined #RubyOnRails
[18:20:44] tildes: bauerbob: is there ruby code you are able to edit somewhere in there? if yes, you can introduce byebug
[18:20:51] Takumo: has joined #RubyOnRails
[18:20:51] Takumo: has joined #RubyOnRails
[18:21:18] bauerbob: oh… yes, okay, i’ll give it a try
[18:21:35] tildes: bauerbob: I hope I'm not promising too much here, but again, that's something I might try also
[18:21:57] tildes: bauerbob: you can also set up your own logger in your worker, and just write stuff in a file from the worker
[18:22:10] tildes: to get an idea of what is going on
[18:22:21] tildes: Now, if this is not helpful, then you'll probably need to share code :)
[18:22:40] tildes: (which of course can be a good idea in any case)
[18:25:01] macsteps: has joined #RubyOnRails
[18:25:46] PedramT: has joined #RubyOnRails
[18:25:53] bauerbob_: has joined #RubyOnRails
[18:26:03] bauerbob_: re. what i wanted to say is: looks like i have to change the way i set my custom exception handler
[18:27:14] hervie_: has joined #RubyOnRails
[18:27:30] pawnbox: has joined #RubyOnRails
[18:28:09] smathy: has joined #RubyOnRails
[18:34:37] diegoaguilar: has joined #RubyOnRails
[18:36:50] auxbuss: has joined #RubyOnRails
[18:38:54] auxbuss: has left #RubyOnRails: ()
[18:39:40] mwlang: has joined #RubyOnRails
[18:40:55] pawnbox: has joined #RubyOnRails
[18:41:40] Cohedrin: has joined #RubyOnRails
[18:43:01] fox_mulder_cp: i need help with relations - in guides we have polymorhic relations, when one class(image) can be attached to user and product
[18:44:14] AmiMoench: has joined #RubyOnRails
[18:44:48] fox_mulder_cp: but i need attach to one class (customer) two different profiles - for personal user (one set of options) and for enterprise user (second set of options - financial data for invoices)
[18:45:45] fox_mulder_cp: relations, or jsonb set for postgresql?
[18:46:43] bruno-: has joined #RubyOnRails
[18:46:58] someish: I’m using devise’s confirmable module, and I’ve set it up so that when a user is created, they receive the confirmation email and are asked to enter a password after clicking the confirmation link. The weird thing is that the devise confirmable mailer is sending the raw token instead of the digested token. Also, I’m definitely using the @token variable in the mailer view as everything I’ve read on google suggests.
[18:47:50] bmf: has joined #RubyOnRails
[18:50:54] MEATCHICKEN: has joined #RubyOnRails
[18:51:04] MEATCHICKEN: Is there a way to access (this) in a js.erb file?
[18:51:18] MEATCHICKEN: I need to append to a certain div but it has to be scoped
[18:55:00] RegulationD: has joined #RubyOnRails
[18:55:14] petor: has joined #RubyOnRails
[18:55:29] pipework: meatchicken: Generally I just send down JSON where the key is the CSS selector and the value is that HTML that you've ran through ERB.
[18:56:33] pipework: Why might you need dynamic JS? I generally suggest to avoid dynamic JS. What are you doing exactly? I don't have all the history if you already described what you're doing.
[18:57:29] dionysus69: has joined #RubyOnRails
[18:58:26] MEATCHICKEN: pipework, that's a good idea. you should write that into the docs somewhere
[18:58:39] MEATCHICKEN: Using dynamic js to take advantage of built-in remote forms
[18:58:44] mwlang: has joined #RubyOnRails
[18:59:20] armyriad: has joined #RubyOnRails
[18:59:49] arup_r: has joined #RubyOnRails
[19:01:02] IrishGringo: has joined #RubyOnRails
[19:05:07] universa1_: has joined #RubyOnRails
[19:05:29] mwlang: has joined #RubyOnRails
[19:06:52] enkristoffer: Is it possible to use HTML tags in Rails' form labels? Something like this, except working :P <%= f.label :cover, '<strong>test</strong>' %>
[19:07:49] arup_r: enkristoffer: <%= f.label :cover, '<strong>test</strong>'.html_safe %>
[19:07:50] pipework: enkristoffer: Did you even google it?
[19:08:11] pipework: I like the block a lot more.
[19:08:38] enkristoffer: I tried http://guides.rubyonrails.org/form_helpers.html :/
[19:08:54] pipework: enkristoffer: !g rails html in label
[19:09:09] mwlang: has joined #RubyOnRails
[19:10:29] shilon: has joined #RubyOnRails
[19:10:51] PedramT: has joined #RubyOnRails
[19:10:54] shilon: has joined #RubyOnRails
[19:11:11] mwlang: has joined #RubyOnRails
[19:11:36] bruno-_: has joined #RubyOnRails
[19:12:35] Shilon_: has joined #RubyOnRails
[19:13:02] jonathanwallace1: has joined #RubyOnRails
[19:16:00] twilling: has joined #RubyOnRails
[19:18:38] smathy: fox_mulder_cp, why not just a polymorphic association for customer -> two different profiles too?
[19:19:38] fox_mulder_cp: smathy: ah, can u get me example, please?
[19:19:47] markfletcher: has joined #RubyOnRails
[19:20:12] smathy: fox_mulder_cp, exactly the same as you'd have in your image -> user/product situation. Something like: belongs_to :profile, polymorphic: true
[19:21:09] mwlang: has joined #RubyOnRails
[19:22:15] fox_mulder_cp: smathy: oh, it's hardly for me ( as i see, that is a reverse situation for one image for user and product
[19:23:08] fox_mulder_cp: becouse 2 different classes must mapped to one class. or i'm idiot :(
[19:23:35] mhenrixon: has joined #RubyOnRails
[19:23:47] Thai_: has joined #RubyOnRails
[19:24:44] Regulati_: has joined #RubyOnRails
[19:24:53] smathy: fox_mulder_cp, well, assuming that the example from the guides you're talking about is actually this one: http://guides.rubyonrails.org/association_basics.html#polymorphic-associations So not (as you said) from image to user/product but from picture to employee/product, then this is exactly the same as you'd have with your customer -> personal_profile/enterprise_profile.
[19:25:33] mdw: has joined #RubyOnRails
[19:26:02] lemur: has joined #RubyOnRails
[19:26:45] twilling_: has joined #RubyOnRails
[19:27:20] failasLStoRM: has joined #RubyOnRails
[19:27:26] mikecmpb_: has joined #RubyOnRails
[19:27:52] fox_mulder_cp: smathy: hm. in my app client is primary class, and how to map two different classes into one virtual class, as 'imageable' from guides?
[19:28:02] edward_: has joined #RubyOnRails
[19:28:06] dionysus69: has joined #RubyOnRails
[19:28:11] krzkrz: has joined #RubyOnRails
[19:28:13] Psy-Q: has joined #RubyOnRails
[19:28:15] IrishGringo_: has joined #RubyOnRails
[19:28:25] fox_mulder_cp: or i'm really can't know this ideology (
[19:29:17] smathy: fox_mulder_cp, seriously if `belongs_to :profile, polymorphic: true` didn't immediately set you on the right course then yes, I think this ideology is beyond you.
[19:29:38] zz_timnovinger: has joined #RubyOnRails
[19:31:08] Depili: has joined #RubyOnRails
[19:31:50] fox_mulder_cp: smathy: hm. now i try to use jsonb for store this data. now it's easyable for me
[19:33:53] zpe: has joined #RubyOnRails
[19:34:01] ekinmur: has joined #RubyOnRails
[19:34:03] jonathanwallace1: has joined #RubyOnRails
[19:35:40] bruno-: has joined #RubyOnRails
[19:35:44] LateralOctober: has joined #RubyOnRails
[19:37:15] tomaw: has joined #RubyOnRails
[19:38:11] drupald: has joined #RubyOnRails
[19:42:34] jonathanwallace1: has joined #RubyOnRails
[19:44:22] Shidash: has joined #RubyOnRails
[19:44:52] FailBit: has joined #RubyOnRails
[19:44:56] FailBit: I feel the need, the need for speed
[19:45:11] FailBit: ACTION says while crashing his appserver and annoying users
[19:45:37] netzfisch: has joined #RubyOnRails
[19:46:12] czerasz2: has joined #RubyOnRails
[19:47:17] hxegon: has joined #RubyOnRails
[19:53:16] loglaunch: has joined #RubyOnRails
[19:55:51] zz_timnovinger: has joined #RubyOnRails
[19:55:56] russt: has joined #RubyOnRails
[20:00:13] drupald: has joined #RubyOnRails
[20:03:11] netzfisch: has joined #RubyOnRails
[20:04:12] zz_timnovinger: has joined #RubyOnRails
[20:05:25] superlou: has joined #RubyOnRails
[20:06:17] leftpad: has joined #RubyOnRails
[20:06:59] mice: has joined #RubyOnRails
[20:08:44] Yeomra: has joined #RubyOnRails
[20:09:07] dionysus69: has joined #RubyOnRails
[20:10:37] mdw: has joined #RubyOnRails
[20:12:28] zpe: has joined #RubyOnRails
[20:12:57] tamole: has joined #RubyOnRails
[20:13:10] jonathanwallace1: has joined #RubyOnRails
[20:16:07] hevn92: has joined #RubyOnRails
[20:21:09] augcesar: has joined #RubyOnRails
[20:22:56] shilon: has joined #RubyOnRails
[20:23:13] zz_timnovinger: has joined #RubyOnRails
[20:25:46] ctrlrsf: has joined #RubyOnRails
[20:25:47] ctrlrsf: has joined #RubyOnRails
[20:26:25] Radar: has joined #RubyOnRails
[20:26:40] ddv: has joined #RubyOnRails
[20:27:14] FastJack: has joined #RubyOnRails
[20:28:22] Rixius: has joined #RubyOnRails
[20:28:28] bookies: Can anyone take a look here? http://stackoverflow.com/questions/36677284
[20:29:06] SteenJobs: has joined #RubyOnRails
[20:29:30] Radar: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[20:29:34] Radar: has joined #RubyOnRails
[20:30:13] mentero: has joined #RubyOnRails
[20:33:14] mosez: has joined #RubyOnRails
[20:33:43] arup_r: has joined #RubyOnRails
[20:33:49] moei: has joined #RubyOnRails
[20:36:06] stannard: has joined #RubyOnRails
[20:38:24] bookies: has left #RubyOnRails: ()
[20:39:07] railser: has joined #RubyOnRails
[20:43:01] smathy: bookies, answered.
[20:44:58] diegoviola: has joined #RubyOnRails
[20:45:15] chaas: has joined #RubyOnRails
[20:46:30] FernandoBasso: has joined #RubyOnRails
[20:48:30] macsteps: has joined #RubyOnRails
[20:48:32] noah256: has joined #RubyOnRails
[20:49:01] Dfoolz: has joined #RubyOnRails
[20:49:01] ruby-lang593: has joined #RubyOnRails
[20:49:24] jutah: has joined #RubyOnRails
[20:51:37] armyriad: has joined #RubyOnRails
[20:52:29] fox_mulder_cp: has joined #RubyOnRails
[20:53:29] fox_mulder_cp: i have a some properties in jsonb, i can view it.
[20:53:43] fox_mulder_cp: but how to edit and save in from my form?
[20:55:05] yfeldblum: has joined #RubyOnRails
[20:56:50] delgiudices: has joined #RubyOnRails
[20:57:29] ur5us: has joined #RubyOnRails
[20:57:42] scott_o: has joined #RubyOnRails
[20:58:50] stannard: has joined #RubyOnRails
[21:01:40] flashpoint9: has joined #RubyOnRails
[21:02:03] havenwood: has joined #RubyOnRails
[21:03:27] webdestroya: has joined #RubyOnRails
[21:04:27] alexblom: has joined #RubyOnRails
[21:04:56] PedramT: has joined #RubyOnRails
[21:08:30] Nuck: has joined #RubyOnRails
[21:12:36] nettoweb: has joined #RubyOnRails
[21:14:06] Devalo: has joined #RubyOnRails
[21:15:58] Mia: has joined #RubyOnRails
[21:15:58] Mia: has joined #RubyOnRails
[21:17:26] Psy-Q: has joined #RubyOnRails
[21:19:10] Palsson: has joined #RubyOnRails
[21:20:12] delgiudices: has joined #RubyOnRails
[21:22:12] ensyde: has joined #RubyOnRails
[21:22:29] flashpoint9: has joined #RubyOnRails
[21:23:30] SteenJobs: has joined #RubyOnRails
[21:24:16] kristofferR: has joined #RubyOnRails
[21:26:01] helpa-bot: has joined #RubyOnRails
[21:26:03] MuffinPimp_: has joined #RubyOnRails
[21:27:14] pwnd_nsfw: do what fox_mulder_cp
[21:27:17] Rixius|Alt: has joined #RubyOnRails
[21:27:44] JoshL_: has joined #RubyOnRails
[21:28:04] dgncn: has joined #RubyOnRails
[21:28:44] ereslibre_laptop: has joined #RubyOnRails
[21:28:55] SteenJobs: hey guys - what’s the best way to solve the issue of strong params returning nil when update is called but no value has been submitted?
[21:29:06] SteenJobs: totally posted that in the iphone dev channel. whoops
[21:29:20] fernandomm: has joined #RubyOnRails
[21:29:34] alias-ls-to-rm: has joined #RubyOnRails
[21:29:56] maqr_: has joined #RubyOnRails
[21:30:01] smathy: Strong params returning nil when no values are submitted doesn't sound like an issue to me, sounds like expected operation.
[21:30:03] jetpack_joe: has joined #RubyOnRails
[21:30:14] chaas_: has joined #RubyOnRails
[21:31:00] SteenJobs: smathy: generally yea - thing is, we have an avatar for the profile model, but the upload is its own form. and its optional to upload during onboarding, so if the user continues without uploading an image, there are no params[:profile]
[21:31:19] Cervajz_: has joined #RubyOnRails
[21:31:53] chitech_: has joined #RubyOnRails
[21:31:55] sirecote_: has joined #RubyOnRails
[21:32:15] mdw7: has joined #RubyOnRails
[21:32:47] fox_muld1r_cp: has joined #RubyOnRails
[21:33:33] jto: has joined #RubyOnRails
[21:33:34] beilabs: has joined #RubyOnRails
[21:33:56] swav_: has joined #RubyOnRails
[21:34:09] Takumo: has joined #RubyOnRails
[21:34:10] Takumo: has joined #RubyOnRails
[21:34:12] Depili_: has joined #RubyOnRails
[21:34:15] SteenJobs: smathy: so i can make it hacky by adding conditionals when updating the avatar on the profile model, but using strong params keeps things nice and neat
[21:34:21] vircung__: has joined #RubyOnRails
[21:34:23] baweaver: has joined #RubyOnRails
[21:34:45] constantinexvi_: has joined #RubyOnRails
[21:34:46] bodie__: has joined #RubyOnRails
[21:34:59] yfeldblum: has joined #RubyOnRails
[21:35:40] context-: has joined #RubyOnRails
[21:37:04] Palsson: has joined #RubyOnRails
[21:38:11] nibbo_: has joined #RubyOnRails
[21:39:29] d0nn1e_: has joined #RubyOnRails
[21:41:41] Yeomra_: has joined #RubyOnRails
[21:41:49] bruno-: has joined #RubyOnRails
[21:42:03] smathy: SteenJobs, if you have two separate forms then there are two separate submissions to your controller, and so I'm not sure how you think them uploading their profile in one form is going to impact the params sent in the other form.
[21:42:25] helpa: has joined #RubyOnRails
[21:42:32] mice: has joined #RubyOnRails
[21:42:59] SteenJobs: smathy: it’s a multi-step form, so each step corresponds to different params - the avatar view is the only view that allows no params to be passed. all steps post to the same controller action.
[21:43:15] moei: has joined #RubyOnRails
[21:43:40] SteenJobs: smathy: although there is a placeholder image, so the solution may be to just add the placeholder image in params and udate the profile pic that way, should they not provide an image, rather than hardcoding the placeholder image in the frontend when a user is lacking a profile pic
[21:43:46] fox_muld1r_cp: SteenJobs: nestedform?
[21:44:32] SteenJobs: fox_muld1r_cp: nope. and the whole multi step process is built and solid. and each step has its own validations. my only issue is the avatar view because it’s possible to submit the POST req with no params
[21:45:19] fox_muld1r_cp: SteenJobs: def create .. define profile.image = '/path/to/placeholder' if profile.image.nil? ??
[21:45:38] fox_muld1r_cp: i'm intrested in multisteps form too..
[21:45:46] fox_muld1r_cp: gem or something else?
[21:45:55] SteenJobs: fox_muld1r_cp: two options
[21:46:01] SteenJobs: one, there’s the gem Wicked
[21:46:15] SteenJobs: but i needed a bit more flexibility, and i found some dude who wrote an excellent service for handling multi step forms
[21:46:26] SteenJobs: lemme find it, one sec
[21:46:32] Radar: You could build them using the Reform gem too.
[21:47:00] SteenJobs: https://github.com/nerdcave/rails-multistep-form
[21:47:01] smathy: SteenJobs, you should probably ask that dude then ;)
[21:47:09] SteenJobs: nothing to do with the multistep form!!!
[21:47:28] fox_muld1r_cp: SteenJobs: wicked is a pdf gem, or i mistake?
[21:47:30] SteenJobs: like nothing to do with the implementation
[21:47:35] smathy: SteenJobs, strong params wasn't designed to work with these sorts of workflows, so when you use them you should expect them to provide solutions for strong_params.
[21:47:43] SteenJobs: yea that’s what i’m realizing
[21:47:52] SteenJobs: fox_muld1r_cp: https://github.com/schneems/wicked
[21:48:34] Shidash: has joined #RubyOnRails
[21:48:43] SteenJobs: smathy: well the secret is, the profile pic upload is kind’ve its own thing, its not really part of the multi step form technically, since i route to that view from other areas of the app - but yea, i’ll come up with a solution
[21:49:02] SteenJobs: alhtough i really like that dude’s implementation - does he/she hang out here ever?
[21:49:08] gbailey: has joined #RubyOnRails
[21:49:09] SteenJobs: “nerd + tab
[21:49:12] SteenJobs: didn’t show anything
[21:53:28] fox_muld1r_cp: SteenJobs: oh. very, very good. i try to it, thamnks
[21:54:13] dmcc: has joined #RubyOnRails
[21:55:19] triptec: has joined #RubyOnRails
[21:55:28] stannard: has joined #RubyOnRails
[21:57:11] Cohedrin_: has joined #RubyOnRails
[22:00:29] mice: fox_mulder_cp: i dunno what you mean by create media class
[22:00:30] meoblast001: has joined #RubyOnRails
[22:00:42] rubyonrailed: has joined #RubyOnRails
[22:01:34] dezull: has joined #RubyOnRails
[22:03:26] cmhobbs: has joined #RubyOnRails
[22:04:11] cmhobbs: hi! i'm upgrading from rails 3.2 to 4.0 and i've put activerecord-session_store and protected_attributes into my Gemfile, however my tests are breaking because it says i need to include those in my Gemfile
[22:04:13] hayden_: has joined #RubyOnRails
[22:04:20] cmhobbs: i've already bundled and i see them in my Gemfile.lock. what could i be missing?
[22:08:03] cmhobbs: in fact, it seems like most of my gems aren't being required for some reason
[22:09:30] ql6wlld: has joined #RubyOnRails
[22:10:24] smathy: cmhobbs, spring maybe?
[22:10:50] triptec: has joined #RubyOnRails
[22:11:15] cmhobbs: i'm not familiar with spring
[22:11:23] iwada: has joined #RubyOnRails
[22:11:55] macsteps: has joined #RubyOnRails
[22:12:36] cmhobbs: i'll look it up
[22:13:12] mice: cmhobbs: what happens when you run bundle install as user, not root
[22:13:33] cmhobbs: mice: it bundles
[22:14:04] jetpack_joe: has joined #RubyOnRails
[22:14:11] cmhobbs: no warnings or anything
[22:14:22] mice: you're using rvm?
[22:14:36] cmhobbs: i've had a half dozen gems i've required manually at the top of config/environments/test.rb just to see how far it's affected
[22:14:39] cmhobbs: no, chruby
[22:14:41] cmhobbs: and chgems
[22:16:07] hyperdrive: has joined #RubyOnRails
[22:16:22] cmhobbs: it just seems like most of the gems aren't being loaded
[22:16:35] smathy: cmhobbs, and you run your test as: `bundle exec rake test` ?
[22:16:48] cmhobbs: no, `bundle exec rspec`
[22:17:02] smathy: ...ok, same effect.
[22:17:17] smathy: ...so yeah, spring would be my main suspect there.
[22:17:17] cmhobbs: it'll complain about some uninitialized constant, i'll add a require line for the gem that provides that constant to the test environment, and it'll complain about a new uninitialized constant
[22:17:39] cmhobbs: is spring a gem?
[22:17:45] cmhobbs: if so, it's not in my Gemfile or Gemfile.lock
[22:17:55] cmhobbs: or is it built into rails?
[22:18:17] smathy: No, it's a separate gem, just check your running processes for it.
[22:18:17] Radar: It's a gem. Should be in your Gemfile.
[22:18:29] Radar: cmhobbs: Show us `config/application.rb` please.
[22:20:50] cmhobbs: http://paste.lisp.org/+6Q40
[22:22:01] markelite: has joined #RubyOnRails
[22:22:55] smathy: cmhobbs, your Bundler.require lines are commented out.
[22:23:03] cmhobbs: well, i'm dumb as hell
[22:23:03] waseem_: has joined #RubyOnRails
[22:23:09] P4Titan: has joined #RubyOnRails
[22:23:13] cmhobbs: and sorry, i've been at this for too long
[22:23:13] P4Titan: has left #RubyOnRails: ()
[22:23:21] smathy: Happens to us all.
[22:23:47] dcope: has joined #RubyOnRails
[22:24:22] melonstorm: has joined #RubyOnRails
[22:26:05] \13k: has joined #RubyOnRails
[22:26:07] chocoelho: has joined #RubyOnRails
[22:27:46] cmhobbs: has left #RubyOnRails: ("Leaving")
[22:30:11] davidcelis: has joined #RubyOnRails
[22:30:11] davidcelis: has joined #RubyOnRails
[22:35:13] triptec: has joined #RubyOnRails
[22:39:15] Cohedrin: has joined #RubyOnRails
[22:40:21] armyriad: has joined #RubyOnRails
[22:41:28] Radar: ACTION is going to need to buy another walk if he wants to continue to chalk things up
[22:44:28] nettoweb: has joined #RubyOnRails
[22:44:46] macsteps: has joined #RubyOnRails
[22:45:13] SteenJobs: smathy: ended up creating a separate update_avatar action, and using strong params with only permit and no require, so no nil if left blank
[22:49:30] dezull: has joined #RubyOnRails
[22:49:33] wethu: has joined #RubyOnRails
[22:49:34] jetpack_joe: has joined #RubyOnRails
[22:49:50] EasyCo: has joined #RubyOnRails
[22:51:26] armyriad: has joined #RubyOnRails
[22:53:39] IrishGringo: has joined #RubyOnRails
[22:55:30] delgiudices: has joined #RubyOnRails
[22:59:06] dezull: has joined #RubyOnRails
[22:59:07] newjersey: has joined #RubyOnRails
[22:59:16] armyriad: has joined #RubyOnRails
[22:59:19] smathy: SteenJobs, sounds good.
[23:01:16] kitallis: has joined #RubyOnRails
[23:01:22] hxegon: has joined #RubyOnRails
[23:06:52] SteenJobs: smathy: stays truer to strong params too
[23:08:44] jetpack_joe: has joined #RubyOnRails
[23:13:51] jetpack_joe: has joined #RubyOnRails
[23:15:21] shilon: has joined #RubyOnRails
[23:17:17] n008f4g_: has joined #RubyOnRails
[23:17:36] mice: has joined #RubyOnRails
[23:17:36] macsteps: has joined #RubyOnRails
[23:17:54] quazimodo: has joined #RubyOnRails
[23:17:55] quazimod1: has joined #RubyOnRails
[23:26:04] Haydos: has joined #RubyOnRails
[23:43:05] wethu: has joined #RubyOnRails
[23:43:34] jetpack_joe: has joined #RubyOnRails
[23:44:56] hxegon: has joined #RubyOnRails
[23:49:51] IrishGringo: has joined #RubyOnRails
[23:55:36] brent__: has joined #RubyOnRails
[23:57:08] enitiz: has joined #RubyOnRails