« Back to channel list

#RubyOnRails - 22 March 2017

« Back 1 day Forward 1 day »
[00:00:00] roamingdog: has joined #RubyOnRails
[00:00:50] roamingdog: has joined #RubyOnRails
[00:07:41] linetrace: have to admit I’m newish to Rails, it there an advised method (Rails 5) to fetch just values from an ActiveRecord query, not instantiate models from the results in such cases (query just selects year & month of published page for building archive links)
[00:08:25] matthewd: pluck, maybe?
[00:13:20] linetrace: matthewd: pluck looks promising, thanks
[00:18:37] roamingdog: has joined #RubyOnRails
[00:27:21] xaviergmail: has joined #RubyOnRails
[00:27:59] quazimodo: has joined #RubyOnRails
[00:32:00] superlou: has joined #RubyOnRails
[00:32:34] coldfront: has joined #RubyOnRails
[00:33:32] cagomez: has joined #RubyOnRails
[00:42:07] roamingdog: has joined #RubyOnRails
[00:42:55] roamingdog: has joined #RubyOnRails
[00:43:43] roamingdog: has joined #RubyOnRails
[00:44:27] Spami__: has joined #RubyOnRails
[00:44:33] roamingdog: has joined #RubyOnRails
[00:56:35] naprimer: has joined #RubyOnRails
[00:57:08] chrickso: has joined #RubyOnRails
[00:59:17] rgr: has joined #RubyOnRails
[00:59:47] patarr1: If I require a file in my job.rb file, will the constants in that file be defined in all of the various classes/steps the job uses?
[01:00:32] rgr: has joined #RubyOnRails
[01:04:46] patarr1: I made a config/initializers/exceptions.rb and have one line - require 'somelib/exceptions'
[01:05:05] patarr1: In lib/somelib/exceptions.rb I have a module Foo, and within it a couple StandardErrors defined.
[01:05:36] patarr1: When I load Rails, it complains with "undefined method `configure' for Foo::Module"
[01:05:47] patarr1: What is going on with this?
[01:09:48] jenrzzz: has joined #RubyOnRails
[01:13:33] nyaa: has joined #RubyOnRails
[01:21:18] matthewd: patarr_: If you manually define the Foo module in exceptions.rb, then it won't get autoloaded from foo.rb
[01:24:04] aajjbb: has joined #RubyOnRails
[01:24:27] doodlehaus: has joined #RubyOnRails
[01:27:33] Derperperd: has joined #RubyOnRails
[01:27:41] mikeymicrophone: has joined #RubyOnRails
[01:28:25] chrickso: anyone here familiar with both flask and ruby on rails? i know my way around flask pretty well but having to plug in all the extensions i need, some that aren't being maintained, is really putting me off using it for my next project. really finding myself drawn to rails being so 'everything i need in the box and up-to-date'. is rails really that much of a time-saver over something like flask? not interested in django
[01:30:36] Radar: chrickso: hey they
[01:31:04] Radar: I don't know much about Flask (tinkered, but haven't used it seriously). I have used Rails for 10+ years and I keep coming back to it as my favourite tool for building web apps.
[01:31:27] Radar: chrickso: What kind of things does flask do to save time for you?
[01:33:18] chouhoulis: has joined #RubyOnRails
[01:34:12] chrickso: Radar: very little. basically processes the request and gives you access to it and the cookie. litterally everything else you do yourself or attach some extension made by who know's who and not updated in several years
[01:34:28] Radar: Well Rails certainly does that :)
[01:34:34] Radar: How about database migrations?
[01:34:41] Radar: Testing framework integrations?
[01:34:44] Radar: Sending email?
[01:34:47] Radar: Background jobs?
[01:36:15] Derperperd: has joined #RubyOnRails
[01:38:24] brent__: has joined #RubyOnRails
[01:39:00] chrickso: same deal, all that stuff is available but various degrees of some random guy hacked it together and you follow the instructions to connect it and get that functionality
[01:39:18] baweaver: It's the same way in a lot of Javascript land
[01:39:52] baweaver: I'm a meager 5+ years experience though, so I defer to Radar :P
[01:40:40] harfangk: has joined #RubyOnRails
[01:40:47] Radar: chrickso: Migrations, sending email and background jobs (at least, a common API for things that run background jobs) are built in. Testing framework integrations exist as well-maintained gems.
[01:42:14] chrickso: some things i read about rails is when things go wrong it can be hard to narrow in on where exactly its happening when all the 'magic' happening everywhere and they prefer something as bare as flask even if it means more work up front to save on the troubleshooting time later
[01:42:52] chrickso: i suppose after 10 years you don't deal with alot of that anymore but can you really recommend it with that in mind to a ~beginner?
[01:43:28] |PiP|: has joined #RubyOnRails
[01:45:23] Radar: I think there's a lot of good architectural advice out there for Rails apps these days which help you avoid the common pitfalls.
[01:45:32] Radar: You can certainly engineer yourself into some... interesting situations.
[01:45:40] Radar: And yes, I would really still recommend Rails to a ~beginner.
[01:45:58] Radar: !r4ia I even wrote a 600-page-book directed at beginners to Rails :D
[01:45:58] helpa: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[01:46:09] roamingdog: has joined #RubyOnRails
[01:49:05] chrickso: which one of those people is you?
[01:49:42] chrickso: and thoughts on using a rails 4 book on rails 5+?
[01:51:01] duderonomy: has joined #RubyOnRails
[01:51:57] chrickso: also a concern of mine is how every tutorial seems to be almost too ~beginner and will be like 'heres how you make a basic user authentication/system' but theres very little on like enterprise level, super robust/secure user account/session setup
[01:52:27] chrickso: whats the advanced/enterprise code examples and explanations book?
[01:52:37] matthewd: 4.x & 5.x are very similar
[01:56:31] baweaver: After a certain point you tend to have to fly outside the nest of tutorials
[01:56:41] baweaver: Mostly that comes in large enterprise scenarios
[01:57:00] baweaver: Though Devise + LDAP tends to take care of most of the auth problems
[01:57:10] baweaver: and if not there are JWT and other systems you can tie in as well
[01:57:35] baweaver: Most of it is out there and tested, and can be pointed to, but after a certain point tutorials become exceedingly rare
[01:57:45] baweaver: but that's just a general thing across any language
[01:58:03] matthewd: I'd argue that's largely the point, though
[01:58:56] matthewd: There's no "how to implement proper robust authentication" tutorial, other than "here's how to install [devise / similar]", because that's not a thing you should be doing
[02:00:23] chrickso: how about sessions, is rails default sessions setup backend sessions or just cookie-based?
[02:01:38] matthewd: It uses cookies by default, though I'm not sure why that's a "just"
[02:01:56] matthewd: If you want to store them in redis or the DB or whatever, then you'll need the appropriate gem
[02:02:55] matthewd: "Everything in the box" isn't "everything for every option you might choose to configure", but a reasonably comprehensive set of defaults
[02:03:29] chrickso: i was under the impression there was some attacks could be done with cookies based sessions and prevented with server-side sessions
[02:03:42] Radar: chrickso: I'm Ryan Bigg out of that lot.
[02:03:53] Radar: chrickso: There isn't much too different between Rails 4 and 5 as matthewd said.
[02:04:32] Radar: chrickso: Rails 4 in Action tries very hard not to be a miniature application. It's a very full-featured application which does cover authentication + authorization in a serious manner
[02:05:08] chrickso: is there a rails 5 in action due out soon?
[02:05:29] Radar: The publisher and I have parted ways... the TL;DR is over my or their dead bodies.
[02:06:09] Radar: I'd happily update the book for Rails 5 if the publisher gave me the rights to the book. Since they own it and they're... difficult... to work with, I do not wish to continue.
[02:06:40] Radar: One example: they took my neatly formatted XML content and turned it into one line of not-very-neatly-formatted XML.
[02:06:52] matthewd: The session contents are signed so the client can't manipulate them.. it's potentially open to a replay, but that's generally pretty limited in practice
[02:06:55] chrickso: huh...bummer. any other books you could recommend for more advanced stuff?
[02:07:15] Radar: chrickso: !mtwr is my other book. Kinda like a sequel to R4IA but not in the normal sense.
[02:07:15] helpa: chrickso: Multitenancy With Rails - https://leanpub.com/multi-tenancy-rails-2 - An excellent book that teaches you about building a Multitenanted Rails application. Written by Ryan Bigg.
[02:07:41] Radar: You can think of MTWR as the answer to "I've done a beginner's tutorial for Rails, but I need a more serious project. What's out there?"
[02:07:58] chrickso: Radar: time to write your own new book from scratch on advanced topics :)
[02:08:12] Radar: chrickso: Happy to if someone wants to pay me full-time or part-time to do such a thing ;)
[02:08:18] daydream: has joined #RubyOnRails
[02:08:44] chrickso: this is the internet. work first then get paid
[02:09:01] Radar: heh. That's what I've done in the past. It's not a liveable wage (yet) so I do it in my spare time.
[02:09:37] chrickso: the michael hartl book seems to be banking. you need a setup like that
[02:10:09] Jameser: has joined #RubyOnRails
[02:10:26] chrickso: or this guys https://www.nateberkopec.com/blog/2017/03/10/how-i-made-self-publishing-about-ruby-on-rails.html
[02:11:06] chrickso: where do i buy rails 4 in action that gets you the biggest kickback?
[02:13:19] Radar: Amazon :)
[02:13:36] Radar: Hartl banks because he's got the gateway drug of the free tutorial.
[02:13:49] xaviergmail: has joined #RubyOnRails
[02:13:58] Radar: And I think I've made roughly the same as Nate. He's done good work :)
[02:17:48] chrickso: thanks for your time. cya around
[02:17:58] chrickso: has left #RubyOnRails: ()
[02:23:53] mwlang: Radar: how much you need? A cup o’joe and a beer a day? :-)
[02:24:02] Radar: mwlang: ~$150k a year tbhf
[02:24:48] mwlang: outta my budget….sounds like a nice kickstarter or indiegogo
[02:25:37] mwlang: you’ve got the following as well as prior credentials to pull it off, but oh, the user pressure that ensues. :-)
[02:27:16] greghoggard: has joined #RubyOnRails
[02:27:39] mwlang: baweaver: no way you’re only 5 years into Rails/Ruby.
[02:28:11] mwlang: I would’ve pegged you at about 8 ~ 10 years just from what I’ve seen here.
[02:29:10] greghoggard: I have an ecommerce app that uses Devise on Rails 4 and ruby 2.3. How do I go about editing the destroy_user_session_path? I need it to perform a check upon signing out if the cart is empty to destroy it
[02:32:12] ahrs: has joined #RubyOnRails
[02:38:46] nyaa: has joined #RubyOnRails
[02:46:53] roamingdog: has joined #RubyOnRails
[02:51:36] |PiP|: has joined #RubyOnRails
[02:51:44] nyaa: has joined #RubyOnRails
[02:58:52] choke: has joined #RubyOnRails
[03:00:32] Pumukel: has joined #RubyOnRails
[03:02:56] Pumukel: has joined #RubyOnRails
[03:07:21] libastral: has joined #RubyOnRails
[03:08:10] beingjohnm: has joined #RubyOnRails
[03:20:00] babykosh: has joined #RubyOnRails
[03:23:52] nyaa: has joined #RubyOnRails
[03:28:17] cagomez: has joined #RubyOnRails
[03:29:34] chagel: has joined #RubyOnRails
[03:34:43] irishfromua: has joined #RubyOnRails
[03:41:15] doodlehaus: has joined #RubyOnRails
[03:45:46] pur3eval: has joined #RubyOnRails
[03:47:42] roamingdog: has joined #RubyOnRails
[03:48:22] irishfromua: has joined #RubyOnRails
[03:51:40] djbkd: has joined #RubyOnRails
[03:54:38] roamingdog: has joined #RubyOnRails
[03:56:42] igniting: has joined #RubyOnRails
[04:01:39] baweaver: mwlang: https://www.linkedin.com/in/keystonelemur/ - 2012 was the first "real" job, before that was a ton of freelancing work around town.
[04:03:23] mwlang: then you write solid ruby for a fiver.
[04:04:20] baweaver: To be fair I'd also spend ~10 years before that writing various parts of html, css, javascript, perl, python, vb, c#, and other odds and ends.
[04:04:41] baweaver: Still, nothing remotely compares to the jump in skill you get doing it full time.
[04:05:16] mwlang: or from seeing 10 ~ 20 new projects a year…. :-D
[04:05:40] baweaver: that as well
[04:06:30] mwlang: if you’d asked me 5 years ago if I knew Ruby, I’d say, “yeah, I’m great at it.” You ask me today how good I was 5 years ago, I’d be like, yeah, I knew *nothing* back then.
[04:06:51] baweaver: Oh I still have samples of my first Ruby
[04:06:53] mwlang: Ruby’s one of those languages where the more I learn the more I realize I don’t know.
[04:06:55] baweaver: I hide them.
[04:07:05] baweaver: to be fair it's that way for most things
[04:07:25] baweaver: I'd optimistically call myself a 6-7/10 in Ruby.
[04:07:48] baweaver: and that's only if you leave out the entire sections on native extensions
[04:08:34] mwlang: That’s true…but there’s something about Ruby that seems infinite. C, Pascal, and others I’ve worked with, the road to mastery was pretty quick…it gets to the point where anything new is just a better library.
[04:09:20] mwlang: “pretty quick” relatively speaking.
[04:09:49] baweaver: You know how Google interviews?
[04:10:05] baweaver: They ask you to rank yourself 1-10 in a set of skills as one part
[04:10:23] baweaver: I knew a guy who listed himself as a 10 in Python
[04:10:33] baweaver: want to guess what happened?
[04:11:04] alex88_: has joined #RubyOnRails
[04:11:17] jdm: has joined #RubyOnRails
[04:11:45] roamingdog: has joined #RubyOnRails
[04:12:30] roamingdog: has joined #RubyOnRails
[04:13:20] roamingdog: has joined #RubyOnRails
[04:13:59] baweaver: He got interviewed by none other than Guido himself. Said it was the most terrifying and humbling experience of his life. He still got the job, but said he'll never say that one again.
[04:14:07] roamingdog: has joined #RubyOnRails
[04:15:40] jeyraof^mbpr: has joined #RubyOnRails
[04:18:35] irishfromua: has joined #RubyOnRails
[04:22:09] Duckily: has joined #RubyOnRails
[04:22:49] roflmyeggo: has joined #RubyOnRails
[04:29:12] MicaFox[m]: has joined #RubyOnRails
[04:46:49] r3vDev: has joined #RubyOnRails
[04:51:25] babykosh: has joined #RubyOnRails
[05:09:25] WinterBluFox: has joined #RubyOnRails
[05:15:30] roamingdog: has joined #RubyOnRails
[05:22:51] Technodrome: has joined #RubyOnRails
[05:30:38] xall: has joined #RubyOnRails
[05:34:07] cagomez: has joined #RubyOnRails
[05:41:25] LiquidInsect: has joined #RubyOnRails
[05:42:39] brent__: has joined #RubyOnRails
[05:43:55] itsgokul: has joined #RubyOnRails
[06:11:27] dionysus69: has joined #RubyOnRails
[06:13:58] jenrzzz: has joined #RubyOnRails
[06:13:58] jenrzzz: has joined #RubyOnRails
[06:14:45] Technodrome: has joined #RubyOnRails
[06:21:19] zero1one0: has joined #RubyOnRails
[06:32:15] igniting: has joined #RubyOnRails
[06:37:04] MicaFox[m]: has left #RubyOnRails: ("User left")
[06:37:17] darutoko: has joined #RubyOnRails
[06:41:52] c0ldfront: has joined #RubyOnRails
[06:46:08] davedo321: has joined #RubyOnRails
[06:50:28] jenrzzz: has joined #RubyOnRails
[06:56:35] lheaded: has joined #RubyOnRails
[07:13:56] pLaTo0n: has joined #RubyOnRails
[07:17:22] agit0: has joined #RubyOnRails
[07:19:04] AzaToth: has joined #RubyOnRails
[07:21:25] patarr: has joined #RubyOnRails
[07:25:22] DaniG2k: has joined #RubyOnRails
[07:25:55] jenrzzz: has joined #RubyOnRails
[07:25:59] jenrzzz: has joined #RubyOnRails
[07:26:04] DaniG2k: i'm trying to write a tiny piece of coffeescript that enables or disables a form field based on a checkbox
[07:26:08] DaniG2k: here's my code:
[07:27:20] DaniG2k: https://gist.github.com/DaniG2k/388171ae74c06bd953f0921656ffa00f
[07:27:30] DaniG2k: I'm using Semantic ui
[07:27:47] DaniG2k: basically no matter whether the checkbox is checked or not I cannot get the class 'disabled' to be added
[07:28:19] DaniG2k: any idea why this may be?
[07:29:16] spicerack: has joined #RubyOnRails
[07:30:26] igniting: has joined #RubyOnRails
[07:31:25] arBmind: has joined #RubyOnRails
[07:37:45] dps: has joined #RubyOnRails
[07:38:11] DaniG2k: ah got it!
[07:41:41] pLaTo0n: anyone developing rails stuff in windows?
[07:42:02] jenrzzz: has joined #RubyOnRails
[07:42:02] jenrzzz: has joined #RubyOnRails
[07:44:34] conta: has joined #RubyOnRails
[07:45:49] c0ldfront: pLaTo0n yeah i am
[07:46:09] pLaTo0n: how is your workflow?
[07:46:17] pLaTo0n: do you use a vm? docker?
[07:50:51] c0ldfront: i use rubymine for an ide and thats pretty much it
[07:51:08] pLaTo0n: so you use rails "native" at windows?
[07:51:14] pLaTo0n: did you install it via railsinstaller?
[07:51:23] c0ldfront: i deploy with capistrano to linux
[07:51:51] c0ldfront: and use ubuntu for windows to run redis and such if i need certain items that run in linux
[07:52:12] c0ldfront: yeah ruby/rails native on windows.
[07:52:20] c0ldfront: yeah i used the rails installer.
[07:52:23] pLaTo0n: nice, did you have any problems?
[07:52:31] pLaTo0n: some gems seem not to work with windows
[07:53:08] conta: has joined #RubyOnRails
[07:53:16] c0ldfront: i know a few gems i use like whenever only run on linux due to cronjobs
[07:53:26] c0ldfront: but i haven't seen any issues with any other gems
[07:53:51] lightheaded: has joined #RubyOnRails
[07:54:01] pLaTo0n: I use docker in the current project, that's running pretty good at the moment
[07:54:03] c0ldfront: if you really wanted to you can install ubuntu for windows
[07:54:10] c0ldfront: and use the ubuntu bash for ruby and such
[07:54:22] pLaTo0n: I installed the ubuntu bash, but some things are broken at the moment
[07:54:39] pLaTo0n: file watcher / spring is not working with ubuntu bash
[07:55:00] pLaTo0n: but I think it will be fixed soon
[07:55:36] c0ldfront: yeah docker is a nice option though
[07:56:27] pLaTo0n: since the new docker for windows client came out, it works really good
[07:58:47] FooMunki: has joined #RubyOnRails
[08:06:55] conta: has joined #RubyOnRails
[08:07:33] kreantos: has joined #RubyOnRails
[08:08:41] pLaTo0n: I tried to dualboot ubuntu
[08:08:56] pLaTo0n: its ok, but my hardware does not run as good as in windows
[08:09:02] pLaTo0n: having some graphics issues
[08:09:17] pLaTo0n: especially with higher resolution multi monitor setups
[08:11:13] dionysus69: has joined #RubyOnRails
[08:14:31] aganov: has joined #RubyOnRails
[08:21:36] Pumukel: has joined #RubyOnRails
[08:24:03] mark_66: has joined #RubyOnRails
[08:27:04] jaequery: has joined #RubyOnRails
[08:28:21] tvw: has joined #RubyOnRails
[08:28:24] antgel: has joined #RubyOnRails
[08:28:40] agit0: has joined #RubyOnRails
[08:32:11] lightheaded: has joined #RubyOnRails
[08:34:52] eXist: has joined #RubyOnRails
[08:38:39] roamingdog: has joined #RubyOnRails
[08:42:01] Mia: has joined #RubyOnRails
[08:42:01] Mia: has joined #RubyOnRails
[08:50:58] FooMunki: has joined #RubyOnRails
[08:51:12] artto: has joined #RubyOnRails
[09:01:24] artto: has joined #RubyOnRails
[09:02:03] Pumukel: has joined #RubyOnRails
[09:03:23] lightheaded: has joined #RubyOnRails
[09:03:27] srinidhi: has joined #RubyOnRails
[09:04:12] mikecmpbll: has joined #RubyOnRails
[09:09:24] FooMunki: has joined #RubyOnRails
[09:09:26] jenrzzz: has joined #RubyOnRails
[09:09:26] jenrzzz: has joined #RubyOnRails
[09:09:31] marr: has joined #RubyOnRails
[09:09:38] doodlehaus: has joined #RubyOnRails
[09:10:22] arBmind: has joined #RubyOnRails
[09:12:48] adac: has joined #RubyOnRails
[09:13:55] Derperperd: has joined #RubyOnRails
[09:14:43] adac: Guys, sidekiq has this default queue latency check in /sidekiq/stats However this checks only the default queue I guess, right?
[09:16:09] xaviergmail: has joined #RubyOnRails
[09:20:08] rubyonrails123: has joined #RubyOnRails
[09:20:49] dionysus69: has joined #RubyOnRails
[09:21:17] jsrn_: has joined #RubyOnRails
[09:22:16] patarr: has joined #RubyOnRails
[09:24:11] rubyonrails123: I have a problem with devise and I18N. I will appreciate any help. I also wonder if anyone has faced the same problem.
[09:24:13] rubyonrails123: http://stackoverflow.com/questions/42907894/wrong-locale-when-using-before-action-authenticate-user
[09:24:52] ayonkhan: has joined #RubyOnRails
[09:27:02] jonno112: has joined #RubyOnRails
[09:28:41] lightheaded: has joined #RubyOnRails
[09:36:36] jonno112: has joined #RubyOnRails
[09:37:36] DeusNeusEx: has joined #RubyOnRails
[09:39:52] roamingdog: has joined #RubyOnRails
[09:40:04] dionysus69: anyone familiar with plugins that let user insert formulas in the text fields? similar to what MS word has with insert functions or equations
[09:46:33] coldfront: has joined #RubyOnRails
[09:48:11] bpmedley: has joined #RubyOnRails
[09:48:47] snickers: has joined #RubyOnRails
[09:55:07] nyanz: has joined #RubyOnRails
[09:55:59] shamrock: has joined #RubyOnRails
[09:57:36] lxsameer: has joined #RubyOnRails
[09:57:47] nyaa: has joined #RubyOnRails
[09:59:48] brent__: has joined #RubyOnRails
[10:02:53] ErhardtMundt: has joined #RubyOnRails
[10:06:30] artto: has joined #RubyOnRails
[10:10:39] doublemalt__: has joined #RubyOnRails
[10:15:11] workmad3: has joined #RubyOnRails
[10:15:59] Fernando-Basso: has joined #RubyOnRails
[10:18:46] artto: has joined #RubyOnRails
[10:20:56] ReBa_: has joined #RubyOnRails
[10:22:08] Ergo: has joined #RubyOnRails
[10:22:28] rikkipitt: has joined #RubyOnRails
[10:22:28] FooMunki: has joined #RubyOnRails
[10:29:53] artto: has joined #RubyOnRails
[10:39:57] artto: has joined #RubyOnRails
[10:43:51] srinidhi: has joined #RubyOnRails
[10:46:42] GeorgesLeYeti: has joined #RubyOnRails
[10:46:55] GeorgesLeYeti: I need help with nokogiri
[10:47:47] GeorgesLeYeti: I want to return the content of a node. html = Nokogiri::HTML("<test>Does. <br/><br/> </test>")
[10:48:29] adlerdias_: has joined #RubyOnRails
[10:48:31] GeorgesLeYeti: I want to return Does. <br/><br/>
[10:49:26] Guest77850: has joined #RubyOnRails
[10:51:20] tedwing: has joined #RubyOnRails
[10:51:38] Guest77850: As I know, we can config how to store session in a Rails app. I want to know if it's possible we store session in two modes ? which means one part in browser and other part in cache like memcached ?
[10:52:17] artto: has joined #RubyOnRails
[10:52:58] vedu: Guest77850: yes both methods are possible
[10:53:11] vedu: but wildly different use-cases
[10:53:27] Guest77850: in same time ?
[10:53:32] vedu: Guest77850: yes
[10:53:44] Guest77850: how to config that ?
[10:53:52] DeusNeusEx: Hi i upgrated my rails 4 application to rails 5 and i dont know was is the problem: this is my model: http://pastebin.com/DsvrcL7f and i've this in the log /home/tmayet/Documents/Sites/Lab/Rails/AviGNU/app/models/conversation.rb:10: warning: invalid character syntax; use ?\s
[10:54:11] vedu: Guest77850: checkout rails cache
[10:54:47] Guest77850: i have two profix for my whole sessions : one part start with user- and others part start with server- so how to config that ?
[10:55:23] vedu: Guest77850: I am not following you. seems like you need only the user session. not the rails cache
[10:55:30] DeusNeusEx: https://gist.github.com/NeusDeusEx/0c3976a9aafd5b0138ca373db3a2bb9e
[10:56:32] vedu: DeusNeusEx: what is your error?
[10:56:48] DeusNeusEx: vedu : warning: invalid character syntax; use ?\s
[10:57:10] Guest77850: to be more clear it is possible to have a part of my session in the server cache and another in the client browser (cookie)
[10:57:17] yaw: has joined #RubyOnRails
[10:58:07] vedu: DeusNeusEx: Oh okay. not sure. maybe try putting a space before your '='
[10:58:19] Guest77850: vedu: to be more clear it is possible to have a part of my session in the server cache and another in the client browser (cookie)
[10:58:25] vedu: Guest77850: Not possible
[10:59:14] vedu: The session is always stored in the browser cookie. But it is encrypted so you don't have to worry
[10:59:41] DeusNeusEx: hmm not working vedu, possible to be my code has not maintened on rails 5 ?
[11:02:10] DeusNeusEx: Everyone know a gem for MP System ?
[11:02:24] vedu: DeusNeusEx: highly unlikely. You are using the basic AR features
[11:03:03] ferr1: has joined #RubyOnRails
[11:04:08] Guest77850: vedu: thank you. your answers point me to think about cookies
[11:04:26] vedu: Guest77850: yes :)
[11:04:33] Guest77850: 有中国 人 吗?
[11:05:30] Jasaka|NA: has joined #RubyOnRails
[11:08:38] shamrock: has joined #RubyOnRails
[11:10:48] shamrock: has joined #RubyOnRails
[11:11:11] Jasaka: has joined #RubyOnRails
[11:12:22] pLaTo0n: has joined #RubyOnRails
[11:17:10] gloscombe: has joined #RubyOnRails
[11:18:47] Fernando-Basso: has joined #RubyOnRails
[11:20:04] pLaTo0n: has joined #RubyOnRails
[11:20:51] pankaj__: has joined #RubyOnRails
[11:22:50] patarr: has joined #RubyOnRails
[11:24:22] rikkipitt: Hey folks, i'm having toruble with actioncable. I can console.log out connect/disconnect, but the receive js method isn't triggered when I broadcast a message in an after_create callback... any ideas? the user is authenticated on the site and in actioncable.
[11:25:45] pankaj__: rikkipitt: Hello
[11:27:45] tdy: has joined #RubyOnRails
[11:29:12] amritoit: has joined #RubyOnRails
[11:32:19] adlerdias_: has joined #RubyOnRails
[11:35:23] rikkipitt: pankaj__: hey, do you know about actioncable?
[11:35:33] cagomez: has joined #RubyOnRails
[11:37:05] AimlessRAven: has joined #RubyOnRails
[11:37:15] AimlessRAven: how to set different local files to storefront and admin panel
[11:40:46] ldnunes: has joined #RubyOnRails
[11:42:05] nyanz: has joined #RubyOnRails
[11:49:28] Qchmqs: has joined #RubyOnRails
[11:51:43] rikkipitt: has joined #RubyOnRails
[11:53:20] artto: has joined #RubyOnRails
[11:56:44] Sidoniuns: has joined #RubyOnRails
[11:57:20] centrx: has joined #RubyOnRails
[11:59:58] HoierM: has joined #RubyOnRails
[12:03:29] artto: has joined #RubyOnRails
[12:07:48] pLaToOn: has joined #RubyOnRails
[12:08:29] xaviergmail: has joined #RubyOnRails
[12:08:32] Sidoniuns: has joined #RubyOnRails
[12:12:42] keerthana: has joined #RubyOnRails
[12:19:41] buckrockwell: has joined #RubyOnRails
[12:23:27] jeyraof^mbpr: has joined #RubyOnRails
[12:27:36] pLaTo0n: has joined #RubyOnRails
[12:28:31] adlerdias_: has joined #RubyOnRails
[12:29:54] Jameser: has joined #RubyOnRails
[12:31:50] wems: has joined #RubyOnRails
[12:36:19] alex88: has joined #RubyOnRails
[12:37:48] zpe: has joined #RubyOnRails
[12:39:25] wems: I have a question, if you had worked for a client on a RoR based web application for record management. The client asks for the source code? What would you do guys? Would you be willing to sell the source code? Any idea what as to the equation to calculate the price? Thank you very much.
[12:47:23] artto: has joined #RubyOnRails
[12:48:12] kassav_: has joined #RubyOnRails
[12:50:46] Jameser: has joined #RubyOnRails
[12:53:01] agent_white: has joined #RubyOnRails
[12:56:31] matthewd: W_M_: hourly_rate * number_of_hours_worked
[12:56:42] rikkipitt: has joined #RubyOnRails
[12:56:46] matthewd: ¯\_(ツ)_/¯
[12:57:23] matthewd: rikkipitt: Can you see the messages arriving in the browser websocket inspector thing?
[12:57:57] tedwing: has joined #RubyOnRails
[12:58:09] rikkipitt: matthewd: i can see pings, but no messages hitting the inspector (frames tab)
[12:58:34] rikkipitt: i can get the js to console.log out connection/disconnect though
[12:58:54] matthewd: Okay, so it's a server-side issue
[12:59:15] Ergo: has joined #RubyOnRails
[12:59:54] rikkipitt: do you think so? I'm getting these - https://gist.github.com/rikkipitt/f76e7b4e234384de6db2dacc7865391c
[13:00:22] rikkipitt: i'm using suspenders and am running the server using `heroku local` which utilises puma
[13:00:25] lightheaded: has joined #RubyOnRails
[13:00:48] rikkipitt: using the async adapter in dev (cable.yml)
[13:01:13] FCser: has left #RubyOnRails: ()
[13:01:14] rikkipitt: do I need to run a separate redis server, i'm using the brew install
[13:01:47] lightheaded: has joined #RubyOnRails
[13:01:48] matthewd: I don't know whether heroku local runs multiple puma worker processes -- that could be a factor
[13:02:12] matthewd: But lets start with your broadcast code: what does that look like?
[13:02:16] ramortegui: has joined #RubyOnRails
[13:02:27] nyaa: has joined #RubyOnRails
[13:02:53] handicraftsman: has joined #RubyOnRails
[13:02:53] handicraftsman: has joined #RubyOnRails
[13:03:13] rikkipitt: it's in a callback (after_create)
[13:03:31] rikkipitt: will be in a job eventually, but for testing it's after the model is created
[13:03:48] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[13:03:49] rikkipitt: ActionCable.server.broadcast 'messages', message: self.created_at
[13:03:52] Derperperd: has joined #RubyOnRails
[13:04:42] tweaks: has joined #RubyOnRails
[13:05:32] matthewd: Oh, you're missing _channel
[13:05:55] rikkipitt: stream_for "messages" though in the channel
[13:06:10] rikkipitt: does it need to be messages_channel then?
[13:07:03] rikkipitt: think i tried that from rails console... will confirm
[13:08:23] matthewd: You're using stream_for, but sending with broadcast
[13:08:26] matthewd: Those don't match
[13:08:40] rikkipitt: stream_from sorry
[13:08:44] rikkipitt: stream_from "messages"
[13:10:00] rikkipitt: has joined #RubyOnRails
[13:10:41] Jameser: has joined #RubyOnRails
[13:13:24] Mohan: has joined #RubyOnRails
[13:16:45] artto: has joined #RubyOnRails
[13:18:14] roamingdog: has joined #RubyOnRails
[13:18:30] tvw: has joined #RubyOnRails
[13:19:08] artto: has joined #RubyOnRails
[13:19:58] GodFather: has joined #RubyOnRails
[13:22:36] Pumukel: has joined #RubyOnRails
[13:22:41] lun4i: has joined #RubyOnRails
[13:30:16] nettoweb: has joined #RubyOnRails
[13:31:15] DLSteve: has joined #RubyOnRails
[13:32:18] doodlehaus: has joined #RubyOnRails
[13:34:05] chouhoulis: has joined #RubyOnRails
[13:35:19] roamingdog: has joined #RubyOnRails
[13:35:25] mauro1254: has joined #RubyOnRails
[13:36:20] byteflame: has joined #RubyOnRails
[13:37:00] mauro1254: Hi folks, I'm trying to use yarn + webpack in rails 5.1. Where can I find instructions on how to include libraries?
[13:37:11] berserk_ren: has joined #RubyOnRails
[13:38:07] matthewd: mauro1254: Does https://github.com/rails/webpacker#webpacker help?
[13:39:20] mauro1254: matthewd : I don't understand how to include stylesheet
[13:39:30] artto: has joined #RubyOnRails
[13:39:33] mauro1254: matthewd : is it still managed by assets pipeline?
[13:39:52] jonno112: has joined #RubyOnRails
[13:41:06] FCser: has joined #RubyOnRails
[13:41:53] matthewd: https://github.com/rails/webpacker/pull/153 may be relevant?
[13:42:05] berserk_ren_: has joined #RubyOnRails
[13:42:15] matthewd: I really haven't paid much attention to this stuff yet, sorry :/
[13:42:21] berserk_ren: has joined #RubyOnRails
[13:43:49] Jameser: has joined #RubyOnRails
[13:45:00] ramortegui: has joined #RubyOnRails
[13:46:37] mauro1254: matthewd : I'm trying to remove those gems that are wrapper to js libraries (such as jquery, jquery-ui, chosen, ...). I add the library through yarn (eg.: yarn add jquery-ui) and then i require it in app/javascript/packs/application.js
[13:48:05] berserk_ren: has joined #RubyOnRails
[13:48:58] berserk_ren: has joined #RubyOnRails
[13:51:06] shinnya: has joined #RubyOnRails
[13:51:36] Jameser: has joined #RubyOnRails
[13:52:42] lbernardelli: has joined #RubyOnRails
[13:53:46] Derperpe1: has joined #RubyOnRails
[13:56:27] handicraftsman: has joined #RubyOnRails
[13:56:29] artto: has joined #RubyOnRails
[13:57:31] stoffus: has joined #RubyOnRails
[13:57:31] Guest16174: has joined #RubyOnRails
[13:58:55] byteflame: has joined #RubyOnRails
[13:59:16] workmad3: has joined #RubyOnRails
[14:00:04] lightheaded: has joined #RubyOnRails
[14:01:44] Mohan: has joined #RubyOnRails
[14:01:58] Mohan: i am trying to build a simple polymorphic association with post & comment. Able to display comment field in post form but getting "Comment commentable must exist"
[14:02:45] Guest55617: i am trying to build a simple polymorphic association with post & comment. Able to display comment field in post form but getting "Comment commentable must exist"
[14:03:14] teddysmoker: has joined #RubyOnRails
[14:03:17] Guest55617: post model contain has_one :comment, as: :commentable, dependent: :destroy accepts_nested_attributes_for :comment, :allow_destroy => true
[14:08:06] chopin: has joined #RubyOnRails
[14:11:29] kreantos: has joined #RubyOnRails
[14:14:01] FCser: has left #RubyOnRails: ()
[14:14:10] arBmind: has joined #RubyOnRails
[14:14:33] pulkit4tech: has joined #RubyOnRails
[14:17:11] tedwing: has joined #RubyOnRails
[14:17:23] patarr: has joined #RubyOnRails
[14:18:58] srinidhi: has joined #RubyOnRails
[14:22:34] Jameser: has joined #RubyOnRails
[14:23:42] DrYockel: has joined #RubyOnRails
[14:24:07] ResidentBiscuit: has joined #RubyOnRails
[14:25:41] Jameser`: has joined #RubyOnRails
[14:29:07] Jameser`: has joined #RubyOnRails
[14:31:20] artto_: has joined #RubyOnRails
[14:35:40] artto: has joined #RubyOnRails
[14:36:43] dblessing: has joined #RubyOnRails
[14:37:36] yaw: has joined #RubyOnRails
[14:37:44] envint: has joined #RubyOnRails
[14:40:25] dangerousdave: has joined #RubyOnRails
[14:41:45] SilentNinja1: has joined #RubyOnRails
[14:43:01] SilentNinja1: Hi, I'm having issues to memcache localhost using Dalli Gem, raw telnet works on localhost 11211 or 127.0.0.1 11211
[14:43:43] SilentNinja1: it just hangs no response from the rails console :(
[14:49:18] pwnd_nsfw`: SilentNinja1, it'd help to provide code, a means of reproducing the problem, etc.
[14:49:37] pwnd_nsfw`: "I can't eat my brownies"
[14:49:46] pwnd_nsfw`: Why not? Are they too hot? Are you not allowed? etc
[14:52:21] aajjbb: has joined #RubyOnRails
[14:52:39] polishdub: has joined #RubyOnRails
[14:54:26] zpe: has joined #RubyOnRails
[14:56:46] rubyonrails780: has joined #RubyOnRails
[14:58:57] rubyonrails787: has joined #RubyOnRails
[14:59:01] doodlehaus: has joined #RubyOnRails
[14:59:17] Pumukel: has joined #RubyOnRails
[15:01:20] fernandomm: has joined #RubyOnRails
[15:01:44] bga57: has joined #RubyOnRails
[15:01:49] SilentNinja1: https://hastebin.com/ayuwedorur.rb
[15:01:49] artto: has joined #RubyOnRails
[15:03:24] matthewd: SilentNinja1: What's ENV doing in there?
[15:04:16] artto: has joined #RubyOnRails
[15:04:19] SilentNinja1: ah sorry, took out ENV[ ] , it just hangs
[15:04:54] SilentNinja1: https://hastebin.com/opimiyigaw.scala
[15:06:00] matthewd: So next up: you're not using Dalli, you're using dalli-elasticache
[15:06:03] FCser: has joined #RubyOnRails
[15:06:25] SilentNinja1: yes, Gemfile.Lock https://hastebin.com/iqakuyiliw.pl
[15:06:29] matthewd: And I'll go out on a limb and guess you're not running AWS core infrastructure on localhost
[15:06:52] SilentNinja1: running CentOS7
[15:07:05] roamingdog: has joined #RubyOnRails
[15:07:34] SilentNinja1: memcached-1.4.15-10
[15:07:48] matthewd: That's memcached, not elasticache.
[15:10:51] envint: has joined #RubyOnRails
[15:11:50] Didac: has joined #RubyOnRails
[15:14:03] jonno112: has joined #RubyOnRails
[15:15:40] Technodrome: has joined #RubyOnRails
[15:16:36] SilentNinja1: ah works fine with c = Dalli::Client.new('localhost:11211')
[15:16:44] SilentNinja1: all good now :)
[15:16:56] SilentNinja1: using wrong one
[15:18:02] doodleha_: has joined #RubyOnRails
[15:19:32] patarr: has joined #RubyOnRails
[15:26:18] lightheaded: has joined #RubyOnRails
[15:29:43] brent__: has joined #RubyOnRails
[15:30:04] lightheaded: has joined #RubyOnRails
[15:31:02] lightheaded: has joined #RubyOnRails
[15:31:46] xaviergmail: has joined #RubyOnRails
[15:32:20] artto: has joined #RubyOnRails
[15:35:26] cagomez: has joined #RubyOnRails
[15:37:56] dionysus69: has joined #RubyOnRails
[15:37:59] Ergo: has joined #RubyOnRails
[15:38:07] ableto: has joined #RubyOnRails
[15:38:47] hobodave: has joined #RubyOnRails
[15:39:03] doublemalt__: has joined #RubyOnRails
[15:43:50] Pumukel: has joined #RubyOnRails
[15:49:00] username1: has joined #RubyOnRails
[15:57:57] Jameser: has joined #RubyOnRails
[15:58:22] hobodave_: has joined #RubyOnRails
[16:02:13] berserk_ren: has joined #RubyOnRails
[16:02:54] jdm: has joined #RubyOnRails
[16:03:01] shinnya: has joined #RubyOnRails
[16:10:56] artto: has joined #RubyOnRails
[16:14:28] cnk: has joined #RubyOnRails
[16:25:27] gusrub: has joined #RubyOnRails
[16:26:41] xixi: has joined #RubyOnRails
[16:28:16] chopin_: has joined #RubyOnRails
[16:29:44] stoffus: has joined #RubyOnRails
[16:29:54] Derperpe1: has joined #RubyOnRails
[16:30:37] envint: has joined #RubyOnRails
[16:30:54] aajjbb: has joined #RubyOnRails
[16:31:06] jonno112: has joined #RubyOnRails
[16:32:48] Spami__: has joined #RubyOnRails
[16:38:07] roamingdog: has joined #RubyOnRails
[16:38:43] jonno112: has joined #RubyOnRails
[16:42:04] envint: has joined #RubyOnRails
[16:50:23] tentacle: has joined #RubyOnRails
[16:51:24] psethi: has joined #RubyOnRails
[16:51:56] pulkit4tech: has joined #RubyOnRails
[16:53:45] iliketurtles: has joined #RubyOnRails
[16:53:56] roamingdog: has joined #RubyOnRails
[16:54:19] tentacle: I have a SaaS app and we am looking for a method to generate a unique 5 digit pin when a member signs up. I've thought about generating a number, verifying if it exists, and repeat, much like slug generation, but as member base grows, that will become increasingly heavy. I've looked at generating the pins as records and just finding a random unassociated one, but that means for every company that signs up, I have to generate
[16:54:19] tentacle: an excessive amount of records upon creation. Just wanting to know if anyone has done this and what method they've used.
[16:54:57] aajjbb: has joined #RubyOnRails
[16:54:59] envint: has joined #RubyOnRails
[16:55:17] Papierkorb: tentacle: 5 digit pins wouldn't last long anyway; Isn't that just a one time thing?
[16:55:51] tentacle: our demographics likely wouldn't have more member than that
[16:56:08] Papierkorb: tentacle: What is the pin for?
[16:56:48] tentacle: we generate a pin so they can easily enter a building
[16:57:48] Papierkorb: tentacle: if it's much less than that, say 100 top, I wouldn't bother and just do a random-loop like you thought about. the possibility of hitting an already used pin is rather small
[16:57:56] Papierkorb: and hitting one a second time even smaller
[16:59:08] tentacle: Papierkorb: likely around 3,000-10,000
[16:59:51] Papierkorb: tentacle: does a 5 digit pin even suffice? That's a 10% chance I'd find a matching key, or 10 tries max to brute-force my way in
[17:00:43] tentacle: Papierkorb: while it sounds like it's for security, it's more about tracking who is checking in
[17:03:41] tentacle: Papierkorb: think of it more as a checkin service, but we need unique pins so we know which user to map the pin to
[17:03:52] dionysus69: has joined #RubyOnRails
[17:05:56] IanMalcolm: has joined #RubyOnRails
[17:06:13] HoierM: has joined #RubyOnRails
[17:06:36] Papierkorb: tentacle: If you fear a random-loop taking too long, you could create those 100k possible rows, set them to NotUsed, and when you need a new pin, just select one randomly from the NotUsed ones, mark it as Used, and go on. Can't tell you about the run-time of this though
[17:07:09] tentacle: Papierkorb: that was the solution I opted for, but was just wondering if anyone had any other suggestions instead of pre-creating and associating. Thanks :)
[17:07:15] mikeymicrophone: has joined #RubyOnRails
[17:07:24] HoierM: has joined #RubyOnRails
[17:08:49] roamingdog: has joined #RubyOnRails
[17:09:16] stoffus: has joined #RubyOnRails
[17:10:31] IanMalcolm: guys, I'm trying to write a test with RSpec to make sure a user can't be created twice, but I'm not sure how to go about it. I need to create the record on the database and then POST to the API endpoint the same data
[17:10:44] matthewd: tentacle: If the random loop seems too slow, that would seem to imply you're over-filling the keyspace (read: need more digits)
[17:11:04] ResidentBiscuit: has joined #RubyOnRails
[17:11:12] tentacle: matthewd: yeah it's an interesting situation because we can't have more than 5 digits :D
[17:11:31] matthewd: tentacle: Even if it's not "must be unguessable with a bunch of tries" level security, you don't want someone's typo to (statistically) be someone else's valid PIN
[17:12:10] tentacle: matthewd: agreed, it's a flawed setup, but unfortunately it's what the client wants :3
[17:14:31] lightheaded: has joined #RubyOnRails
[17:15:14] matthewd: Even at 10% fill, it shouldn't take *that* many tries to come up with an unused value
[17:19:09] patarr: How do I ensure the bin/delayed_job daemon has the same load path as the Rails app?
[17:19:27] patarr: It seems like Rails loads all the names just fine, but delayed_job gets NameErrors.
[17:19:30] jaequery: has joined #RubyOnRails
[17:21:02] envint: has joined #RubyOnRails
[17:23:35] matthewd: patarr: I don't know anything about delayed job in particular, but you should be running it under bundler (bundle exec), and it should be loading config/environment when it starts
[17:23:53] mikecmpbll: ACTION ditches delayed-job
[17:25:10] planigan: has joined #RubyOnRails
[17:31:36] djbkd: has joined #RubyOnRails
[17:34:02] artto: has joined #RubyOnRails
[17:36:35] envint: has left #RubyOnRails: ()
[17:38:38] igniting: has joined #RubyOnRails
[17:39:06] psethi: Hi Folks, how can I install rails 5.1. I followed this article https://bendyworks.com/blog/installing-ruby-on-rails-edge-with-bundler but still after completing all the steps and getting success, it still displays Rails 5.0.2, when I do rail -v
[17:40:23] psethi: I am on Mac OSX with Ruby ruby 2.2.2p95
[17:46:52] matthewd: psethi: That's installing edge from git; you can just install the release candidate
[17:47:05] matthewd: psethi: gem install rails -v 5.1.0.rc1
[17:47:59] envint: has joined #RubyOnRails
[17:48:27] psethi: thanks matthewd. let me check that
[17:50:49] zpe: has joined #RubyOnRails
[17:51:06] patarr: matthewd: thanks. It turns out that the load path was the same
[17:51:13] patarr: Just weird namespace issues I resolved
[17:51:25] patarr: And I'm onto my next problem - how to explicitly fail a job :)
[17:52:37] zpe: has joined #RubyOnRails
[17:53:02] dminuoso: What exactly are "references" in migrations? Are these just conventionally named integer columns?
[17:58:19] buckrockwell: has joined #RubyOnRails
[17:58:50] cnk: I think now they actually make FK relationships in the database, but haven't been keeping track of rails + db constraints changes
[18:00:00] Fischmiep: has joined #RubyOnRails
[18:01:27] dminuoso: cnk: I have stumbled over this a few times and now I ended up with a corrupt database because I kept assuming there were constraints..
[18:01:34] andywww: has joined #RubyOnRails
[18:01:51] dminuoso: foreign keys should be opt-out not opt-in.
[18:02:11] cpruitt: dminuoso: I believe that by default it is an integer column for relation_id with a foreign key constraint and an index.
[18:02:37] dminuoso: matthewd: That cant be entirely true.
[18:02:37] cnk: Rails has always done its contraining in ActiveRecord. Only recently has it supported FK constraints
[18:03:10] cnk: Not supporting db constraints made a lot of things like loading fixtures, etc easier
[18:03:16] matthewd: It is in 5.0; anything before that doesn't exist ;)
[18:03:34] dminuoso: cnk: Well I dont have fixtures, I factory_girl all my testdata.
[18:03:37] dminuoso: Well. Most of them.
[18:04:22] cnk: Personally I use a mix. Fixtures are quite efficient if you need a lot of setup data for anything to run
[18:04:47] psethi: matthewd: Thanks, it worked. earlier I had tried "gem install rails -v 5.1", which didn't work
[18:04:58] dminuoso: cnk: The thing is I prefer complete isolation between my tests.
[18:04:58] cpruitt: dminuoso: Take that back. I just checked and I am specifying foreign_key: true in all of mine
[18:05:32] dminuoso: cpruitt: Im unsure how Im missing this foreign key constraint because I never opted out of it.
[18:06:37] matthewd: dminuoso: Did you create the column using t.references (not t.integer), in a 5.0 migration?
[18:06:50] cpruitt: dminuoso: My first comment was incorrect. the foreign_key option defaults to false http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-add_reference
[18:06:55] cpruitt: You need to opt in if you want it
[18:07:05] cpruitt: I’m just in the habbit of always using it now.
[18:07:31] dminuoso: matthewd: Yes. In fact I even opted in so explicitly
[18:07:34] dminuoso: t.references :fiber_order, foreign_key: {to_table: :new_fiber_orders}
[18:07:56] dminuoso: cpruitt: heh.
[18:08:53] hakash: has joined #RubyOnRails
[18:08:55] cpruitt: dminuoso: Is it in your schema file?
[18:09:24] dminuoso: Let me recreate and play back migrations one by one to figure out what went wrong.
[18:09:59] matthewd: Ugh, sorry, I'm mis-remembering
[18:10:11] matthewd: We defaulted *index* to true in 5.0
[18:14:00] tedwing: has joined #RubyOnRails
[18:14:17] dblessing: has joined #RubyOnRails
[18:15:29] brent__: has joined #RubyOnRails
[18:16:22] dangerousdave: has joined #RubyOnRails
[18:18:00] chopin: has joined #RubyOnRails
[18:19:50] yaw: has joined #RubyOnRails
[18:24:40] roamingdog: has joined #RubyOnRails
[18:25:44] alex88: has joined #RubyOnRails
[18:35:46] brent__: has joined #RubyOnRails
[18:36:33] andywww: has joined #RubyOnRails
[18:39:38] envint: has joined #RubyOnRails
[18:46:26] pLaTo0n: has joined #RubyOnRails
[18:48:59] envint: has joined #RubyOnRails
[18:50:58] Derperpe1: has joined #RubyOnRails
[18:52:27] Derperpe1: has joined #RubyOnRails
[18:53:43] AntiSpamMeta: has joined #RubyOnRails
[18:54:01] ramortegui: has joined #RubyOnRails
[18:55:19] Derperpe1: has joined #RubyOnRails
[18:55:40] jdm: has joined #RubyOnRails
[18:56:23] Andr3as: hmm.. if i have a text input for a (single) username and would want to style the entry that it looks like a tag, but only want to allow one value.. is there a special name for that? anyone an idea what to google for? i am totally lost in translation
[18:56:40] Andr3as: sry, i am aware that this isnt exactly a rails question
[18:57:01] Rubydoggy: has joined #RubyOnRails
[18:57:28] Derperpe1: has joined #RubyOnRails
[18:58:10] jottr: has joined #RubyOnRails
[19:00:10] jottr: has joined #RubyOnRails
[19:00:29] s2013: has joined #RubyOnRails
[19:00:34] envint: has joined #RubyOnRails
[19:01:52] psethi: has joined #RubyOnRails
[19:03:00] ester: has joined #RubyOnRails
[19:03:15] banisterfiend: has joined #RubyOnRails
[19:04:32] s2013: whats a good way to do remote video download/upload to s3.
[19:04:33] s2013: would fog work for this?
[19:05:38] Derperpe1: has joined #RubyOnRails
[19:05:43] meoblast001: has joined #RubyOnRails
[19:06:33] defsdoor: has joined #RubyOnRails
[19:10:44] Derperpe1: has joined #RubyOnRails
[19:11:36] The7thImmortal: has joined #RubyOnRails
[19:11:36] harfangk: has joined #RubyOnRails
[19:12:39] SteenJobs: has joined #RubyOnRails
[19:16:01] jottr: has joined #RubyOnRails
[19:16:58] antgel: has joined #RubyOnRails
[19:17:43] jottr: has joined #RubyOnRails
[19:24:22] arBmind: has left #RubyOnRails: ()
[19:25:17] adac: has joined #RubyOnRails
[19:25:55] envint: has joined #RubyOnRails
[19:27:01] lxsameer: has joined #RubyOnRails
[19:27:23] planigan: has joined #RubyOnRails
[19:36:17] Jasaka: has joined #RubyOnRails
[19:36:31] NoGodDamnIdea: has joined #RubyOnRails
[19:36:31] NoGodDamnIdea: has joined #RubyOnRails
[19:37:58] dangerousdave: has joined #RubyOnRails
[19:42:59] spicerack: has joined #RubyOnRails
[19:43:56] knight33: has joined #RubyOnRails
[19:47:38] tvw: has joined #RubyOnRails
[19:48:25] Radar: GOOD MORNING
[19:50:47] Spami__: has joined #RubyOnRails
[19:54:00] fox_mulder_cp: good evening. i ended first day on new job L)
[19:55:08] dionysus70: has joined #RubyOnRails
[20:01:53] buckrockwell: has joined #RubyOnRails
[20:03:33] roamingdog: has joined #RubyOnRails
[20:06:17] doodlehaus: has joined #RubyOnRails
[20:07:27] srinidhi: has joined #RubyOnRails
[20:08:52] Derperpe1: has joined #RubyOnRails
[20:09:28] Spami_: has joined #RubyOnRails
[20:13:39] badeball: has joined #RubyOnRails
[20:15:32] andywww: has joined #RubyOnRails
[20:18:45] dangerousdave: has joined #RubyOnRails
[20:20:49] Puffball: has joined #RubyOnRails
[20:28:08] andywww: has joined #RubyOnRails
[20:32:41] pramsky: has joined #RubyOnRails
[20:34:05] workmad3: has joined #RubyOnRails
[20:37:02] djbkd: has joined #RubyOnRails
[20:39:51] matcouto: has joined #RubyOnRails
[20:46:08] FCser: has left #RubyOnRails: ()
[20:46:58] banisterfiend: has joined #RubyOnRails
[20:47:28] pwnd_nsfw: has joined #RubyOnRails
[20:48:43] workmad3: has joined #RubyOnRails
[20:49:05] jenrzzz: has joined #RubyOnRails
[20:49:05] jenrzzz: has joined #RubyOnRails
[20:49:47] Duckily: has joined #RubyOnRails
[20:52:07] SteenJobs: has joined #RubyOnRails
[20:56:19] Spami_: has joined #RubyOnRails
[20:58:47] FCser: has joined #RubyOnRails
[21:01:29] Puffball: has joined #RubyOnRails
[21:03:45] brent__: has joined #RubyOnRails
[21:04:04] xaviergmail: has joined #RubyOnRails
[21:05:20] agent_white: fox_mulder_cp: Congrats! Hope it went well!
[21:06:23] envint: has joined #RubyOnRails
[21:08:26] dagelf: has joined #RubyOnRails
[21:09:50] NoGodDamnIdea: has joined #RubyOnRails
[21:09:50] NoGodDamnIdea: has joined #RubyOnRails
[21:13:05] Schoolmeister: has joined #RubyOnRails
[21:15:05] Schoolmeister: Hey. Say I've got two tables: "Events" and "People", and a third table "Attendees" which represents a many-to-many relation of People and Events. How would I go about rendering a list of attendees in the show view of event?
[21:16:34] diggitydane: has joined #RubyOnRails
[21:17:37] cnk: Set up your relationships in the model, then make a var @attendies = @event.attendees in your controller and loop over it in yoru view
[21:18:11] workmad3: has joined #RubyOnRails
[21:18:27] diggitydane: react frontend with rails api. I need to save an array of objects to postgres. how should the column be defined? params comes through as a string, and then JSON.parse when I return results with api calls?
[21:18:31] fox_mulder_cp: agent_white: thanlks. may be may rails app can be used in my new job tasks )
[21:19:11] diggitydane: I tried hstore :column, array: true, and serialize :column, Array in the model, but seems to be a big hassle. should i just leave it as a string?
[21:23:55] Mia: has joined #RubyOnRails
[21:23:55] Mia: has joined #RubyOnRails
[21:24:39] fox_mulder_cp: diggitydane: hstore - json
[21:24:48] fox_mulder_cp: array - string
[21:25:20] fox_mulder_cp: so hstore[:key], but string[5]
[21:25:31] fox_mulder_cp: read posgresql active record manual
[21:26:30] SteenJobs: has joined #RubyOnRails
[21:29:19] akshat: has joined #RubyOnRails
[21:29:43] jdm: has joined #RubyOnRails
[21:29:49] diggitydane: fox_mulder_cp, ok thanks
[21:30:48] akshat_: has joined #RubyOnRails
[21:33:51] akshat__: has joined #RubyOnRails
[21:36:27] Omnilord: has joined #RubyOnRails
[21:36:44] antgel: has joined #RubyOnRails
[21:45:08] centrx: has joined #RubyOnRails
[21:45:08] centrx: has joined #RubyOnRails
[21:46:52] centrx: Is backbone.js the way to go for organizing front-end ajax panels on a dashboardy like UI?
[21:47:24] artto: has joined #RubyOnRails
[21:48:17] hahuang65: has joined #RubyOnRails
[21:48:34] Omnilord: has joined #RubyOnRails
[21:49:02] baweaver: centrx: what type of dashboard?
[21:49:15] Axsuul: in rspec, in an example, I'm trying to make it so that when calling a method on this one record, it returns a specific array but I can't use double() because it's being called from within a controller (this is a request spec)
[21:49:30] Axsuul: how can I do this.. should I use allow_any_instance_of() somehow?
[21:49:32] baweaver: Angular and Ember are the two big players. React is a library to the side.
[21:49:41] hahuang61: has joined #RubyOnRails
[21:49:54] centrx: baweaver: it show some info to call-center agents and allows them to edit things, click on a few buttons, etc.
[21:50:06] centrx: baweaver: other things like, if they click on a row in a grid, it opens up a different call to edit it
[21:50:11] baweaver: Angular or Ember
[21:50:17] baweaver: Angular has a ton of libraries for this
[21:50:20] baweaver: ngTable / etc
[21:50:47] centrx: what about Angular being replaced by the Angular 2 rewrite? I heard the rewrite was not so good
[21:51:23] dangerousdave: has joined #RubyOnRails
[21:51:34] baweaver: I've just been using 1, waiting for the dust to settle
[21:51:42] baweaver: axsuul: pretty much
[21:52:02] baweaver: allow_any_instance_of(Model).to receive(:method) { [new_return, values] }
[21:52:33] Axsuul: baweaver: how can I target a specific record with that?
[21:52:35] centrx: ok I'll check out v1, thanks baweaver!
[21:52:37] Axsuul: with a specific id
[21:52:46] baweaver: v2 is substantially better on speed
[21:52:50] Axsuul: and they say allow_any_instance_of is "codesmell"
[21:52:54] baweaver: and v1 is really patchy
[21:53:43] baweaver: allow(Model).to receive(:find).with([args, here]) { [return value] }
[21:54:46] NoGodDamnIdea: has joined #RubyOnRails
[21:54:46] NoGodDamnIdea: has joined #RubyOnRails
[21:55:39] InternetDown: has joined #RubyOnRails
[21:56:41] NoGodDamnIdea: has joined #RubyOnRails
[21:56:41] NoGodDamnIdea: has joined #RubyOnRails
[21:56:42] InternetDown: has joined #RubyOnRails
[22:00:10] rubyonrails525: has joined #RubyOnRails
[22:01:12] LateralOctober: has joined #RubyOnRails
[22:01:27] rubyonrails525: is there anyone who can help me with tdd?
[22:01:32] LBRapid: has joined #RubyOnRails
[22:01:33] Radar: rubyonrails525: !used
[22:01:33] helpa: rubyonrails525: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[22:01:38] Radar: !r4ia has all your tdd answers
[22:01:38] helpa: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[22:02:29] mostlybadfly: has joined #RubyOnRails
[22:02:51] Guest96517: has joined #RubyOnRails
[22:04:05] Sidoniuns: has joined #RubyOnRails
[22:04:59] rubyonrails525: I'm trying to make a put to a nested route, but I'm getting this error ActionController::UrlGenerationError: No route matches
[22:06:22] mikecmpbll: has joined #RubyOnRails
[22:07:17] dangerousdave: has joined #RubyOnRails
[22:08:51] Radar: rubyonrails525: !didntwork
[22:08:51] helpa: rubyonrails525: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[22:13:50] LateralOctober: has joined #RubyOnRails
[22:14:55] jtperreault: has joined #RubyOnRails
[22:18:58] rubyonrails525: Sorry, let me try again...
[22:19:18] rafaeldelucena: has joined #RubyOnRails
[22:19:21] rubyonrails525: I'm trying to write a functional test to my controller
[22:19:27] rubyonrails525: http://pastebin.com/CchRLnax
[22:19:53] Tralin: has joined #RubyOnRails
[22:20:36] rubyonrails525: this is the code that I'm trying to test
[22:20:37] rubyonrails525: https://gist.github.com/evaldosantos/6e4854fedc854fce8e2a5844fecf0f00
[22:22:16] FooMunki: has joined #RubyOnRails
[22:23:01] planigan: has joined #RubyOnRails
[22:23:35] Radar: rubyonrails525: Your route is nested several times and you need to specify a parameter for each level of nesting
[22:23:42] Radar: so market_id, language_id, label_id
[22:23:48] Radar: You're only specifying market_id
[22:24:05] LBRapid: has joined #RubyOnRails
[22:27:07] planigan: has joined #RubyOnRails
[22:31:14] xibalba: has joined #RubyOnRails
[22:32:28] jdm: has joined #RubyOnRails
[22:32:29] dminuoso: I am so freaking tempted to use eval for the first time..
[22:33:08] cnk: you were toying with it yesterday weren't you - but figured out the send you needed
[22:33:31] dminuoso: Well. its jbuilders fault.
[22:33:34] dminuoso: its like.. slow.
[22:33:44] dminuoso: try rendering a jbuilder partial 2 thousand times.
[22:33:45] dminuoso: it will hate you.
[22:33:57] cnk: I thought you were using ActiveModelSerializer
[22:36:17] LukePOLO: has joined #RubyOnRails
[22:37:25] GodFather: has joined #RubyOnRails
[22:37:29] dminuoso: cnk: So did I.
[22:37:42] xibalba: has joined #RubyOnRails
[22:39:24] fox_mulder_cp: dminuoso: use AMS
[22:39:30] fox_mulder_cp: active model serializers
[22:41:19] Radar: dminuoso: y u no cache the partials after they've rendered?
[22:41:35] thulsa_legume[m]: has joined #RubyOnRails
[22:42:46] rubyonrails525: Someone can help me with this test, please? https://gist.github.com/evaldosantos/6e4854fedc854fce8e2a5844fecf0f00
[22:43:17] Radar: rubyonrails525: see above.
[22:43:20] Radar: [09:23:33] <Radar> rubyonrails525: Your route is nested several times and you need to specify a parameter for each level of nesting
[22:43:22] Radar: [09:23:41] <Radar> so market_id, language_id, label_id
[22:43:49] Radar: dminuoso: is now a good time to tell you that in Phoenix partials are just functions? ;)
[22:47:25] quazimodo: has joined #RubyOnRails
[22:49:22] dminuoso: Radar: That's like Phoenix on Erlang right?
[22:49:32] Radar: Phoenix / Elixir, yea
[22:50:03] dminuoso: Radar: I have no idea. I do not know anything about caching ;o
[22:50:06] Radar: dminuoso: asking the brainstrust about a faster json renderer... but they're all asleep.
[22:50:30] dminuoso: Radar: Honestly its an edge case anyway. I can live with 2-3s view render time.
[22:50:38] dminuoso: It's only for one particular record that nobody ever wants to touch anyway.
[22:51:14] D9: has joined #RubyOnRails
[22:51:27] dminuoso: Ill pick this up tomorrow. Good night folks.
[22:51:52] Radar: dminuoso: I've got an example of caching here: https://github.com/radar/twist/blob/asciidoc/app/controllers/accounts/elements_controller.rb#L8
[22:52:02] djbkd: has joined #RubyOnRails
[22:52:11] doodlehaus: has joined #RubyOnRails
[22:52:16] Radar: The elements are only ever updated when the chapter is updated. `fresh_when` will send a 304 Not Modified if the chapter's timestamp hasn't changed.
[22:52:34] Radar: This relies on client-side caching. You can also do server-side caching. Maybe we'll talk more about it tomorrow :)
[22:56:04] planigan: has joined #RubyOnRails
[22:58:25] xaviergmail: has joined #RubyOnRails
[23:01:34] andywww: has joined #RubyOnRails
[23:11:05] jaequery: has joined #RubyOnRails
[23:11:59] paradisaeidae_: has joined #RubyOnRails
[23:14:58] Derperperd: has joined #RubyOnRails
[23:15:44] rakm: has joined #RubyOnRails
[23:16:11] dps: has joined #RubyOnRails
[23:20:08] Uranio: has joined #RubyOnRails
[23:26:24] yaw: has joined #RubyOnRails
[23:39:43] agent_white: has joined #RubyOnRails
[23:50:04] Derperperd: has joined #RubyOnRails
[23:50:09] nyaa: has joined #RubyOnRails
[23:54:49] brent__: has joined #RubyOnRails
[23:57:12] nertzy: has joined #RubyOnRails
[23:59:23] andywww: has joined #RubyOnRails