« Back to channel list

#RubyOnRails - 28 April 2017

« Back 1 day Forward 1 day »
[00:10:24] hndk: has joined #RubyOnRails
[00:14:38] mattwc: has joined #RubyOnRails
[00:15:41] Ropeney: has joined #RubyOnRails
[00:15:59] armyriad: has joined #RubyOnRails
[00:19:34] cerulean: has left #RubyOnRails: ()
[00:24:49] hotpancakes: has joined #RubyOnRails
[00:34:24] cagomez: has joined #RubyOnRails
[00:34:33] fschuindt: has joined #RubyOnRails
[00:37:27] fschuindt: Is it possible to use markdown in rubydoc.info class/methods documentation or just in the README? I have made a stackoverflow question about it, I am trying to figure it out for a while now :/ https://goo.gl/OuxjvZ
[00:38:52] brent__: has joined #RubyOnRails
[00:51:51] hotpancakes: has joined #RubyOnRails
[00:53:25] sevenseacat: has joined #RubyOnRails
[00:59:46] PresidentBiscuit: has joined #RubyOnRails
[01:04:14] juggler: has joined #RubyOnRails
[01:14:39] hndk: has joined #RubyOnRails
[01:26:02] cam27: has joined #RubyOnRails
[01:26:15] Ratler: has joined #RubyOnRails
[01:55:49] duderonomy: has joined #RubyOnRails
[02:04:13] hotpancakes: has joined #RubyOnRails
[02:05:40] libastral: has joined #RubyOnRails
[02:11:14] mikecmpbll: has joined #RubyOnRails
[02:32:33] Jameser: has joined #RubyOnRails
[02:33:42] andatche: has joined #RubyOnRails
[02:46:58] chouhoulis: has joined #RubyOnRails
[02:50:41] hotpancakes: has joined #RubyOnRails
[02:52:21] gusrub: has joined #RubyOnRails
[03:01:51] uks: has joined #RubyOnRails
[03:07:14] alfiemax: has joined #RubyOnRails
[03:28:45] creature: has joined #RubyOnRails
[03:37:23] srinidhi: has joined #RubyOnRails
[03:42:09] brent__: has joined #RubyOnRails
[03:48:00] jane_booty_doe: has joined #RubyOnRails
[04:00:18] hotpancakes: has joined #RubyOnRails
[04:23:25] kristofferR: has joined #RubyOnRails
[04:36:46] michael_mbp: I'm seeing some very strange Postgres behaviour
[04:36:50] michael_mbp: https://gist.github.com/bsodmike/c84779d88a5ddeca7270e56ee168805b
[04:41:52] r3vDev: has joined #RubyOnRails
[04:42:47] hotpancakes: has joined #RubyOnRails
[04:49:04] jeffaustin81: has joined #RubyOnRails
[04:49:44] quirkycoders: has joined #RubyOnRails
[04:54:34] patarr: has joined #RubyOnRails
[04:59:11] quirkycoders: has joined #RubyOnRails
[05:18:02] Technodrome: has joined #RubyOnRails
[05:18:58] Radar: michael_mbp: looks like a 404
[05:20:59] quirkycoders: has joined #RubyOnRails
[05:23:26] michael_mbp: hey ryan how are you mate
[05:23:29] michael_mbp: ah no worries, figured it out
[05:24:32] michael_mbp: I'm working on a rather interesting problem - have you written any random weighted samplers algos?
[05:33:49] Ratler: has joined #RubyOnRails
[05:34:40] hotpancakes: has joined #RubyOnRails
[05:35:14] cagomez: has joined #RubyOnRails
[05:35:43] thomasfedb: has joined #RubyOnRails
[05:45:57] Radar: michael_mbp: hey :) I haven't done that kind of work before.
[05:46:01] Radar: What are you building?
[05:46:05] srinidhi: has joined #RubyOnRails
[05:46:48] hotpancakes: has joined #RubyOnRails
[05:47:34] sandstrom: has joined #RubyOnRails
[05:47:49] michael_mbp: a sampler to rank posts for a new platform
[05:48:06] michael_mbp: the current version is too crude, but I'm planning to move it into AWS's machine learning tool.
[05:53:29] michael_mbp: I've got it working in C++ with rails running the 'tool' via a pipe for now
[05:53:41] michael_mbp: will be porting it to gRPC later on
[05:57:41] brent__: has joined #RubyOnRails
[06:03:44] conta: has joined #RubyOnRails
[06:04:05] srinidhi: has joined #RubyOnRails
[06:12:19] morfin: has joined #RubyOnRails
[06:12:46] p8m: has joined #RubyOnRails
[06:14:36] morfin: if i use link_to 'Reprocess', reprocess_message_path(message), remote: true, method: :patch can i somehow use notifications(flashes)?
[06:14:50] morfin: or i certainly should handle that myself
[06:18:10] morfin: i want to modify my admin page to display new messages being added/processed dynamically
[06:22:23] quirkycoders: has joined #RubyOnRails
[06:34:29] conta: has joined #RubyOnRails
[06:43:00] ahrs: has joined #RubyOnRails
[06:47:07] mjora7: has joined #RubyOnRails
[06:47:56] jeyraof^mbpr: has joined #RubyOnRails
[06:55:28] patarr: has joined #RubyOnRails
[06:59:19] defsdoor: has joined #RubyOnRails
[06:59:53] hotpancakes: has joined #RubyOnRails
[07:00:55] dionysus69: has joined #RubyOnRails
[07:03:30] quirkycoders: has joined #RubyOnRails
[07:04:55] sandstrom: has joined #RubyOnRails
[07:07:36] jeyraof^mbpr: has joined #RubyOnRails
[07:09:59] AzaToth: has joined #RubyOnRails
[07:12:42] Kilo`byte: i am using action cable to stream messages from string identifier 'foo' to clients. I then subscribe to that channel on the client and log all messages to the js console
[07:13:22] Kilo`byte: however when i run MyChannel.broadcast_to 'foo', 'bar' in the rails console, nothing happens, besides a log message
[07:13:31] Kilo`byte: i also tried putting that code in a controller action
[07:18:00] pwnd_nsfw: has joined #RubyOnRails
[07:18:04] pwnd_nsfw: wassup chan
[07:22:21] pwnd_nsfw: FINE, WHATEVER
[07:24:29] quirkycoders: has joined #RubyOnRails
[07:24:56] shotbug: has joined #RubyOnRails
[07:37:44] koneko: has joined #RubyOnRails
[07:40:57] hotpancakes: has joined #RubyOnRails
[07:43:35] fschuindt: has joined #RubyOnRails
[07:45:00] quirkycoders: has joined #RubyOnRails
[07:56:50] marr: has joined #RubyOnRails
[08:01:29] mikecmpbll: has joined #RubyOnRails
[08:02:49] dionysus69: has joined #RubyOnRails
[08:03:44] abhi__: has joined #RubyOnRails
[08:10:02] workmad3: has joined #RubyOnRails
[08:13:36] brent__: has joined #RubyOnRails
[08:30:08] shotbug: has joined #RubyOnRails
[08:31:06] morfin: how can i mke an application sign cookies with :user_id?
[08:33:01] harfangk: has joined #RubyOnRails
[08:33:35] pwnd_nsfw: morfin, how do you mean "sign"?
[08:33:41] gamblor3: has joined #RubyOnRails
[08:33:50] pwnd_nsfw: http://api.rubyonrails.org/classes/ActionDispatch/Cookies.html Here's the documentation on rails cookies
[08:35:11] cerulean: has joined #RubyOnRails
[08:35:21] cerulean: i got ES6 in my code and i dont really know where it is
[08:35:24] cerulean: and this breaks sprockets
[08:35:29] cerulean: i just wrote mad javascript
[08:35:39] cerulean: how do i get sprockets to play with es6 again?
[08:35:40] cerulean: im on rails 5
[08:35:45] hotpancakes: has joined #RubyOnRails
[08:36:04] pwnd_nsfw: cerulean, babel>?
[08:37:06] cerulean: is there a recommended way to babel rails
[08:37:22] pwnd_nsfw: http://9elements.com/io/babel-rails-5-and-sprockets-4/
[08:37:36] cerulean: i guess thats the best newest stuff
[08:37:59] pwnd_nsfw: I don't really mess with ES6, so I honestly don't know
[08:38:11] pwnd_nsfw: Also, you don't know where the code is? Could it be a gem?
[08:38:18] pwnd_nsfw: It's nowhere in your assets?
[08:39:58] cerulean: its in some audio code i just added
[08:40:02] cerulean: using web midi
[08:42:22] quirkycoders: has joined #RubyOnRails
[08:43:01] cerulean: i installed babel haha
[08:43:03] cerulean: through that article
[08:43:05] cerulean: now i get Promise is not defined
[08:43:08] cerulean: i think i need the shims
[08:49:11] lxsameer: has joined #RubyOnRails
[08:51:36] Bicou: has joined #RubyOnRails
[08:52:20] Bicou: Hello. I am very new to ROR. I have created a model and I wanted to add a column. What I was expecting is that I simply add a field to my model class, then run a generate script that will create a migration for me, containing the instruction to add the column.
[08:52:45] Bicou: As it seems, the generation script will do automatic things only based on my migration name. is that right?
[08:53:15] Bicou: I have done a very little bit of Symfony, and there Doctrine analyses my class and compares that to the database and generates for me the migration script.
[08:53:31] Bicou: Can anyone help me out and confirm that it's not done in the same way in the ROR world?
[08:53:34] Bicou: -- thanks.
[08:55:33] jeyraof^mbpr: has joined #RubyOnRails
[08:56:17] patarr: has joined #RubyOnRails
[08:57:06] morfin: what i am doing wrong
[08:57:20] morfin: ApplicationCable::ParserChannel.broadcast_to 'processed_message', title: 'tset'
[08:57:52] cerulean: isn't it just .broadcast
[08:57:54] morfin: ParserChannel.broadcast_to 'processed_message', title: 'tset'
[08:58:26] cerulean: it's not broadcast_to
[08:58:28] morfin: but how you separate messages
[08:58:30] cerulean: it's #broadcast
[08:58:39] morfin: broadcast running on server
[08:59:00] cerulean: the channel name
[08:59:03] cerulean: has the be unique
[08:59:11] cerulean: use their ID or session ID
[08:59:18] cerulean: and on the client only subscribe to that ID
[08:59:19] sevenseacat: Bicou: Rails works the other way around - you modify your database via migrations, and then your model reads what fields are in the database
[09:00:15] morfin: i thought you can broadcast to all clients
[09:00:23] cerulean: yes you can
[09:00:27] cerulean: just simply dont do what i said
[09:00:30] cerulean: and use a "global channel"
[09:00:34] cerulean: with no special identifiers
[09:00:39] cerulean: have every client join it
[09:00:59] cerulean: you can do either
[09:01:03] Bicou: sevenseacat: Oh, OK then. So the way it works is: 1. generate migration. 2. update migration script so add/remove/update the colunms. 3. apply migration script to update database. Then, the model can read the new columns. Is that right?
[09:01:07] cerulean: i use private channels because im not a chat
[09:01:11] sevenseacat: Bicou: right.
[09:01:19] Bicou: sevenseacat: if so, how is the model class updated? Do I need to manually edit it too?
[09:01:26] cerulean: i even disable action cable on the rest of the site, only in one place its turned on
[09:01:34] sevenseacat: if youre just adding normal data fields, you don't need to touch your model
[09:01:37] morfin: basically i just want notify users when new messages appear, message status changed
[09:01:47] cerulean: you need private channels really
[09:01:48] sevenseacat: if you're adding things like associations, you'll need to add those to your model manually
[09:01:51] cerulean: if they are private messages
[09:02:01] morfin: no, not private
[09:02:18] Bicou: Ok that was the case actually. I wanted to link two tables in a one to one.
[09:02:20] morfin: messages are emails i grab from IMAP and then process(parse and send to API)
[09:02:38] cerulean: private meaning should ALL users on the site see it?
[09:02:43] Bicou: So basically I need to create migration file, add the relation in that, add the relation in my model,execute the relation and voilà?
[09:02:46] cerulean: if no, private channels
[09:02:49] morfin: so i want to be able track states for that emails
[09:03:45] morfin: :enqueued => :processing => :finished and when finished either :success or :error
[09:04:09] Bicou: I think I got it. I'm not used to duck typing (and I kinda hate it tbh).
[09:04:16] Bicou: Thanks a lot for your help sevenseacat!
[09:04:26] cerulean: that's not a question
[09:04:41] cerulean: do normal stuff with ajax, update live with websockets. if it needs to be private, secure the channel
[09:04:53] morfin: and they're not private - every admin user who logged in should see state changes
[09:05:10] cerulean: simply subscribe everyone to the same channel
[09:18:26] quirkycoders: has joined #RubyOnRails
[09:24:26] dionysus69: has joined #RubyOnRails
[09:26:07] hotpancakes: has joined #RubyOnRails
[09:39:43] morfin: so you can't automatically handle differnt messages in one subscriber?
[09:47:32] lxsameer: has joined #RubyOnRails
[09:49:42] arBmind: has joined #RubyOnRails
[09:50:52] lxsameer: has joined #RubyOnRails
[09:54:28] quirkycoders: has joined #RubyOnRails
[10:02:43] Velizar: has joined #RubyOnRails
[10:04:03] Velizar: Is it possible to have nested layouts - have layout B inside application.html.erb, and have my content inside layout B - without modifying application.html.erb? Or do I need a gem for that
[10:05:49] Velizar: I really don't want to couple application.html.erb to the layout inheriting from it, it should be the other way around.
[10:11:34] Velizar: actually I can't even find a gem to do that which works with Rails 5+
[10:23:47] lxsameer: has joined #RubyOnRails
[10:24:38] Velizar: Solved it: https://mattbrictson.com/easier-nested-layouts-in-rails
[10:25:23] lxsameer: has joined #RubyOnRails
[10:29:24] brent__: has joined #RubyOnRails
[10:30:26] quirkycoders: has joined #RubyOnRails
[10:30:43] jane_booty_doe: has joined #RubyOnRails
[10:31:41] ferr: has joined #RubyOnRails
[10:38:18] xco: has joined #RubyOnRails
[10:45:52] patarr: has joined #RubyOnRails
[10:47:30] HoierM: has joined #RubyOnRails
[11:00:39] shotbug: has joined #RubyOnRails
[11:02:26] Technodrome: has joined #RubyOnRails
[11:03:06] cerulean: how do i get webpacker to pack my css files?
[11:06:29] quirkycoders: has joined #RubyOnRails
[11:10:17] arBmind: has joined #RubyOnRails
[11:11:06] Jameser: has joined #RubyOnRails
[11:11:34] DrYockel: has joined #RubyOnRails
[11:14:11] justAllgood: has joined #RubyOnRails
[11:22:28] GodFather: has joined #RubyOnRails
[11:24:58] cheeti: has joined #RubyOnRails
[11:26:27] hashrocket: has joined #RubyOnRails
[11:27:11] hotpancakes: has joined #RubyOnRails
[11:27:35] cheeti: simple form multi select dropdown <%= f.select(:service, [['Type A', 'Type A'],['Type B', 'Type B'],['Type C', 'Type C']],{ :prompt => "Please select"},{ :multiple => true, :size => 5,:required =>true }) %> server side validation not working validates_presence_of :service
[11:36:37] hndk: has joined #RubyOnRails
[11:55:00] koneko: has joined #RubyOnRails
[11:58:42] dionysus69: has joined #RubyOnRails
[11:59:34] beauby: has joined #RubyOnRails
[12:00:12] cerulean: webpacker is not working for me
[12:07:12] beauby: has joined #RubyOnRails
[12:11:13] Leonardo_0112: has joined #RubyOnRails
[12:13:34] cam27: has joined #RubyOnRails
[12:28:38] hotpancakes: has joined #RubyOnRails
[12:41:10] pupsicle: has joined #RubyOnRails
[12:42:51] morfin: i know you really don't like ActiveAdmin but still
[12:43:27] morfin: is that possible to update grid properly when server pushed data to me(including pages number etc)
[13:00:45] pwnd_nsfw: horray 5.1 released
[13:01:23] pwnd_nsfw: I like how cerulean was super descriptive
[13:01:35] pwnd_nsfw: morfin, grid? table?
[13:01:59] hotpancakes: has joined #RubyOnRails
[13:03:50] Bicou: has left #RubyOnRails: ()
[13:04:20] rfoust: has joined #RubyOnRails
[13:08:17] quazimodo: has joined #RubyOnRails
[13:13:33] cheeti: has joined #RubyOnRails
[13:14:24] cheeti: multi select dropdown serside validation not working validates_presence_of :service how to validate?
[13:16:38] cheeti: multi select dropdown serside validation not working validates_presence_of :service how to validate?
[13:18:44] Jameser: has joined #RubyOnRails
[13:21:37] pwnd_nsfw: http://stackoverflow.com/questions/10967931/rails-how-to-validate-f-select-field
[13:21:47] pwnd_nsfw: how to spam
[13:22:02] pwnd_nsfw: cheeti, you were late for your 2 min window there m8
[13:25:40] jeffaustin81: has joined #RubyOnRails
[13:25:58] mordof: has joined #RubyOnRails
[13:31:45] DukeDave: has joined #RubyOnRails
[13:34:58] DLSteve_: has joined #RubyOnRails
[13:36:51] cheeti: pwnd_nsfw need to validate multi select dropdown
[13:37:15] cheeti: pwnd_nsfw <%= f.select(:service, [['Type A', 'Type A'],['Type B', 'Type B'],['Type C', 'Type C']],{},{ :multiple => true, :size => 5}) %>
[13:37:53] cheeti: pwnd_nsfw i am using jquery multiselect plugin
[13:38:34] jphase: has joined #RubyOnRails
[13:38:49] jphase: has joined #RubyOnRails
[13:38:50] pwnd_nsfw: what code are you trying now?
[13:39:01] pwnd_nsfw: http://gist.github.com
[13:39:05] pwnd_nsfw: all relevant code please
[13:39:21] pwnd_nsfw: That could include controller and HTML output
[13:44:35] cheeti: https://gist.github.com/anonymous/7914a5b5bd9207c289002675e448363b
[13:49:23] lxsameer: has joined #RubyOnRails
[13:49:46] Leonardo_0112: has joined #RubyOnRails
[13:50:04] cheeti: pwnd_nsfw https://gist.github.com/anonymous/7914a5b5bd9207c289002675e448363b
[13:54:51] lxsameer: has joined #RubyOnRails
[13:58:30] Jameser: has joined #RubyOnRails
[13:59:52] shotbug: has joined #RubyOnRails
[14:01:30] bachmann: has joined #RubyOnRails
[14:05:32] patarr: has joined #RubyOnRails
[14:05:46] safetypin: has joined #RubyOnRails
[14:06:19] PlasmaStar: has joined #RubyOnRails
[14:07:54] lxsameer: has joined #RubyOnRails
[14:08:05] defsdoor: has joined #RubyOnRails
[14:15:40] hotpancakes: has joined #RubyOnRails
[14:28:28] hotpancakes: has joined #RubyOnRails
[14:40:23] patarr1: has joined #RubyOnRails
[14:47:02] creature: has joined #RubyOnRails
[14:47:58] morfin: is there any dynamic grid with easy integration with rails?
[14:48:34] morfin: i want to push values and don't be concerned about paging/sort/etc
[14:51:23] patarr: has joined #RubyOnRails
[14:52:04] safetypin: has joined #RubyOnRails
[14:53:13] Technodrome: has joined #RubyOnRails
[14:56:48] davidconnolly: has joined #RubyOnRails
[14:58:02] arBmind: has joined #RubyOnRails
[15:01:22] GreekFreak: has joined #RubyOnRails
[15:02:11] morfin: or it's simplier to use something like pjax?
[15:03:36] morfin: because with custom sort + filters + etc i should check is record in selection, is it on page i see etc
[15:04:00] morfin: which sounds pretty complicated to me
[15:08:01] choke: has joined #RubyOnRails
[15:09:00] morfin: nvm i will ask in #web better
[15:09:50] hotpancakes: has joined #RubyOnRails
[15:26:57] ResidentBiscuit: has joined #RubyOnRails
[15:30:10] bga57: has joined #RubyOnRails
[15:31:18] pwnd_nsfw: morfin, do you mean table?
[15:33:45] pwnd_nsfw: I've been trying to help you since last night morfin, but you're bad at responding haha
[15:43:11] Aytan72: has joined #RubyOnRails
[15:44:03] Aytan72: Anyone know where I watch the RailsConf 2017 opening keynote by DHH?
[15:44:21] polishdub: has joined #RubyOnRails
[15:46:02] irishfromua: has joined #RubyOnRails
[15:48:53] baweaver: Aytan72: Confreaks normally has it
[15:49:00] baweaver: not sure if it'd be posted yet though
[15:49:58] Aytan72: baweaver: Thanks! They uploaded days 2/3 but not 1. Hopefully they will post it later
[15:50:07] baweaver: normally they do
[15:50:18] Aytan72: Did you go to RailsConf this year?
[15:50:33] baweaver: Na, work won't send me.
[15:50:40] Aytan72: Boo! Same here
[15:50:51] baweaver: sounds like time to find new work then
[15:51:04] davidconnolly: has joined #RubyOnRails
[15:51:06] Aytan72: Indeed! $900/ticket and travel could add up
[15:51:42] hobodave: has joined #RubyOnRails
[15:51:50] Aytan72: I'm actually building a Rails team. You got a resume handy?
[15:53:13] gambl0re: has joined #RubyOnRails
[15:55:32] Technodrome: has joined #RubyOnRails
[15:57:16] baweaver: Oh I've already got a few options in SF.
[15:57:59] baweaver: though really LinkedIn tends to cover most everything anymore: linkedin.com/in/keystonelemur
[15:58:41] Aytan72: Yeah that's true. BTW it's a remote gig
[15:59:51] baweaver: ACTION needs to get a new profile picture for LinkedIn already.
[16:00:46] baweaver: Speaking of, got a phone screen with Stripe here at 9:30 so may disappear.
[16:00:52] Aytan72: I haven't changed mine since day 1
[16:01:01] Aytan72: Good luck! Great company
[16:01:10] baweaver: Square was yesterday :)
[16:01:16] Aytan72: I see a trend
[16:01:24] Aytan72: How did it go?
[16:01:38] baweaver: I'd say fairly well, just the screen but I cleared the problems easy enough
[16:01:56] xco: has left #RubyOnRails: ()
[16:01:56] baweaver: at this point Ruby is basically a fluent language to me so I can just write from memory
[16:02:09] Aytan72: Well I connected with you on LinkedIn, keep in touch if anything changes for you or you know of someone else that's interested
[16:02:11] User458764: has joined #RubyOnRails
[16:03:09] Aytan72: When I first started developing I was watching one of the senior devs work and I was amazed at how he was coding from memory
[16:03:24] Aytan72: Today I can do that too. I don't remember exactly when it happened but its pretty sweet.
[16:03:42] v|sh: has joined #RubyOnRails
[16:04:04] justAllgood1: has joined #RubyOnRails
[16:05:12] baweaver: What's amusing is I end up teaching my interviewers a few new bits of Ruby on occasion
[16:05:37] Aytan72: That's hilarious! That's when you ask for a higher salary
[16:06:24] baweaver: Though really I treat it more as a mutual learning experience than anything
[16:06:38] mjora7: has joined #RubyOnRails
[16:07:30] baweaver: not everyone's going to know every feature of a language, I've just been around Ruby long enough to know a lot of them, so I very rarely hold that against anyone
[16:07:32] Aytan72: Once I realized that an interview is a two way conversation, things became much simpler and less intimidating
[16:07:50] baweaver: Then again I've been on the other end of the table for a few years now, so that helps
[16:08:08] Aytan72: Yep that helps a lot too
[16:09:21] pupsicle: has joined #RubyOnRails
[16:09:32] Aytan72: My gig is a project. So hourly we can do even better than your note to me
[16:09:44] Aytan72: Just sayin :)
[16:09:52] baweaver: I'll keep it in mind
[16:10:13] baweaver: though I'd be going for full time for at least a few more years.
[16:10:42] Aytan72: I'll sell it a little more. Starting from scratch, cutting edge tech (latest version of rails, etc.) and building something new. Not another invoicing/billing system
[16:10:49] Aytan72: Really put your skills to the test
[16:12:21] baweaver: Might as well post a link to it up here if anyone else is looking
[16:13:16] baweaver: In general the channel rules are very open to posting job opportunities as long as you're not spamming them every hour or so
[16:13:33] mikecmpbll: has joined #RubyOnRails
[16:13:51] Aytan72: Oh cool. I wasn't sure about that rule
[16:16:56] Aytan72: If anyone is interested, check out the link to the job description: https://www.upwork.com/jobs/~01501089c767dbc910
[16:20:05] ahrs: has joined #RubyOnRails
[16:20:36] MasterAsia: has joined #RubyOnRails
[16:24:52] irishfromua: has joined #RubyOnRails
[16:29:39] MasterAsia: What mitigation do y'all use for collection_selects slowly ballooning with too many options
[16:29:54] MasterAsia: I guess I could limit the number of models returned but maybe this isn't the right input?
[16:31:40] Aytan72: It depends on what you might be listing. You may consider having a grouped_collection_select http://railscasts.com/episodes/88-dynamic-select-menus-revised
[16:31:41] epochwolf: masterasia: Well, you either limit the data or you use something like select2 with ajax requests.
[16:34:38] gusrub: has joined #RubyOnRails
[16:38:42] arBmind: has joined #RubyOnRails
[16:55:22] mochiyoda: has joined #RubyOnRails
[16:55:39] MasterAsia: epochwolf, select2 works. thanks
[16:56:34] MasterAsia: Aytan72, also a nice suggestion(but doesn't solve the memory issue of loading all columns from the db)
[16:58:12] justAllgood: has joined #RubyOnRails
[17:09:32] davidconnolly: has joined #RubyOnRails
[17:27:54] justAllgood1: has joined #RubyOnRails
[17:29:27] Rodya_: has joined #RubyOnRails
[17:33:53] irishfromua: has joined #RubyOnRails
[17:37:06] baweaver: Yeah, Select2 tends to be the easiest way to paginate those options. At the same time you should _probably_ make sure you need all those options in the first place
[17:37:19] baweaver: Make sure to debounce it as well so you're not hammering the API on search
[17:38:07] baweaver: debounce being a function in JS that won't actually fire the event until it's been X ms since last invocation
[17:38:28] baweaver: So you can press it 100x and it calls only once after say 200ms has passed since last keydown
[17:38:39] baweaver: (also quite good for scrolling functions)
[17:39:44] MasterAsia: baweaver, Mhm I'm using lodash's debounce func
[17:40:14] baweaver: Yep, comes with a few extras for immediate invocation as well.
[17:48:22] irishfromua: has joined #RubyOnRails
[17:49:10] brwr_: has joined #RubyOnRails
[17:50:28] crankharder: has joined #RubyOnRails
[17:53:43] duderonomy: has joined #RubyOnRails
[17:56:24] Exagone313: has joined #RubyOnRails
[17:57:54] irishfromua: has joined #RubyOnRails
[18:03:10] patarr: Is there any way to stop byebug from printing out the return value of an expression? It's driving me _insane_
[18:04:18] pwnd_nsfw: patarr, removing it from gemfile lol
[18:04:30] patarr: I swear I am about to do that.
[18:04:34] patarr: And toss my laptop out the window.
[18:04:45] pwnd_nsfw: Well, do the first thing, then if you're still mad, then yeah, window
[18:07:55] pwnd_nsfw: I'm wondering... if my development machine doesn't have a UI... can I still perform acceptance testing with tests that may require Javascript?
[18:08:40] safetypin: has joined #RubyOnRails
[18:09:28] cerulean: has joined #RubyOnRails
[18:09:35] cerulean: yo guys, can anyone help me with webpack/webpacker
[18:09:48] cerulean: i can't require jquery and have no idea if my code is being loaded but i think no
[18:10:09] cerulean: i have two .js files in packs/ yet only one gets compiled?
[18:10:09] pwnd_nsfw: cerulean, everytime you come in here to ask, you don't provide any information/code, etc.
[18:10:18] cerulean: im not surre what relevant code you need
[18:10:23] cerulean: but i can provide any
[18:10:23] irishfromua: has joined #RubyOnRails
[18:10:36] cerulean: i can provide every file webpack is touching
[18:10:40] pwnd_nsfw: I wonder if it gets compiled into one file
[18:10:49] pwnd_nsfw: I'm not experienced with webpacker yet
[18:10:57] cerulean: it seems to do some module loading thing
[18:11:08] cerulean: not really sure
[18:11:13] cerulean: last night was my first experience with it
[18:11:42] pwnd_nsfw: No errors are produced, I'm assuming
[18:11:47] cerulean: yeah no errors
[18:11:52] pwnd_nsfw: In what way are you requiring jquery?
[18:12:01] cerulean: the "error" is only application.js gets made and not dj.js which should get made too
[18:12:11] cerulean: require('jquery'); at the top of packs/application.js
[18:12:20] cerulean: installed with yarn
[18:12:27] pwnd_nsfw: 5.1 I guess, right?
[18:12:40] baweaver: ACTION needs to play with Rails Webpack
[18:12:47] pwnd_nsfw: beta or did you update to the official release?
[18:13:17] cerulean: i need to update looks like
[18:13:27] cerulean: k good idea
[18:14:57] pwnd_nsfw: cerulean, http://pixelatedworks.com/articles/embracing-change-rails51-adopts-yarn-webpack-and-the-js-ecosystem/
[18:15:06] pwnd_nsfw: then check this out. It's still for the beta, but it shouldn't be too much different
[18:15:16] pwnd_nsfw: ctrl + f jquery
[18:24:46] Technodrome: has joined #RubyOnRails
[18:26:47] cagomez: has joined #RubyOnRails
[18:31:22] davidconnolly: has joined #RubyOnRails
[18:31:52] davidconnolly: has joined #RubyOnRails
[18:34:55] pwnd_nsfw: has joined #RubyOnRails
[18:35:23] mjora7: has joined #RubyOnRails
[18:43:34] cerulean: well upgrading rails seems to have done nothing
[18:43:42] cerulean: alright, i think if read that but ill look again
[18:43:52] cerulean: that feel when you've read all the articles and it still don't work ;D
[18:44:27] cerulean: looks like i added jquery wrong
[18:44:38] cerulean: i think rails 5.0.2 was fine but we're upgraded now so F**** it
[18:45:28] davidconnolly: has joined #RubyOnRails
[18:45:45] cerulean: another side effect is i lost image_tags somehow when i disabled sprockets, i need to ease that
[18:45:50] cerulean: i feel i should write my own blog at this point
[18:46:01] cerulean: considering there's about 3 good ones and thats it
[18:51:00] chouhoulis: has joined #RubyOnRails
[18:54:18] cerulean: i did exactly what it said for like 50th time and it doesnt work
[18:56:17] justAllgood: has joined #RubyOnRails
[18:57:40] ForeignBiscuit: has joined #RubyOnRails
[19:05:57] adambecker66: has joined #RubyOnRails
[19:06:27] cerulean: so i found my problem
[19:06:39] cerulean: webpack javascripts go in /APP/JAVASCRIPTS/PACK
[19:06:42] cerulean: read that 4 times
[19:06:50] cerulean: NOT /APP/ASSETS/JAVASCRIPTS/PACK
[19:06:55] cerulean: now read it again 4 more times
[19:07:00] cerulean: now go write it somewhere so i dont have to
[19:08:10] cerulean: /app/javascript + /app/javascript/packs
[19:08:13] bachmann: has joined #RubyOnRails
[19:15:41] pwnd_nsfw: has joined #RubyOnRails
[19:22:18] cerulean: i figured it out pwnd_nsfw
[19:22:22] cerulean: /app/javascript + /app/javascript/packs
[19:22:27] cerulean: NOT /APP/ASSETS/JAVASCRIPTS/PACK <<< lol
[19:30:48] davidconnolly: has joined #RubyOnRails
[19:31:45] akshat: has joined #RubyOnRails
[19:31:47] Or1on: has joined #RubyOnRails
[19:34:03] workmad3: has joined #RubyOnRails
[19:36:45] ForeignBiscuit: has joined #RubyOnRails
[19:37:09] Rodya_: has joined #RubyOnRails
[19:40:08] polishdub: has joined #RubyOnRails
[19:40:23] Rodya_: has joined #RubyOnRails
[19:41:10] bachmann: has joined #RubyOnRails
[19:43:42] lxsameer: has joined #RubyOnRails
[19:48:15] ResidentBiscuit: has joined #RubyOnRails
[19:49:03] blackmesa: has joined #RubyOnRails
[19:55:07] quirkycoders: has joined #RubyOnRails
[19:55:17] sonOfRa: has joined #RubyOnRails
[19:59:40] hobodave_: has joined #RubyOnRails
[20:01:05] hobodave_: has joined #RubyOnRails
[20:11:31] patarr: has joined #RubyOnRails
[20:13:27] ascarter: has joined #RubyOnRails
[20:16:41] User458764: has joined #RubyOnRails
[20:19:15] sandstrom: has joined #RubyOnRails
[20:21:22] srinidhi: has joined #RubyOnRails
[20:27:39] Technodrome: has joined #RubyOnRails
[20:33:34] duderono_: has joined #RubyOnRails
[20:35:29] blackmesa: has joined #RubyOnRails
[20:38:39] knight33: has joined #RubyOnRails
[20:38:53] patarr: has joined #RubyOnRails
[20:47:38] patarr: has joined #RubyOnRails
[20:47:53] pwnd_nsfw: has joined #RubyOnRails
[20:48:10] pwnd_nsfw: So, did some research and cool, webkit can run headless
[20:48:30] pwnd_nsfw: I thought you had to open a working browser to test javascript changes in your specs
[20:57:28] cagomez: has joined #RubyOnRails
[21:01:42] zapho: has joined #RubyOnRails
[21:05:35] patarr: has joined #RubyOnRails
[21:08:18] brent__: has joined #RubyOnRails
[21:12:56] catbusters: has joined #RubyOnRails
[21:13:05] workmad3: has joined #RubyOnRails
[21:14:38] havenwood: catbusters: hi
[21:14:45] Rodya_: has joined #RubyOnRails
[21:14:49] catbusters: I'm just getting started with Rails
[21:15:09] catbusters: I've programmed a fair bit in Python (Flask) and Meteor (JavaScript) before
[21:15:33] catbusters: I've used Ruby too a little here and there
[21:16:00] catbusters: Is there a really quick guide or resource that would help me get up to speed quickly?
[21:16:13] havenwood: catbusters: The official Rails guides are a very good start.
[21:16:27] havenwood: catbusters: http://guides.rubyonrails.org/
[21:16:43] catbusters: havenwood: That doesn't cover the ecosystem, right?
[21:17:01] catbusters: Just the base framework
[21:17:02] cagomez: has joined #RubyOnRails
[21:17:06] havenwood: catbusters: It actually does touch on a number of commonly used gems.
[21:17:15] catbusters: Oh, that's awesome then!
[21:17:24] catbusters: Also, I need a recommendation for an admin package
[21:18:11] catbusters: Hopefully one without a strong dependency on ActiveRecord. I need to use both AR and Mongoid
[21:18:46] havenwood: catbusters: A common recommendation is to build your own admin. The two gems I've seen around the most are activeadmin and rails_admin. (I've not used the latter.)
[21:20:21] catbusters: havenwood: I would, but it's pretty generic and I lack time :P
[21:20:43] dionysus69: has joined #RubyOnRails
[21:21:26] catbusters: How's your experience been with activeadmin? Would you hold off on recommending it?
[21:23:37] havenwood: catbusters: It's very quick to get up-and-running. It works with Rails 5.0 but doesn't yet support Rails 5.1.
[21:24:32] havenwood: catbusters: It includes a number of dependencies and has some strange quirks. It's a different level of abstraction than the rest of your app. Pick your poison.
[21:24:34] Slogger: So I need to run an initializer to configure a custom class at launch and I'm getting uninitialized constant (NameError), though if I don't put code in the initializer I can access the class just fine... (Rails 5) I take it initializers get run before anything loads from the app directory?
[21:25:39] catbusters: havenwood: Can you name a few quirks? I'm on Rails 5.0 so that shouldn't be a problem
[21:26:37] havenwood: catbusters: Scopes load on app boot and thus can't be dynamic. Filters require that you use Ransack. The select2 and formtastic dependencies might not be what you choose for the rest of your app. Etc.
[21:28:24] catbusters: havenwood: Okay, apart from the static scopes, it shouldn't be a problem since this is just an admin app that I'm building
[21:28:48] catbusters: havenwood: Thanks for the help! :)
[21:42:19] User458764: has joined #RubyOnRails
[21:42:27] cagomez: has joined #RubyOnRails
[21:44:24] justAllgood: has joined #RubyOnRails
[21:46:20] clouder`grr: has joined #RubyOnRails
[21:47:18] quirkycoders: has joined #RubyOnRails
[21:49:58] quirkycoders: has joined #RubyOnRails
[21:55:40] ascarter: has joined #RubyOnRails
[21:59:32] mjora7: has joined #RubyOnRails
[22:04:20] xco: has joined #RubyOnRails
[22:05:26] xco: this shouldn’t be hard but i can’t solve it. i updated a gem using bundler, when i try to do “bundle install” it tells me it can’t find the source of the OLDER gem. #help #please
[22:06:08] havenwood: xco: bundle update OLDER_GEM_NAME_HERE
[22:06:28] havenwood: optionally with --conservative flag
[22:06:32] havenwood: (in newer bundler)
[22:07:07] xco: havenwood: exactly i did… (let me try with — conservative)
[22:08:03] havenwood: xco: Show us a gist of what you're running and the output?
[22:10:33] xco: gist https://gist.github.com/siaw23/e8f3125f1cdf08dbee069fdb847e132c
[22:11:52] brent__: has joined #RubyOnRails
[22:15:00] kies: has joined #RubyOnRails
[22:15:13] fourcolors: has joined #RubyOnRails
[22:19:14] jsrn_: has joined #RubyOnRails
[22:21:25] xco: havenwood: i posted the gist you can take a look if you have time
[22:21:48] fourcolors: has joined #RubyOnRails
[22:27:17] havenwood: xco: docker-compose run app bundle exec rake
[22:28:40] xco: havenwood: see what i’m talking about? https://gist.github.com/siaw23/e8f3125f1cdf08dbee069fdb847e132c#file-gist2-txt tried everything :)
[22:29:23] havenwood: xco: Your bundle is installing. Run your command in the context of the bundle as I showed ^ above.
[22:29:37] quirkycoders: has joined #RubyOnRails
[22:30:02] patarr: has joined #RubyOnRails
[22:31:52] xco: havenwood: exactly what i did :)
[22:32:10] havenwood: xco: Gist the result?
[22:32:29] havenwood: xco: i see it there at the end
[22:33:11] xco: havenwood: https://gist.github.com/siaw23/e8f3125f1cdf08dbee069fdb847e132c#file-gist3-txt
[22:33:36] havenwood: xco: Maybe you're bundling for a different Ruby/Gem than your app. Confirm you've installed Bundler with the Ruby you're using: docker-compose run app gem install bundler
[22:34:05] havenwood: xco: Then `bundle` and retry.
[22:34:37] xco: on it ;)
[22:36:18] xco: havenwood: see https://gist.github.com/siaw23/e8f3125f1cdf08dbee069fdb847e132c#file-gist4-txt never had this happen before :(
[22:37:23] havenwood: xco: looks like rake isn't in your Gemfile
[22:37:34] havenwood: my eyes are tired
[22:38:57] havenwood: xco: Does `gem install skylight --version 1.2.2` work? I dunno why it's acting like it's not in your bundle...
[22:39:16] havenwood: xco: Check `which -a bundle` and `gem which bundler` and confirm everything is as expected?
[22:39:40] xco: in docker right?
[22:39:48] havenwood: xco: Yeah, to sanity check
[22:42:38] Tempesta: has joined #RubyOnRails
[22:43:16] xco: havenwood: i’m sure what it’s showing me is what i have on my local OS https://gist.github.com/siaw23/04023122bddafe087c78f3024ea8dd43
[22:43:30] quazimodo: has joined #RubyOnRails
[22:44:19] havenwood: xco: And confirm skylight is installed in the same place?: gem which skylight
[22:44:57] havenwood: xco: Double check there's no funky bundler config?: bundle config
[22:45:06] patarr: has joined #RubyOnRails
[22:45:06] xco: now i’m confused https://gist.github.com/siaw23/04023122bddafe087c78f3024ea8dd43
[22:46:01] kristofferR: has joined #RubyOnRails
[22:46:19] xco: there’s no bundler config. that file is in gitignore
[22:46:40] fourcolors: has joined #RubyOnRails
[22:51:06] mlt-: Was there a change in the last few years on how nested fields are passed? Somehow I don't get _attributes postfix
[22:51:32] mlt-: I do see nested fields from f.fields_for . It is just a naming...
[22:53:33] mlt-: ... or it doesn't work with simple_form
[22:53:47] mlt-: ACTION is looking into cocoon
[22:57:45] patarr: has joined #RubyOnRails
[23:00:13] mlt-: I replaced f.field_for with f.simple_fields_for (from cocoon gem), but still there is no _attributes
[23:03:38] Radar: Did you specify accepts_nested_attributes_for in your model?
[23:05:09] mlt-: Radar: yes
[23:05:14] helpa: ¯\_(ツ)_/¯ Sorry, Radar is not able to help you any further as they do not know.
[23:05:33] mlt-: However it seems it is not there yet. I'm struggling with strong params
[23:05:53] mlt-: It is somewhat before model object creation
[23:06:03] mlt-: if I understand it correctly
[23:06:28] mlt-: So it seems that HTML form has such naming without _attributes
[23:07:26] User458764: has joined #RubyOnRails
[23:13:42] mlt-: Radar: I had remnants from previous attempts. It seems that one has to do f.simple_fields_for :submodel_attributes ..
[23:17:37] mlt-: ... and wiki seems messed up as there is no need for [] https://github.com/plataformatec/simple_form/wiki/Nested-Models#example-for-strong-parameters
[23:18:04] mlt-: ACTION wonders if anybody is using it
[23:21:07] mlt-: Well, it seems to work finally... got to edit wiki
[23:43:16] chouhoulis: has joined #RubyOnRails
[23:51:44] tercenya: has joined #RubyOnRails
[23:57:35] uksio: has joined #RubyOnRails