« Back to channel list

#RubyOnRails - 07 May 2016

« Back 1 day Forward 1 day »
[00:00:46] ravi_sun66: has joined #RubyOnRails
[00:08:13] King_Rex: has joined #RubyOnRails
[00:08:55] fryguy: has joined #RubyOnRails
[00:09:16] chouhoul_: has joined #RubyOnRails
[00:12:31] xlegoman: has joined #RubyOnRails
[00:22:05] FooMunki: has joined #RubyOnRails
[00:23:09] SteenJobs: has joined #RubyOnRails
[00:23:43] htmldrum: has joined #RubyOnRails
[00:25:11] roamingdog: has joined #RubyOnRails
[00:25:50] bkeys: has joined #RubyOnRails
[00:26:06] deathsbreed: has joined #RubyOnRails
[00:26:08] bkeys: Oh god I am getting railed by rubies someone help
[00:26:26] crdpink: has joined #RubyOnRails
[00:27:27] jenrzzz: has joined #RubyOnRails
[00:29:16] fryguy: bkeys: go ahead and ask a qeustion
[00:34:29] pawnbox: has joined #RubyOnRails
[00:36:28] chouhoulis: has joined #RubyOnRails
[00:40:10] triptec: has joined #RubyOnRails
[00:40:43] dikaio: has joined #RubyOnRails
[00:42:28] roamingd_: has joined #RubyOnRails
[00:43:18] deathsbreed: has left #RubyOnRails: ()
[00:47:07] ornerymoose: has joined #RubyOnRails
[00:50:59] SteenJobs: has joined #RubyOnRails
[00:53:01] RegulationD: has joined #RubyOnRails
[00:55:10] pawnbox: has joined #RubyOnRails
[00:55:17] stardiviner: has joined #RubyOnRails
[00:55:45] triptec: has joined #RubyOnRails
[00:59:04] ftj: has joined #RubyOnRails
[01:02:08] kies: has joined #RubyOnRails
[01:02:45] moeabdol: has joined #RubyOnRails
[01:04:29] hahuang65: has joined #RubyOnRails
[01:09:47] dikaio: has joined #RubyOnRails
[01:12:34] SteenJobs: has joined #RubyOnRails
[01:14:27] GriffinHeart: has joined #RubyOnRails
[01:17:12] supernov_a: has joined #RubyOnRails
[01:17:17] supernov_a2: has joined #RubyOnRails
[01:19:33] triptec: has joined #RubyOnRails
[01:22:50] King_Rex: has joined #RubyOnRails
[01:24:14] htmldrum: has joined #RubyOnRails
[01:30:40] ravi_sun66: has joined #RubyOnRails
[01:30:51] bruce_lee: has joined #RubyOnRails
[01:30:52] pawnbox: has joined #RubyOnRails
[01:31:06] one_zero: has joined #RubyOnRails
[01:35:06] triptec: has joined #RubyOnRails
[01:42:14] ravi_sun_: has joined #RubyOnRails
[01:56:55] ftj: has joined #RubyOnRails
[02:01:49] jenrzzz: has joined #RubyOnRails
[02:01:49] jenrzzz: has joined #RubyOnRails
[02:02:18] roamingdog: has joined #RubyOnRails
[02:05:42] roamingdog: has joined #RubyOnRails
[02:05:45] ornerymoose: has joined #RubyOnRails
[02:06:54] pawnbox: has joined #RubyOnRails
[02:10:23] supernov_a: has joined #RubyOnRails
[02:10:31] sevenseacat: has joined #RubyOnRails
[02:11:10] htmldrum: has joined #RubyOnRails
[02:11:29] roamingdog: has joined #RubyOnRails
[02:11:39] supernov_a2: has joined #RubyOnRails
[02:16:26] ravi_sun66: has joined #RubyOnRails
[02:17:00] dopamean_: has joined #RubyOnRails
[02:20:34] dopamean_: has joined #RubyOnRails
[02:24:01] dopamean_: has joined #RubyOnRails
[02:26:20] dopamean_: has joined #RubyOnRails
[02:30:10] jenrzzz: has joined #RubyOnRails
[02:30:56] atrius: has joined #RubyOnRails
[02:31:09] roamingdog: has joined #RubyOnRails
[02:35:18] roamingd_: has joined #RubyOnRails
[02:40:13] maletor2: has joined #RubyOnRails
[02:41:09] adre: has joined #RubyOnRails
[02:41:31] macsteps: has joined #RubyOnRails
[02:42:52] pawnbox: has joined #RubyOnRails
[02:49:01] ornerymoose: has joined #RubyOnRails
[02:50:49] moeabdol: has joined #RubyOnRails
[02:54:29] RegulationD: has joined #RubyOnRails
[02:54:36] stardiviner: has joined #RubyOnRails
[02:55:49] one_zero: has joined #RubyOnRails
[02:58:05] lxsameer: has joined #RubyOnRails
[02:58:10] xall: has joined #RubyOnRails
[03:05:12] hahuang65: has joined #RubyOnRails
[03:06:48] tildes_: has joined #RubyOnRails
[03:10:38] xcesariox: has joined #RubyOnRails
[03:16:24] braincrash: has joined #RubyOnRails
[03:18:55] pawnbox: has joined #RubyOnRails
[03:24:00] macsteps: has joined #RubyOnRails
[03:27:55] SteenJobs: has joined #RubyOnRails
[03:28:13] bkeys: has joined #RubyOnRails
[03:31:26] roamingdog: has joined #RubyOnRails
[03:42:14] maletor2: has joined #RubyOnRails
[03:44:20] zave: has joined #RubyOnRails
[03:45:39] dikaio: has joined #RubyOnRails
[03:50:12] htmldrum: has joined #RubyOnRails
[03:53:02] benlieb: has joined #RubyOnRails
[03:54:10] roamingd_: has left #RubyOnRails: ()
[03:54:11] roamingd_: has joined #RubyOnRails
[03:54:59] someish: has joined #RubyOnRails
[03:59:26] sneakerhax: has joined #RubyOnRails
[04:01:07] hahuang65: has joined #RubyOnRails
[04:03:43] StaticVoid: has joined #RubyOnRails
[04:13:35] SteenJobs: has joined #RubyOnRails
[04:14:29] pawnbox: has joined #RubyOnRails
[04:18:22] rickmasta: has joined #RubyOnRails
[04:19:58] supernov_a3: has joined #RubyOnRails
[04:24:22] macsteps: has joined #RubyOnRails
[04:26:59] hahuang65: has joined #RubyOnRails
[04:29:29] The_Phoenix: has joined #RubyOnRails
[04:29:42] mrgreenfur: has joined #RubyOnRails
[04:32:32] dopie: has joined #RubyOnRails
[04:33:12] i: has joined #RubyOnRails
[04:35:24] su_pernov_a: has joined #RubyOnRails
[04:37:17] cd83x: has joined #RubyOnRails
[04:39:07] moeabdol: has joined #RubyOnRails
[04:41:02] azor: has joined #RubyOnRails
[04:41:05] azor: has left #RubyOnRails: ("WeeChat 1.4")
[04:42:59] maletor2: has joined #RubyOnRails
[04:44:14] SPYGAME: has joined #RubyOnRails
[04:51:36] hahuang65: has joined #RubyOnRails
[05:00:54] rickmasta: has joined #RubyOnRails
[05:03:36] Guest43764: has left #RubyOnRails: ("Leaving")
[05:06:47] Rubie: has joined #RubyOnRails
[05:06:59] Devalo: has joined #RubyOnRails
[05:08:35] Rubie: hi all: can you order models by nested attributes....something like User.order(planet.continent.state.zip) which would give me back a list of users ordered by their zip code
[05:09:41] ravi_sun66: has joined #RubyOnRails
[05:11:54] Ropeney: rubie, join on the association then order('blahs.zip')
[05:12:40] Rubie: ropeney: thinaks!
[05:13:41] Rubie: ropeney: what about nested attributes like User.order(planet[:continent][:state][:zip]) does this work too?
[05:14:04] Rubie: how could i get that to work
[05:14:25] Ropeney: by joining on the association then ordering it
[05:15:54] Rubie: but in the second case zip is just a nested parameter inside planet
[05:16:01] Rubie: its not an association
[05:16:22] Ropeney: I can't see your code, so I don't really know what anything is that your providing :(
[05:16:31] roamingdog: has joined #RubyOnRails
[05:17:19] Ropeney: gist your schema.rb
[05:21:46] ravi_sun66: has joined #RubyOnRails
[05:22:27] eljimmy: has joined #RubyOnRails
[05:23:07] Rubie: ropeney: https://gist.github.com/anonymous/306bbb227b33332ed825153df64e1cff
[05:23:29] Ropeney: your schema...
[05:23:36] Rubie: i dont have one
[05:24:26] Rubie: i know i can do Cat.order(:updated_at)
[05:24:36] Ropeney: what db are you using?
[05:25:17] Ropeney: db/schema.rb
[05:25:37] pawnbox: has joined #RubyOnRails
[05:25:38] Rubie: i can't share the schema
[05:25:46] quazimodo: has joined #RubyOnRails
[05:25:53] Rubie: does it matter for this example
[05:26:00] Ropeney: yes, so I can tell you the scope
[05:26:49] ravi_sun66: has joined #RubyOnRails
[05:27:01] Rubie: i just want to know if ican order by the attributes that are already on the object itself
[05:27:21] Ropeney: yes you can
[05:27:53] Rubie: ok thanks
[05:28:20] Ropeney: rubie, http://guides.rubyonrails.org/active_record_querying.html#ordering
[05:28:23] Ropeney: goodluck :)
[05:31:40] bronson: has joined #RubyOnRails
[05:32:58] azor: has joined #RubyOnRails
[05:33:51] tknz: has joined #RubyOnRails
[05:36:24] azor: has left #RubyOnRails: ("WeeChat 1.4")
[05:39:45] njero: has joined #RubyOnRails
[05:41:33] azor: has joined #RubyOnRails
[05:43:29] cd83xx: has joined #RubyOnRails
[05:43:48] maletor2: has joined #RubyOnRails
[05:44:25] tildes_: has joined #RubyOnRails
[05:44:37] ravi_sun66: has joined #RubyOnRails
[05:45:07] dikaio: has joined #RubyOnRails
[05:47:07] cd83xx: has left #RubyOnRails: ()
[05:49:45] cd83x: has joined #RubyOnRails
[05:52:10] hahuang65: has joined #RubyOnRails
[05:56:56] Devalo: has joined #RubyOnRails
[05:56:56] moeabdol: has joined #RubyOnRails
[06:00:47] idefine: has joined #RubyOnRails
[06:08:25] ur5us: has joined #RubyOnRails
[06:11:00] srinidhi: has joined #RubyOnRails
[06:11:43] Yeomra: has joined #RubyOnRails
[06:12:31] bruno-: has joined #RubyOnRails
[06:22:09] sami: has joined #RubyOnRails
[06:34:36] duderonomy: has joined #RubyOnRails
[06:36:24] pawnbox: has joined #RubyOnRails
[06:37:35] sp1rs: has joined #RubyOnRails
[06:40:56] quazimodo: has joined #RubyOnRails
[06:44:36] maletor2: has joined #RubyOnRails
[06:45:40] jiblet: has left #RubyOnRails: ()
[06:46:47] dikaio: has joined #RubyOnRails
[06:47:35] srinidhi: has joined #RubyOnRails
[06:48:05] ur5us: has joined #RubyOnRails
[06:52:16] sp1rs: has joined #RubyOnRails
[06:55:55] RegulationD: has joined #RubyOnRails
[06:57:44] moeabdol: has joined #RubyOnRails
[06:57:52] benlieb: has joined #RubyOnRails
[06:59:14] ravi_sun66: has joined #RubyOnRails
[07:02:14] dionysus69: has joined #RubyOnRails
[07:11:23] ravi_sun66: any help on azure storage?
[07:14:25] bruno-: has joined #RubyOnRails
[07:15:48] triptec: has joined #RubyOnRails
[07:17:59] yfeldblum: has joined #RubyOnRails
[07:21:19] gambl0re: has joined #RubyOnRails
[07:22:56] njero: has joined #RubyOnRails
[07:25:18] DoctorMonocular: has joined #RubyOnRails
[07:31:30] rafaelfranca: has joined #RubyOnRails
[07:31:30] rafaelfranca: has joined #RubyOnRails
[07:32:07] bronson: has joined #RubyOnRails
[07:35:33] alfie_max15: has joined #RubyOnRails
[07:43:14] emachnic: has joined #RubyOnRails
[07:43:36] neanderslob: has joined #RubyOnRails
[07:45:22] maletor2: has joined #RubyOnRails
[07:45:34] moeabdol: has joined #RubyOnRails
[07:50:00] pawnbox: has joined #RubyOnRails
[07:53:38] Devalo: has joined #RubyOnRails
[07:54:04] SteenJobs: has joined #RubyOnRails
[07:55:29] sp1rs: has joined #RubyOnRails
[08:01:54] DoctorMonocular: has joined #RubyOnRails
[08:03:37] alfie_max15: when i do `Time.now.strftime("%Z")` the output is `IST`
[08:04:10] alfie_max15: but when i do the same with DateTime like : `DateTime.now.strftime("%Z")` i get the offset like `+05:30`
[08:04:28] alfie_max15: how can i get the Time Zone itself when using DateTime objects
[08:05:46] alfie_max15: i'm looking for some way other than to use `.to_time` on the DateTime object
[08:06:40] sp1rs: has joined #RubyOnRails
[08:07:04] sp1rs: has joined #RubyOnRails
[08:10:18] sevenseacat: has joined #RubyOnRails
[08:11:02] ur5us: has joined #RubyOnRails
[08:14:45] bruno-: has joined #RubyOnRails
[08:15:18] darutoko: has joined #RubyOnRails
[08:17:39] arBmind: has joined #RubyOnRails
[08:22:06] wldcordeiro: has joined #RubyOnRails
[08:26:47] tens0r: has joined #RubyOnRails
[08:31:22] hahuang65: has joined #RubyOnRails
[08:33:18] moeabdol: has joined #RubyOnRails
[08:36:18] neanderslob_: has joined #RubyOnRails
[08:37:30] d0nn1e: has joined #RubyOnRails
[08:46:08] maletor2: has joined #RubyOnRails
[08:50:44] ravi_sun66: has joined #RubyOnRails
[08:53:44] AlvilsK: has joined #RubyOnRails
[08:54:23] AlvilsK: Hi everyone! Ive been searching for crowd-funding open source project, anyone got any suggestions?
[08:58:27] DevastatingDave: has joined #RubyOnRails
[08:58:46] lxsameer: has joined #RubyOnRails
[09:05:34] tens0r: has joined #RubyOnRails
[09:07:51] blackmes1: has joined #RubyOnRails
[09:12:08] SteenJobs: has joined #RubyOnRails
[09:15:42] xcesariox: btw, what's the difference doing `rake db:migrate` and `bundle exec rake db:migrate` ?
[09:17:19] htmldrum: has joined #RubyOnRails
[09:18:45] Megamos: has joined #RubyOnRails
[09:24:05] alfie_max15: has joined #RubyOnRails
[09:26:34] blackmes1: has joined #RubyOnRails
[09:30:30] darutoko: has joined #RubyOnRails
[09:31:54] hahuang65: has joined #RubyOnRails
[09:34:00] bronson: has joined #RubyOnRails
[09:34:40] tbuehlmann: xcesariox: the first likely will use rake from your installed gems, the latter makes sure it's the version you locked in Gemfile.lock
[09:34:52] xcesariox: tbuehlmann : noted.
[09:35:06] tbuehlmann: so, use the latter. even better, don't care and have a bin/rake executable
[09:37:04] triptec: has joined #RubyOnRails
[09:42:53] petor: has joined #RubyOnRails
[09:43:07] kgrz: has joined #RubyOnRails
[09:44:18] cd83x: has joined #RubyOnRails
[09:44:59] njero: has joined #RubyOnRails
[09:45:06] mvxlr: has joined #RubyOnRails
[09:46:55] maletor2: has joined #RubyOnRails
[09:48:30] njero: has joined #RubyOnRails
[09:51:20] Tempesta: has joined #RubyOnRails
[09:54:25] blackhuey: has joined #RubyOnRails
[09:56:08] srinidhi: has joined #RubyOnRails
[10:06:48] Mia: has joined #RubyOnRails
[10:06:48] Mia: has joined #RubyOnRails
[10:07:37] triptec: has joined #RubyOnRails
[10:10:31] dionysus69: has joined #RubyOnRails
[10:16:53] drptbl: has joined #RubyOnRails
[10:23:20] njero: has joined #RubyOnRails
[10:23:25] Megamos: has joined #RubyOnRails
[10:26:24] naftilos76: has joined #RubyOnRails
[10:29:12] tildes: has joined #RubyOnRails
[10:30:22] dionysus69: has joined #RubyOnRails
[10:33:54] thesubr00t: has joined #RubyOnRails
[10:35:18] flashpoint9: has joined #RubyOnRails
[10:36:20] ruid: has joined #RubyOnRails
[10:36:55] triptec: has joined #RubyOnRails
[10:38:22] netzfisch: has joined #RubyOnRails
[10:41:36] jsrn_: has joined #RubyOnRails
[10:44:58] thesubr00t: What is the proper way to validate that the associated objects (has_many) are owned by current_user? https://gist.github.com/thesubr00t/d91f321e21ce7c8477a7013f437ce804
[10:45:48] thesubr00t: I want to validate that social_accounts are owned by current_user when associating them to current_user.grouped_social_accounts
[10:47:37] maletor2: has joined #RubyOnRails
[10:50:51] thesubr00t: So quite here :-)
[10:51:23] thesubr00t: Where are the good folks?
[10:51:48] njero: working.. one bad folk here though
[10:51:49] chipotle: has joined #RubyOnRails
[10:52:29] banister: has joined #RubyOnRails
[10:54:25] thesubr00t: alfie_max15, can you please look at my question?
[10:56:19] njero: thesubr00t: y does a user has_many grouped social accounts?
[10:56:32] alfie_max15: thesubr00t, you should be using has_many through association
[10:57:32] thesubr00t: n_e_o, alfie_max15: a user may select a signle social_account or a list of them (grouped).
[10:57:56] njero: based on the structure it seems you're grouping social accounts of user under grouped
[10:58:32] njero: then y has_many from user to grouped_social_accounts?
[11:00:40] thesubr00t: n_e_o, I want to be able to use `current_user.social_accounts` wich will iterate on all of them, and `current_user.grouped_social_accounts` to iterate on the limited set of social accounts.
[11:02:09] njero: k.. bad assumption...
[11:02:36] alfie_max15: i'm confused now, how are they grouped ??
[11:02:51] PedramT: has joined #RubyOnRails
[11:03:47] thesubr00t: eg: current_user.social_accounts => [{x}, {y}, {z}], currentuser.grouped_social_accounts => [{name, [{x}, {y}]}, {name, [{x}, {z}]}]
[11:05:44] thesubr00t: I(ve updated the gist https://gist.github.com/thesubr00t/d91f321e21ce7c8477a7013f437ce804
[11:05:56] arBmind1: has joined #RubyOnRails
[11:06:44] alfie_max15: thesubr00t, did that work for you?? i mean filename with `grouped_social_account.rb` and class name as `Channel` ??
[11:07:01] thesubr00t: n_e_o, alfie_max15 channels are optionals
[11:07:12] thesubr00t: alfie_max15, sorry thats only on the gist lol
[11:11:37] thesubr00t: alfie_max15, does it make sense?
[11:12:22] thesubr00t: think of it like facebook messages & groups messages
[11:13:39] alfie_max15: got a question for you, since you have channel_id in social account, that would be used to make the association, right
[11:13:40] alfie_max15: got a question for you, since you have channel_id in social account, that would be used to make the association, right?
[11:14:18] alfie_max15: ok, so looking at the above example result you provided, currentuser.grouped_social_accounts => [{name, [{x}, {y}]}, {name, [{x}, {z}]}]
[11:14:33] alfie_max15: how can a social_account belong to two channels at once??
[11:15:15] thesubr00t: I may use join table for that
[11:15:21] thesubr00t: many to many
[11:15:31] thesubr00t: thank you for the hint
[11:15:31] alfie_max15: i'd suggest has_many through
[11:15:50] alfie_max15: because you'd want to have uniqueness validation
[11:16:05] thesubr00t: but the problem of validations still exists
[11:16:27] alfie_max15: yeah, for that, you'd have to write a custom validation method
[11:16:28] thesubr00t: I want to validate that current_user may nly group his own social_accounts
[11:17:02] netzfisch: has joined #RubyOnRails
[11:17:05] thesubr00t: there is no "builtin" validator for that?
[11:17:16] alfie_max15: nop, i don't believe so.
[11:17:34] thesubr00t: ok, thank you!
[11:17:44] alfie_max15: builtin validators are, active model validators which just validates values for a particular model
[11:17:56] alfie_max15: you're welcome :)
[11:24:31] blackmes1: has joined #RubyOnRails
[11:24:38] Axilla: has joined #RubyOnRails
[11:25:00] Axilla: morning all
[11:28:56] Axilla: a bit tired so having an issue wrapping my head around a pretty simple idea.. i am working on an app of currated products..(kind of like product hunt) a user can submit a product to go through an approval process once its approved it can become a "product" on the site.. is the best way to handle this to just on update of status = approved generate a product record for the submitted product?
[11:29:58] Axilla: and then initialize it into a "draft" state?
[11:32:40] hahuang65: has joined #RubyOnRails
[11:33:19] thesubr00t: axilla, The simplest way I can think of is that products have a `approved` boolean attribute with default to false.
[11:34:34] Megamos: has joined #RubyOnRails
[11:35:13] thesubr00t: Then it's up to you to flag it as approved bu updating that attribute to true
[11:35:19] bronson: has joined #RubyOnRails
[11:38:36] Varun_krishna: has joined #RubyOnRails
[11:39:03] Varun_krishna: Hi guys I am using raptor-editor-rails http://www.rubydoc.info/gems/raptor-editor-rails/0.3.1
[11:39:33] Varun_krishna: but when I run I get this error TypeError: $(...).raptor is not a function $("#my_editable_element").raptor();
[11:42:24] AzaToth: has joined #RubyOnRails
[11:42:27] kristofferR: has joined #RubyOnRails
[11:42:50] Varun_krishna: Or is there any other alternative for Raptor editor ?
[11:44:06] srinidhi: has joined #RubyOnRails
[11:45:03] roelof: has joined #RubyOnRails
[11:47:29] roelof: Can anyone help me with this problem : https://gist.github.com/rwobben/83afdc9e48edb4a3c511405b8d9275e2
[11:47:48] roelof: when I do rails s no error messages and everything looks allright
[11:48:07] roelof: when I do rspec I see the error
[11:48:24] maletor2: has joined #RubyOnRails
[11:51:07] alfie_max15: has joined #RubyOnRails
[11:51:51] stannard: has joined #RubyOnRails
[11:53:05] |2701: has joined #RubyOnRails
[11:56:17] suffice: has joined #RubyOnRails
[11:56:28] yaw: has joined #RubyOnRails
[11:56:42] futilegames: has joined #RubyOnRails
[11:57:33] stardiviner: has joined #RubyOnRails
[11:58:18] _Tariq: has joined #RubyOnRails
[11:59:32] yaw: has joined #RubyOnRails
[12:00:10] roelof: Can anyone help me with this problem : https://gist.github.com/rwobben/83afdc9e48edb4a3c511405b8d9275e2 ?
[12:01:22] mdw: has joined #RubyOnRails
[12:03:18] habitullence: has joined #RubyOnRails
[12:10:32] yaw: hello guys
[12:10:32] stardiviner: has joined #RubyOnRails
[12:12:25] yaw: since Postgres is gradually moving away from ossp-uuid for UUIDs to pgcrypto, and the function names are different, anyway I tell Rails which function to call?
[12:13:43] triptec: has joined #RubyOnRails
[12:14:37] roelof: has left #RubyOnRails: ()
[12:15:16] King_Rex: has joined #RubyOnRails
[12:16:27] yaw: Found it!
[12:16:53] yaw: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb#L29
[12:18:33] ur5us: has joined #RubyOnRails
[12:19:44] chipotle: has joined #RubyOnRails
[12:19:46] baash05: has joined #RubyOnRails
[12:20:01] baash05: Hey people..
[12:21:00] baash05: I'm trying to get an instance of rails running on a new AWS system.. I'm trying to use postgres, but I keep getting "PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations : SELECT "schema_migrations".* FROM "schema_migrations"
[12:21:31] baash05: I googled around for the answer but couldn't figure it out
[12:22:11] thesubr00t: baash05, check the postgres role permissions
[12:22:21] netzfisch: has joined #RubyOnRails
[12:23:57] baash05: Which roll? would need permission? The user i'm logged into as, or the username in the yml?
[12:24:36] bruno-: has joined #RubyOnRails
[12:24:53] fox_mulder_cp: baash05: role of postgresql user
[12:25:46] banister: has joined #RubyOnRails
[12:25:50] fox_mulder_cp: baash05: when u create postgresql database and role for accessing it, u may add some grants for this postgresql role to databases
[12:26:53] baash05: CREATE USER ubuntu WITH PASSWORD 'password';
[12:26:53] baash05: CREATE DATABASE blogapp_production;
[12:26:53] baash05: GRANT ALL PRIVILEGES ON DATABASE blogapp_production to ubuntu;
[12:26:53] baash05: ALTER DATABASE blogapp_production OWNER TO ubuntu
[12:26:57] alfie_max15: has left #RubyOnRails: ("Ex-Chat")
[12:26:59] mustmodify: has left #RubyOnRails: ()
[12:26:59] baash05: Sorry for the past.
[12:27:24] baash05: That should make ubuntu all powerful right.
[12:29:22] mikecmpbll: has joined #RubyOnRails
[12:29:52] baash05: the yml file has the same username and password on that database.
[12:31:09] netzfisch: has joined #RubyOnRails
[12:33:36] njero: has joined #RubyOnRails
[12:35:24] fox_mulder_cp: baash05: it seems mysql, not postgresql
[12:36:18] fox_mulder_cp: baash05: in postgresql by default u create database and role whiich has name of role
[12:36:27] kgrz: has joined #RubyOnRails
[12:36:53] bronson: has joined #RubyOnRails
[12:37:18] fox_mulder_cp: only two commands.
[12:37:35] flashpoint9: has joined #RubyOnRails
[12:38:42] baash05: Could you past an example?
[12:38:44] fox_mulder_cp: by the way - users for dev and production environments must be different, or u can has a fail, when drop production database, or accessing production data from deveploment user
[12:39:41] baash05: Would the user name in the yml be the name of the role?
[12:40:22] fox_mulder_cp: baash05: yes. in postgres user - is role with login grants
[12:40:45] yos7ph: has joined #RubyOnRails
[12:41:19] baash05: create role blog_app with login password 'password' createdb;
[12:41:38] fox_mulder_cp: also, after creating db and role u must edit pg_hba coonfig for really allow connectiong from ip of host, role name, and db name
[12:42:05] fox_mulder_cp: http://www.postgresql.org/docs/9.1/static/sql-createdatabase.html
[12:42:35] fox_mulder_cp: http://www.postgresql.org/docs/9.1/static/sql-createrole.html
[12:42:56] Axilla: has joined #RubyOnRails
[12:44:24] baash05: (CREATE USER is the same as CREATE ROLE except that it implies LOGIN.)
[12:45:27] fox_mulder_cp: baash05: create role.
[12:45:58] fox_mulder_cp: one role and one db for dev, seconf role with second db for prod
[12:46:05] flashpoint9: has joined #RubyOnRails
[12:46:12] baash05: would the roll name be the same as the user name in the yml?
[12:46:22] baash05: user names I suppose :)
[12:46:32] fox_mulder_cp: Otherwise, you get confused and mistaken
[12:47:01] fox_mulder_cp: yes. i say it thirdly
[12:47:37] fox_mulder_cp: in pg user <= role. in env config user <= pg role name
[12:48:17] darutoko: has joined #RubyOnRails
[12:49:11] maletor2: has joined #RubyOnRails
[12:53:50] fox_mulder_cp: baash05: now u try to learn rails by official guides?:)
[12:56:52] blackmes1: has joined #RubyOnRails
[12:58:14] baash05: Rails/ruby I got.. Sadly the ops.. not so much.
[12:58:47] Devalo: has joined #RubyOnRails
[13:00:04] baash05: I've set it up a few times on my own system, and created gists so I wouldn't forget.. but I do it less than once a year.. and it's always an odd collection of falling down.
[13:01:31] baash05: I've never done it while SSH'ed into a box.
[13:02:20] cd83x: has joined #RubyOnRails
[13:03:12] baash05: ALTER ROLE prodblog WITH PASSWORD 'password'; Worked
[13:03:28] baash05: rake db:migrate RAILS_ENV=production
[13:03:39] baash05: PG::ConnectionBad: FATAL: Peer authentication failed for user "prodblog"
[13:05:28] baash05: I don't understand what I'm missing.. when I do trust me I'll write it down :)
[13:06:43] alfie_max15: has joined #RubyOnRails
[13:07:08] BaNzounet: is there a way to write such thing : Region.joins(:region_translations).select('regions.* ,region_translations.name') with more symbol?
[13:07:45] alfie_max15: has left #RubyOnRails: ("Ex-Chat")
[13:07:54] fox_mulder_cp: baash05: you are not carefull
[13:08:10] stannard: has joined #RubyOnRails
[13:08:25] fox_mulder_cp: baash05: i said about editing pg_hba.conf
[13:10:35] baash05: sudo find / -name "pg_hba.conf" -> pd5 for local all
[13:10:41] fox_mulder_cp: baash05: add into pg_hba before default assigments host all all 127... line such as "host w3dhcp_production w3dhcp_production 10.0.1.3/32 md5"
[13:10:51] fox_mulder_cp: baash05: /etc/postgresql/9.5/main/pg_hba.conf
[13:11:16] fox_mulder_cp: but change my w3dhcp to your own role and database names
[13:11:40] fox_mulder_cp: and add this to your development and test too
[13:11:45] Axilla: err mah gawd
[13:12:13] Axilla: having a hard time getting my brain to work this morning
[13:12:14] fox_mulder_cp: axilla: you try to get a hell daemons?
[13:12:24] Axilla: i want to create a reusable react component
[13:12:36] Axilla: which is just a select box for Category.all
[13:12:36] GodFather: has joined #RubyOnRails
[13:12:50] Axilla: i guess i gotta make an ajax call
[13:12:54] Axilla: to get the data
[13:12:59] Axilla: seems to make the most since
[13:13:19] Axilla: it would be really cool if i could some how have access to activerecord from js.jsx files
[13:13:29] Axilla: maybe i can and i'm missing something.. first react/rails app
[13:13:31] macsteps: has joined #RubyOnRails
[13:14:33] Axilla: nah definatley ajax/json
[13:14:55] fox_mulder_cp: axilla: i don't know plain js, so only can recommend try to read some documentations for creating rails as api backend
[13:16:02] Axilla: oh i know how to do all that.. not a problem
[13:16:07] Axilla: just trying to wrap my head around react.js
[13:16:10] Axilla: inside a rails app
[13:16:16] Axilla: and thinking out loud
[13:17:22] njero: has joined #RubyOnRails
[13:19:18] someish: has joined #RubyOnRails
[13:21:02] wolfravenous: has joined #RubyOnRails
[13:24:16] fox_mulder_cp: axilla: search a react support.. it not located here (
[13:24:36] Axilla: i'm aware
[13:24:48] Axilla: there isn't very many people building rails apps w/ react not a lot out there
[13:24:58] triptec: has joined #RubyOnRails
[13:26:44] dionysus69: has joined #RubyOnRails
[13:27:46] fox_mulder_cp: axilla: i think, that ajax source backend may be c#, perl, python, nodejs, so rails only one dot for backend
[13:33:16] ur5us: has joined #RubyOnRails
[13:33:22] hahuang65: has joined #RubyOnRails
[13:36:59] baash05: fox_mulder_cp: Thanks.. http://52.37.81.249/ :)
[13:37:36] banister: has joined #RubyOnRails
[13:37:47] shibly: has joined #RubyOnRails
[13:37:50] bronson: has joined #RubyOnRails
[13:38:35] shibly: http://example.com/products/?id=42 , here params[:id] = 42 , right?
[13:38:37] mdw: has joined #RubyOnRails
[13:39:07] baash05: no need for the /?id= bit
[13:39:28] baash05: http://example.com/products/42.
[13:39:52] baash05: and params[:id] will hold your id.
[13:40:22] shibly: Where is :id defined?
[13:40:48] shibly: Where is :id assigned?
[13:40:53] baash05: it's part of the routing logic.. most often it's infered.
[13:42:17] baash05: You can find resources :products in your routs.rb file.
[13:43:14] baash05: This will create a few routes for you.
[13:43:47] baash05: if you're running locally.. http://127.0.0.1:3000/productZ (spelled wrong on purpose)
[13:43:51] maxx88: has joined #RubyOnRails
[13:43:54] baash05: this will show you an error page.
[13:44:21] fox_mulder_cp: baash05: ERR_CONNECTION_REFUSED
[13:44:33] triptec: has joined #RubyOnRails
[13:44:43] baash05: Oh.. if you're running locally.
[13:45:08] baash05: Wait.. fox_mulder_cp was that with reference to the link I pasted above.
[13:45:16] fox_mulder_cp: baash05: so, buy a domain and use dns.he.net for it holing :)
[13:45:18] baash05: Yeah. I killed the server shortly after.
[13:45:30] baash05: right now I'm just playing with some hello worlds..
[13:45:39] baash05: free aws and what not.
[13:46:18] fox_mulder_cp: baash05: https://github.com/foxmuldercp/blogapp $)$)
[13:46:44] pawnbox: has joined #RubyOnRails
[13:47:03] fox_mulder_cp: baash05: it's a my own way to make blog engine from default rails guides :(
[13:47:13] ftj: has joined #RubyOnRails
[13:47:35] baash05: Ha.. good on ya.
[13:47:42] baash05: I'm going off this.. https://gist.github.com/baash05/976a085382c6cbb6caf9
[13:48:10] baash05: I've been off ubuntu for a while so when running the AWS tutorial I had to remember how to do things.
[13:48:17] fox_mulder_cp: example site now down, becouse ma main project - shared applications hosting panel with dockerized apps, domains, mail sql and billing
[13:49:41] shibly: has left #RubyOnRails: ()
[13:49:42] baash05: shibly: did you see the error screen?
[13:49:56] maletor2: has joined #RubyOnRails
[13:50:10] pawnbox: has joined #RubyOnRails
[13:50:21] thesubr00t: has joined #RubyOnRails
[13:52:32] stannard: has joined #RubyOnRails
[13:53:57] baash05: I like the models.. KISS.
[13:54:07] adgtl: has joined #RubyOnRails
[13:54:38] srinidhi: has joined #RubyOnRails
[13:54:53] macsteps: has joined #RubyOnRails
[13:55:00] jsrn__: has joined #RubyOnRails
[13:55:17] baash05: has left #RubyOnRails: ()
[13:55:42] arup_r: has joined #RubyOnRails
[13:56:10] baash05: has joined #RubyOnRails
[13:57:30] baash05: has left #RubyOnRails: ()
[13:59:07] shibly: has joined #RubyOnRails
[13:59:54] blackmes1: has joined #RubyOnRails
[14:03:07] shibly: has left #RubyOnRails: ()
[14:04:21] shibly: has joined #RubyOnRails
[14:05:37] macsteps: has joined #RubyOnRails
[14:06:10] n1lo: has joined #RubyOnRails
[14:06:55] shibly: redirect_to person_url(1,2) , is it valid?
[14:07:44] fox_mulder_cp: shibly: read routes and think $)
[14:08:45] Azz_B: has joined #RubyOnRails
[14:12:05] stannard: has joined #RubyOnRails
[14:12:05] triptec: has joined #RubyOnRails
[14:13:46] moeabdol: has joined #RubyOnRails
[14:15:03] shibly: http://weblog.jamisbuck.org/2007/2/5/nesting-resources , map.resources :accounts do |accounts| ... what's :accounts?
[14:15:10] shibly: Where is :accounts defined?
[14:15:18] shibly: What's map.resources :accounts ?
[14:17:42] greg: has joined #RubyOnRails
[14:23:24] rodfersou: has joined #RubyOnRails
[14:25:45] shibly: Oh, map.resources should be older
[14:25:53] yottanami: has joined #RubyOnRails
[14:26:13] yottanami: Is it a good way to check the exists of params: `if (!params[:name].present? || !params[:namespace].present?)`
[14:27:28] yaw: has joined #RubyOnRails
[14:27:33] triptec: has joined #RubyOnRails
[14:28:27] mostlybadfly: has joined #RubyOnRails
[14:28:29] htmldrum: has joined #RubyOnRails
[14:31:11] MarcoGL: has joined #RubyOnRails
[14:32:01] fox_mulder_cp: yottanami: where? in controller? read about allowed params
[14:32:19] fox_mulder_cp: or reform your question
[14:32:25] User458764: has joined #RubyOnRails
[14:33:24] macsteps: has joined #RubyOnRails
[14:34:33] pawnbox: has joined #RubyOnRails
[14:35:09] arup_r: yottanami: yes that works or http://stackoverflow.com/a/5629506/2767755
[14:35:48] arup_r: if the list is long, and then use a method to do the check..
[14:39:01] DoubleMalt: has joined #RubyOnRails
[14:44:29] hcnewsom: has joined #RubyOnRails
[14:47:20] fox_mulder_cp: arup_r: it's not a validations or allowed params, yes?
[14:48:35] njero: has joined #RubyOnRails
[14:50:46] maletor2: has joined #RubyOnRails
[14:51:01] Ispira: has joined #RubyOnRails
[14:51:17] kgrz: has joined #RubyOnRails
[14:54:15] arup_r: fox_mulder_cp: I don't know what you meant. But I think you didn't get what yotta asked.
[14:55:02] arBmind: has joined #RubyOnRails
[14:56:55] triptec: has joined #RubyOnRails
[14:57:55] fox_mulder_cp: arup_r: i'm think about validations in youtta's question
[14:58:23] ftj: has joined #RubyOnRails
[14:58:32] arup_r: no he probably for any reasons was trying to check if some fields are present in the params.
[14:59:14] Pupeno: has joined #RubyOnRails
[15:00:06] Pupeno: Does anybody know of a gem to handle the usual terms and conditions workflow for a website?
[15:01:20] fox_mulder_cp: http://stackoverflow.com/questions/18914026/rails-devise-gem-authentication-and-eula-user-acceptance
[15:02:56] blackmes1: has joined #RubyOnRails
[15:03:21] hcnewsom: has joined #RubyOnRails
[15:03:22] Rubie: has joined #RubyOnRails
[15:04:22] pacMakaveli: has joined #RubyOnRails
[15:04:29] Pupeno: fox_mulder_cp: I don't see any gem mentioned there.
[15:05:21] pacMakaveli: yo! Does anyone know how I can get this order "default" : "001" : "002" : "003" .. etc.. when I do Model.order(column: :desc) ? Right now I get this "001" : "002" : "003" : "default"
[15:10:53] naftilos76: has joined #RubyOnRails
[15:11:45] Chachi: has joined #RubyOnRails
[15:12:28] depgame1990: has joined #RubyOnRails
[15:12:54] fox_mulder_cp: Pupeno: no gem. easy way to add a boolean column
[15:13:21] Pupeno: fox_mulder_cp: yeah, but a boolean is nowhere near enough and I doubt I'm the first one to do a proper implementation.
[15:13:48] macsteps: has joined #RubyOnRails
[15:14:39] fox_mulder_cp: Something very lazy programmers....
[15:16:45] yos7ph: has joined #RubyOnRails
[15:17:22] stannard: has joined #RubyOnRails
[15:20:33] flashpoint9: has joined #RubyOnRails
[15:22:02] stannard: has joined #RubyOnRails
[15:23:14] idefine: has joined #RubyOnRails
[15:23:35] blackmes1: has joined #RubyOnRails
[15:23:59] jhack: has joined #RubyOnRails
[15:24:00] crameth: has joined #RubyOnRails
[15:24:31] hcnewsom: has joined #RubyOnRails
[15:24:53] banister: has joined #RubyOnRails
[15:26:58] fryguy: has joined #RubyOnRails
[15:31:47] roelof: has joined #RubyOnRails
[15:33:29] yos7ph: has joined #RubyOnRails
[15:34:09] hahuang65: has joined #RubyOnRails
[15:35:39] Moeh: has joined #RubyOnRails
[15:36:26] Moeh: Can someone tell me if delayed_job_active_record is compatible with rails 5.0.0-rc1?
[15:36:48] fox_mulder_cp: Moeh: i use since beta3 :)
[15:37:06] fox_mulder_cp: no problems detected, as for me
[15:37:18] Moeh: Great! And do you check out master branch or latest release (4.1)?
[15:37:33] fox_mulder_cp: Moeh: latest release
[15:37:43] Moeh: Sounds good! Thanks a lot!
[15:37:48] fox_mulder_cp: i use from git only devise
[15:38:30] rodferso1: has joined #RubyOnRails
[15:39:05] fox_mulder_cp: devise from git has a bug, which fails for me - only ms edge works properly - in chrome it can't chech antofirgery token when post login, or something else forms to server (
[15:39:35] bronson: has joined #RubyOnRails
[15:41:14] tbuehlmann: if it is a bug, compose a bug report
[15:42:37] hcnewsom: has joined #RubyOnRails
[15:42:48] triptec: has joined #RubyOnRails
[15:46:34] fox_mulder_cp: shit. ( docker updating drops my custom systemd .service file with customization
[15:48:39] bruno-: has joined #RubyOnRails
[15:48:59] King_Rex: has joined #RubyOnRails
[15:51:32] maletor2: has joined #RubyOnRails
[15:51:38] duderonomy: has joined #RubyOnRails
[15:51:43] hck89: has joined #RubyOnRails
[15:52:15] arup_r1: has joined #RubyOnRails
[15:52:46] sp1rs: has joined #RubyOnRails
[15:55:43] User458764: has joined #RubyOnRails
[15:55:48] Macabre: has joined #RubyOnRails
[15:56:44] kgrz: has joined #RubyOnRails
[15:58:18] triptec: has joined #RubyOnRails
[15:58:29] GodFather: has joined #RubyOnRails
[16:00:49] arup_r: has joined #RubyOnRails
[16:07:26] htmldrum: has joined #RubyOnRails
[16:07:44] macsteps: has joined #RubyOnRails
[16:13:20] yaw: has joined #RubyOnRails
[16:14:06] triptec: has joined #RubyOnRails
[16:14:37] JoshGlzBrk: has joined #RubyOnRails
[16:15:16] zave: has joined #RubyOnRails
[16:15:51] hcnewsom: has joined #RubyOnRails
[16:18:49] fedexo: has joined #RubyOnRails
[16:19:49] Caerus|Away: has joined #RubyOnRails
[16:19:50] GodFather: has joined #RubyOnRails
[16:20:25] felltir: has joined #RubyOnRails
[16:22:40] wldcordeiro: has joined #RubyOnRails
[16:25:14] yaw: has joined #RubyOnRails
[16:29:33] triptec: has joined #RubyOnRails
[16:33:52] lxsameer: has joined #RubyOnRails
[16:33:53] srruby: has joined #RubyOnRails
[16:35:36] srruby: I'm upgrading a legacy app originally written in Rails2 which is on Rails3.2 . I'm upgrading it to 4.0 to start. Does it make sense to create a new rails4.0 app and copy the code over to the new app ?
[16:36:24] P4Titan: has joined #RubyOnRails
[16:36:47] stannard: has joined #RubyOnRails
[16:37:16] felltir: I'd upgrade the gem, better idea of what caused the problems you'll have.
[16:37:23] P4Titan: Hello all. I am trying to use activejob. I wish to have a counter that records the number of times a job is retried. However, where should I instantiate the instance counter variable? When I define my own initialize function, it overrides ActiveJob's.
[16:38:12] Rodya_: has joined #RubyOnRails
[16:38:54] stannard: has joined #RubyOnRails
[16:39:00] null__: has joined #RubyOnRails
[16:41:10] bronson: has joined #RubyOnRails
[16:42:46] GodFather: has joined #RubyOnRails
[16:44:21] JFlash: has joined #RubyOnRails
[16:44:35] JFlash: good afternoon Rails hipsters!
[16:44:55] JFlash: is Jade as bad option as a template engine to use alongside Rails?
[16:45:37] fox_mulder_cp: srruby: after some weeks rails 5 will be released
[16:46:14] srruby: fox_mulder_cp: Yep. Thats why I'm upgrading from 3.2
[16:46:25] adre: has joined #RubyOnRails
[16:47:05] fox_mulder_cp: i don't know about < 4.2 apps, but think, that copy paste code, making a tests can help you to migrate
[16:49:28] mdw7: has joined #RubyOnRails
[16:50:56] edwinvdgraaf: has joined #RubyOnRails
[16:51:56] mrgreenfur: has joined #RubyOnRails
[16:52:17] maletor2: has joined #RubyOnRails
[16:57:25] kgrz: has joined #RubyOnRails
[16:59:31] Cohedrin: has joined #RubyOnRails
[17:02:21] dikaio: has joined #RubyOnRails
[17:02:45] PaulePanter: Hi. In https://github.com/tralles/cms-delta-2/blob/master/cms/app/models/documentable.rb#L25 this can be rewritten, so that Rails figures it out with associations, right?
[17:02:53] PaulePanter: self.project.constant(:doctype).where(:id => self.doctype).first.name
[17:03:55] bruno-: has joined #RubyOnRails
[17:04:16] PaulePanter: Looking further through it, I’d say Constant.find(self.doctype).name and rescue, if it’s nil.
[17:07:09] habitullence: has joined #RubyOnRails
[17:07:29] benlieb: has joined #RubyOnRails
[17:07:53] sp1rs: has joined #RubyOnRails
[17:08:10] pawnbox: has joined #RubyOnRails
[17:10:00] kgrz: has joined #RubyOnRails
[17:10:48] Trynemjoel: has joined #RubyOnRails
[17:11:25] ornerymoose: has joined #RubyOnRails
[17:19:34] RegulationD: has joined #RubyOnRails
[17:25:18] siaw23: has joined #RubyOnRails
[17:25:42] arup_r: has joined #RubyOnRails
[17:27:30] P4Titan: Hello all. I am trying to use activejob. I wish to have a counter that records the number of times a job is retried. However, where should I instantiate the instance counter variable? When I define my own initialize function, it overrides ActiveJob's.
[17:31:08] zave: has joined #RubyOnRails
[17:31:19] emachnic: has joined #RubyOnRails
[17:32:30] felltir: has joined #RubyOnRails
[17:32:53] Rodya_: has joined #RubyOnRails
[17:34:53] hahuang65: has joined #RubyOnRails
[17:36:27] ornerymoose: has joined #RubyOnRails
[17:47:23] mdw: has joined #RubyOnRails
[17:47:27] siaw23: has joined #RubyOnRails
[17:47:39] morenoh149: has joined #RubyOnRails
[17:51:06] dikaio: has joined #RubyOnRails
[17:52:25] Megamos: has joined #RubyOnRails
[17:53:01] maletor2: has joined #RubyOnRails
[17:55:28] rogue_koder: has joined #RubyOnRails
[17:57:46] triptec: has joined #RubyOnRails
[17:58:03] Macabre: has joined #RubyOnRails
[17:58:17] ddv: has joined #RubyOnRails
[18:00:16] scepticulous: has joined #RubyOnRails
[18:00:27] ftj: has joined #RubyOnRails
[18:00:37] Mia: has joined #RubyOnRails
[18:04:20] Caerus|Away: has joined #RubyOnRails
[18:04:32] Axilla: has joined #RubyOnRails
[18:05:04] Jasaka: has joined #RubyOnRails
[18:06:02] bronson: has joined #RubyOnRails
[18:07:49] bruno-: has joined #RubyOnRails
[18:08:54] roamingdog: has joined #RubyOnRails
[18:10:32] Megamosaren: has joined #RubyOnRails
[18:12:34] someish: has joined #RubyOnRails
[18:12:51] PaulePanter: > Dynamic attribute-based finders are a mildly deprecated way of getting (and/or creating) objects by simple queries without turning to SQL.
[18:12:55] PaulePanter: from http://api.rubyonrails.org/classes/ActiveRecord/Base.html
[18:13:15] PaulePanter: As this is “mildly deprecated” what should be used instead?
[18:13:38] P4Titan: Does anyone have commentary on my issue
[18:13:50] maxz: has joined #RubyOnRails
[18:14:17] |RicharD|: has joined #RubyOnRails
[18:15:30] |RicharD|: guys why my select with options
[18:15:41] |RicharD|: ignore html classes ? https://gist.github.com/anonymous/99f98951fba923fa4d8cc50591694a99
[18:15:45] Axilla: has joined #RubyOnRails
[18:16:02] |RicharD|: (I'm doing this on rails 3...I know is old, but is a old enterprise rails app)
[18:22:52] htmldrum: has joined #RubyOnRails
[18:25:53] sp1rs: has joined #RubyOnRails
[18:26:43] codelurker: has joined #RubyOnRails
[18:29:16] yfeldblum: has joined #RubyOnRails
[18:29:46] GodFather: has joined #RubyOnRails
[18:30:42] petor: has joined #RubyOnRails
[18:30:43] fox_mulder_cp: |RicharD|: wait
[18:33:00] fox_mulder_cp: |RicharD|: <%= f.select(:object_field, ['Item 1', ...], {}, { :class => 'my_style_class' }) %>
[18:33:40] Rodya_: has joined #RubyOnRails
[18:34:29] Caerus|Away: has joined #RubyOnRails
[18:40:57] ornerymoose: has joined #RubyOnRails
[18:41:25] flashpoint9: has joined #RubyOnRails
[18:43:36] kgrz: has joined #RubyOnRails
[18:46:41] diegoaguilar: has joined #RubyOnRails
[18:49:45] HenriettaSalt: has joined #RubyOnRails
[18:52:16] stannard: has joined #RubyOnRails
[18:53:04] sp1rs: has joined #RubyOnRails
[18:53:06] bachmann: has joined #RubyOnRails
[18:55:00] Coldblackice: has joined #RubyOnRails
[18:56:39] DoctorMonocular: has joined #RubyOnRails
[18:57:45] rakm: has joined #RubyOnRails
[19:00:53] qejk: has joined #RubyOnRails
[19:04:58] siaw23_: has joined #RubyOnRails
[19:05:30] Coldblackice: has joined #RubyOnRails
[19:09:52] idefine: has joined #RubyOnRails
[19:10:55] Atrox: has joined #RubyOnRails
[19:14:16] ornerymoose: has joined #RubyOnRails
[19:15:08] Atrox: Hi :), I've written a simple wrapper around SweetAlert for Rails. The gem is simply writing into the flash. Is there any way to test this in the gem? I failed miserably trying to test the flash content in any way... The code is on github: https://github.com/Atrox/sweetify
[19:15:26] htmldrum: has joined #RubyOnRails
[19:15:28] Atrox: Would be awesome if someone can help me on this one
[19:15:47] sp1rs: has joined #RubyOnRails
[19:23:50] DoubleMalt: Quickquestion: I have an application that has to copy over a script to other server reachable over ssh, that it later calls. I use Rye for the ssh stuff and it works pretty smoothly. What would be the best place to store the script?
[19:24:12] DoubleMalt: a separate directory next to public, app, ...?
[19:25:46] fryguy: DoubleMalt: probably in lib
[19:28:49] Rubie: has joined #RubyOnRails
[19:29:26] Megamosaren: has joined #RubyOnRails
[19:30:01] Cohedrin_: has joined #RubyOnRails
[19:30:59] codelahoma: has joined #RubyOnRails
[19:32:06] DoubleMalt: fryguy: yes, lib/assets seems like a reasonable choice
[19:32:36] King_Rex: has joined #RubyOnRails
[19:35:41] Rodya_: has joined #RubyOnRails
[19:35:43] hahuang65: has joined #RubyOnRails
[19:37:29] Pupeno: I heard Rails 5 removed autoloading of code, is this true?
[19:37:47] fryguy: Pupeno: that seems like a pretty suspect statement
[19:38:47] idefine: has joined #RubyOnRails
[19:41:07] siaw23_: has joined #RubyOnRails
[19:42:13] dikaio: has joined #RubyOnRails
[19:42:43] Moeh: has joined #RubyOnRails
[19:43:00] someish: Is it possible to include an .eco tag inside an .erb tag? i.e. <%= image_tag(<%%= @name %>) %>
[19:43:37] yfeldblum: has joined #RubyOnRails
[19:43:48] fryguy: someish: TIAS
[19:44:34] white_magic: has joined #RubyOnRails
[19:45:46] white_magic: hi can anyone here tell me if i should go w/ rvm or rbenv? also, should i go with rails 3.x, 4.x or 5.x? this is for developing my own little projects on ubuntu x64
[19:45:54] someish: fryguy: I did. It didn’t work using my method. Is there another method?
[19:46:27] fryguy: white_magic: use rbenv or chruby. definitely don't pick 3.x over the others, 4.x versus 5.x depends on how production-level you need to be. for random projects 5.x should be fine now
[19:46:36] fryguy: someish: what's the file named
[19:47:14] someish: fryguy: swan.jpg
[19:47:53] fryguy: someish: a file with that name shouldn't parse/process either ERB or ECO tags
[19:48:31] fryguy: are you sure that's the name of the file you are working with?
[19:48:49] xall: has joined #RubyOnRails
[19:49:00] someish: No. That’s the name of the image.
[19:49:10] someish: The file is called “filename.jst.eco.erb”.
[19:49:31] fryguy: try changing it to .erb.eco
[19:49:50] fryguy: what you are doing sounds overly complicated and fragile though, I'd rethink my design decisions
[19:49:51] someish: Ahh, the nested tag needs to compile first right?
[19:50:10] Cohedrin: has joined #RubyOnRails
[19:50:45] htmldrum: has joined #RubyOnRails
[19:50:54] triptec_: has joined #RubyOnRails
[19:51:09] arup_r: has joined #RubyOnRails
[19:53:00] macsteps: has joined #RubyOnRails
[19:53:29] someish: fryguy: I don’t have much of a choice if I want to use eco templates, correct? I guess the only other option would be make sure the rails helpers are available as javascript functions, and call those directly from the eco template? Does anything like that exist?
[19:54:02] maletor2: has joined #RubyOnRails
[19:55:52] bronson: has joined #RubyOnRails
[19:59:02] bruno-: has joined #RubyOnRails
[20:00:16] htmldrum: has joined #RubyOnRails
[20:02:57] _Tariq: has joined #RubyOnRails
[20:03:53] idefine: has joined #RubyOnRails
[20:04:13] Devalo: has joined #RubyOnRails
[20:06:01] xxcesarioxx: has joined #RubyOnRails
[20:07:48] Cesariox: has joined #RubyOnRails
[20:10:56] Futronic: has joined #RubyOnRails
[20:12:02] tgeeky: has joined #RubyOnRails
[20:12:30] tgeeky: terminology question: I'm trying to use ActiveRecord to transition between a source database and a target database whose fields don't have the same shape
[20:12:33] Regulati_: has joined #RubyOnRails
[20:12:37] tgeeky: is there a name for this?
[20:12:42] azor: has joined #RubyOnRails
[20:13:10] tgeeky: for example, the source database has four or five phone number entries per customer, but the target has 1 phone entry and then a seperate table for additional phone entries
[20:13:45] tgeeky: to make matters worse, the source sometimes has 2 phone numbers per 1 phone number field (where they put in something like "4/555-1212 or 7/555-2222" in the field :/
[20:14:17] tgeeky: if I can't get an answer to that, is there a good page that lists gems related to activerecord?
[20:15:17] roelof: has joined #RubyOnRails
[20:15:40] roelof: Schould I use rbenv or rvm to install rails on a linux box ?
[20:19:12] fryguy: roelof: use rbenv or chruby
[20:20:29] roelof: oke, I have used chruby but rhen atom could not find rspec
[20:20:41] roelof: then I will use rbenv
[20:20:49] roelof: thanks, fryguy
[20:21:10] arup_r: roelof: How many places you are asking the same questions simultaneously?
[20:22:37] arup_r: No, you are not.
[20:22:56] roelof: yes, I left the slack channel before I asked here
[20:22:58] moring: has joined #RubyOnRails
[20:23:27] arup_r: I was watching you.. that's why I am saying now
[20:23:53] arup_r: anyway, don't do that.
[20:26:42] moring: I'm having an issue with rails 3, rspec, factory, and cucumber. Whenever I run cucumber test my rspec test stop working until i do rake db:test:prepare. Can anyone explain to me what's happening?
[20:26:50] moring: i get the error:
[20:26:53] moring: Failure/Error: Factory(:blog)
[20:26:53] moring: ActiveRecord::RecordInvalid:
[20:26:57] moring: on each test
[20:28:12] triptec_: has joined #RubyOnRails
[20:28:20] roelof: arup_r: oke, I will not do that again , I apolize
[20:28:29] arup_r: thank you!
[20:28:54] tgeeky: can someone confirm at least they can hear me? I don't want to repeat my question :(
[20:29:15] pawnbox: has joined #RubyOnRails
[20:29:20] moring: tgeeky: i hear you. but i joined after your question i think
[20:29:38] tgeeky: moring: thanks
[20:29:39] adaedra: well no, we can't hear you. Read, on the other hand...
[20:29:49] tgeeky: adaedra: hooray pedantry ! :)
[20:29:59] moring: adaedra: i do , i hear your voices in my head ...
[20:30:22] adaedra: Must be great for multitasking.
[20:31:11] blackmes1: has joined #RubyOnRails
[20:31:15] azor: has joined #RubyOnRails
[20:31:57] adaedra: Are you looking for polymorphic relations?
[20:32:34] adaedra: For your last question, there's ruby-toolbox
[20:34:41] htmldrum: has joined #RubyOnRails
[20:35:39] triptec_: has joined #RubyOnRails
[20:36:21] FCser: has joined #RubyOnRails
[20:36:28] Rodya_: has joined #RubyOnRails
[20:36:51] idefine: has joined #RubyOnRails
[20:40:37] bruce_lee: has joined #RubyOnRails
[20:40:37] bruce_lee: has joined #RubyOnRails
[20:42:08] ornerymoose: has joined #RubyOnRails
[20:43:56] Caerus|Away: has joined #RubyOnRails
[20:48:00] adre: has joined #RubyOnRails
[20:49:15] Cache_Money: has joined #RubyOnRails
[20:50:30] idefine: has joined #RubyOnRails
[20:50:39] theery: has joined #RubyOnRails
[20:51:51] codelahoma: has joined #RubyOnRails
[20:53:43] dikaio: has joined #RubyOnRails
[20:54:32] maletor2: has joined #RubyOnRails
[20:55:10] iamvery: has joined #RubyOnRails
[20:59:50] idefine: has joined #RubyOnRails
[21:01:19] DoctorMonocular: has joined #RubyOnRails
[21:04:10] nartes: has joined #RubyOnRails
[21:08:14] Oliphaunte: has joined #RubyOnRails
[21:12:05] chouhoulis: has joined #RubyOnRails
[21:21:22] scepticulous: has joined #RubyOnRails
[21:28:34] supernov_a: has joined #RubyOnRails
[21:32:38] _Tariq: has joined #RubyOnRails
[21:32:54] Devalo: has joined #RubyOnRails
[21:33:00] JoshGlzBrk: has joined #RubyOnRails
[21:33:13] rogue_koder: has joined #RubyOnRails
[21:36:23] hahuang65: has joined #RubyOnRails
[21:37:10] Rodya_: has joined #RubyOnRails
[21:38:08] Szuturon: has joined #RubyOnRails
[21:38:25] _Tariq: has joined #RubyOnRails
[21:38:48] JoshGlzBrk: has joined #RubyOnRails
[21:42:25] djbkd: has joined #RubyOnRails
[21:46:56] brent__: has joined #RubyOnRails
[21:52:31] supernov_a: has joined #RubyOnRails
[21:52:44] blackmes1: has joined #RubyOnRails
[21:54:27] kgrz: has joined #RubyOnRails
[21:56:19] bronson: has joined #RubyOnRails
[21:57:19] d0nn1e: has joined #RubyOnRails
[22:03:02] idefine: has joined #RubyOnRails
[22:04:17] shwoodard_: has joined #RubyOnRails
[22:04:32] spastorino: has joined #RubyOnRails
[22:05:09] iamdevnul: has joined #RubyOnRails
[22:05:19] daxroc: has joined #RubyOnRails
[22:05:31] BBHoss: has joined #RubyOnRails
[22:05:36] upgrayeddd: has joined #RubyOnRails
[22:07:23] drptbl: has joined #RubyOnRails
[22:18:00] DoctorMonocular: has joined #RubyOnRails
[22:18:10] SteenJobs: has joined #RubyOnRails
[22:30:34] Pupeno: has joined #RubyOnRails
[22:34:04] moeabdol: has joined #RubyOnRails
[22:35:29] chouhoulis: has joined #RubyOnRails
[22:37:03] ur5us: has joined #RubyOnRails
[22:37:56] Rodya_: has joined #RubyOnRails
[22:38:17] SteenJobs: has joined #RubyOnRails
[22:38:28] Pupeno: has joined #RubyOnRails
[22:40:30] idefine: has joined #RubyOnRails
[22:41:44] Devalo: has joined #RubyOnRails
[22:42:23] elwristo: has joined #RubyOnRails
[22:43:33] elwristo: has joined #RubyOnRails
[22:44:18] akshat_: has joined #RubyOnRails
[22:45:30] Rubie: has joined #RubyOnRails
[22:46:01] choke: has joined #RubyOnRails
[22:46:08] Rodya_: has joined #RubyOnRails
[22:46:15] bruno-: has joined #RubyOnRails
[22:54:45] emachnic: has joined #RubyOnRails
[22:55:22] maletor2: has joined #RubyOnRails
[22:57:49] DoctorMonocular: has joined #RubyOnRails
[22:59:57] Rodya_: has joined #RubyOnRails
[23:00:05] blackmes1: has joined #RubyOnRails
[23:01:08] rafaelfranca: has joined #RubyOnRails
[23:07:07] hahuang65: has joined #RubyOnRails
[23:08:04] et0x: has joined #RubyOnRails
[23:08:36] duncannz: has joined #RubyOnRails
[23:09:17] et0x: Can anyone point me to a good article on using ajax in rails to load activerecord data without reloading the page?
[23:09:34] cd83x: has joined #RubyOnRails
[23:15:51] tubbo: et0x: !ajax did you read that?
[23:15:51] helpa: et0x: See http://guides.rubyonrails.org/working_with_javascript_in_rails.html for everything you ever wanted to know about working with JS in Rails.
[23:18:35] flashpoint9: has joined #RubyOnRails
[23:18:38] et0x: I briefly went over it, let me check again -- sorry if I missed it!
[23:18:59] dalbusch1t: has joined #RubyOnRails
[23:20:15] tubbo: et0x: also are you familiar with how jQuery's $.ajax works?
[23:22:10] _Tariq: has joined #RubyOnRails
[23:22:12] et0x: I'm pretty new to ajax, I've yet to read in depth on the subject yet. The hardest thing for me to understand at this point really is how to write my controllers to parse ajax / return records in a controller action, while maintaining the normal html display functionality when browsing to the action/view -- and also how to integrate the two, the normal loaded page with the newly queried records found with ajax
[23:22:29] et0x: I take it I should look more into $.ajax ?
[23:27:09] DoctorMonocular: has joined #RubyOnRails
[23:30:57] Oliphaunte: has joined #RubyOnRails
[23:31:22] adre: has joined #RubyOnRails
[23:34:34] stardiviner: has joined #RubyOnRails
[23:36:46] hive-mind: has joined #RubyOnRails
[23:44:27] flashpoint9: has joined #RubyOnRails
[23:51:33] Ebok: has joined #RubyOnRails
[23:54:02] Oliphaunte: has joined #RubyOnRails
[23:55:49] tubbo: et0x: well you have two options. the first is to request JSON from the controller instead of HTML and have your controllers render out the JSON. your other, and imho easier, option is to configure your controller(s) to not render a layout when an XHR (Ajax) request is detected
[23:56:27] tubbo: in that second case, you can then request HTML and do a $('#element-you-want-to-refresh').html(response) inside the 'ajax:success' event to reload the contents onto the page without refreshing the page.
[23:57:58] stannard: has joined #RubyOnRails