« Back to channel list

#RubyOnRails - 27 January 2016

« Back 1 day Forward 1 day »
[00:00:39] tildes: has joined #RubyOnRails
[00:01:04] noodman: has joined #RubyOnRails
[00:03:04] evenix: has joined #RubyOnRails
[00:03:20] aloneintheworld: has joined #RubyOnRails
[00:03:21] doodlehaus: has joined #RubyOnRails
[00:03:59] bronson: has joined #RubyOnRails
[00:05:57] evenix: has joined #RubyOnRails
[00:06:39] ryanRT: has joined #RubyOnRails
[00:06:44] kirillzh: has joined #RubyOnRails
[00:07:14] flashpoint9: has joined #RubyOnRails
[00:07:45] snowy: has joined #RubyOnRails
[00:08:31] evenix: has joined #RubyOnRails
[00:09:50] herbst: has joined #RubyOnRails
[00:09:51] havenwood: user083: Error message?
[00:11:30] K_r3aPeR: has joined #RubyOnRails
[00:11:53] sarink: has joined #RubyOnRails
[00:12:18] lethjakman-l: has joined #RubyOnRails
[00:15:24] doodlehaus: has joined #RubyOnRails
[00:15:48] rhizome: user083: usually it's from not having libxml2 installed
[00:17:31] tyrbo: has joined #RubyOnRails
[00:21:12] Brando753: has joined #RubyOnRails
[00:22:51] pawnbox: has joined #RubyOnRails
[00:28:07] herbst: has joined #RubyOnRails
[00:28:14] Brother_Emmett: has joined #RubyOnRails
[00:28:57] lethjakman-l: has joined #RubyOnRails
[00:29:32] patrick99e99: has joined #RubyOnRails
[00:30:19] guacamole: has joined #RubyOnRails
[00:30:50] patrick99e99: question about ActionController strong params... If I have a params hash like { :foo => { :bar => 'baz', :lol => 'omg' } }.. Is there a way to do params.require(:foo => [:bar]).permit(:bar, :lol) ? In other words, I want it to raise an error if bar is not in the params hash.. but lol is optional
[00:31:18] patrick99e99: *if bar is NOT in the params hash, nested under foo...
[00:32:16] baweaver: has joined #RubyOnRails
[00:32:47] HenriettaSalt: has joined #RubyOnRails
[00:34:40] ebbflowgo: has joined #RubyOnRails
[00:38:01] ryanRT: has joined #RubyOnRails
[00:39:29] ur5us: has joined #RubyOnRails
[00:44:11] evenix: has joined #RubyOnRails
[00:44:31] matthewd: patrick99e99: No; you could do it with some extra calls, but the general recommendation is to just enforce those sorts of details in a more ad hoc fashion
[00:45:17] patrick99e99: matthewd: shouldn't I just do params[:foo].require(:bar) as a separate thing, like in a before filter?
[00:45:58] matthewd: #require is only really there for navigating through a hash to apply a #permit.. the API is by design not built to do full parameter enforcement (e.g., the next logical step would be format checks, etc)
[00:46:23] matthewd: Yep, that'll work fine
[00:48:56] patrick99e99: matthewd: wait, so it sounded like you were saying doing params[:foo].require(:bar) is not ideal? or you are saying yeah its ok to do that? is it better to just raise an exception if !params[:foo][:bar] ?
[00:49:55] baweaver: has joined #RubyOnRails
[00:50:28] B1n4r10: has joined #RubyOnRails
[00:50:28] herbst: has joined #RubyOnRails
[00:51:02] matthewd: Either is fine; if you have more things to require, you'll likely find explicit #require calls get pretty unwieldy though
[00:51:41] NBarnes: has joined #RubyOnRails
[00:52:22] jgpawletko: has joined #RubyOnRails
[00:52:52] pawnbox: has joined #RubyOnRails
[00:53:03] nahwar: has joined #RubyOnRails
[00:54:11] NBarnes: has joined #RubyOnRails
[00:55:28] ElFerna: has joined #RubyOnRails
[00:55:29] nahwar: has joined #RubyOnRails
[00:55:35] lyoshajapan: has joined #RubyOnRails
[00:56:45] sevenseacat: has joined #RubyOnRails
[00:57:28] NBarnes: has joined #RubyOnRails
[00:58:14] lyoshajapan: has joined #RubyOnRails
[00:58:38] nahwar: has joined #RubyOnRails
[00:58:47] DLSteve: has joined #RubyOnRails
[00:59:52] kirillzh: has joined #RubyOnRails
[01:01:34] jottr_: has joined #RubyOnRails
[01:01:35] kies^: has joined #RubyOnRails
[01:02:04] maneco: has joined #RubyOnRails
[01:04:00] Axilla: has joined #RubyOnRails
[01:04:38] NBarnes: has joined #RubyOnRails
[01:05:51] noodman: has joined #RubyOnRails
[01:07:53] par[a]digm: has joined #RubyOnRails
[01:14:50] herbst: has joined #RubyOnRails
[01:17:28] lyoshajapan: has joined #RubyOnRails
[01:17:48] lyoshajapan: has joined #RubyOnRails
[01:17:59] Scripore: has joined #RubyOnRails
[01:19:04] musicnode: has joined #RubyOnRails
[01:19:51] tyrbo: has joined #RubyOnRails
[01:21:27] tildes: has joined #RubyOnRails
[01:21:37] ebbflowgo: has joined #RubyOnRails
[01:22:34] pawnbox: has joined #RubyOnRails
[01:24:52] ascarter: has joined #RubyOnRails
[01:25:30] ascarter_: has joined #RubyOnRails
[01:26:29] n00bDev: has joined #RubyOnRails
[01:27:03] guacamole: has joined #RubyOnRails
[01:28:32] sleungcy: has joined #RubyOnRails
[01:30:54] B1n4r10: has joined #RubyOnRails
[01:31:17] shibabu: has joined #RubyOnRails
[01:31:23] guacamole: has joined #RubyOnRails
[01:32:47] Brother_Emmett: has left #RubyOnRails: ()
[01:32:50] Thouren: has joined #RubyOnRails
[01:33:38] Thouren: has joined #RubyOnRails
[01:34:34] Brother_Emmett: has joined #RubyOnRails
[01:35:09] herbst: has joined #RubyOnRails
[01:36:27] ff7f00: has joined #RubyOnRails
[01:37:58] Brother_Emmett: has left #RubyOnRails: ()
[01:39:01] tyrbo: has joined #RubyOnRails
[01:40:29] sarink: has joined #RubyOnRails
[01:41:48] ff7f00: Hi, I've got a bit of a complicated set of associations. Ultimately we have a Drink and Ingredients. A DrinkItem represents the use of an Ingredient in a Drink and as a result a DrinkItem belongs_to an Ingredient and Drink. I'm trying to render a view for a set of Drinks but I need to pull the name from Ingredient for each DrinkItem in a Drink. This requires something like drinks.drink_items.map{|drink_item| drink_item.ingredient.name}. This gets very exp
[01:42:04] lethjakman-l: has joined #RubyOnRails
[01:42:35] sevenseacat: so a Drink has many Ingredients, through DrinkItem ?
[01:43:12] ff7f00: sevenseacat: not at the moment
[01:43:35] dexter-tzu: has joined #RubyOnRails
[01:43:48] ff7f00: sevenseacat: just added that right now and I think that's exactly what I'm looking for
[01:44:22] ariedler: has joined #RubyOnRails
[01:45:12] ariedler: anyone have any tips for tracking down "Circular dependency detected while autoloading constant" errors?
[01:45:45] Limix: has joined #RubyOnRails
[01:46:26] ElFerna: has joined #RubyOnRails
[01:48:10] ff7f00: sevenseacat: so that lets me do something like drinks.first.ingredients which does a JOIN and returns the ingredient list but I also need the name attribute for the DrinkItem associated with that Ingredient. Can that be consolidated into a single call?
[01:48:32] herbst: has joined #RubyOnRails
[01:49:04] workmad3: has joined #RubyOnRails
[01:49:56] sevenseacat: you can user eager loading to load all of the drink items and ingredients in one call, yes
[01:52:15] doodlehaus: has joined #RubyOnRails
[01:52:43] evenix: has joined #RubyOnRails
[01:53:15] tyrbo: has joined #RubyOnRails
[01:54:05] ebbflowgo: has joined #RubyOnRails
[01:58:12] blackmesa: has joined #RubyOnRails
[02:00:10] k13nox: has joined #RubyOnRails
[02:01:10] mattp_: has joined #RubyOnRails
[02:02:33] quazimodo: has joined #RubyOnRails
[02:02:36] quazimod1: has joined #RubyOnRails
[02:03:06] B1n4r10: has joined #RubyOnRails
[02:04:10] bronson: has joined #RubyOnRails
[02:05:32] ff7f00: sevenseacat: awesome, eager loading with the :through association got me to where I needed to go. It feels a bit ugly and maybe has me thinking the way I set up my models weren't the cleanest
[02:06:42] matthewd: ariedler: Doesn't it tell you one of the constants involved? And/or have clues in the backtrace?
[02:07:03] ariedler: matthewd: I thought it would, but it doesn't
[02:07:03] rclanan: has joined #RubyOnRails
[02:07:14] ariedler: there is no cycle in the backtrace at all :/
[02:07:45] matthewd: Are there class files from your app?
[02:08:00] ariedler: in fact the class that it indicates having a circular dependency when loaded does not have any Constants that would create a loop
[02:08:20] matthewd: Show me the line it's pointing to?
[02:10:27] ariedler: sadly all production work code :(
[02:11:08] guacamole: has joined #RubyOnRails
[02:11:14] ariedler: its also only in production I get this error I should also note... maybe not thread safe auto loading?
[02:11:22] dstarh: has joined #RubyOnRails
[02:14:10] ariedler: matthewd: theory .... could it be cause eager_load paths are different then autoload paths?
[02:14:16] matthewd: If you can't show me a single line in isolation, there's a limit to how much I can help ??\_(???)_/??
[02:14:36] ariedler: matthewd: I totally understand
[02:14:42] herbst: has joined #RubyOnRails
[02:15:22] ariedler: matthewd: found my answer: http://blog.arkency.com/2014/11/dont-forget-about-eager-load-when-extending-autoload/
[02:15:37] ariedler: there is eager_load_paths that I should be using
[02:15:48] ariedler: only took me 3 hours >_>
[02:16:10] guacamole: has joined #RubyOnRails
[02:17:01] guacamole: has joined #RubyOnRails
[02:18:09] ariedler: matthewd: thanks for responding, its nice to know there are people out there :)
[02:19:44] quazimodo: has joined #RubyOnRails
[02:19:45] quazimod1: has joined #RubyOnRails
[02:21:26] pontiki: has joined #RubyOnRails
[02:23:02] ariedler: hi pontiki, how has it been ?
[02:23:45] sleungcy: has joined #RubyOnRails
[02:24:13] guacamole: has joined #RubyOnRails
[02:25:18] paradisaeidae: has joined #RubyOnRails
[02:26:18] quazimodo: has joined #RubyOnRails
[02:26:21] quazimod1: has joined #RubyOnRails
[02:32:50] Coldblackice: has joined #RubyOnRails
[02:32:52] tyrbo: has joined #RubyOnRails
[02:33:01] baweaver: has joined #RubyOnRails
[02:34:36] joshkovach: has joined #RubyOnRails
[02:36:33] norm: has joined #RubyOnRails
[02:37:33] herbst: has joined #RubyOnRails
[02:38:37] par[a]digm: has joined #RubyOnRails
[02:41:29] tenderlove: has joined #RubyOnRails
[02:42:58] hannelita: has joined #RubyOnRails
[02:46:52] norm14823: has joined #RubyOnRails
[02:52:45] norm14823: I am looking for a rails developer to help with an application idea.
[02:54:04] chouhoulis: has joined #RubyOnRails
[02:54:54] quazimodo: has joined #RubyOnRails
[02:55:00] quazimod1: has joined #RubyOnRails
[02:55:22] rails784: has joined #RubyOnRails
[02:57:32] Radar: norm14823: what are you paying per hour?
[02:57:35] Bloomer: has joined #RubyOnRails
[02:59:09] blackmesa: has joined #RubyOnRails
[02:59:59] alexhartley: has joined #RubyOnRails
[03:01:25] k13nox: has joined #RubyOnRails
[03:02:02] pawnbox: has joined #RubyOnRails
[03:03:53] n00bDev: has joined #RubyOnRails
[03:06:08] herbst: has joined #RubyOnRails
[03:07:03] LambdaSource: has joined #RubyOnRails
[03:08:09] norm14823: Radar - it's a fairly simple idea. And I'm actually looking for someone to bounce the idea off of and maybe do a 50/50 split.
[03:08:24] Radar: norm14823: That didn't answer my question.
[03:08:30] helpa: http://i.imgur.com/m9m3wr9.gif
[03:08:43] creature: What's the idea, roughly?
[03:09:23] Radar: creature: Won't tell because it's top secret and 100% unique
[03:10:05] sevenseacat: but you may have half of <mythical profit X> for doing all of the work.
[03:10:30] Radar: No we're not bitter about startup culture at all.
[03:10:40] sevenseacat: nooo, whatever gave you that impression
[03:10:41] rclanan: has joined #RubyOnRails
[03:10:57] creature: Assume good faith! :)
[03:11:11] Radar: creature: That's how I got screwed out of $$$$. No thanks.
[03:11:36] rhizome: no room for faith in business unless you own the place
[03:11:40] Radar: I will be brutally honest and truthful with any clients and I expect the same back.
[03:12:23] creature: Sure, for business. I think we can set the knob at a friendlier level for IRC chats, though. :)
[03:12:51] rhizome: isn't "business" why you can't tell us what it is?
[03:13:25] creature: norm14823 hasn't said yet whether he can tell us all about it yet.
[03:13:29] sevenseacat: to be fair norm14823 didnt actually say it was secret, we just went off on it :P
[03:13:38] rhizome: oh, got my nicks mixed up. sorry!
[03:20:43] tenderlove: has joined #RubyOnRails
[03:23:35] A124: has joined #RubyOnRails
[03:25:07] sakix: has joined #RubyOnRails
[03:25:10] norm14823: It's not a startup but a silly idea that I cannot get out of my head. What I would like to do is create a facebook app to distribute all number combinations for the powerball lottery. The odds of matching all five numbers is about 11.2 million, the odds of winning the jackpot is about 292 million (11.2 x 26) So basically 11 million people have to play 26 tickets to cover all the bases. Not sure how to make money but it wou
[03:25:35] creature: Your line got cut off at "make money but it wou".
[03:25:55] norm14823: would be cool to see if it's possible.
[03:26:02] rhizome: it sounds like you would make money by running an illegal lottery!
[03:27:09] norm14823: no you just hand out the numbers to members it would be up to them to play them.
[03:28:01] evenix: has joined #RubyOnRails
[03:28:19] rhizome: regardless, you're basically just assigning numbers to people and choosing another number at random. whether that has to match a person or not depends on the rules of your lottery
[03:31:30] herbst: has joined #RubyOnRails
[03:32:08] konsolebox: has joined #RubyOnRails
[03:32:35] A124: has joined #RubyOnRails
[03:33:34] m8brgarc: has joined #RubyOnRails
[03:37:50] workmad3: has joined #RubyOnRails
[03:37:53] LambdaSource: has joined #RubyOnRails
[03:42:00] LambdaSource: has joined #RubyOnRails
[03:42:13] nbdy: has joined #RubyOnRails
[03:44:33] shibabu: has joined #RubyOnRails
[03:46:46] sonalkr132: has joined #RubyOnRails
[03:47:16] akshat: has joined #RubyOnRails
[03:48:47] robbyoconnor: has joined #RubyOnRails
[03:49:12] robbyoconnor: has joined #RubyOnRails
[03:49:33] ss_much: has joined #RubyOnRails
[03:50:50] LambdaSource: has joined #RubyOnRails
[03:52:13] doodlehaus: has joined #RubyOnRails
[03:53:02] hannelita: has joined #RubyOnRails
[03:54:49] lethjakman-l: has joined #RubyOnRails
[03:56:57] jklass: has joined #RubyOnRails
[03:58:43] ff7f00: has joined #RubyOnRails
[03:59:06] herbst: has joined #RubyOnRails
[03:59:07] herbst: has joined #RubyOnRails
[04:01:27] blackmesa: has joined #RubyOnRails
[04:02:03] kies^: has joined #RubyOnRails
[04:02:37] baweaver: has joined #RubyOnRails
[04:03:47] k13nox: has joined #RubyOnRails
[04:05:07] krz: has joined #RubyOnRails
[04:05:27] oddie: has joined #RubyOnRails
[04:06:36] bronson: has joined #RubyOnRails
[04:10:24] treaki_: has joined #RubyOnRails
[04:11:29] rclanan: has joined #RubyOnRails
[04:11:51] sleungcy: has joined #RubyOnRails
[04:12:35] par[a]digm: has joined #RubyOnRails
[04:14:15] Scripore: has joined #RubyOnRails
[04:15:41] tjbiddle: has joined #RubyOnRails
[04:16:19] LOLCANADA: has joined #RubyOnRails
[04:18:01] jeanre: has joined #RubyOnRails
[04:18:17] sonalkr132: has joined #RubyOnRails
[04:19:04] braincrash: has joined #RubyOnRails
[04:25:52] pawnbox: has joined #RubyOnRails
[04:26:47] iateadonut: has joined #RubyOnRails
[04:28:09] herbst: has joined #RubyOnRails
[04:37:00] alex88: has joined #RubyOnRails
[04:38:43] tlarevo: has joined #RubyOnRails
[04:39:38] arBmind1: has joined #RubyOnRails
[04:39:46] krz: has joined #RubyOnRails
[04:40:11] jottr: has joined #RubyOnRails
[04:48:34] DiCablo: has joined #RubyOnRails
[04:49:43] User458764: has joined #RubyOnRails
[04:49:43] barajasfab: has joined #RubyOnRails
[04:53:44] hannelita: has joined #RubyOnRails
[04:53:48] jeanre: has joined #RubyOnRails
[04:56:41] tildes: has joined #RubyOnRails
[04:57:01] herbst: has joined #RubyOnRails
[05:03:15] blackmesa: has joined #RubyOnRails
[05:05:53] duncannz: has joined #RubyOnRails
[05:06:22] sleungcy: has joined #RubyOnRails
[05:08:02] LambdaSource: has joined #RubyOnRails
[05:09:53] LambdaSource: has joined #RubyOnRails
[05:10:29] htmldrum: has joined #RubyOnRails
[05:12:55] rclanan: has joined #RubyOnRails
[05:14:16] lemur: has joined #RubyOnRails
[05:16:57] yfeldblum: has joined #RubyOnRails
[05:21:26] lxsameer: has joined #RubyOnRails
[05:23:24] pawnbox_: has joined #RubyOnRails
[05:23:47] tenderlove: has joined #RubyOnRails
[05:24:54] herbst: has joined #RubyOnRails
[05:24:57] Limix: has joined #RubyOnRails
[05:29:49] NBarnes: has joined #RubyOnRails
[05:30:19] pawnbox: has joined #RubyOnRails
[05:32:03] NBarnes: has joined #RubyOnRails
[05:33:32] creyes: has joined #RubyOnRails
[05:33:53] creyes: Hi everyone, had this discussion about Stored vs Calculated values a few days ago
[05:35:08] creyes: I ended up going with a calculated value. But I want to (using morrisjs) graph that when that calculated value reaches 100% at a certain date.
[05:38:32] creyes: I think what I need to do is write a model method that, when the calculated values reaches 100, sets a "completed_at" datetime in a field in the db
[05:38:48] creyes: how can I write a function like that that's constantly checking?
[05:39:24] tyrbo: has joined #RubyOnRails
[05:41:32] rvanlieshout: has joined #RubyOnRails
[05:41:57] par[a]digm: has joined #RubyOnRails
[05:42:10] jottr: has joined #RubyOnRails
[05:42:44] tomoyuki28jp: has joined #RubyOnRails
[05:43:32] tomoyuki28jp: Question about mountable engine. How can I use parent path from a mountable engine app?
[05:45:48] herbst: has joined #RubyOnRails
[05:45:48] herbst: has joined #RubyOnRails
[05:49:15] Radar: tomoyuki28jp: !engines
[05:49:15] helpa: tomoyuki28jp: http://guides.rubyonrails.org/engines.html - Engines Guide - Written by Ryan Bigg
[05:49:17] Radar: tomoyuki28jp: main_app
[05:49:54] jeanre: has joined #RubyOnRails
[05:51:24] tomoyuki28jp: Radar: Thanks a lot!
[05:51:59] jeanre: has joined #RubyOnRails
[05:52:42] creyes: Gist for my previous question https://gist.github.com/das3in/d4d86ae8b6f30294cc78
[05:53:12] doodlehaus: has joined #RubyOnRails
[05:55:56] hannelita: has joined #RubyOnRails
[05:59:21] Radar: creyes: Run a daily cron job.
[05:59:27] Radar: creyes: Or... however frequently you want.
[05:59:39] yoongkang: has joined #RubyOnRails
[05:59:54] Radar: creyes: I guess you could also do it as an after_save callback on the milestone, really.
[05:59:57] ur5us: has joined #RubyOnRails
[06:00:08] Radar: So once a milestone is saved, calculate the goal's completed-ness and then update it./
[06:00:13] creyes: Radar: oh right
[06:00:56] creyes: Radar: hmmm. does the parent (goal) get updated every time a child (milestone) is updated?
[06:04:24] jeanre: has joined #RubyOnRails
[06:04:32] Radar: creyes: potentially
[06:04:54] dionysus69: has joined #RubyOnRails
[06:05:01] blackmesa: has joined #RubyOnRails
[06:05:49] rclanan: has joined #RubyOnRails
[06:08:44] bronson: has joined #RubyOnRails
[06:09:10] arup_r: has joined #RubyOnRails
[06:10:41] herbst: has joined #RubyOnRails
[06:10:43] sonalkr132: has joined #RubyOnRails
[06:16:07] marcdel: has joined #RubyOnRails
[06:16:14] bePolite: has joined #RubyOnRails
[06:17:14] michael_mbp: anyone here looked at creating a bidding engine? I feel this might be an excellent usecase for elixir
[06:17:14] Flipez: has joined #RubyOnRails
[06:17:23] Radar: o/ michael_mbp
[06:18:07] michael_mbp: (bidding engine, supporting incremental bids eBay style).
[06:18:12] sevenseacat: #elixir-lang is that way -->
[06:18:47] michael_mbp: sevenseacat: -.-
[06:18:57] michael_mbp: you should say, 'We can do it in Ruby!'
[06:19:15] michael_mbp: maybe eventmachine etc?
[06:19:46] sevenseacat: that implies I care what language you make it in >_>
[06:20:36] marcdel_: has joined #RubyOnRails
[06:20:50] _3by8: has joined #RubyOnRails
[06:22:13] mc_fail: has joined #RubyOnRails
[06:22:20] michael_mbp: celluloid may help too
[06:22:26] mattp_: has joined #RubyOnRails
[06:22:37] naavinm: has joined #RubyOnRails
[06:23:26] michael_mbp: "Celluloid takes care of rebooting subcomponents of your application when they crash, whether it's a single actor, or large (potentially multi-tiered) groups of actors that are all interdependent. This means rather than worrying about rescuing every last exception, you can just sit back, relax, and let parts of your program crash, knowing Celluloid will automatically reboot them in a clean state"
[06:23:48] michael_mbp: lovely! At least, my initial suggestion for elixir was based aroud exactly that ^^.
[06:25:38] puria: has joined #RubyOnRails
[06:28:46] apotry: has joined #RubyOnRails
[06:32:52] bga57: has joined #RubyOnRails
[06:35:39] sonalkr132_: has joined #RubyOnRails
[06:37:08] ur5us: has joined #RubyOnRails
[06:39:25] herbst: has joined #RubyOnRails
[06:39:35] Macaveli: has joined #RubyOnRails
[06:42:36] aganov: has joined #RubyOnRails
[06:42:54] jottr: has joined #RubyOnRails
[06:45:16] mdw: has joined #RubyOnRails
[06:45:23] solars: has joined #RubyOnRails
[06:46:35] tfitts: has joined #RubyOnRails
[06:48:54] Guest96: has joined #RubyOnRails
[06:49:13] eggoez: has joined #RubyOnRails
[06:52:14] sonalkr132: has joined #RubyOnRails
[06:53:26] LambdaSource: has joined #RubyOnRails
[06:53:36] devlitzi: has joined #RubyOnRails
[06:54:24] zpe: has joined #RubyOnRails
[06:54:38] sleungcy: has joined #RubyOnRails
[06:54:49] chouhoulis: has joined #RubyOnRails
[06:55:25] zpe_: has joined #RubyOnRails
[06:59:06] darrik: has joined #RubyOnRails
[07:00:49] n00bDev: has joined #RubyOnRails
[07:01:16] evenix: has joined #RubyOnRails
[07:01:57] alexhartley: has joined #RubyOnRails
[07:02:41] AimlessRAven: has joined #RubyOnRails
[07:03:29] AimlessRAven: hi evryone, i have 1 simple question. in cocoon gem.. when i create nested form .. and add = f.check_box :_destroy for some row
[07:03:35] AimlessRAven: how to fix redirect
[07:04:50] hannelita: has joined #RubyOnRails
[07:05:56] arup_r: has joined #RubyOnRails
[07:06:08] alca: has joined #RubyOnRails
[07:06:32] rclanan: has joined #RubyOnRails
[07:06:48] blackmesa: has joined #RubyOnRails
[07:09:14] baash05: has left #RubyOnRails: ()
[07:09:42] herbst: has joined #RubyOnRails
[07:11:03] arup_r: has joined #RubyOnRails
[07:12:23] par[a]digm: has joined #RubyOnRails
[07:13:37] duncannz: has joined #RubyOnRails
[07:15:21] AimlessRAven: 1 some basic question
[07:15:27] AimlessRAven: when i have model product
[07:15:40] AimlessRAven: my controller when i generate name is need to be product.. or products
[07:15:59] _3by8: has joined #RubyOnRails
[07:18:17] arup_r: AimlessRaven: http://guides.rubyonrails.org/getting_started.html#generating-a-controller
[07:18:31] ss_much_: has joined #RubyOnRails
[07:18:48] tyrbo: has joined #RubyOnRails
[07:19:22] _3by8: So, I'm a little bit lost. I need to query a table so that it only gives me the records whose IDs also exist in another table. No idea how to do that.
[07:19:34] guacamole: has joined #RubyOnRails
[07:20:07] arup_r: _3by8: do you have any relationship between those tables ?
[07:21:23] lethjakman-l: has joined #RubyOnRails
[07:21:32] Spa_Ins: has joined #RubyOnRails
[07:21:46] Thouren: has joined #RubyOnRails
[07:22:48] _3by8: arup_r: yes, the relationship is a has_many through.
[07:24:38] arup_r: so you have helper method of doing this.. did you try ?
[07:25:50] _3by8: arup_r: I assume I am supposed to be using the join method.
[07:27:18] arup_r: if you consider this http://guides.rubyonrails.org/association_basics.html#the-has-many-through-association as an example, Physician.first.patients will give you all patients, rails will do the join for you internally.
[07:27:31] arup_r: the same will work other way around.
[07:27:41] arup_r: I don't know where you stuck.
[07:28:56] arup_r: read that part, you will be able to do
[07:31:10] marcdel: has joined #RubyOnRails
[07:32:12] _3by8: arup_r: got it, it's working now, thank you.
[07:35:05] kerunaru: has joined #RubyOnRails
[07:38:11] mdw: has joined #RubyOnRails
[07:40:02] tetraktys: has joined #RubyOnRails
[07:41:56] srinidhi: has joined #RubyOnRails
[07:43:38] jottr: has joined #RubyOnRails
[07:47:34] tvw: has joined #RubyOnRails
[07:47:50] User458764: has joined #RubyOnRails
[07:47:58] darutoko: has joined #RubyOnRails
[07:48:40] sleungcy: has joined #RubyOnRails
[07:49:49] visudo: has joined #RubyOnRails
[07:53:50] visudo: has left #RubyOnRails: ()
[07:53:52] doodlehaus: has joined #RubyOnRails
[07:54:06] Jet4Fire: has joined #RubyOnRails
[07:55:31] visudo: has joined #RubyOnRails
[07:57:01] sevenseacat: has joined #RubyOnRails
[07:57:44] PedramT: has joined #RubyOnRails
[07:58:53] PedramT_: has joined #RubyOnRails
[07:59:58] Palsson: has joined #RubyOnRails
[08:01:53] herbst: has joined #RubyOnRails
[08:01:57] herbst: has joined #RubyOnRails
[08:02:17] blackhuey: has joined #RubyOnRails
[08:03:32] Axilla: has joined #RubyOnRails
[08:03:42] duncannz: has joined #RubyOnRails
[08:05:32] hannelita: has joined #RubyOnRails
[08:05:58] comrad: has joined #RubyOnRails
[08:07:20] rclanan: has joined #RubyOnRails
[08:09:50] blackmesa: has joined #RubyOnRails
[08:10:21] bronson: has joined #RubyOnRails
[08:12:27] sarink: has joined #RubyOnRails
[08:12:40] jeanre: has joined #RubyOnRails
[08:12:47] sevenseacat: has joined #RubyOnRails
[08:13:36] tjbiddle: has joined #RubyOnRails
[08:19:29] Spa_Ins: has left #RubyOnRails: ()
[08:20:34] AlexJakeGreen: has joined #RubyOnRails
[08:20:50] yardenbar: has joined #RubyOnRails
[08:24:06] ferr: has joined #RubyOnRails
[08:24:52] mbreedlove: has joined #RubyOnRails
[08:25:09] pawnbox: has joined #RubyOnRails
[08:25:39] artto: has joined #RubyOnRails
[08:26:33] speaking1ode: has joined #RubyOnRails
[08:26:47] PedramT: has joined #RubyOnRails
[08:27:22] yoongkang: has joined #RubyOnRails
[08:32:25] mark2: has joined #RubyOnRails
[08:33:39] quazimodo: has joined #RubyOnRails
[08:33:40] quazimod1: has joined #RubyOnRails
[08:34:43] bePolite: has joined #RubyOnRails
[08:36:55] workmad3: has joined #RubyOnRails
[08:37:57] mdw: has joined #RubyOnRails
[08:38:30] tjbiddle: Hi all - Capistrano question for those familiar: I have `on roles(:app), in: :sequence, wait: 60 do |server|` however things are still being executed without a minute wait inbetween (Threw a timestamp and it just happens a second later - so near immediately) I'm on 3.4.0 - Anyone have an idea what might be going on?
[08:41:09] kerunaru: has joined #RubyOnRails
[08:42:46] sleungcy: has joined #RubyOnRails
[08:42:56] par[a]digm: has joined #RubyOnRails
[08:43:38] kerunaru: has joined #RubyOnRails
[08:44:16] bePolite: has joined #RubyOnRails
[08:44:29] jottr: has joined #RubyOnRails
[08:45:15] kitsuneyo: has joined #RubyOnRails
[08:46:22] artto: has joined #RubyOnRails
[08:46:58] alexhartley: has joined #RubyOnRails
[08:47:26] keemook555: has joined #RubyOnRails
[08:49:14] berserk_ren: has joined #RubyOnRails
[08:49:57] mikecmpbll: has joined #RubyOnRails
[08:50:51] nettoweb: has joined #RubyOnRails
[08:51:43] atomical: has joined #RubyOnRails
[08:52:06] herbst: has joined #RubyOnRails
[08:53:09] atomical_: has joined #RubyOnRails
[08:53:44] mdw: has joined #RubyOnRails
[08:54:56] tyrbo: has joined #RubyOnRails
[08:55:33] dkam: has joined #RubyOnRails
[08:55:54] atomical_: has joined #RubyOnRails
[08:58:58] sandstrom: has joined #RubyOnRails
[08:59:40] keemook555: has left #RubyOnRails: ()
[08:59:48] AzaToth: has joined #RubyOnRails
[09:01:24] artto: has joined #RubyOnRails
[09:02:03] bePolite: has joined #RubyOnRails
[09:02:31] mauro1254: has joined #RubyOnRails
[09:02:49] evenix: has joined #RubyOnRails
[09:03:29] drptbl: has joined #RubyOnRails
[09:03:30] mauro1254: Hi guys, how can I use the bang version of where with not?
[09:04:13] defsdoor: has joined #RubyOnRails
[09:04:19] duncannz: has joined #RubyOnRails
[09:04:52] mauro1254: where => where!
[09:04:58] mauro1254: where.not => ???
[09:05:14] matthewd: There is no bang version of where
[09:06:18] mauro1254: Do I need to have something like results = results.where.not(...)
[09:06:18] hannelita: has joined #RubyOnRails
[09:06:51] matthewd: Yes, you should always go that; don't use where!
[09:07:44] mauro1254: It has been introduced in rails 4
[09:07:54] sevenseacat: TIL about where!
[09:08:16] rclanan: has joined #RubyOnRails
[09:08:20] duncannz: has joined #RubyOnRails
[09:08:25] matthewd: No, it has not
[09:08:29] sevenseacat: or not, because dash doesnt show it
[09:08:36] matthewd: It's internal, and should not be used
[09:08:48] matthewd: Relation is supposed to be publicly immutable
[09:09:01] sevenseacat: good to know.
[09:09:04] kp666: has joined #RubyOnRails
[09:09:07] mdw: has joined #RubyOnRails
[09:09:11] sevenseacat: explains why I didn't know about it :)
[09:09:39] kp666: has joined #RubyOnRails
[09:09:52] mauro1254: matthewd: ok, many thanks
[09:10:21] kp666: has joined #RubyOnRails
[09:11:02] kp666: has joined #RubyOnRails
[09:11:03] jsrn_: has joined #RubyOnRails
[09:11:42] k13nox: has joined #RubyOnRails
[09:11:45] kp666: has joined #RubyOnRails
[09:12:30] kp666: has joined #RubyOnRails
[09:12:48] devlitzi: has joined #RubyOnRails
[09:12:52] blackmesa: has joined #RubyOnRails
[09:13:17] kp666: has joined #RubyOnRails
[09:13:20] duncannz: has joined #RubyOnRails
[09:14:08] yoongkang: has joined #RubyOnRails
[09:15:44] LambdaSource: has joined #RubyOnRails
[09:17:04] DoubleMalt: has joined #RubyOnRails
[09:18:53] kirillzh: has joined #RubyOnRails
[09:24:20] PedramT: has joined #RubyOnRails
[09:26:20] FooMunki: has joined #RubyOnRails
[09:26:45] alexhart_: has joined #RubyOnRails
[09:27:43] snowy: has joined #RubyOnRails
[09:28:57] rodfersou: has joined #RubyOnRails
[09:33:27] zarubin: has joined #RubyOnRails
[09:36:54] sleungcy: has joined #RubyOnRails
[09:39:01] tyrbo: has joined #RubyOnRails
[09:40:08] k13nox: has joined #RubyOnRails
[09:42:33] k13nox: has joined #RubyOnRails
[09:44:14] hannelita: has joined #RubyOnRails
[09:45:09] jottr: has joined #RubyOnRails
[09:45:10] Palsson: has joined #RubyOnRails
[09:49:07] bePolite: has joined #RubyOnRails
[09:50:08] baweaver: has joined #RubyOnRails
[09:51:20] alexhartley: has joined #RubyOnRails
[09:52:46] herbst: has joined #RubyOnRails
[09:53:35] kerunaru: has joined #RubyOnRails
[09:54:42] doodlehaus: has joined #RubyOnRails
[09:55:02] marr: has joined #RubyOnRails
[09:55:08] lacrymology: has joined #RubyOnRails
[09:55:25] erGoline: has joined #RubyOnRails
[09:58:25] FooMunki: has joined #RubyOnRails
[10:00:38] kirillzh: Are there good resources about API design?
[10:01:08] bronson: has joined #RubyOnRails
[10:01:39] kirillzh: I started building API service using RoR 5. I've never done it before besides following tutorials.
[10:02:14] erGoline: Hello :) A bit OT question about performances: I'm testing a rails 3.2 / ruby 2.2.2 app on some VPS (digital ocean, vultr) with dokku and puma web server. I'm testing various setup (ram/cores). I find out that "puma workers" * "web scale count" have to be equal to the server cores, if I increase them I have no any performance advantage, even if the server has a lot of free ram. Any tip please?
[10:02:18] alexhart_: has joined #RubyOnRails
[10:02:36] pawnbox: has joined #RubyOnRails
[10:04:01] par[a]digm: has joined #RubyOnRails
[10:04:32] Axilla: has joined #RubyOnRails
[10:04:37] arBmind: has joined #RubyOnRails
[10:06:03] hannelita: has joined #RubyOnRails
[10:10:04] kitsuneyo: has joined #RubyOnRails
[10:10:26] tyrbo: has joined #RubyOnRails
[10:13:34] chipotle: has joined #RubyOnRails
[10:16:56] stamina: has joined #RubyOnRails
[10:17:43] moei: has joined #RubyOnRails
[10:17:48] erGoline: has joined #RubyOnRails
[10:18:07] konsolebox: has joined #RubyOnRails
[10:18:13] zpe: has joined #RubyOnRails
[10:18:27] Hates_: sevenseacat: you like Dash?
[10:18:38] sevenseacat: eh, i use it some
[10:18:47] erGoline: Hello :) A bit OT question about performances: I'm setup a rails 3.2 / ruby 2.2.2 app on some VPS (digital ocean, vultr) with dokku and puma web server. I'm testing various setup (ram/cores). I find out that "puma workers" * "web scale count" have to be equal to the server cores, if I increase them I have no any performance advantage, even if the server has a lot of free ram. Any tip please?
[10:18:51] Hates_: sevenseacat: ahhh k :)
[10:19:11] qejk: has joined #RubyOnRails
[10:20:25] PedramT_: has joined #RubyOnRails
[10:21:29] ziggy: has joined #RubyOnRails
[10:21:29] ziggy: has joined #RubyOnRails
[10:22:02] Cohedrin: has joined #RubyOnRails
[10:22:13] User458764: has joined #RubyOnRails
[10:23:12] Cohedrin: has joined #RubyOnRails
[10:25:10] dkam: has joined #RubyOnRails
[10:26:26] PedramT: has joined #RubyOnRails
[10:26:53] mdw7: has joined #RubyOnRails
[10:27:46] arup_r: has joined #RubyOnRails
[10:30:59] sleungcy: has joined #RubyOnRails
[10:32:53] gbgdev: has joined #RubyOnRails
[10:32:54] albipri: has joined #RubyOnRails
[10:33:43] albipri: How can I use fragment caching inside an helper? I???m in Rails 3.2.22
[10:34:34] bePolite: has joined #RubyOnRails
[10:36:41] rhizome: don't cache inside a helper
[10:37:32] erGoline: albipri: Nice question ;)
[10:38:46] erGoline: rhizome: why not?
[10:41:33] ldnunes: has joined #RubyOnRails
[10:42:11] rhizome: it's not a fragment
[10:45:37] Meow-J: has joined #RubyOnRails
[10:45:55] jottr: has joined #RubyOnRails
[10:46:22] erGoline: rhizome: yes, but if I need to fetch/update a fragment inside a view helper, how can I do? Render a partial with layout: false?
[10:47:34] mrtomme: has joined #RubyOnRails
[10:49:13] albipri: rhizome: I???m trying to do something like this https://gist.github.com/albertopriore/06b6b6b862f71a389141 Where I???m wrong?
[10:50:18] artto: has joined #RubyOnRails
[10:52:56] arup_r: erGoline: can we render partial from an action too ?
[10:53:08] arup_r: I didn't know that
[10:55:04] rvanlieshout: has joined #RubyOnRails
[10:55:22] erGoline: arup_r: what you mean?
[10:56:05] arup_r: Render a partial with layout: false? I didn't get it. I knew we render views, and then inside the view we render partials..
[10:57:05] tvw: has joined #RubyOnRails
[10:57:49] erGoline: arup_r: you can render a poartial in any point of your code, "layout: false" let you get only the partial html without the surronding stuff
[10:59:20] arup_r: ok, i didn't know this
[10:59:31] mrtomme: has left #RubyOnRails: ()
[11:00:00] tyrbo: has joined #RubyOnRails
[11:01:53] blackmesa: has joined #RubyOnRails
[11:04:31] evenix: has joined #RubyOnRails
[11:09:39] rclanan: has joined #RubyOnRails
[11:10:19] doodlehaus: has joined #RubyOnRails
[11:14:22] yfeldblum: has joined #RubyOnRails
[11:14:41] ebbflowgo: has joined #RubyOnRails
[11:14:55] erGoline: Any help about my dokku/puma problem? :P
[11:16:31] Ergo: has joined #RubyOnRails
[11:18:35] jottr: has joined #RubyOnRails
[11:19:53] PedramT: has joined #RubyOnRails
[11:20:02] gbgdev: has joined #RubyOnRails
[11:20:37] bePolite: has joined #RubyOnRails
[11:20:40] Grundell: has joined #RubyOnRails
[11:22:01] Grundell: has joined #RubyOnRails
[11:25:02] sleungcy: has joined #RubyOnRails
[11:27:52] baweaver: has joined #RubyOnRails
[11:28:21] hyperdrive: has joined #RubyOnRails
[11:28:29] xMopxShell: has joined #RubyOnRails
[11:29:12] loren: has joined #RubyOnRails
[11:33:20] herbst: has joined #RubyOnRails
[11:36:40] artto: has joined #RubyOnRails
[11:38:22] Cohedrin: has joined #RubyOnRails
[11:38:38] kitsuneyo: has joined #RubyOnRails
[11:39:56] herbst: has joined #RubyOnRails
[11:42:21] herbst: has joined #RubyOnRails
[11:46:07] ziyadb: has joined #RubyOnRails
[11:46:10] dionysus69: has joined #RubyOnRails
[11:53:22] PedramT: has joined #RubyOnRails
[11:53:57] herbst: has joined #RubyOnRails
[11:54:47] codedmart: has joined #RubyOnRails
[11:54:59] tetraktys: has joined #RubyOnRails
[11:56:11] artX000: has joined #RubyOnRails
[11:56:23] Palsson: has joined #RubyOnRails
[11:58:25] yoongkang: has joined #RubyOnRails
[11:59:22] herbst: has joined #RubyOnRails
[12:03:23] bronson: has joined #RubyOnRails
[12:03:29] bruce_lee: has joined #RubyOnRails
[12:05:03] alexhartley: has joined #RubyOnRails
[12:05:23] Axilla: has joined #RubyOnRails
[12:06:29] ElFerna: has joined #RubyOnRails
[12:07:46] herbst: has joined #RubyOnRails
[12:08:47] quazimodo: has joined #RubyOnRails
[12:08:50] quazimod1: has joined #RubyOnRails
[12:09:57] blackmesa: has joined #RubyOnRails
[12:10:28] rclanan: has joined #RubyOnRails
[12:11:27] kitsuneyo: has joined #RubyOnRails
[12:12:48] zeros0623: has joined #RubyOnRails
[12:13:12] herbst: has joined #RubyOnRails
[12:14:25] AimlessRAven: has joined #RubyOnRails
[12:14:41] zeros0623: there is a typing error on http://guides.rubyonrails.org/getting_started.html where do i report at?
[12:14:46] AimlessRAven: anyone knows why = f.association :option_types, as: :select, :selected => params[:option_types] dont keep my value selected after submit ?
[12:16:20] herbst: has joined #RubyOnRails
[12:17:04] Palsson: has joined #RubyOnRails
[12:17:56] matthewd: zeros0623: https://github.com/rails/rails/tree/master/guides
[12:19:05] sleungcy: has joined #RubyOnRails
[12:20:08] herbst: has joined #RubyOnRails
[12:20:08] herbst: has joined #RubyOnRails
[12:20:23] Palsson_: has joined #RubyOnRails
[12:22:17] zpe: has joined #RubyOnRails
[12:25:40] PedramT: has joined #RubyOnRails
[12:26:05] doodlehaus: has joined #RubyOnRails
[12:27:31] AimlessRAven: anyone knows why = f.association :option_types, as: :select, :selected => params[:option_types] dont keep my value selected after submit ?
[12:27:42] rvanlieshout: AimlessRaven: because of the selected option
[12:28:26] kitsuneyo: has joined #RubyOnRails
[12:28:37] AimlessRAven: rvanlieshout: whats wrong there
[12:28:58] rvanlieshout: it explicitly sets a selected option
[12:29:10] rvanlieshout: using a param value that's not present after submit
[12:29:19] rvanlieshout: a) you shouldn't be setting values here, but in the controller
[12:29:30] rvanlieshout: b) the param name is called different, because it's part of your f's object
[12:29:50] Pumukel: has joined #RubyOnRails
[12:30:01] treaki_: has joined #RubyOnRails
[12:30:56] c355E3B: has joined #RubyOnRails
[12:34:49] doodlehaus: has joined #RubyOnRails
[12:39:13] herbst: has joined #RubyOnRails
[12:39:58] AimlessRAven: rvanlieshout: but this is has and belongs to many association
[12:40:09] Grundell: has joined #RubyOnRails
[12:41:10] rvanlieshout: that doesn't change the way how these form builders are intented to be used
[12:43:34] pawnbox: has joined #RubyOnRails
[12:44:01] mrbubbles: has joined #RubyOnRails
[12:44:10] artto: has joined #RubyOnRails
[12:44:32] safetypin: has joined #RubyOnRails
[12:48:41] Palsson: has joined #RubyOnRails
[12:49:27] nettoweb: hello guys, is it common a form reset the password fields after submitted and return because some validation message? I thought it has just with rails because a lot of webistes keep the password stores even whe the form went back after validation message
[12:50:38] workmad3: has joined #RubyOnRails
[12:52:44] silverdust: I have two models that use devise (admin and user). after_sign_out_path_for(admin) affects users too . Here's what my application controller looks like https://gist.github.com/bl4ckdu5t/5f0815af2a987aaca580
[12:53:02] silverdust: Also after_sign_in_path_for(admin)
[12:54:15] silverdust: I had to comment out the admin after_sign_in and after_sign_out to get users to work as expected i.e root_path for both sign_out and sign_in . How can I get this to work as expected?
[13:01:12] bePolite: has joined #RubyOnRails
[13:02:37] herbst: has joined #RubyOnRails
[13:02:38] Axilla: has joined #RubyOnRails
[13:03:07] ElFerna: has joined #RubyOnRails
[13:04:37] konsolebox: has joined #RubyOnRails
[13:06:15] evenix: has joined #RubyOnRails
[13:06:36] PedramT: has joined #RubyOnRails
[13:07:05] konsolebox: has joined #RubyOnRails
[13:09:28] avril14th: has joined #RubyOnRails
[13:09:50] avril14th: Hello, is there a way to change an already existing foreign_key constraint without having to remove and add?
[13:11:02] rvanlieshout: avril14th: does your db engine has a method for that?
[13:11:08] rclanan: has joined #RubyOnRails
[13:11:27] avril14th: rvanlieshout: no idea. I use Azure SQL.
[13:11:39] konsolebox: has joined #RubyOnRails
[13:12:30] avril14th: looks like not.
[13:12:37] avril14th: ok, let's add remove then
[13:13:06] fsteim: has joined #RubyOnRails
[13:13:11] sleungcy: has joined #RubyOnRails
[13:13:47] avril14th: thx rvanlieshout
[13:14:57] herbst: has joined #RubyOnRails
[13:18:43] zeros0623: has joined #RubyOnRails
[13:20:16] herbst: has joined #RubyOnRails
[13:20:42] tfitts: has joined #RubyOnRails
[13:23:22] sininen: has joined #RubyOnRails
[13:30:22] zeros0623: has joined #RubyOnRails
[13:30:46] rvanlieshout: yw, avril14th
[13:31:35] jkamenik: has joined #RubyOnRails
[13:32:03] herbst: has joined #RubyOnRails
[13:35:34] workmad3: has joined #RubyOnRails
[13:36:26] mrgreenfur: has joined #RubyOnRails
[13:36:52] chipotle: has joined #RubyOnRails
[13:37:05] tvw: has joined #RubyOnRails
[13:38:01] mary5030: has joined #RubyOnRails
[13:40:14] cryptocronus: has joined #RubyOnRails
[13:40:29] blackmesa: has joined #RubyOnRails
[13:40:47] kerunaru: Just seen the website redesign! Sweet! :3
[13:41:01] lacrymology: has joined #RubyOnRails
[13:41:07] cryptocronus: what???s the best way to increment an integer column by one? I see there???s @instance.increment!(:column_name) but also Class.increment_count(:column_name, :instance_id) ? Am I misunderstanding this?
[13:42:09] Grundell: has joined #RubyOnRails
[13:42:13] herbst: has joined #RubyOnRails
[13:42:45] Craigimus: has joined #RubyOnRails
[13:43:14] acharnosh: has joined #RubyOnRails
[13:44:06] NBarnes: has joined #RubyOnRails
[13:45:12] k13nox: has joined #RubyOnRails
[13:45:40] zarubin: has joined #RubyOnRails
[13:46:50] Ergo: has joined #RubyOnRails
[13:47:18] k13nox: Hi, some docs how to run rails 5 with ActionCable in localhost under HTTS/WSS ? with puma or thin
[13:47:55] kitsuneyo: has joined #RubyOnRails
[13:47:56] herbst: has joined #RubyOnRails
[13:50:07] eljimmy: has joined #RubyOnRails
[13:51:35] arup_r: has joined #RubyOnRails
[13:52:05] drptbl: has joined #RubyOnRails
[13:53:08] zpe: has joined #RubyOnRails
[13:53:09] pwnd_nsfw`: has joined #RubyOnRails
[13:53:49] mdw: has joined #RubyOnRails
[13:54:02] zworks: has joined #RubyOnRails
[13:54:36] tego: has joined #RubyOnRails
[13:54:54] zworks: When i update a record with invalid data, rails response returns the invalid data for the next request
[13:54:59] BaNzounet: Are relations by default order by something? will @current_users.books.first always return the same book if his books don't change?
[13:55:01] zworks: how can i avoid this?
[13:55:33] tego: has left #RubyOnRails: ()
[13:55:37] rvanlieshout: zworks: the .save will return false
[13:55:40] rvanlieshout: leaving all attributes untouched
[13:55:45] tbuehlmann: zworks, that's intended so the user sees what went wrong
[13:55:53] zworks: yeah i know
[13:55:56] rvanlieshout: you could reset your object, but you might not want to drop all user changes due to 1 failure
[13:55:58] zworks: for example
[13:56:07] zworks: i am displaying the users name on the header
[13:56:50] zworks: so right after the user submits a very long name ( which is invalid) the form shows the errors, but the name on the header also shows the lengthy ugly name
[13:56:56] zworks: which shouldn't happen
[13:56:59] tbuehlmann: you'd always show user.name_was in the header
[13:57:21] tbuehlmann: even if the name changes, that's what it was before
[13:57:32] tego: has joined #RubyOnRails
[13:58:19] zworks: that was quick!
[13:58:25] zworks: awesome thanks man
[13:58:40] zworks: I didn't know there is a _was thing..
[13:58:54] zworks: does it available automaticaly for all fields?
[13:59:03] tbuehlmann: yup, that's "dirty tracking"
[13:59:11] rvanlieshout: also .name_changed?
[13:59:23] dstarh: has joined #RubyOnRails
[13:59:36] User458764: has joined #RubyOnRails
[13:59:37] kerunaru: rvanlieshout, really? O_O
[13:59:45] noodman: has joined #RubyOnRails
[13:59:54] zworks: that's cool! thanks
[13:59:55] adavia: has joined #RubyOnRails
[14:00:07] tbuehlmann: see http://api.rubyonrails.org/classes/ActiveModel/Dirty.html
[14:00:14] zworks: just so i know, how many years of rails exp u have ? to know these things..
[14:00:39] arup_r: has joined #RubyOnRails
[14:01:00] rclanan: has joined #RubyOnRails
[14:01:06] rvanlieshout: since 1.1.something
[14:02:19] kerunaru: Have you ever feel like you need to change to another framework, rvanlieshout?
[14:02:57] kerunaru: That's a lot of time... When was 1.1 released?
[14:03:02] zworks: But i feels like rails is RAD and easy but with the cost of a little bit slow..
[14:03:07] zworks: am i wrong ?
[14:03:17] rvanlieshout: https://rubygems.org/gems/rails/versions
[14:03:31] rvanlieshout: it's easy of you're familiar with it's concepts
[14:03:32] kerunaru: I've been doing Rails stuff since past year... (U^_^)
[14:03:46] rvanlieshout: and ruby isn't the fastest thing for sure
[14:04:01] rvanlieshout: interpreted vs compiled
[14:04:04] rvanlieshout: many pro's and con's
[14:04:06] herbst: has joined #RubyOnRails
[14:04:12] zworks: so it seems u got 10 years of exp?
[14:04:17] rvanlieshout: for me it just works and i'm happy with it
[14:04:55] zworks: don't you think it's slow compared to other widely used frameworks such as php/laravel?
[14:04:58] kerunaru: Impressive...
[14:05:21] ddv: zworks: slow in what context
[14:05:37] bronson: has joined #RubyOnRails
[14:05:38] rvanlieshout: i don't like the language php to start with.. their functions (problem 1) really shows that it's been created without a clear vision imho
[14:05:40] ddv: zworks: in terms of developer productivity it is fast
[14:05:50] rvanlieshout: and i've neber touched laravel and don't really have the desire to do so
[14:05:58] rvanlieshout: although i'm always happy to look at proper cool stuff
[14:06:30] kerunaru: Laravel is the Rails copy for PHP lol!
[14:06:30] rvanlieshout: and i'm capable of delivering stuff fast enough, where the quality, maintanability, stability and speed are as they should be
[14:07:15] Papierkorb: PHP with a fat frameworks, e.g. Laravel, seems to match rails' performance give or take
[14:07:19] sleungcy: has joined #RubyOnRails
[14:07:21] ddv: kerunaru: one unique aspect of rails is that it actually drives ruby's development and the other way around
[14:07:22] valetudo: has joined #RubyOnRails
[14:07:44] rvanlieshout: php has been stuck for several years (also imho. don't want to offend people)
[14:07:47] ddv: ruby guys implemented stuff rails guys wanted to have
[14:09:01] Papierkorb: on other things, rails is lagging behind ruby in used features. e.g. keyword arguments.
[14:09:25] rvanlieshout: it's not lagging behind ruby
[14:09:43] rvanlieshout: there is no sane reason to have rails require ruby 2.3
[14:09:52] kerunaru: ACTION takes popcorn
[14:09:58] Papierkorb: at leaast rails5 requires ruby 2.2
[14:10:08] rvanlieshout: and that's a pro because?
[14:10:21] rvanlieshout: just because it's a newer version or because it actually is improved by that?
[14:10:47] Papierkorb: moah. The old "you can do the same thing with the old version, why bother?" is tedious.
[14:10:56] Papierkorb: ACTION back to reddit
[14:11:04] rvanlieshout: partially agree with that
[14:11:11] rvanlieshout: but also upgrading just because you can doesn't make sense
[14:12:27] johnflux: has joined #RubyOnRails
[14:13:07] Grundell: has joined #RubyOnRails
[14:14:00] arup_r: has joined #RubyOnRails
[14:14:17] kerunaru: I agree with rvanlieshout, actually
[14:15:13] truenito: has joined #RubyOnRails
[14:15:15] rvanlieshout: and to be clear, i'm really pro moving forward. so no tears about the Rails 5 to require 2.2
[14:15:23] Papierkorb: rvanlieshout: and yes, kw args make it more maintainable. you can easily see what is required or not. a "opts = {}" doesn't do that.
[14:15:27] workmad3: has joined #RubyOnRails
[14:15:34] herbst: has joined #RubyOnRails
[14:16:01] rvanlieshout: i do like those args in 2.3
[14:16:12] Papierkorb: that's been a feature with .. 2.1 iirc
[14:16:17] rvanlieshout: but they started to work on rails 5 before 2.3 was released
[14:16:21] Papierkorb: That's now more than 2 years ago
[14:16:36] rvanlieshout: oh. then somebody should make a pull request
[14:17:09] Grundell: has joined #RubyOnRails
[14:18:21] mrbubbles: has joined #RubyOnRails
[14:18:58] zworks: oh sorry, i forgot the tool which is used for pasting code?
[14:19:07] jottr_: has joined #RubyOnRails
[14:19:13] truongtc: has joined #RubyOnRails
[14:19:45] kerunaru: Pastebin, zworks
[14:19:52] tetraktys: has joined #RubyOnRails
[14:20:25] zworks: I remembered as gist :)
[14:20:27] zworks: https://gist.github.com/haswow/631fdd7f00943148dfdd
[14:20:39] truongtc: has joined #RubyOnRails
[14:20:55] rvanlieshout: zworks: !gist
[14:20:55] helpa: zworks: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[14:21:00] s2013: has joined #RubyOnRails
[14:21:42] kerunaru: gist is pretty cool too, yes
[14:21:49] zworks: It's a form to update the name, when the name updated, i want to pass a variable to the view, so that i can hide the form and show the success message only
[14:21:52] zworks: any idea?
[14:21:58] evenix: has joined #RubyOnRails
[14:22:25] rvanlieshout: redirect on success
[14:22:30] rvanlieshout: it'll change it to a get request
[14:23:08] zworks: yes but the it uses the same action for post and get
[14:23:15] dopamean_: has joined #RubyOnRails
[14:23:15] zworks: the get request shows the form
[14:23:26] zworks: the post request do the update
[14:23:39] doodlehaus: has joined #RubyOnRails
[14:23:42] rvanlieshout: that's ok. but by redirecting you're allowing the user to reload the success-page without performing the action again
[14:23:42] lacrymology: has joined #RubyOnRails
[14:23:57] rvanlieshout: if you prefer you don't have to use the same action in the controller
[14:24:01] rvanlieshout: even if the url is the same
[14:24:06] zworks: but when in the post request if the update success i want to pass a param to the view indicating update success so i can hide the form
[14:24:29] doodlehaus: has joined #RubyOnRails
[14:24:38] zworks: but, is there anyway to pass a variable with the response?
[14:24:49] zworks: something like
[14:24:54] zworks: render :changepass, :success => true
[14:25:15] rvanlieshout: what's changepass?
[14:25:24] zworks: here the view is changepass, passed variable is :success
[14:25:25] erGoline: has joined #RubyOnRails
[14:25:44] erGoline: Hello :) A bit OT question about performances: I'm setup a rails 3.2 / ruby 2.2.2 app on some VPS (digital ocean, vultr) with dokku and puma web server. I'm testing various setup (ram/cores). I find out that "puma workers" * "web scale count" have to be equal to the server cores, if I increase them I have no any rpm performance advantage, even if the server has a lot of free ram. Any tip please?
[14:25:57] arup_r: has joined #RubyOnRails
[14:26:11] rvanlieshout: erGoline: yep, find out what the actual bottleneck is
[14:26:19] rvanlieshout: there are tons of reasons that could cause your app to be 'slow'
[14:26:49] rvanlieshout: zworks: render partial: 'changepass', locals: { success: true }
[14:26:52] rvanlieshout: or use instance variables
[14:26:56] rvanlieshout: those are all available in your view
[14:27:16] zworks: ok, then how can i access the locals from my view?
[14:27:23] erGoline: rvanlieshout: I'm talking about RPM, if cpu and ram are not full used (100%) I cannot undesrtand why I cannot scale adding puma workers
[14:27:48] rvanlieshout: zworks: @success = true => available in view just as @success
[14:28:07] rvanlieshout: erGoline: because it doesn't need more?
[14:28:15] erGoline: rvanlieshout: ?
[14:28:15] rvanlieshout: or because it's held back by i/o issues
[14:28:34] rvanlieshout: also, 100% ram usage.. how much % consisting of cache?
[14:29:46] Craigimus: has joined #RubyOnRails
[14:30:36] erGoline: rvanlieshout: I'm talking about server resources. Let's go with an example: a VPS 2 cores, 8GB ram, I start 2 puma workers and I can sustain 10 requests/sec, 4GB free Ram, CPU usage ~60%
[14:31:03] rvanlieshout: and there is nothing sane to say about that
[14:31:54] erGoline: I increase to 4 puma workers: I still get 10 requests/sec, 2GB free ram, ~80% CPU usage. I cannot understand where the bottleneck is
[14:32:03] rvanlieshout: it's not only about ram and cpu
[14:32:06] rvanlieshout: what about i/o
[14:32:26] rvanlieshout: it could even be caused by locked records in your db
[14:32:34] erGoline: I dind't test it, how can?
[14:32:55] rvanlieshout: read bout i/o first. there are several tools to get some indication
[14:33:00] erGoline: I'm just reading records, postgres db, I suppose there are no locks
[14:33:02] rvanlieshout: iowait in top will help
[14:33:09] rvanlieshout: you should have locks
[14:33:12] rvanlieshout: at least transactions
[14:33:52] rvanlieshout: and because most vps providers have a really low io capacity it might just be a cause here
[14:34:13] erGoline: rvanlieshout: I'm not a db guy, but why should I have locks reading?
[14:34:29] erGoline: ok, I'm going to investigate i/o :)
[14:34:38] rvanlieshout: your app only reads?
[14:34:43] rvanlieshout: then there is no need indeed
[14:34:57] nettoweb: hello guys, is it common a form reset the password field after submitted and returned because some validation message? It's done by browser or rails?
[14:35:22] rvanlieshout: and i hope the rails helper for password field doesn't allow you to set a value
[14:35:25] rvanlieshout: but not 100% sure
[14:35:40] erGoline: rvanlieshout: of course it need to write too, but now I'm testing a basic page that only access the db
[14:35:56] broman: has joined #RubyOnRails
[14:36:18] konsolebox: has joined #RubyOnRails
[14:36:45] jottr: has joined #RubyOnRails
[14:36:56] flashpoint9: has joined #RubyOnRails
[14:37:57] nettoweb: rvanlieshout but I see a lot of websites where the password continue filled out even after a validation. so it's possible to achieve this right? But sure it's not secure
[14:38:06] nettoweb: I think Facebook do it this way
[14:38:10] broman: can someone please help me? I have an application running on rails 3.2... I also have a redmine app that is no longer functioning... I changed the servers and don't know how the past configuration was made... Everytime I try to start redmine with rails s I get the following: Could not find 'rack' (~> 1.6) - did find: [rack-1.4.7,rack-1.4.5] ... what can i do to solve this?
[14:38:26] mclosson: has joined #RubyOnRails
[14:38:29] rvanlieshout: nettoweb: you could always create the field without the rails helper
[14:38:42] konsolebox: has joined #RubyOnRails
[14:39:07] rvanlieshout: broman: redmin includes a Gemfile
[14:39:11] rvanlieshout: how are you starting that app?
[14:40:00] nettoweb: rvanlieshout Doing this way the password will keep the value? Im using devise for user registration, I'm afraid of new problems change this because Im usng devise.
[14:40:21] rvanlieshout: devise doesn't care about the view
[14:40:26] rvanlieshout: as long as your input has the same name
[14:40:41] aegis3121: has joined #RubyOnRails
[14:40:59] andchar: has joined #RubyOnRails
[14:41:15] broman: rvanlieshout, i was using unicorn.. but now I just want to run this anyway possible
[14:41:38] rvanlieshout: can you gist the full error?
[14:41:41] broman: rvanlieshout, if I install this gem from redmine, the other stops working
[14:41:45] rvanlieshout: also find out what ruby version it's using
[14:41:51] rvanlieshout: and use bundler to install those gems
[14:41:57] nettoweb: rvanlieshout ok... so this behavior happens by Rails right? It's not related with browser
[14:42:13] stannard: has joined #RubyOnRails
[14:42:19] rvanlieshout: and if you're on production either use something like capistrano to deploy or bundle install --deployment --without development test
[14:42:35] broman: rvanlieshout, i tried already to install the gem.. it really starts working.. the downside is that the other application running stops working.. can't have that
[14:42:55] rvanlieshout: but then you didn't install them using bundler with that deployment, right?
[14:43:05] rvanlieshout: and your app server should be started using bundle exec
[14:43:15] n1lo: has joined #RubyOnRails
[14:44:05] broman: I'm using nginx and unicorn... I've installed the tools normally...
[14:44:12] andchar: has joined #RubyOnRails
[14:44:14] shibly: has joined #RubyOnRails
[14:44:19] rvanlieshout: and did you start unicorn using bundle exec?
[14:44:27] shibly: What's the way to upload photo?
[14:44:30] shibly: Which function to use?
[14:44:37] rvanlieshout: shibly: i personally like the gem carrierwave
[14:44:39] rvanlieshout: with minimagick
[14:44:55] rvanlieshout: it allows you to retain the file even if the form is redisplayed
[14:45:37] Craigimus: has joined #RubyOnRails
[14:47:08] VeryBewitching: has joined #RubyOnRails
[14:48:06] cryptocronus: has joined #RubyOnRails
[14:49:44] PedramT: has joined #RubyOnRails
[14:51:01] shibly: has left #RubyOnRails: ()
[14:51:44] yoongkang: has joined #RubyOnRails
[14:51:45] messine: has joined #RubyOnRails
[14:52:23] avril14th: has joined #RubyOnRails
[14:53:12] mordof_work: has joined #RubyOnRails
[14:54:09] Shoutsid: has joined #RubyOnRails
[14:54:14] vmarcetic: has joined #RubyOnRails
[14:54:17] uris: has joined #RubyOnRails
[14:56:30] bePolite: has joined #RubyOnRails
[14:57:34] bePolite: has joined #RubyOnRails
[14:59:08] gbgdev: has joined #RubyOnRails
[14:59:38] ryanRT: has joined #RubyOnRails
[15:00:07] vmarcetic: Hi, I have two servers behind node balancer, and users are logged out after some time. I believe it is the problem with session store (I use cookie_store), for it, and probably user gets logged out if he somehow gets redirected to other server. Thanks
[15:01:20] sleungcy: has joined #RubyOnRails
[15:02:23] syzygy_: has joined #RubyOnRails
[15:03:44] Craigimus: has joined #RubyOnRails
[15:03:56] workmad3: has joined #RubyOnRails
[15:09:07] soahccc: vmarcetic: cookies are domain specific and you can wildcard them for all subdomains e.g.
[15:09:09] mag42c: has joined #RubyOnRails
[15:10:59] Guest96: has joined #RubyOnRails
[15:12:43] vmarcetic: soahccc: yes with domain: :all right? And you think that would sort the problem? My setup is like this -> domain.com -> 1. subdomain.domain.com 2. suddomain.domain.com. But everybody lands on domain.com.
[15:13:59] soahccc: vmarcetic: sure we have different stores uk. de. fr. etc. and all share the same persistence cookie
[15:15:34] AimlessRAven: has joined #RubyOnRails
[15:15:51] AimlessRAven: hi evryone, how to create rspec factory for has and belongs to many association ?
[15:16:35] baweaver: has joined #RubyOnRails
[15:17:32] Bloomer: has joined #RubyOnRails
[15:18:14] mordof_work: has joined #RubyOnRails
[15:19:08] s2013: has joined #RubyOnRails
[15:19:33] aarkerio: has joined #RubyOnRails
[15:19:49] Grundell: has joined #RubyOnRails
[15:19:55] vmarcetic: soahccc: I didn't mention that :), but users never access the subdomains (two servers), they only go to domain.com that is it, but cookie expires after some time, even they are not set to expire.
[15:20:39] s2013: has joined #RubyOnRails
[15:21:04] soahccc: vmarcetic: well that sounds weird tbh. cookies expire when they expire, if they only hit a single domain and they expire you are doing something wrong or you do something which is local to a server?
[15:22:13] Scripore: has joined #RubyOnRails
[15:22:23] Dbugger: has joined #RubyOnRails
[15:22:26] Dbugger: Hello everyone
[15:22:43] Dbugger: When I do a "rake routes", I get this message: "Gem::LoadError: You have already activated rake 10.5.0, but your Gemfile requires rake 10.4.2. Prepending `bundle exec` to your command may solve this." What is going on??? How can I fix it?
[15:23:28] vmarcetic: soahccc: Could it be, maybe, that they send IP of server in header, and something get mismatched, even though I have persistence cookie on node balancer to get user to the same server each time he gets to the domain.
[15:24:01] herbst: has joined #RubyOnRails
[15:24:11] drPoggs: has joined #RubyOnRails
[15:24:26] vmarcetic: soahccc: I'm they :D maybe the app stores IP address of a server in a cookie or something like that.
[15:24:31] artto: has joined #RubyOnRails
[15:24:31] shinnya: has joined #RubyOnRails
[15:24:32] albipri: has joined #RubyOnRails
[15:24:56] B1n4r10: has joined #RubyOnRails
[15:25:02] AimlessRAven: hi evryone, how to create rspec factory for has and belongs to many association ?
[15:25:20] axl__: has joined #RubyOnRails
[15:25:29] soahccc: vmarcetic: well that is on you to find out :) depending on your setup you usually set some mapping for the forwarded client ip
[15:25:37] chouhoulis: has joined #RubyOnRails
[15:25:51] zeros0623: I???m studying about rails, using nginx and thin, I set thin in development mode but it doesn???t apply changes instantly. how can i fix it? or what keyword to google?
[15:25:52] kies^: has joined #RubyOnRails
[15:25:53] herbst: has joined #RubyOnRails
[15:27:26] sininen: has joined #RubyOnRails
[15:27:52] vmarcetic: soahccc: maybe this would help? https://github.com/rightscale/global_session
[15:28:00] ANDROID: has joined #RubyOnRails
[15:28:11] tenderlove: has joined #RubyOnRails
[15:28:14] marr: has joined #RubyOnRails
[15:28:57] soahccc: vmarcetic: I have no idea what is causing your problem but we did it with a few lines of vanilla rails and it works perfectly. We have basic cookie session, cookie persistence token and DB based advanced session
[15:29:38] marr: has joined #RubyOnRails
[15:30:22] AimlessRAven: hi evryone, how to create rspec factory for has and belongs to many association ?
[15:30:50] soahccc: AimlessRaven: factory_girl?
[15:30:59] AimlessRAven: yea but he told me
[15:31:00] vmarcetic: soahccc: Thanks, I will figure it. It is probably some minor problem.
[15:31:06] AimlessRAven: Factory not registered: sellor_option_types
[15:31:43] mordof_work: has joined #RubyOnRails
[15:31:47] AimlessRAven: sequence(:option_types) { FactoryGirl.create(:sellor_option_types) }
[15:31:58] AimlessRAven: my relation is named: option_types.. sellor is just a module
[15:32:25] andchar: has joined #RubyOnRails
[15:32:32] soahccc: AimlessRaven: I'm not that in to factory girl but I guess you have to do this in callbacks?
[15:32:35] Scripore: has joined #RubyOnRails
[15:32:54] AimlessRAven: can you give me example for this
[15:32:57] soahccc: Like so http://stackoverflow.com/a/7733555/1806803
[15:33:34] zworks: has joined #RubyOnRails
[15:33:37] mary5030: has joined #RubyOnRails
[15:33:44] axl__: has joined #RubyOnRails
[15:34:07] soahccc: AimlessRaven: may be outdated but the docs have stuff about it too http://www.rubydoc.info/gems/factory_girl/file/GETTING_STARTED.md#Associations
[15:34:30] zworks: my rails app getting slower with time and regain the speed when i restart the server, any ideas?
[15:35:15] soahccc: zworks: memory leak?
[15:35:41] zworks: No idea, I am just 6 months with rails :)
[15:35:48] soahccc: zworks: unicorn?
[15:36:11] soahccc: local or prod?
[15:36:20] soahccc: moar info MOAR
[15:36:50] msyvich: has joined #RubyOnRails
[15:37:04] soahccc: zworks: how fast is it getting slower? can you see growing memory for the process?
[15:37:18] fbandov: has joined #RubyOnRails
[15:37:20] zworks: it's on my localhost
[15:37:39] mary5030: has joined #RubyOnRails
[15:37:45] zworks: getting slower about in an hour
[15:37:59] msyvich: Does anyone recommend any tools / best practices / guides for packing rails apps into build artifacts?
[15:38:58] centrx: has joined #RubyOnRails
[15:40:19] soahccc: zworks: you need to pinpoint as to where it's getting slower. I would suggest memleak / ever growing something you process
[15:41:00] zworks: memleak, a plugin?
[15:41:19] soahccc: a problem that is :)
[15:41:42] zworks: do you know how to find it in localhost?
[15:41:56] zworks: i just see the ruby process with about 160mb mem
[15:42:03] soahccc: doesn't grow?
[15:42:18] zworks: just checked now
[15:42:25] zworks: let's see if it grows later
[15:43:03] soahccc: I could only give you something for logging spikes (we had a few actions that exploded the workers RSS)
[15:43:33] soahccc: but if it's slow you need to monitor and then pinpoint it (benchmarking chunks of your code)
[15:48:42] albipri: has left #RubyOnRails: ()
[15:51:51] AlexJakeGreen: has joined #RubyOnRails
[15:52:17] yoongkang: has joined #RubyOnRails
[15:55:32] sleungcy: has joined #RubyOnRails
[15:56:10] Jasaka: has joined #RubyOnRails
[15:56:20] Baasic: has joined #RubyOnRails
[16:00:31] bePolite: has joined #RubyOnRails
[16:00:31] bePolite: has joined #RubyOnRails
[16:01:16] hannelita: has joined #RubyOnRails
[16:01:49] s2013: has joined #RubyOnRails
[16:02:31] MarkAValdez: has joined #RubyOnRails
[16:05:16] disgrntld: has joined #RubyOnRails
[16:05:54] bePolite: has joined #RubyOnRails
[16:05:55] bePolite: has joined #RubyOnRails
[16:07:53] bronson: has joined #RubyOnRails
[16:08:39] brahman: has joined #RubyOnRails
[16:09:51] workmad3: has joined #RubyOnRails
[16:10:22] FooMunki: has joined #RubyOnRails
[16:10:35] brahman: HI, I am trying to use the mcollective-client gem in my rails app. The bundle isntall command works perfectly and I can indeed use the gem via IRB. My issue is that the gem is named mcollective-client but the namespace module is mcollective. I believe this prevents rails from loading the mcollecitve module at start time. Is there a solution when the gem is named differently than the module contained within?
[16:12:23] moeabdol: has joined #RubyOnRails
[16:16:24] Scriptonaut: I accidentally typed: "gem install bundle". It seems to be installing bundler. Is taht fine? Or is there another gem called "bundle"
[16:17:16] centrx: same thing
[16:17:21] centrx: bundle = bundler
[16:17:33] evenix: has joined #RubyOnRails
[16:18:42] teaearlgraycold: Can you not have multiline when statements in ruby?
[16:19:15] zworks: Don't know how to build task 'test:benchmark'
[16:19:43] zworks: i get this when trying to run my first performance test
[16:19:45] chridal: When adding compoun indexes through Rails migration how does one specify one of them to for instance be by sorted on DESC? For instance
[16:19:48] brahman: is there a way to view all loaded gems in rails?
[16:19:56] teaearlgraycold: This doesn't work for me: http://pastie.org/private/kfirdiwwbwojt2acwlwg
[16:19:57] chridal: I have a compoun index on article_id and created_at whereas the created_at should be sorted by DESC
[16:20:00] teaearlgraycold: Always returns false
[16:20:01] chridal: What's the syntax for making that happen?
[16:20:23] adre: centrx: I don't think that's strictly true - apparently bundle is a separate gem which has bundler as a dependency. see https://rubygems.org/gems/bundle
[16:20:40] centrx: teaearlgraycold, just use case new_state, the case statement handles doing a === for the class
[16:20:56] centrx: teaearlgraycold, the class of new_state.class is always "Class"
[16:21:05] Baasic: brahaman gemfile.lock
[16:21:11] teaearlgraycold: So "when String" will still work?
[16:21:25] benoror: has joined #RubyOnRails
[16:21:44] centrx: adre, Scriptonaut, good point, it's the command line that's "bundle". Using "bundle" as the gem is an unnecessary layer of dependency, but probably fine
[16:21:45] deur-: has joined #RubyOnRails
[16:21:47] centrx: teaearlgraycold, yes
[16:22:14] Limix: has joined #RubyOnRails
[16:22:17] Craigimus: has joined #RubyOnRails
[16:22:29] mordof_work: has joined #RubyOnRails
[16:23:34] Andr3as: has joined #RubyOnRails
[16:23:40] teaearlgraycold: And if I want to get the current class as a string from within a concern, that's self.name?
[16:23:40] a1fa: i am so confused.. how are you supposed to install this http://bootstrap-datepicker.readthedocs.org/en/stable/
[16:24:16] universa1: has joined #RubyOnRails
[16:24:17] Majadon: has joined #RubyOnRails
[16:24:30] teaearlgraycold: a1fa: I use that in my rails project
[16:24:31] parus_: has joined #RubyOnRails
[16:24:57] adre: centrx, Scriptonaut: yeah, looks like more than a million people have made that mistake too XD
[16:25:00] teaearlgraycold: Add this to your gemfile:
[16:25:01] a1fa: is there a gem for this?
[16:25:04] teaearlgraycold: gem 'bootstrap3-datetimepicker-rails', '~> 4.17.37'
[16:25:04] AntiSpamMeta: has joined #RubyOnRails
[16:25:13] deur-: hello everyone; I have a colleague who keeps prefixing his AR models like so: "::Page", "::Product" etc... He claims to have once had an issue with it (he can't even remember what kind of issue) and keeps insisting I do it to. It seems very silly to me; are there usecases in which this is necessary?
[16:25:28] Quintasan: has joined #RubyOnRails
[16:25:28] Quintasan: has joined #RubyOnRails
[16:25:32] teaearlgraycold: deur-: I never do it
[16:25:40] contradictioned: has joined #RubyOnRails
[16:25:44] centrx: deur-, If there is a class of the same name in the current namespace
[16:26:10] bePolite: has joined #RubyOnRails
[16:26:22] centrx: deur-, e.g. you have a class MyLibrary::Page and you are in the namespace of MyLibrary
[16:26:29] chouhoulis: has joined #RubyOnRails
[16:26:34] doodlehaus: has joined #RubyOnRails
[16:26:36] centrx: deur-, Then need to specify ::Page to use the top namespace
[16:26:49] centrx: deur-, but doing it all the time sounds like a weird policy
[16:27:24] a1fa: teaearlgraycold: is that this gem? https://rubygems.org/gems/bootstrap-datepicker-rails
[16:27:51] creature: On the one hand, it's mostly harmless. On the other, it's better to avoid stuff like that because it'll cause confusion when you have a scenario that it's actually required.
[16:27:51] deur-: centrx: Alrighty, thanks for the clear answer
[16:28:07] herbst: has joined #RubyOnRails
[16:28:44] jkamenik: has joined #RubyOnRails
[16:29:04] andchar: has joined #RubyOnRails
[16:29:41] kirillzh: has joined #RubyOnRails
[16:30:15] PaulePanter: has joined #RubyOnRails
[16:31:29] differentreality: has joined #RubyOnRails
[16:32:14] hobodave: has joined #RubyOnRails
[16:35:16] par[a]digm: has joined #RubyOnRails
[16:38:21] dionysus69: has joined #RubyOnRails
[16:38:39] s2013: has joined #RubyOnRails
[16:38:48] smathy: has joined #RubyOnRails
[16:38:50] mustmodify: has joined #RubyOnRails
[16:40:47] mustmodify: I'm missing something. I'm in development. I have a very normal CRUD controller. I update a record. It redirects me back to index. The changes are not reflected in the list. But if I update the view by changing fields, that change is reflected. If I go into the console, the change I made via the form (changing "AB" to "ABC") shows up. So the record is being updated but old data is showing in the index, even though other columns change from expiratio
[16:40:51] mustmodify: Makes no sense.
[16:41:36] mwlang: has joined #RubyOnRails
[16:41:41] kirillzh: has joined #RubyOnRails
[16:41:41] mustmodify: OOOOOOHHHHHHHHHHHHHHHHHHHHHHHHHH. stupid.
[16:42:02] mustmodify: has left #RubyOnRails: ()
[16:42:33] Shoutsid: has joined #RubyOnRails
[16:42:52] bePolite: has joined #RubyOnRails
[16:45:02] snowy: has joined #RubyOnRails
[16:45:05] brahman: Ok so I have done a bit more digging. the gem I want to load is called mcollective-client, the gem is made up of a mcollective module and many classes, mcollective/agent, mcollective/client etc. Unfortunately the only clas that get's loaded automatically by bundler is mcollective/client. How can I make sure other classes are loaded or even better the entire mcollective module?
[16:45:48] kirillzh: brahman do you mean before?
[16:45:55] Cohedrin: has joined #RubyOnRails
[16:46:21] brahman: kirillzh: I do not understand your question
[16:46:44] kirillzh: brahman me either. Never mind, I got it wrong.
[16:47:33] brahman: kirillzh: what I want is the mcollective module to load from the mcollective-client gem and not just the mcollective::client class which shares the name of the module.
[16:49:31] baweaver: has joined #RubyOnRails
[16:49:38] Macaveli: has joined #RubyOnRails
[16:51:07] kirillzh: Doesn't MCollective module load all classes including MCollective::Client?
[16:52:07] Cohedrin: has joined #RubyOnRails
[16:52:25] NBarnes: has joined #RubyOnRails
[16:52:26] arup_r: has joined #RubyOnRails
[16:52:26] brahman: kirillzh: yes it does. But AFAIK the rails autoloading with bundler doens't load the mcollective module but the mcollective/client class as it matches the name of the gem ie in my Gemfile i have gem 'mcollective-client'.
[16:53:01] yoongkang: has joined #RubyOnRails
[16:53:11] brahman: I need a way to tell rails to load the mcollective-client gem but use the mcollective module and not the client class.
[16:53:37] AntiSpamMeta: has joined #RubyOnRails
[16:54:31] Cohedrin: has joined #RubyOnRails
[16:54:48] AimlessRAven: has joined #RubyOnRails
[16:54:50] [Butch]: has joined #RubyOnRails
[16:55:17] uris: has joined #RubyOnRails
[16:55:19] rakm: has joined #RubyOnRails
[16:55:54] a1fa: teaearlgraycold: still around?
[16:56:02] AimlessRAven: can anyone check my gist.. i dont know why i have this error
[16:56:03] AimlessRAven: https://gist.github.com/anonymous/e47e2ec9e904c4c99938
[16:58:37] titeiko: has joined #RubyOnRails
[16:58:48] kirillzh: brahman how do you load it?
[16:58:51] chubijs: has joined #RubyOnRails
[16:59:00] evenix: has joined #RubyOnRails
[16:59:13] kirillzh: brahman try to set :require to false in the Gemfile and require gem in initializer?
[16:59:28] brahman: I am not loading it, AFAIK it gets loaded by bundler
[16:59:36] PedramT: has joined #RubyOnRails
[16:59:50] brahman: kirillzh: will look into this. Thanks for your help, I appreciate it.
[17:00:18] B1n4r10: has joined #RubyOnRails
[17:00:46] Baasic: I am using the freenode web client is there a way to hide join and quit information?
[17:01:11] kirillzh: brahman try to do gem 'mcollective-client', require: false and call require 'mcollective' in initializer.
[17:01:41] jottr: has joined #RubyOnRails
[17:02:28] uris: has joined #RubyOnRails
[17:02:29] deur-: has left #RubyOnRails: ()
[17:02:35] atomical: has joined #RubyOnRails
[17:02:40] deur-: has joined #RubyOnRails
[17:03:11] codepete: has joined #RubyOnRails
[17:03:50] brahman: kirillzh: is the initializer config/boot.rb ?
[17:04:04] sarink: has joined #RubyOnRails
[17:05:20] Limix: has joined #RubyOnRails
[17:05:25] kirillzh: Not sure. config/initializer/mcollective.rb would work, I think.
[17:07:11] camilasan: has joined #RubyOnRails
[17:07:56] a1fa: anybody else frustrated today?
[17:08:48] kirillzh: By what? :)
[17:08:56] Craigimus: has joined #RubyOnRails
[17:09:02] a1fa: bootstrap-datepicker
[17:09:16] a1fa: at least thats my frustration today
[17:10:04] a1fa: i created a div with id="datepicker", and in coffeescript i added $('#datepicker .input-group.date').datepicker();
[17:10:06] blackmesa: has joined #RubyOnRails
[17:10:20] brahman: kirillzh: I think I have found a way. in the Gemfile I am now putting: gem 'mcollective-client', '~> 2.8', '>= 2.8.4', :require => 'mcollective' going to test this out now.
[17:10:41] AimlessRAven: https://gist.github.com/anonymous/e47e2ec9e904c4c99938
[17:10:45] brahman: looking at the docs of bundler it should work.
[17:10:46] a1fa: and within the id datepicker, i got another div with class="input-group date"
[17:10:47] AimlessRAven: can anyone check this gist
[17:10:53] a1fa: and still no worky :(
[17:10:54] zpe: has joined #RubyOnRails
[17:10:58] jahbrewski: has joined #RubyOnRails
[17:11:46] a1fa: i dont even know what to look at next.. there are no script errors
[17:12:20] a1fa: all logs look good.. when click into the edit form, i get iso8601 time, but if i refresh the page, i get mm/dd/yyyy format
[17:12:45] a1fa: but, the input text form never becomes clickable
[17:13:01] a1fa: (f.text_field ..., class: "form-control")
[17:13:13] jahbrewski: hey folks, I'm working on testing my rails-api (using angular for the frontend) and I can't find good documentation or best practices on how to write feature/integration tests for an API. I'd like to use rspec's feature syntax.. but it looks like that requires capybara, which wouldn't be required for an API since I'm not interacting with the app through a browser
[17:15:01] jahbrewski: I want to do more than test single controller actions though.. I want to test multiple actions corresponding to actual use-cases
[17:19:23] jahbrewski: I suppose what I'm looking for in broader terms is how to write integration tests for a rails-api
[17:20:34] a1fa: anyway, anything else i should do to troubleshoot why this thing is not turning into a dropdown field?
[17:20:37] baweaver: has joined #RubyOnRails
[17:22:27] lemur: has joined #RubyOnRails
[17:23:25] AndChat|119664: has joined #RubyOnRails
[17:23:26] blackmesa: has joined #RubyOnRails
[17:23:32] AndChat|119664: has joined #RubyOnRails
[17:23:44] visudo: has joined #RubyOnRails
[17:24:07] andchar: has joined #RubyOnRails
[17:24:09] lacrymology: doesn't delegate of a column allow assignment? I'm getting a #<NoMethodError: undefined method `start_date=' for #<Event:0x0055852c257658>> where event delegates start_date to another model
[17:25:45] uris: has joined #RubyOnRails
[17:26:38] cicloid: has joined #RubyOnRails
[17:29:40] herbst: has joined #RubyOnRails
[17:29:56] creaked: has joined #RubyOnRails
[17:34:27] chouhoulis: has joined #RubyOnRails
[17:34:58] defsdoor: has joined #RubyOnRails
[17:37:00] brahman: kirillzh: yeah that didn't work even when using false and requiring in config/boot.rb, the require doesn't fail but I am not able to see the gem being loaded in rails console it still show mcollective-client as the gem.
[17:37:33] kirillzh: brahman How do you require it in boot.rb?
[17:37:39] brahman: is there a page in rails like rails/info/gems or any other way to see which gems were loaed?
[17:37:46] brahman: kirillzh: require 'mcollective'
[17:38:07] kirillzh: Does require 'mcollective' returns true?
[17:38:25] brahman: it doesn't error when I start up the development server.
[17:38:26] kirillzh: Can't you access classes like MCollective::Agent?
[17:38:39] brahman: with an include?
[17:38:50] kirillzh: Just with require 'mcollective'
[17:39:13] brahman: does the rails console use the same boot system as the rails server?
[17:39:29] kirillzh: Not sure honestly :)
[17:39:45] kirillzh: What's your exact problem?
[17:39:45] brahman: k. will be easier to do testing in rails console instead of rails server... :)
[17:40:00] uris: has joined #RubyOnRails
[17:40:06] kirillzh: Well, rails console points to rails server
[17:41:16] brahman: so with your method of using :require => false in the Gemfile, I can load the console and do a require 'mcollective' which returns true.
[17:41:43] brahman: is config/boot.rb the place to put my require 'mcollective' ?
[17:42:18] kirillzh: Try application.rb
[17:42:21] arup_r: lacrymology: show your code please
[17:42:47] puria: has joined #RubyOnRails
[17:42:48] kirillzh: Or create config/initializers/mcollective.rb and put require 'mcollective' there
[17:42:55] kirillzh: That would be better, I think.
[17:44:12] brahman: kirillzh: sorted, I placed it in config/initializers/mcollective.rb as indicated in the application.rb. All seems to be working now!
[17:44:27] sleungcy: has joined #RubyOnRails
[17:44:39] brahman: kirillzh: Thank you for sticking to it. I really appreciate it. was pulling my hair out!
[17:44:56] Maletor: has joined #RubyOnRails
[17:44:57] kirillzh: By the way, have you tried to do gem 'mcollective-client', require: 'mcollective'?
[17:45:04] mdw: has joined #RubyOnRails
[17:45:05] kirillzh: In Gemfile withotu using initializer
[17:45:23] brahman: yes, that was what I tried first before false. didn't seem to work.
[17:45:36] lxsameer: has joined #RubyOnRails
[17:45:36] lxsameer: has joined #RubyOnRails
[17:45:49] brahman: I spotted the doc in bundler.io page where it shows with rspec, :require => 'spec'
[17:46:01] brahman: but didnt' seem to work. will try now and update.
[17:47:19] musicnode: has joined #RubyOnRails
[17:47:21] Macaveli: has joined #RubyOnRails
[17:48:16] brahman: kirillzh: yeah that worked also. but the reason I thought it had failed was that the controller was not able to include MCollective::RPC. Will try putting the include in an initializer now.
[17:48:45] andchar: has joined #RubyOnRails
[17:48:55] brahman: once again many thanks for your help!
[17:50:40] Macaveli: has joined #RubyOnRails
[17:51:15] Macaveli: has joined #RubyOnRails
[17:53:22] zpe: has joined #RubyOnRails
[17:53:54] a1fa: i think i figured out my problem
[17:54:06] a1fa: bootstrap-datepicker is probably not compatible with bootstrap-sass
[17:55:20] brahman: kirillzh: in the controller it doesn't work. I get an undefined method error for rpcclient.
[17:55:41] mikecmpbll: has joined #RubyOnRails
[17:55:47] brahman: is include not possible inside a controller?
[17:56:17] tbuehlmann: as a controller is a class, you can include modules in it
[17:56:18] kirillzh: You will probably need to add include MCollective::RPC into your controller?
[17:59:13] workmad3: has joined #RubyOnRails
[17:59:19] brahman: right, still not working but I need to take a break to preserve the little sanity I have left....
[17:59:39] brahman: will make sure to update you if I have a solution... :)
[18:00:54] Andr3as: just a quick question.. i want to create a model "DailyPriceData" is i want to sayve daily stock price data in the database.. however, it created a model "daily_price_datum.rb" out of that.. is ther ea way to prevent that?
[18:00:58] gbgdev: hey guys... good afternoon
[18:01:35] gbgdev: is there a way to do a Model "find_by" with it returning the object by reference? (without make a dup)
[18:02:11] gbgdev: when i use model.find_by(...) it returns me an object with other object_id
[18:02:25] gbgdev: and i can't reuse the instance do make updates
[18:02:38] lacrymology: arup_r: http://dpaste.com/1831CCB << delegating the `=` methods explicitly did the trick, but should that be necessary?
[18:02:59] lacrymology: also with accepts_nested_attributes_for :recurrence
[18:03:17] a1fa: teaearlgraycold: ping?
[18:03:22] ashishsingh173: has joined #RubyOnRails
[18:03:49] lacrymology: with accepts_nested_attributes_for, on #update when assigning partial attributes I'm getting a new model being created instead of the existing one being updated. Is that normal? is there a way around that?
[18:04:11] arup_r: lacrymology: you need to delegate `=` version, yes..
[18:04:35] gambl0re: has joined #RubyOnRails
[18:04:35] gambl0re: has joined #RubyOnRails
[18:04:49] arup_r: that is because you forgot to keep `id` attr in the strong param hash.. plz check :)
[18:04:52] arup_r: lacrymology: ^
[18:08:30] lacrymology: arup_r: even so, then I've got to manually set it when I update?
[18:09:02] lacrymology: I mean, I need the client to send it? I seriously don't want that. I was hoping to keep the fact that these are two separate models as invisible as possible
[18:09:04] arup_r: you don't need to manual update, the id has to be there, mass assignment.
[18:09:31] arup_r: lacrymology: give it a read, http://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html
[18:09:36] ElFerna: has joined #RubyOnRails
[18:11:06] msyvich: has joined #RubyOnRails
[18:11:07] gbgdev: anyone? :'(
[18:11:31] a1fa: are bootstrap and bootstrap-sass same thing?
[18:11:36] lacrymology: gbgdev: yeah, I thought I'd read it correctly but..
[18:11:57] gbgdev: i'm working with nested attributes on an active model
[18:12:18] gbgdev: and i need to handle the associations update manually
[18:13:10] gbgdev: in a specific association i have different "kind"
[18:14:21] gbgdev: and i update the attributes differently for each kind
[18:14:30] uris: has joined #RubyOnRails
[18:14:39] gbgdev: so i am using model.association.find_by(kind: ...)
[18:14:57] arup_r: gbgdev: what happened ? I am not getting
[18:15:01] gbgdev: but its returning a dup of the real active record. Not the real instance (reference)
[18:15:11] dexter-tzu: has joined #RubyOnRails
[18:15:31] evenix: has joined #RubyOnRails
[18:15:57] zpe: has joined #RubyOnRails
[18:15:59] gbgdev: so... everthing i change in this object is not applied to real instance
[18:16:26] gbgdev: like if i get the object using model.association[index]
[18:17:07] gbgdev: this last one will return me the real object (with same object_id)
[18:18:43] nettoweb: has joined #RubyOnRails
[18:18:52] zpe: has joined #RubyOnRails
[18:18:55] bePolite: has joined #RubyOnRails
[18:18:55] arup_r: never used activemodel..
[18:18:57] gbgdev: @arup_r: is there a way to find an association object without make a copy?
[18:19:09] gbgdev: find_by and where do it
[18:19:11] arup_r: lacrymology: Are you set now ? :)
[18:20:13] bePolite: has joined #RubyOnRails
[18:20:34] arup_r: gbgdev: something like http://stackoverflow.com/a/3821420
[18:21:15] gbgdev: yeah... but in update context
[18:21:18] s2013: has joined #RubyOnRails
[18:21:30] gbgdev: i want to apply my changes without use "update_attributes"
[18:21:49] tsatsu: has joined #RubyOnRails
[18:22:08] gbgdev: so i am making something like "model.association.find_by(kind: 'name').attribute = value"
[18:22:39] bePolite: has joined #RubyOnRails
[18:22:49] gbgdev: since the "find_by" return me a copy (not the real object), this change is not applied to the real object (inside the association)
[18:23:48] baweaver: has joined #RubyOnRails
[18:24:12] arup_r: gbgdev: User has_many tasks .. so now.. User.tasks << [task1, task2]
[18:24:27] zpe: has joined #RubyOnRails
[18:24:31] NBarnes: has joined #RubyOnRails
[18:25:15] arup_r: or http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html (*Association extensions*)
[18:25:22] msyvich: has joined #RubyOnRails
[18:25:26] gbgdev: its a way to solve... but it will produce more code in my case
[18:26:22] gbgdev: i was thinking in use .tap to do this
[18:26:51] pawnbox: has joined #RubyOnRails
[18:26:52] gbgdev: since i'm in update context, the objects are already inside the "User.tasks"
[18:27:07] gbgdev: so i can't simple push it (<<)
[18:27:31] gbgdev: i need to get, make changes, and put back
[18:28:00] gbgdev: with the tap (using reference object) it would be much simple
[18:29:28] manfrin: has joined #RubyOnRails
[18:30:33] musicnode: has joined #RubyOnRails
[18:32:36] CrazyHorse18: has joined #RubyOnRails
[18:32:41] arup_r: gbgdev: well, what about find_or_create_by
[18:32:43] lexileo: has joined #RubyOnRails
[18:33:01] gbgdev: let me try
[18:33:18] Trynemjoel: has joined #RubyOnRails
[18:33:34] gbgdev: same thing
[18:34:01] gbgdev: returns an object with different object_id
[18:34:50] hannelita: has joined #RubyOnRails
[18:35:28] Andr3as: can i have two tables whos row-ids are somewhat synced? like unique no matter in what table the entry is saved?
[18:35:38] Andr3as: anyone ever made something like that?
[18:35:40] arup_r: the only find_by will give you only the object or nil, so `.tap` might not be that helpful.
[18:36:08] doodlehaus: has joined #RubyOnRails
[18:36:17] gbgdev: if it gives me the "real object" shoud help
[18:36:21] hannelita: has joined #RubyOnRails
[18:37:08] arup_r: yes, but it can give `nil` also if not found.
[18:37:15] hanneli: has joined #RubyOnRails
[18:37:31] gbgdev: in my situation is impossible to be nil
[18:37:34] treehug88: has joined #RubyOnRails
[18:37:37] gbgdev: its validated
[18:38:32] zeros0623: has joined #RubyOnRails
[18:43:07] kirillzh: has joined #RubyOnRails
[18:45:33] stesind: has joined #RubyOnRails
[18:46:21] dragonkh: has joined #RubyOnRails
[18:46:42] speaking1ode: has joined #RubyOnRails
[18:48:00] Aherin: has joined #RubyOnRails
[18:48:31] musicnode: has joined #RubyOnRails
[18:48:50] eljimmy: has joined #RubyOnRails
[18:48:54] ElFerna: has joined #RubyOnRails
[18:49:57] hobodave: has joined #RubyOnRails
[18:55:00] speaking1ode: has joined #RubyOnRails
[18:57:57] sarink: has joined #RubyOnRails
[18:59:09] Scripore: has joined #RubyOnRails
[19:01:32] Hans267: has joined #RubyOnRails
[19:03:19] uris: has joined #RubyOnRails
[19:04:20] a1fa: can someone recommend a datepicker for bootstrap-sass 3.1 and jQuery 2
[19:05:35] sleungcy_: has joined #RubyOnRails
[19:07:32] cnk: has joined #RubyOnRails
[19:07:44] a1fa: so many abandoned gems, its hard to tell what to use
[19:07:46] maxx88_: has joined #RubyOnRails
[19:07:51] a1fa: any advice would be appreciated
[19:09:46] workmad3: has joined #RubyOnRails
[19:10:17] speaking1ode: has joined #RubyOnRails
[19:11:46] hahuang65: has joined #RubyOnRails
[19:14:16] mdw: has joined #RubyOnRails
[19:15:01] Macaveli: has joined #RubyOnRails
[19:15:35] centrx: has joined #RubyOnRails
[19:15:54] maxx88_: has joined #RubyOnRails
[19:18:37] mordof_work: this CORS package for rails: https://github.com/cyu/rack-cors .. when specifying the origins, does anyone know if it includes query parameters and the entirety of the URL? or if it's just the tld?
[19:19:11] mordof_work: or rather - not just tld but the whole https://subdomain.domain.ext/
[19:20:24] herbst: has joined #RubyOnRails
[19:20:24] herbst: has joined #RubyOnRails
[19:20:36] juddey: has joined #RubyOnRails
[19:20:57] blackmesa: has joined #RubyOnRails
[19:22:40] speaking1ode: has joined #RubyOnRails
[19:23:29] reckoner: has joined #RubyOnRails
[19:23:43] reckoner: rails sucks!
[19:23:56] reckoner: i'm kidding.
[19:24:11] kitsuneyo: has joined #RubyOnRails
[19:25:59] evenix: has joined #RubyOnRails
[19:26:27] rhizome: mordof_work: i'd read up on CORS and whether the things you're curious about are even possible
[19:26:45] kitsuneyo: has joined #RubyOnRails
[19:27:32] mordof_work: rhizome: yes it's possible. it's basic CORS
[19:28:07] zpe: has joined #RubyOnRails
[19:28:15] mordof_work: rhizome: i don't want to have to specify those things - because it'd be stupid if i had to. i just wanted to confirm my suspicion that i shouldn't have to specify those details
[19:28:53] PedramT: has joined #RubyOnRails
[19:28:54] zpe_: has joined #RubyOnRails
[19:29:35] Baasic: why is form_for not passing my :html => {} attributes?
[19:29:43] mordof_work: rhizome: all i'm trying to do is specify any subdomain on a single domain, as well as a few other specific domains. i know that's normal for that gem
[19:30:04] NBarnes: has joined #RubyOnRails
[19:32:37] uris: has joined #RubyOnRails
[19:33:04] kitsuneyo: has joined #RubyOnRails
[19:33:40] rhizome: http://stackoverflow.com/questions/14003332/access-control-allow-origin-wildcard-subdomains-ports-and-protocols
[19:34:10] rhizome: i also came across a page that was not too enamored of the rack-cors gem, but i'm ignorant of this area
[19:34:27] rhizome: Baasic: good question
[19:35:34] kitsuneyo: has joined #RubyOnRails
[19:35:46] evenix: has joined #RubyOnRails
[19:36:39] ur5us: has joined #RubyOnRails
[19:36:43] Scriptonaut: anyone here who uses active interactions know if passing run() a hash behaves differently than other datatypes?
[19:37:13] Scriptonaut: I'm passing my activeinteraction a hash called order_by. It is still defaulting to {}, even though I pass it a hash. This doesn't happen with the other parameters
[19:37:33] mordof_work: rhizome: saw that - thanks for checking. that's unrelated to the gem though. with the rack gem, it's trivial to work with multiple domains and checking stuff like that???. without, it's a royal pain
[19:37:34] doodlehaus: has joined #RubyOnRails
[19:38:28] a1fa: this is so frustrating, cant even get jquery-ui-rails
[19:38:57] mordof_work: rhizome: the gem checks the requests coming in first, sees if it's in the list of domains i want to allow - and then the gem handles creating the headers to send back with the response so it'll work (changing the headers with allow origin destinations appropriately based on who made the call)
[19:39:39] evenix: has joined #RubyOnRails
[19:39:49] osgur: has joined #RubyOnRails
[19:40:15] choke_: has joined #RubyOnRails
[19:40:26] hannelita: has joined #RubyOnRails
[19:42:03] ELCALOR: i'm having this object: #<RebateResult id: nil, potential_amount: 63626, achieved_amount: 37597>, and when I do object.to_json, this is the result: "result.to_json: {\"id\":null,\"potential_amount\":null,\"achieved_amount\":null}"
[19:42:43] ELCALOR: i omitted other values which get properly formatted to json, btw
[19:43:08] evenix: has joined #RubyOnRails
[19:43:37] ELCALOR: for example:
[19:43:44] evenix: has joined #RubyOnRails
[19:43:48] ELCALOR: https://www.irccloud.com/pastebin/VyqW5j3b/
[19:45:30] ELCALOR: anyone has an idea why this happens?
[19:46:23] BhavyaM: has joined #RubyOnRails
[19:46:30] arup_r: has joined #RubyOnRails
[19:46:45] centrx: why what happens?
[19:47:43] safety_cut: has joined #RubyOnRails
[19:48:00] reckoner: isn't this an attribute accessible issue.
[19:48:01] _djbkd: has joined #RubyOnRails
[19:48:11] a1fa: can anyone land me a hand with "datepicker" i've tried jquery-ui and bootstrap-datepicker, and i cant get either one to work
[19:48:23] a1fa: i'm wondering if i'm even invoking this correctly in coffeescript
[19:48:46] BhavyaM: @channel - Hi all, I have a rails project and would like to expose technical-debt via browsable web-pages. Is there an open-source version available that does that - something I can host on-premise and use for free. I am not looking for codeclimate or other similar paid solutions.
[19:49:20] fryguy: BhavyaM: just run the tools that code climate runs under the hood, it's all composed of open source software
[19:49:21] msyvich: has joined #RubyOnRails
[19:49:29] BhavyaM: I am feeling technical debt isn't getting enough attention from management, since it is not exposed via a web interface..
[19:49:38] baweaver: has joined #RubyOnRails
[19:50:08] a1fa: problem #1, there are too many gems; that are mostly deprecated
[19:50:08] BhavyaM: fryguy: yeah, I guess I will have to figure out how to get them to work and expose results via a web-page
[19:50:26] BhavyaM: i don't want command line info, i am aware of that - thanks though
[19:50:50] rhizome: mordof_work: it looks like that page describes wildcards
[19:51:06] rhizome: in a subdomain context
[19:51:27] BhavyaM: i know stuff like metric_fu, rails_best_practices, reek, rubocop and a lot more are there just for this - but can't expect senior management to look at command line...
[19:51:39] BhavyaM: and understand what I am trying to highlight..
[19:51:50] kies^: has joined #RubyOnRails
[19:52:11] rhizome: then translate it into words they understand
[19:52:54] BhavyaM: gets lost in translation, hehe - web-page with lots of red - that they will understand..
[19:53:16] rhizome: become a better translator
[19:53:55] BhavyaM: thanks for the advice, i'll try it..
[19:54:46] kirillzh: has joined #RubyOnRails
[19:59:14] yfeldblum: has joined #RubyOnRails
[20:01:19] moresilenter: has joined #RubyOnRails
[20:01:28] arBmind: has joined #RubyOnRails
[20:02:27] leksster: has joined #RubyOnRails
[20:03:45] petricore: has joined #RubyOnRails
[20:05:19] standingchair: has joined #RubyOnRails
[20:06:05] symbole: has joined #RubyOnRails
[20:06:11] a1fa: so i followed Railscasts on jquery-ui, and did the same thing, but i still cant get text_field to become clickable, could it bee that one of my other assets is interfering with jquery-ui?
[20:06:17] hannelita: has joined #RubyOnRails
[20:06:38] reckoner: a1fa are you seeing any errors in your console?
[20:06:41] a1fa: according to jquery-ui github, its incompatible with jquery-rails < 3.0.0
[20:06:49] a1fa: reckoner: no errors
[20:07:32] a1fa: no seriously, no errors. i changed datepicker() to datepickerr() to make sure, and i caught error for the typo
[20:07:50] a1fa: assets are being loaded, datepicker() is there
[20:08:27] a1fa: bundle show, and i see it, rake assets:precompile, and changes to app/assets/*/application* to get the includes working, are there as well
[20:08:30] reckoner: are you selecting the right dom id?
[20:08:51] a1fa: yes, i checked that twice, and i even copied the dom out of inspect view
[20:09:12] reckoner: dom ids can't be duplicates.
[20:09:13] a1fa: i can produce an alert onclick to dom
[20:10:38] FernandoBasso: has joined #RubyOnRails
[20:11:29] uris: has joined #RubyOnRails
[20:12:04] nertzy2: has joined #RubyOnRails
[20:12:15] lxsameer: has joined #RubyOnRails
[20:12:15] lxsameer: has joined #RubyOnRails
[20:13:17] a1fa: i can also invoke $('#dom').datepicker() from console
[20:13:41] a1fa: it just returns html code for the input dom
[20:13:47] Scriptonaut: does anyone know why when I do this rspec line: expect(sorted_people.where.not(type_name: "sphere").count)to eq(0) returns false? I put a binding pry in there, it returns 0. The error I get is: expected #<Rspec::Matchers::BuiltIn::Eq> => eq 0. got #<Fixnum:1> => 0
[20:14:19] Scriptonaut: if I do: sorted_people.where.not(type_name: "sphere").count.equal? 0
[20:14:20] Scient: looks like the count returns 1
[20:14:21] Scriptonaut: it returns true
[20:14:41] Scriptonaut: it says: #<Fixnum:1> => 0
[20:14:47] Scriptonaut: which tells me it's returning zero right?
[20:14:50] Scient: which means 1 => 0
[20:14:53] Scriptonaut: the Fixnum:1 is the object id isn't it
[20:14:59] Scriptonaut: what does that mean
[20:14:59] Scient: mmm is it?
[20:15:03] mdw: has joined #RubyOnRails
[20:15:13] Scient: try expect(...).to be_empty
[20:15:15] acovrig_: has joined #RubyOnRails
[20:15:20] tildes: has joined #RubyOnRails
[20:15:23] Scient: and drop the .count
[20:15:32] Scriptonaut: oh, good thinking
[20:15:43] Scient: see what that does, maybe it gives at least more info or something
[20:15:54] dexter-tzu: has joined #RubyOnRails
[20:16:16] a1fa: reckoner: is there anything else i could do to troubleshoot this?>
[20:16:23] acovrig_: I???m trying to deploy an app as per https://gorails.com/deploy/ubuntu/14.04; bundle exec cap production deploy doesn???t return anything, but I don???t get a directory/symlink of current??????
[20:16:31] Scriptonaut: Scient: that worked :)
[20:18:09] yoongkang: has joined #RubyOnRails
[20:19:02] cnk: acovrig_: cap deploy really should produce output
[20:19:53] a1fa: i'm literally at a loss as to why this thing is not wanting to drop down anything
[20:22:31] andchar: has joined #RubyOnRails
[20:22:49] cnk: has left #RubyOnRails: ()
[20:23:00] cnk: has joined #RubyOnRails
[20:23:22] a1fa: going to start toggling off the rest of the js, to see if there is a conflict
[20:24:41] arup_r: a1fa: take a break and then again start, it will help you,
[20:25:14] Anubix: has joined #RubyOnRails
[20:26:29] Anubix: Hello. I am using OpenWeatherApi on my website about weather and yesterday after 30 days of running my pages didnt load. Maybe API was not working for a while, but it doesnt load rest of page, what is problem. Here is error what i got from log http://pastie.org/private/ta1yctdugc7jwzbq9vpvw
[20:26:34] acovrig_: cnk: there is no output, however I just tried bundle exec rake db:create and got this: `Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile?????? but `gem ???mysql2???` is in my Gemfile...
[20:27:17] appledroid: has joined #RubyOnRails
[20:28:02] andchar: Hi to all! I am 31. I'm too old to start learning programming in RoR? How do you think?
[20:28:04] cnk: where are you running thtat rake db:create?
[20:28:12] cnk: is that on your server or your laptop?
[20:28:30] cnk: I am guessing that you need to bundle install on the server
[20:28:50] Anubix: andchar: No you are not. You can start learning Ruby in 50 years it doesnt matter.
[20:28:53] appledroid: lol - @andchar you can never be too old to start having fun in rails
[20:29:32] appledroid: @andchar do you have other programming experience?
[20:29:48] mdw: has joined #RubyOnRails
[20:30:23] arup_r: Anubix: seems @weather is `nil`
[20:30:34] andchar: some delphi, some vbs, some assembler ...
[20:30:37] arup_r: can you check this in your code by inspecting it
[20:31:04] Anubix: arup_r: Yes I thought it. But i included condition if @weather != nil
[20:31:18] kirillzh: has joined #RubyOnRails
[20:31:21] FernandoBasso: has joined #RubyOnRails
[20:31:38] hannelita: has joined #RubyOnRails
[20:31:40] Anubix: arup_r: then i expect it will not echo weather results and it just leave blank space, but doesn't fall down all website
[20:31:45] arup_r: yes, skipped it in the forest :p
[20:32:05] arup_r: then @weather['main'] is `nil` . I am damn sure
[20:32:42] arup_r: just inspect it and you will see what keys are missing
[20:33:00] Anubix: arup_r: You are right, but how can i change condition to if someting in weather is nil, then dont throw exception
[20:33:18] Anubix: arup_t: because its free api and sometimes it doesnt work, so @weather can be nil in future
[20:33:30] a1fa: back to date_select
[20:33:32] appledroid: @weather.includes?(object) maybe?
[20:33:34] a1fa: such garbage
[20:33:38] arBmind: has joined #RubyOnRails
[20:33:41] arup_r: ugly `.try` method all over the code
[20:34:59] arup_r: Anubix: one thing you could do, is just pass the @weather object to method like `check_for_round` .. and do some calc there like `nil` check etc
[20:35:11] arup_r: and then return some meaning full .. in the view
[20:35:32] arup_r: in that way, your view will be clean and you can handle them in a central place
[20:36:24] arup_r: appledroid: nice nick hhehehe
[20:36:37] arup_r: s/apple/an
[20:36:51] appledroid: hehehe thanks =)
[20:37:07] Anubix: arup_r: hm it's solution but not so cool as i expected :/
[20:37:30] arup_r: didn't get you
[20:37:45] andchar: Are there any open source projects for learning/practics RoR?
[20:38:21] andchar: .. with bad English?
[20:38:32] Pulp: has joined #RubyOnRails
[20:38:39] appledroid: andchar: there is some stuff on iTunes University, you could also checkout Treehouse, but its like $25 a month or something.
[20:41:08] andchar: appledroid: Thank you? I'll watch
[20:41:13] andchar: appledroid: Thank you, I'll watch
[20:41:43] appledroid: andchar: sure thing, checkout codeschool also, not sure if they cost or not now, they use to be free back in the day
[20:42:36] Anubix: arup_r: Should this work? http://pastebin.com/4xh58DYn
[20:42:53] Anubix: pastie is down now
[20:43:19] kirillzh: has joined #RubyOnRails
[20:43:24] arup_r: Anubix: ofcourse. it will work and it is now under control too
[20:44:15] Anubix: arup_r: Well. But what's difference between if i use this or check on begin og page if @weather != nil ?
[20:44:52] arup_r: ok.. sorry I missread the pastebin. you need to check each and every key in side the method
[20:45:04] Anubix: arup_r: Oh i get it. @weather can't be nil, but maybe one of his array can be nil and its problem :)
[20:45:07] arup_r: which you think may or may not exist
[20:45:29] truenito: has joined #RubyOnRails
[20:46:00] Anubix: arup_r: Ok now its fine :)
[20:46:20] appledroid: Anubix: could you use a block? Like: @weather.all? {|w| w.nil?}
[20:46:42] pawnbox: has joined #RubyOnRails
[20:46:54] Anubix: appledroid: No. In weather instance is many arrays and i use only few of them :)
[20:47:33] andchar: appledroid: What about +- salary may expect a ruby junior?
[20:47:50] Anubix: So i just use helper method to check each value if its not nil
[20:48:02] Anubix: Not so elegant, but it will works :)
[20:48:25] Anubix: maybe try function should be enough
[20:48:36] Anubix: dunno how many resources it takes
[20:48:42] maxx88: andchar: i haven???t seen it recommended here before but, http://guides.railsgirls.com is very good as well. it goes into all the basics; bootstrap, devise, carrierwave, etc.
[20:49:07] Cohedrin: has joined #RubyOnRails
[20:49:17] appledroid: andchar: it really depends on what else you bring to the table, front end dev, databases etc. Not to mention what the location is. Cybercoders has an interactive map floating around now that can give you a decent idea
[20:49:49] creaked: has joined #RubyOnRails
[20:50:22] maxx88: andchar: plus railsgirls is in 9 languages or something like that
[20:50:27] hobodave: has joined #RubyOnRails
[20:50:32] baweaver: has joined #RubyOnRails
[20:50:48] PedramT: has joined #RubyOnRails
[20:51:24] NBarnes: has joined #RubyOnRails
[20:53:09] safety_cut: has joined #RubyOnRails
[20:53:20] cicloid: has joined #RubyOnRails
[20:54:35] tvw: has joined #RubyOnRails
[20:55:02] safety_c_: has joined #RubyOnRails
[20:55:57] andchar: appledroid: Cybercoders is empty for my country :(
[20:56:59] visudo_: has joined #RubyOnRails
[20:57:53] snguyen: has joined #RubyOnRails
[20:59:06] choke: has joined #RubyOnRails
[20:59:46] mag42c: has joined #RubyOnRails
[21:00:23] eljimbo: has joined #RubyOnRails
[21:00:32] snguyen: has joined #RubyOnRails
[21:00:58] qejk: has joined #RubyOnRails
[21:01:14] chipotle: has joined #RubyOnRails
[21:02:15] acovrig_: so, bundle exec cap production deploy returns nothing, but doesn???t seem to work; cap production deploy can???t load capistrano/rbenv...
[21:03:14] tvw: has joined #RubyOnRails
[21:03:25] truenito: has joined #RubyOnRails
[21:03:27] Radar: acovrig_: Doesn't look like you have the capistrano-rbenv gem installed, then.
[21:04:29] Anubix: I prefer mina for deploing its more easier to set it up
[21:05:30] acovrig_: Radar: which is interesting given it???s in my Gemfile and I ran bundle??? so gem install capistrano-rbenv worked, but cap production deploy doesn???t return anything and there is no current symlink/dir...
[21:05:34] ql6wlld: has joined #RubyOnRails
[21:05:56] Radar: acovrig_: I'd need to see this one for myself, sorry. I can't help at this distance.
[21:06:29] s2013: has joined #RubyOnRails
[21:06:33] mary5030: has joined #RubyOnRails
[21:06:45] antgel: has joined #RubyOnRails
[21:08:32] netzfisch: has joined #RubyOnRails
[21:08:59] evenix: has joined #RubyOnRails
[21:09:32] nertzy2: has joined #RubyOnRails
[21:09:38] mrbubbles: Good evening
[21:10:25] Radar: hello mrbubbles
[21:10:39] Radar: acovrig_: If you can reproduce the issue in a new app I could probably take a look.
[21:11:38] mrbubbles: .select_all returns an array of hashes [{created_at => 2016-01-27 00:00:00, value =>1}, {created_at => 2016-01-27 00:05:00, value => 2}] etc is there an easy way to have it produce an array of arrays [[2016-01-27 00:00:00, 1], [2016-01-27 00:05:00, 2]] instead? Or am I better just doing an array map and doing it manually?
[21:11:51] rclanan: has joined #RubyOnRails
[21:12:48] Radar: mrbubbles: select_all called on what? Show us the full code please.
[21:13:00] reckoner: i want to abstract a number if-else conditions from an index action. move to my model or elsewhere?
[21:13:23] mrbubbles: On an active record connection
[21:13:23] mrbubbles: https://gist.github.com/joeczucha/4444a862fb92d9f3d5c2
[21:14:39] arup_r: reckoner: PORO ?
[21:15:02] rclanan: has joined #RubyOnRails
[21:15:36] reckoner: arup_r yeah something like that
[21:15:47] rclanan: has joined #RubyOnRails
[21:15:53] arup_r: move to app/services/
[21:15:55] evenix: has joined #RubyOnRails
[21:16:05] arup_r: with a plain Ruby class
[21:16:10] Radar: arup_r: Wild recommendation without seeing any code.
[21:16:42] Anubix: has left #RubyOnRails: ()
[21:16:45] pawnbox: has joined #RubyOnRails
[21:16:56] arup_r: through experience Radar
[21:17:09] reckoner: it's not destructive though
[21:17:16] rclanan: has joined #RubyOnRails
[21:17:17] reckoner: it's really just a query object
[21:17:20] arup_r: reckoner: +1
[21:17:27] arup_r: share your code .. :)
[21:17:40] reckoner: i'll share a gist. 1 sec
[21:17:47] ur5us_: has joined #RubyOnRails
[21:18:06] rclanan: has joined #RubyOnRails
[21:18:26] rclanan: has joined #RubyOnRails
[21:18:38] manfrin: has joined #RubyOnRails
[21:18:48] CassioAlmeidas: has joined #RubyOnRails
[21:19:30] rclanan: has joined #RubyOnRails
[21:20:05] CassioAlmeidas: how create association with custom foreign key(like 'node/1'), like sql: SELECT n.nid, ua.dst FROM {node} n INNER JOIN {url_alias} ua ON ua.src = CONCAT('node/', n.nid)
[21:20:18] futilegames: has joined #RubyOnRails
[21:20:18] rclanan: has joined #RubyOnRails
[21:20:25] reckoner: https://gist.github.com/dustineichler/39b0534cc3a3712a92e2
[21:20:42] evenix: has joined #RubyOnRails
[21:20:49] moeabdol1: has joined #RubyOnRails
[21:21:08] rclanan: has joined #RubyOnRails
[21:21:53] rclanan: has joined #RubyOnRails
[21:22:03] herbst: has joined #RubyOnRails
[21:22:28] baweaver: has joined #RubyOnRails
[21:22:34] arup_r: reckoner: I was correct. now it is your choice. :)
[21:22:40] rclanan: has joined #RubyOnRails
[21:23:07] bruce_lee: has joined #RubyOnRails
[21:23:08] arup_r: time to go bed.. cya
[21:23:12] reckoner: arup_r danke
[21:23:15] rclanan: has joined #RubyOnRails
[21:24:10] rclanan: has joined #RubyOnRails
[21:24:14] stannard: has joined #RubyOnRails
[21:24:57] rclanan: has joined #RubyOnRails
[21:26:04] tfitts: has joined #RubyOnRails
[21:26:18] FooMunki: has joined #RubyOnRails
[21:26:31] rclanan: has joined #RubyOnRails
[21:27:12] rclanan: has joined #RubyOnRails
[21:27:48] speaking1ode: has joined #RubyOnRails
[21:28:07] rclanan: has joined #RubyOnRails
[21:28:52] rclanan: has joined #RubyOnRails
[21:29:05] manuscle: has joined #RubyOnRails
[21:30:23] rclanan: has joined #RubyOnRails
[21:31:08] rclanan: has joined #RubyOnRails
[21:32:41] rclanan: has joined #RubyOnRails
[21:33:21] Jasaka: has joined #RubyOnRails
[21:33:57] kitsuneyo: has joined #RubyOnRails
[21:34:11] rclanan: has joined #RubyOnRails
[21:34:51] rclanan: has joined #RubyOnRails
[21:36:31] rclanan: has joined #RubyOnRails
[21:37:11] rclanan: has joined #RubyOnRails
[21:37:44] pawnbox: has joined #RubyOnRails
[21:38:01] rclanan: has joined #RubyOnRails
[21:38:43] rclanan: has joined #RubyOnRails
[21:38:45] MarkAValdez: has joined #RubyOnRails
[21:39:06] Palsson: has joined #RubyOnRails
[21:39:33] rclanan: has joined #RubyOnRails
[21:40:24] rclanan: has joined #RubyOnRails
[21:40:53] sleungcy: has joined #RubyOnRails
[21:41:09] rclanan: has joined #RubyOnRails
[21:41:57] reckoner: has left #RubyOnRails: ()
[21:42:32] eljimmy: has joined #RubyOnRails
[21:42:42] rclanan: has joined #RubyOnRails
[21:42:44] zeros0623: has joined #RubyOnRails
[21:42:52] hardtail: has joined #RubyOnRails
[21:42:54] s2013: has joined #RubyOnRails
[21:43:21] baweaver: has joined #RubyOnRails
[21:44:17] rclanan: has joined #RubyOnRails
[21:44:34] dexter-tzu: has joined #RubyOnRails
[21:44:57] rclanan: has joined #RubyOnRails
[21:45:47] rclanan: has joined #RubyOnRails
[21:46:22] shibabu: has joined #RubyOnRails
[21:46:32] rclanan: has joined #RubyOnRails
[21:47:12] rclanan: has joined #RubyOnRails
[21:48:46] rclanan: has joined #RubyOnRails
[21:49:11] choke: has joined #RubyOnRails
[21:49:35] rclanan: has joined #RubyOnRails
[21:49:55] rclanan: has joined #RubyOnRails
[21:50:58] rclanan: has joined #RubyOnRails
[21:51:02] Trynemjoel: has joined #RubyOnRails
[21:51:16] Maletor: has joined #RubyOnRails
[21:51:48] rclanan: has joined #RubyOnRails
[21:52:33] rclanan: has joined #RubyOnRails
[21:53:18] gremly: has joined #RubyOnRails
[21:53:20] rclanan: has joined #RubyOnRails
[21:53:37] rclanan: has joined #RubyOnRails
[21:53:55] evenix: has joined #RubyOnRails
[21:54:44] rclanan: has joined #RubyOnRails
[21:55:59] rclanan: has joined #RubyOnRails
[21:57:09] rclanan: has joined #RubyOnRails
[21:57:49] rclanan: has joined #RubyOnRails
[21:58:36] rclanan: has joined #RubyOnRails
[21:58:50] CassioAlmeidas: has left #RubyOnRails: ()
[21:59:06] evenix: has joined #RubyOnRails
[21:59:26] rclanan: has joined #RubyOnRails
[21:59:53] doge__: has joined #RubyOnRails
[22:00:58] rclanan: has joined #RubyOnRails
[22:01:43] rclanan: has joined #RubyOnRails
[22:02:28] rclanan: has joined #RubyOnRails
[22:03:08] rclanan: has joined #RubyOnRails
[22:04:14] rclanan: has joined #RubyOnRails
[22:05:03] yoongkang: has joined #RubyOnRails
[22:05:21] rclanan: has joined #RubyOnRails
[22:06:11] rclanan: has joined #RubyOnRails
[22:07:01] rclanan: has joined #RubyOnRails
[22:07:51] rclanan: has joined #RubyOnRails
[22:07:58] pulgalipe: has joined #RubyOnRails
[22:08:11] rclanan: has joined #RubyOnRails
[22:09:16] rclanan: has joined #RubyOnRails
[22:10:54] rclanan: has joined #RubyOnRails
[22:11:31] gbgdev: has joined #RubyOnRails
[22:11:34] rclanan: has joined #RubyOnRails
[22:12:03] keemook555: has joined #RubyOnRails
[22:12:13] Bloodberet: has joined #RubyOnRails
[22:12:19] gbgdev: has joined #RubyOnRails
[22:12:24] rclanan: has joined #RubyOnRails
[22:12:34] cicloid: has joined #RubyOnRails
[22:12:40] KanKava: has joined #RubyOnRails
[22:13:09] rclanan: has joined #RubyOnRails
[22:13:54] rclanan: has joined #RubyOnRails
[22:14:07] yfeldblum: has joined #RubyOnRails
[22:14:39] rclanan: has joined #RubyOnRails
[22:15:16] rclanan: has joined #RubyOnRails
[22:16:20] Scripore: has joined #RubyOnRails
[22:16:24] kirillzh: has joined #RubyOnRails
[22:17:06] VeryBewitching: has left #RubyOnRails: ("Konversation terminated!")
[22:17:26] netzfisch: has joined #RubyOnRails
[22:18:07] pulgalipe: has joined #RubyOnRails
[22:18:11] Bloodberet: has joined #RubyOnRails
[22:18:24] ElFerna: has joined #RubyOnRails
[22:18:31] rclanan: has joined #RubyOnRails
[22:19:11] rclanan: has joined #RubyOnRails
[22:19:27] bePolite: has joined #RubyOnRails
[22:19:49] Bloodberet: has joined #RubyOnRails
[22:20:01] rclanan: has joined #RubyOnRails
[22:20:38] superlou: has joined #RubyOnRails
[22:21:36] rclanan: has joined #RubyOnRails
[22:21:58] keemook555: has left #RubyOnRails: ()
[22:22:07] eljimmy: has joined #RubyOnRails
[22:22:17] rclanan: has joined #RubyOnRails
[22:22:28] Bloodberet: has joined #RubyOnRails
[22:22:38] evenix: has joined #RubyOnRails
[22:23:07] rclanan: has joined #RubyOnRails
[22:24:32] Bloodberet: has joined #RubyOnRails
[22:24:44] rclanan: has joined #RubyOnRails
[22:24:47] musicnode: has joined #RubyOnRails
[22:25:24] rclanan: has joined #RubyOnRails
[22:25:49] rclanan: has joined #RubyOnRails
[22:25:52] PedramT_: has joined #RubyOnRails
[22:26:13] Scriptonaut: does anyone know the library/package needed to install capybara? It says: Command 'qmake' failed
[22:26:19] baweaver: has joined #RubyOnRails
[22:26:20] Scriptonaut: I installed qtcore, but taht didn't solve it
[22:26:29] Scriptonaut: I would like to avoid installing qt if possible
[22:26:54] rclanan: has joined #RubyOnRails
[22:27:19] pawnbox: has joined #RubyOnRails
[22:27:24] quazimodo: has joined #RubyOnRails
[22:27:25] quazimod1: has joined #RubyOnRails
[22:27:44] rclanan: has joined #RubyOnRails
[22:28:08] Frem: has joined #RubyOnRails
[22:28:23] adam12: Scriptonaut: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit maybe?
[22:28:30] rclanan: has joined #RubyOnRails
[22:29:15] rclanan: has joined #RubyOnRails
[22:30:02] rclanan: has joined #RubyOnRails
[22:30:16] evenix: has joined #RubyOnRails
[22:31:37] rclanan: has joined #RubyOnRails
[22:32:17] rclanan: has joined #RubyOnRails
[22:32:51] nerium: has joined #RubyOnRails
[22:33:01] rclanan: has joined #RubyOnRails
[22:33:25] nerium: What I???m I missing here? https://gist.github.com/oleander/0da63075f3738a2dce32
[22:33:45] nerium: Why is ???ArgumentError: unknown keyword: expires_in??? being raised?
[22:33:56] rclanan: has joined #RubyOnRails
[22:34:36] rclanan: has joined #RubyOnRails
[22:35:15] aldodelgado: has joined #RubyOnRails
[22:35:26] rclanan: has joined #RubyOnRails
[22:35:40] aldodelgado: Question? I'm using PaperClip gem and I decided to reload my database and now I
[22:35:40] zodoz: has joined #RubyOnRails
[22:35:53] baweaver: has joined #RubyOnRails
[22:36:12] Cohedrin: has joined #RubyOnRails
[22:36:35] rclanan: has joined #RubyOnRails
[22:36:52] Scriptonaut: adam12: thanks, I'll take a look
[22:37:25] Cohedrin: has joined #RubyOnRails
[22:37:39] aldodelgado: Question? I'm using PaperClip gem and I decided to reload my database and now I'm getting a validation error on migration. Here is what I know is happening. When it gets to the first migration file with the orginal image column it errors becouse of the validation logic I added from paperclip. However in the last migration file I have the rename of the column to whats in the validation. Is there anyway I can handle this so I can make sure i can alw
[22:37:39] aldodelgado: reload my app from scrath if I need to?
[22:37:40] rclanan: has joined #RubyOnRails
[22:38:57] snguyen: has joined #RubyOnRails
[22:39:25] rclanan: has joined #RubyOnRails
[22:40:32] rclanan: has joined #RubyOnRails
[22:40:54] msyvich: has joined #RubyOnRails
[22:41:04] aldodelgado: https://gist.github.com/marknatera/d9f8b99829f4bc10629b
[22:41:20] rclanan: has joined #RubyOnRails
[22:41:25] harly_: has joined #RubyOnRails
[22:42:06] rclanan: has joined #RubyOnRails
[22:42:07] kitsuneyo: has joined #RubyOnRails
[22:42:53] rclanan: has joined #RubyOnRails
[22:43:05] rhizome: aldodelgado: what's the error?
[22:43:35] rclanan: has joined #RubyOnRails
[22:43:43] a1fa: so i just figured out my dropdowns stopped working in the app, even after removing gems and reverting everything back
[22:44:22] rclanan: has joined #RubyOnRails
[22:44:36] a1fa: how fun is that?
[22:45:08] rclanan: has joined #RubyOnRails
[22:45:15] a1fa: cat app/assets/* | md5sum matches to production
[22:45:37] a1fa: yet most js elements dont work (drop downs)
[22:45:53] rclanan: has joined #RubyOnRails
[22:46:08] msyvich_: has joined #RubyOnRails
[22:46:37] B1n4r10: has joined #RubyOnRails
[22:46:40] rclanan: has joined #RubyOnRails
[22:46:45] a1fa: is there a way to clear cache, and remove all public assets, and start with fresh generation?
[22:46:59] leofrozenyogurt: has joined #RubyOnRails
[22:47:13] a1fa: rake assets:clean?
[22:47:25] rclanan: has joined #RubyOnRails
[22:47:31] leofrozenyogurt: hey guys whats up I am having some trouble wrapping my head around how to write a cURL request in ruby specifically this one https://developer.paypal.com/docs/classic/express-checkout/ht_ec-parallelPayments/
[22:47:53] leofrozenyogurt: the initial curl request i understand but all the stuff in green is what gets me
[22:48:10] rclanan: has joined #RubyOnRails
[22:48:38] stesind: has joined #RubyOnRails
[22:49:00] rclanan: has joined #RubyOnRails
[22:49:45] rclanan: has joined #RubyOnRails
[22:50:29] rclanan: has joined #RubyOnRails
[22:50:37] nertzy2: has joined #RubyOnRails
[22:51:15] rclanan: has joined #RubyOnRails
[22:51:25] fsteim: has joined #RubyOnRails
[22:51:36] marienz: has joined #RubyOnRails
[22:51:58] rclanan: has joined #RubyOnRails
[22:52:03] choke: So, I have a route namespace for my api like: namespace :v1_1, which results in a folder for my controllers at v1_1. logic would dictate that I could then use class V1_1::SomeController in the definition, but this results in a undefined constant V11. Any ideas on repairing that?
[22:52:46] rclanan: has joined #RubyOnRails
[22:53:31] rclanan: has joined #RubyOnRails
[22:54:13] rclanan: has joined #RubyOnRails
[22:55:03] rclanan: has joined #RubyOnRails
[22:55:37] Radar: choke: Call it v2?
[22:55:48] rclanan: has joined #RubyOnRails
[22:56:00] mrbubbles: has joined #RubyOnRails
[22:56:09] sarink: has joined #RubyOnRails
[22:56:35] rclanan: has joined #RubyOnRails
[22:56:49] choke: So with api you don't follow semantic versioning? Most of this hasn't changed from v1 and nothing really new -- can't enhance v1 directly, 'cause it breaks what's in production currently
[22:57:20] rclanan: has joined #RubyOnRails
[22:57:25] pawnbox: has joined #RubyOnRails
[22:58:09] zodoz_: has joined #RubyOnRails
[22:58:10] rclanan: has joined #RubyOnRails
[22:58:52] rclanan: has joined #RubyOnRails
[22:59:12] replay: has joined #RubyOnRails
[22:59:13] jkamenik: has joined #RubyOnRails
[22:59:40] rclanan: has joined #RubyOnRails
[23:00:02] nerium: Had expires_at been removed in rails 5?
[23:00:27] rclanan: has joined #RubyOnRails
[23:00:52] visudo: has joined #RubyOnRails
[23:01:10] rclanan: has joined #RubyOnRails
[23:01:39] Radar: choke: I think it's because of how Rails builds up the module name from the namespace method... you could try doing namespace :v1_1, module: "V1_1" to be more explicit about which module.
[23:01:53] Radar: nerium: in what context?
[23:02:03] nerium: Radar: In the view
[23:02:04] rclanan: has joined #RubyOnRails
[23:02:09] nerium: as an agument to cache
[23:02:27] nerium: = cache ???key???, expires_at: 10 do ..
[23:02:40] rclanan: has joined #RubyOnRails
[23:02:54] nerium: I???ve tried a bunch of things, but getting ???unknown keyword: expires_in??? whatever I do
[23:03:05] Radar: nerium: expires_in != expires_at
[23:03:12] Radar: which is it?
[23:03:19] Radar: Your code shows expires_at, but your error message shows expires_in?
[23:03:25] rclanan: has joined #RubyOnRails
[23:03:44] nerium: expires_in raises an error
[23:03:52] Radar: What flavour?
[23:04:10] rclanan: has joined #RubyOnRails
[23:04:19] aldodelgado: rhizome: undefined method `company_logo_content_type' for #<Account:0x007fad3c86b3e8>/Users/Mark/.rvm/gems/ruby-2.2.4/gems/activemodel-4.2.5/lib/active_model/attribute_methods.rb:433:in `method_missing'
[23:04:37] choke: Nope doesn't work, so semantic versioning appears to be out of question... Thanks Radar
[23:04:55] rclanan: has joined #RubyOnRails
[23:05:14] Radar: aldodelgado: Did you run all the migrations?
[23:05:20] aldodelgado: rhizome: never mind we just figuerd it out
[23:05:29] nerium: Radar: flavour of what?
[23:05:33] one_zero: has joined #RubyOnRails
[23:05:36] Radar: nerium Flavour of error?
[23:05:40] rclanan: has joined #RubyOnRails
[23:05:48] Radar: nerium: "raises an error" is almost as vague as you can get. The most vague you can get is "something went wrong"
[23:05:49] aldodelgado: rhizome: thanks tho
[23:05:51] nerium: Radar: have never heard that term before
[23:05:59] nerium: Do you need a backtrace?
[23:06:00] Radar: nerium: I'm being somewhat sarcastic when I use "flavour"
[23:06:05] Radar: nerium: Error + backtrace would be great.
[23:06:13] nerium: cool,hold on
[23:06:20] matthewd: nerium: A non-lie about the line of code would be nice, too
[23:06:25] rclanan: has joined #RubyOnRails
[23:06:40] nerium: matthewd: What?
[23:06:41] mrbubbles: has joined #RubyOnRails
[23:07:15] rclanan: has joined #RubyOnRails
[23:07:34] nerium: Radar: https://gist.github.com/oleander/42b7316cc2d36cbc27f9
[23:08:00] rclanan: has joined #RubyOnRails
[23:08:47] rclanan: has joined #RubyOnRails
[23:09:07] baweaver: has joined #RubyOnRails
[23:09:32] rclanan: has joined #RubyOnRails
[23:10:17] rclanan: has joined #RubyOnRails
[23:10:18] nerium: Radar: Any idea?
[23:10:18] flashpoint9: has joined #RubyOnRails
[23:10:23] Radar: nerium: !rule10
[23:10:23] helpa: nerium: Do not beg / plead with people to help you. This includes asking questions like "Any ideas?" after posting your original question.
[23:10:30] Radar: Patience, please.
[23:11:02] rclanan: has joined #RubyOnRails
[23:11:06] Radar: haha it's funny that Radar wants someone to be patient! How dare he not be at beck and call!
[23:11:19] Radar: am i right?
[23:11:20] webdestroya: has joined #RubyOnRails
[23:11:40] pwnd_nsfw`: has left #RubyOnRails: ()
[23:11:48] Radar: nerium: Please show docs that say this will work in 4.2.5 because I sure as shit cannot find any.
[23:11:54] rclanan: has joined #RubyOnRails
[23:11:54] pwnd_nsfw: has joined #RubyOnRails
[23:11:59] pwnd_nsfw: what an ass hole that Radar guy is
[23:12:40] rclanan: has joined #RubyOnRails
[23:13:08] Radar: nerium: I think it's more that 4.2.5 actually ignores the argument because it's not using a keyword list there.
[23:13:25] rclanan: has joined #RubyOnRails
[23:13:25] nerium: Radar: I ran 4.2.1 before 5 and it worked
[23:13:27] quazimodo: has joined #RubyOnRails
[23:13:29] quazimod1: has joined #RubyOnRails
[23:13:44] Radar: nerium: "didn't raise an exception" and "it actually expired my key after the specified time" are two very, very different things.
[23:14:03] Radar: This is the 4.2.5.1 definition: https://git.io/vzQq1
[23:14:11] rclanan: has joined #RubyOnRails
[23:14:12] a1fa: my dev app is loading all .js pages including application.js; while the proad only has application.js -- both app and dev have matching app/assets/
[23:14:15] nerium: Radar: Aha, so you think it just ignored the arg
[23:14:20] a1fa: s/proad/prod/
[23:14:28] nerium: Haha, that would be a fail as I???m using it on 3 other projects
[23:14:31] Radar: nerium: yes
[23:14:38] Radar: This is the v5.0.0.beta1 definition: https://git.io/vzQq9
[23:14:48] nerium: How else would this be done?
[23:14:56] rclanan: has joined #RubyOnRails
[23:14:59] a1fa: could that be the source of misbehaving js?
[23:15:11] Radar: 5.0 uses keyword lists, which will raise the exception you've shown if there's a key specified that isn't in the keyword list.
[23:15:22] adam12: a1fa: in prod? `rake assets:clean` or `rake assets:clobber`
[23:15:35] adam12: a1fa: If I am understanding you right (I only backscrolled so far)
[23:15:41] Radar: nerium: So, one more final time: please show documentation which supports this "= cache "key", expires_in: 10.minutes do ..." code in a view.
[23:15:45] rclanan: has joined #RubyOnRails
[23:15:45] nerium: Radar: Make sense
[23:15:53] Radar: nerium: http://guides.rubyonrails.org/caching_with_rails.html only shows it in use in controllers.
[23:16:10] evenix: has joined #RubyOnRails
[23:16:18] a1fa: adam12: oddly in dev, rake assets:clobber fixed my problem
[23:16:30] rclanan: has joined #RubyOnRails
[23:16:33] adam12: a1fa: That is very odd.
[23:16:50] adam12: a1fa: Maybe a misconfiguration somewhere in `config/environments/development.rb`?
[23:17:05] nerium: Radar: I can???t. I???ve been using it since 3.beta1 without any problems (not exceptions) so was expecting it to work. How would one set the expire date on a cache key in 4+?
[23:17:16] rclanan: has joined #RubyOnRails
[23:17:28] a1fa: adam12: it was working earlier. then i added jquery_ui to try to get datepicker working
[23:17:35] Radar: nerium: I don't think you can in a view. That's what I'm understanding for the documentation.
[23:17:42] Radar: nerium: Well, using the cache method.
[23:17:46] a1fa: and couldnt get it to work.. so i backed out everything, and then nothing was working
[23:17:46] nerium: Feels a bit strange that I???ve not seen any depr. warnings about this for 5 years
[23:17:48] Radar: nerium: You could probably call out to Rails.cache.fetch.
[23:17:56] Radar: nerium: What if it never existed in the first place?
[23:17:57] snowy: has joined #RubyOnRails
[23:18:05] rclanan: has joined #RubyOnRails
[23:18:09] a1fa: maybe "rake assets:precompile" is something you shouldnt do in dev?
[23:18:12] Radar: nerium: here's the call to Rails.cache.fetch that I'm talking about: http://guides.rubyonrails.org/caching_with_rails.html#low-level-caching
[23:18:13] nerium: That would be a mind fuck
[23:18:14] adam12: a1fa: Correct.
[23:18:23] a1fa: maybe thats where i was effing up
[23:18:24] triangles: has joined #RubyOnRails
[23:18:36] adam12: a1fa: Maybe you added the dependency and never restarted your webserver, and then tried `rake assets:precompile` in an attempt to fix.
[23:18:46] rclanan: has joined #RubyOnRails
[23:18:48] a1fa: i restarted the server over and over
[23:18:51] a1fa: didnt matter
[23:19:09] a1fa: hell, i even did assets:clean and clobber, followed by precompile
[23:19:13] adam12: Anyways - yes, precompiling in dev is bad. Sprockets will handle it for you.
[23:19:14] a1fa: i think precompile is @ fault
[23:19:32] rclanan: has joined #RubyOnRails
[23:19:50] nerium: Radar: I???m really confused right now. If it doesn???t exist, how do pp automaticly expire view caches?
[23:20:12] a1fa: adam12: lesson learned the hardway
[23:20:20] adam12: a1fa: Only way to learn :)
[23:20:22] rclanan: has joined #RubyOnRails
[23:20:32] adam12: a1fa: Are you new to Rails?
[23:20:35] Radar: nerium: this SO answer recommends it, but I think it's faulty: http://stackoverflow.com/a/7491331/15245
[23:20:47] nerium: Radar: They???re using it here: https://devcenter.heroku.com/articles/caching-strategies
[23:20:52] Radar: nerium: Now you've got me questioning everything :P
[23:21:07] rclanan: has joined #RubyOnRails
[23:21:27] a1fa: adam12: new to doing things the right way
[23:21:41] a1fa: adam12: i got thrown into fire and had to learn from someone elses poor code
[23:21:54] rclanan: has joined #RubyOnRails
[23:22:16] nerium: I would expect my users to complain if view caches couldn???t expire.
[23:22:19] adam12: a1fa: I used to say I never found bad Rails code when adopting projects, because of the conventions provided out of box, but as of late, it's less and less true.
[23:22:39] rclanan: has joined #RubyOnRails
[23:23:24] rclanan: has joined #RubyOnRails
[23:23:42] rhizome: everybody's getting "good" at ruby
[23:24:04] nerium: Radar: It looks like it exists: http://edgeguides.rubyonrails.org/caching_with_rails.html#activesupport-cache-store
[23:24:09] rclanan: has joined #RubyOnRails
[23:24:10] Ropeney: has joined #RubyOnRails
[23:24:27] greenhat: Huh. As a consultant I've never seen good rails code.
[23:24:34] kerunaru: has joined #RubyOnRails
[23:24:36] Radar: nerium: ok, so looks like it works fine in this 4.2.5 app I got here. The mystery deepens.
[23:24:39] greenhat: Of course nobody calls a consultant when things are going well.
[23:24:49] Radar: nerium: no mention of it in Rails changelogs too
[23:24:54] kerunaru: has joined #RubyOnRails
[23:24:59] rclanan: has joined #RubyOnRails
[23:25:04] nerium: Radar: Strange ...
[23:25:15] Radar: nerium: Let me try reproducing in a Rails 5.0 app.
[23:25:29] nerium: Radar: The error is not raised in dev and test
[23:25:32] nerium: just production
[23:25:39] Radar: nerium: because dev has perform_caching = false
[23:25:44] rclanan: has joined #RubyOnRails
[23:25:44] Radar: nerium: config/environments/development.rb
[23:26:05] nerium: Radar: Aha, so the keys are never validated in dev
[23:26:11] Radar: nerium: yeah, I think that's right.
[23:26:23] Radar: nerium: Although I was already massively wrong once today so now I am more cautious :)
[23:26:29] rclanan: has joined #RubyOnRails
[23:26:42] a1fa: greenhat: the guy after you probably said the same thing :)
[23:27:14] rclanan: has joined #RubyOnRails
[23:27:21] greenhat: a1fa: No doubt. But I've talked to some of them and for the most part they give me a thumbs up.
[23:27:24] pawnbox: has joined #RubyOnRails
[23:27:54] a1fa: greenhat: they are just nice
[23:27:59] rclanan: has joined #RubyOnRails
[23:28:44] rclanan: has joined #RubyOnRails
[23:29:31] rclanan: has joined #RubyOnRails
[23:30:16] rclanan: has joined #RubyOnRails
[23:31:01] rclanan: has joined #RubyOnRails
[23:31:46] rclanan: has joined #RubyOnRails
[23:32:31] rclanan: has joined #RubyOnRails
[23:33:16] rclanan: has joined #RubyOnRails
[23:34:01] rclanan: has joined #RubyOnRails
[23:34:14] herbst: has joined #RubyOnRails
[23:34:46] rclanan: has joined #RubyOnRails
[23:35:35] `aspiRe: has joined #RubyOnRails
[23:35:36] rclanan: has joined #RubyOnRails
[23:36:21] rclanan: has joined #RubyOnRails
[23:36:40] visudo: has joined #RubyOnRails
[23:37:04] rclanan: has joined #RubyOnRails
[23:37:49] rclanan: has joined #RubyOnRails
[23:38:32] msyvich__: has joined #RubyOnRails
[23:38:34] rclanan: has joined #RubyOnRails
[23:39:19] rclanan: has joined #RubyOnRails
[23:39:44] luizpv: has joined #RubyOnRails
[23:40:04] rclanan: has joined #RubyOnRails
[23:40:49] rclanan: has joined #RubyOnRails
[23:41:39] rclanan: has joined #RubyOnRails
[23:42:13] Radar: nerium: still looking. Got distracted by pesky work.
[23:42:27] nerium: Radar: hehe, okay
[23:42:29] rclanan: has joined #RubyOnRails
[23:43:09] Radar: nerium: tbh I think this is a Rails bug now :(
[23:43:14] rclanan: has joined #RubyOnRails
[23:43:58] rikkipitt: has joined #RubyOnRails
[23:43:59] rclanan: has joined #RubyOnRails
[23:44:41] rikkipitt: hey everyone, how do you folks persuade clients to use rails over something like SquareSpace or Umbraco etc?
[23:44:44] rclanan: has joined #RubyOnRails
[23:44:48] Radar: nerium: Would you like me to file it given that I think I understand why it's happening now?
[23:45:04] nerium: Radar: Sure!
[23:45:12] nerium: Radar: Just send me the link so I can subscribe to it
[23:45:12] s2013: has joined #RubyOnRails
[23:45:17] Radar: nerium: will do
[23:45:29] rclanan: has joined #RubyOnRails
[23:46:14] rclanan: has joined #RubyOnRails
[23:47:01] rhizome: rikkipitt: i wouldn't, they're not equivalent. they aren't rails competition, they are what you can use rails to make
[23:47:04] rclanan: has joined #RubyOnRails
[23:47:44] rclanan: has joined #RubyOnRails
[23:48:07] rikkipitt: hi rhizome, agreed. but I've got one potential client who is scared of being left with something that only the developer who built it can update
[23:48:17] pulgalipe: has joined #RubyOnRails
[23:48:22] rikkipitt: but surely, either way they're in the same boat
[23:48:29] rclanan: has joined #RubyOnRails
[23:49:01] rhizome: you'd probably want a maintenance agreement
[23:49:19] rclanan: has joined #RubyOnRails
[23:50:03] rclanan: has joined #RubyOnRails
[23:50:28] B1n4r10: has joined #RubyOnRails
[23:50:51] rclanan: has joined #RubyOnRails
[23:51:36] rclanan: has joined #RubyOnRails
[23:52:17] rclanan: has joined #RubyOnRails
[23:53:07] rclanan: has joined #RubyOnRails
[23:53:13] nfk: has joined #RubyOnRails
[23:53:52] rclanan: has joined #RubyOnRails
[23:54:37] rclanan: has joined #RubyOnRails
[23:55:04] a1fa: i got bootstrap-datepicker-rails to work
[23:55:08] a1fa: by moving it under turbolinks
[23:55:19] rclanan: has joined #RubyOnRails
[23:55:29] sarink: has joined #RubyOnRails
[23:56:04] rclanan: has joined #RubyOnRails
[23:56:25] mrbubbles: has joined #RubyOnRails
[23:56:49] rclanan: has joined #RubyOnRails
[23:57:34] rclanan: has joined #RubyOnRails
[23:58:20] rclanan: has joined #RubyOnRails
[23:59:07] rclanan: has joined #RubyOnRails
[23:59:55] rclanan: has joined #RubyOnRails