« Back to channel list

#RubyOnRails - 04 December 2015

« Back 1 day Forward 1 day »
[00:00:31] IrishGringo: has joined #RubyOnRails
[00:01:14] ascarter: has joined #RubyOnRails
[00:01:55] annlewis: has joined #RubyOnRails
[00:02:53] manfrin: has joined #RubyOnRails
[00:05:25] Cohedrin: has joined #RubyOnRails
[00:05:28] diego1: has joined #RubyOnRails
[00:08:40] diego1: has joined #RubyOnRails
[00:08:54] diegoviola: timestamp and datetime are the same in rails, right?
[00:09:51] Radar: diegoviola: in what context?
[00:10:02] sleung: has joined #RubyOnRails
[00:10:27] sleung: has joined #RubyOnRails
[00:10:57] diegoviola: Radar: as in migrations, I'm curious if they differ in any way as I'm confused about which one to use
[00:10:58] sleungcy: has joined #RubyOnRails
[00:11:08] diegoviola: I just read:
[00:11:20] Radar: diegoviola: Gist something please.
[00:11:22] diegoviola: "Both :timestamp and :datetime will default to DATETIME, while :date and :time corresponds to DATE and TIME, respectively."
[00:11:48] sleungcy: Hi, is it unsafe for a rails background task to make GET requests to an user supplied URL?
[00:11:59] diegoviola: Radar: I have nothing to gist right now, I'm just reading about them before I write code
[00:12:00] Radar: From the AR changelog: Remove unused `:timestamp` type. Transparently alias it to `:datetime` in all cases. Fixes inconsistencies when column types are sent outside of `ActiveRecord`, such as for XML erialization.
[00:12:10] Radar: diegoviola: So it looks like they are indeed the same thing.
[00:12:13] diegoviola: ok, so it's an alias
[00:12:36] diegoviola: Radar: thanks
[00:14:27] kegan_: has joined #RubyOnRails
[00:15:21] rezzack: has joined #RubyOnRails
[00:16:29] viner: has joined #RubyOnRails
[00:17:02] viner: has left #RubyOnRails: ()
[00:17:39] cajone: has joined #RubyOnRails
[00:19:11] owenjones: has joined #RubyOnRails
[00:20:00] K_r3aPeR: has joined #RubyOnRails
[00:21:41] diego1: has joined #RubyOnRails
[00:23:59] lacuna: has joined #RubyOnRails
[00:24:51] diego1: has joined #RubyOnRails
[00:27:32] pvertenten: has joined #RubyOnRails
[00:28:18] viner: has joined #RubyOnRails
[00:28:22] Olipro: has joined #RubyOnRails
[00:30:49] simplyianm: has joined #RubyOnRails
[00:31:27] juddey: has joined #RubyOnRails
[00:31:45] pyemkey: has joined #RubyOnRails
[00:34:47] pvertenten: has joined #RubyOnRails
[00:37:59] shibabu: has joined #RubyOnRails
[00:38:42] baweaver: has joined #RubyOnRails
[00:39:05] RegulationD: has joined #RubyOnRails
[00:41:25] Ropeney: has joined #RubyOnRails
[00:41:30] yfeldblum: has joined #RubyOnRails
[00:42:15] guest432: has joined #RubyOnRails
[00:43:34] baweaver: has joined #RubyOnRails
[00:44:23] alindeman: has joined #RubyOnRails
[00:46:18] silkwood: has joined #RubyOnRails
[00:49:00] silkwood: I have a rails transaction that is behaving strangely when a rollback occurs. It is setting the attributes of one of my objects to nil, but still trying to save it to the database
[00:49:41] silkwood: Why would this happen? Why would it try to save this empty object? Luckily it is failing due to database constraints
[00:49:44] MEATCHICKEN: silkwood, code?
[00:50:01] silkwood: meatchicken: sorry, buti can't share code
[00:50:30] MEATCHICKEN: okay can you rephrase your question
[00:51:28] MEATCHICKEN: I don't think anyone can help you if you don't share code - at least pseudo code
[00:51:55] sevenseacat: thats a shame.
[00:52:09] silkwood: I have a transaction, I create a record in that transaction, a rollback is raised, Rails sets all of the records attributes to nil, Rails tries to save the record with nil attributes
[00:53:10] helpa: If you don't provide any code, it becomes really difficult for us to help you. Providing code to reproduce the problem increases your chances of getting great, accurate help immensely.
[00:53:19] sevenseacat: no helpa today?
[00:53:21] nickenchuggets: has joined #RubyOnRails
[00:53:21] nickenchuggets: has joined #RubyOnRails
[00:54:34] xhoy: has joined #RubyOnRails
[00:55:29] DLSteve: has joined #RubyOnRails
[00:56:05] rhizome: has joined #RubyOnRails
[00:56:58] one_zero: has joined #RubyOnRails
[00:58:02] ruid: has joined #RubyOnRails
[00:58:02] ruid: has joined #RubyOnRails
[00:58:24] silkwood: meatchicken: I understand. Maybe I can create some pseudo code in a moment. Thanks
[01:00:18] ktchup: has joined #RubyOnRails
[01:00:45] honestemu: has joined #RubyOnRails
[01:02:28] annlewis: has joined #RubyOnRails
[01:04:12] s2013: has joined #RubyOnRails
[01:05:05] user1138: has joined #RubyOnRails
[01:05:52] sdwrage: has joined #RubyOnRails
[01:07:06] rafaelfranca: has joined #RubyOnRails
[01:07:10] nyaa: has joined #RubyOnRails
[01:07:40] nyaa: has joined #RubyOnRails
[01:08:40] SteenJobs: has joined #RubyOnRails
[01:09:41] ktchup: has joined #RubyOnRails
[01:13:26] IrishGringo: has joined #RubyOnRails
[01:14:37] TheNet: has joined #RubyOnRails
[01:14:43] Scriptonaut: Hey guys, I can't for the life of me figure out why in my rspec controller test calling a post on my controller isn't working. Here's my code and the rspec output: https://gist.github.com/robins35/a1244e1b07c9e8d5488c
[01:14:52] Scriptonaut: I put a binding pry in the create controller, it never reaches it
[01:20:01] rgrmatt: has joined #RubyOnRails
[01:22:06] kies: has joined #RubyOnRails
[01:24:00] rickmasta: has joined #RubyOnRails
[01:24:08] djgraham: has joined #RubyOnRails
[01:24:35] paulodiniz: has joined #RubyOnRails
[01:25:44] sdwrage: has joined #RubyOnRails
[01:27:42] SteenJobs: has joined #RubyOnRails
[01:28:34] shanemcd: has joined #RubyOnRails
[01:28:50] ornerymoose: has joined #RubyOnRails
[01:31:49] mechaxl: has joined #RubyOnRails
[01:32:23] DrShoggoth: has joined #RubyOnRails
[01:33:35] IrishGringo: has joined #RubyOnRails
[01:34:05] silkwood: meatchicken: I've simplified my code as much as possible. The problem persists with code that looks like this: http://pastebin.com/7tmqQ8Wq
[01:40:14] yfeldblum: has joined #RubyOnRails
[01:41:51] silkwood: meatchicken: the "bar" object is what rails is trying to save to the DB with nil attributes
[01:42:34] MEATCHICKEN: silkwood, are you sure the @z you passed in is not nil?
[01:42:48] MEATCHICKEN: rails tries to save bar because you are telling it to save bar
[01:43:17] silkwood: The 'bar' record gets set as an attribute on @z though
[01:43:24] lacuna: has joined #RubyOnRails
[01:43:37] silkwood: if I do "@z.bar = nil" then it fixes the issue
[01:43:47] silkwood: and rails doesnt try to save it to the DB
[01:44:09] silkwood: but I would like to understand why Rails is trying to save it at all
[01:45:06] MEATCHICKEN: Stick around and maybe someone knows - I'm not certain
[01:45:13] joshkovach: has joined #RubyOnRails
[01:45:19] silkwood: very strange
[01:47:23] elton: has joined #RubyOnRails
[01:47:45] banister: has joined #RubyOnRails
[01:47:52] colleenmcguckin: has joined #RubyOnRails
[01:48:30] alindeman: has joined #RubyOnRails
[01:48:42] User4587_: has joined #RubyOnRails
[01:51:14] lacuna: has joined #RubyOnRails
[01:51:14] lacuna: has joined #RubyOnRails
[01:55:31] lacuna: has joined #RubyOnRails
[01:56:00] rattatmatt: hey guys, I'm currently trying to abstract out some code on my ActiveRecord models that can be used on multiple different models. the problem I'm running into is that I need to be able to run an update on the object's one-to-one association which can be dynamic since this needs to be portable to other objects using the same functionality. the only thing I can figure out is to pass the name of the association (eg. user) in as a st
[01:56:00] rattatmatt: ring to the method and then use eval on it, but that makes me uncomfortable because I know that typically that means there's a better way. anyone have any suggestions?
[01:56:12] maloik: has joined #RubyOnRails
[01:56:20] ktchup: has joined #RubyOnRails
[01:56:33] twilling: has joined #RubyOnRails
[02:02:51] goodcodeguy: has joined #RubyOnRails
[02:03:14] annlewis: has joined #RubyOnRails
[02:06:55] Jasaka: has joined #RubyOnRails
[02:07:36] simplyianm: has joined #RubyOnRails
[02:14:17] pvertenten: has joined #RubyOnRails
[02:15:33] TheNet: has joined #RubyOnRails
[02:23:26] dkam: has joined #RubyOnRails
[02:25:48] jetpackjoe: has joined #RubyOnRails
[02:27:09] simplyianm: has joined #RubyOnRails
[02:27:11] sevenseacat: has joined #RubyOnRails
[02:28:07] simplyianm: has joined #RubyOnRails
[02:31:34] srinidhi: has joined #RubyOnRails
[02:34:01] pyemkey: has joined #RubyOnRails
[02:35:14] Radar: rafaelfranca: ping
[02:35:44] Radar: rafaelfranca: Hey. So what do you need from me? Just some code that reproduces the issue?
[02:36:00] mechaxl: has left #RubyOnRails: ()
[02:37:00] rafaelfranca: well, I found in that issue that someone already did the work to fix that
[02:37:26] rafaelfranca: https://github.com/pitr/angular-rails-templates/compare/master...gaslight:master
[02:37:42] Radar: Awesome :)
[02:37:54] rafaelfranca: it needs a cleanup and fix some tests, but that is basically what it is needed
[02:38:31] dkam: has joined #RubyOnRails
[02:39:03] rafaelfranca: also it doesn't need to change the code to use nghtml. You can use a transformer from text/html to application/javascript
[02:39:31] drbayer: has joined #RubyOnRails
[02:40:30] ur5us: has joined #RubyOnRails
[02:40:35] shibabu: has joined #RubyOnRails
[02:41:08] Radar: Still getting Sprockets::FileNotFound: couldn't find file './templates/responsive_menu' with that version. I'll reproduce it in a new app.
[02:43:41] dkam: has joined #RubyOnRails
[02:45:09] axl_: has joined #RubyOnRails
[02:45:11] ornerymoose: has joined #RubyOnRails
[02:47:59] krabador: has joined #RubyOnRails
[02:49:02] Radar: rafaelfranca: https://github.com/radar/bad-sprockets-bad
[02:49:12] Radar: Let me know if you can or can't reproduce that.
[02:50:48] nickenchuggets: has joined #RubyOnRails
[02:50:48] nickenchuggets: has joined #RubyOnRails
[02:51:34] baweaver: has joined #RubyOnRails
[02:52:06] sevenseacat: lol bad sprockets bad
[02:52:31] Radar: More like bad-angular-bad, but I already had this repo handy
[02:52:59] duncannz: has joined #RubyOnRails
[02:54:32] yatish27: has joined #RubyOnRails
[02:55:44] ewnd9: has joined #RubyOnRails
[02:56:56] codelahoma: has joined #RubyOnRails
[02:58:16] bronson: has joined #RubyOnRails
[02:59:17] sankaber: has joined #RubyOnRails
[03:03:45] pvertenten: has joined #RubyOnRails
[03:03:54] rafaelfranca: Radar: https://github.com/radar/bad-sprockets-bad/pull/1
[03:03:55] elton: has joined #RubyOnRails
[03:03:59] annlewis: has joined #RubyOnRails
[03:04:22] Radar: Are you a wizard?
[03:04:40] sevenseacat: yer a wizard, rafaelfranca </hagrid>
[03:06:12] Radar: So I reckon if we use that fork of angular-rails-templates and then rename our templates to .nghtml... it might just work! This is pretty great.
[03:06:20] Radar: I'm looking forward to rake assets:precompile not taking 5 mins
[03:06:56] rafaelfranca: it is possible to not need to rename the templates, but we need to change the code in the fork
[03:07:07] rafaelfranca: but I believe it is the right way to fix this issue
[03:07:25] Radar: Yup, I'm all for `.nghtml` to differentiate them from normal `.html` files.
[03:10:01] hello9: has joined #RubyOnRails
[03:10:13] kies: has joined #RubyOnRails
[03:10:43] ashishsingh173: has joined #RubyOnRails
[03:14:00] MaDErroR123: has joined #RubyOnRails
[03:15:06] flxsource: has joined #RubyOnRails
[03:16:01] maloik: has joined #RubyOnRails
[03:17:06] flxsource: has left #RubyOnRails: ()
[03:17:18] Guest11: has joined #RubyOnRails
[03:17:33] tjbiddle: has joined #RubyOnRails
[03:18:13] krabador: https://www.youtube.com/watch?v=CdPn1mCmqoE
[03:18:25] kies: has joined #RubyOnRails
[03:18:33] Radar: krabador: Um, hi?
[03:18:35] tjbiddle: Hi everyone
[03:18:40] tjbiddle: I'm getting a "stack level too deep" error with no information - the only stack trace is "actionpack (4.2.3) lib/action_dispatch/middleware/reloader.rb:79" - And I have practically an empty controller; can someone shed some light on what I may be missing please? https://gist.github.com/thomasbiddle/e84c3be43172523c5d25
[03:18:57] Guest11: has joined #RubyOnRails
[03:19:19] krabador: hi Radar , i'm too much happy of new dream theater preview, in coding i hear music, and then i post it
[03:21:24] Trynemjoel: has joined #RubyOnRails
[03:21:41] rgrmatt: has joined #RubyOnRails
[03:24:00] maloik: has joined #RubyOnRails
[03:25:30] rafaelfranca: krabador: oh, thank you. That video is unrelated but I'm a huge fan of Dream Theater and didn't know about this preview, so, thank you for the link! :D
[03:26:09] yfeldblum: has joined #RubyOnRails
[03:26:49] yfeldblum: has joined #RubyOnRails
[03:26:55] rafaelfranca: tjbiddle: that is hard to debug. I believe it is a problem when trying to reload the classes
[03:26:57] johnflux: has joined #RubyOnRails
[03:26:58] johnflux: has joined #RubyOnRails
[03:27:15] krabador: rafaelfranca, when i seen it , i got completely crazy, some minute ago
[03:27:16] rafaelfranca: it has a cyclic dependency somewhere in your classes
[03:28:20] juddey: has joined #RubyOnRails
[03:28:24] ur5us: has joined #RubyOnRails
[03:28:38] elton: has joined #RubyOnRails
[03:29:50] shanemcd: has joined #RubyOnRails
[03:30:55] annlewis: has joined #RubyOnRails
[03:32:29] tjbiddle: rafaelfranca: Tell me about it; I have no idea where to start. I've commented out the last gems I've added, moved the routes to underneath an almost identical statement, renamed the controller and file
[03:34:32] xploshioon: has joined #RubyOnRails
[03:36:46] rafaelfranca: tjbiddle: it is hard to tell without looking the entire diff. I recommend you to look carefully in the diff to see what could be causing this error
[03:39:05] tjbiddle: Figured it out
[03:39:11] tjbiddle: "request" is a special word
[03:39:53] Sawbones: has joined #RubyOnRails
[03:41:26] braincra-: has joined #RubyOnRails
[03:45:48] Radar: very special.
[03:51:14] simplyianm: has joined #RubyOnRails
[03:51:43] pontiki: hi all, i have a problem i haven't been able to figure out: https://gist.github.com/tamouse/328c3000b57bb4498187
[03:52:04] sevenseacat: afternoon pontiki
[03:52:11] simplyianm: has joined #RubyOnRails
[03:52:16] pontiki: i'm expecting that to use the "delete" method, but it's not, it's doing an ordinary "get"
[03:52:20] pontiki: hihi, sevenseacat
[03:52:23] i: has joined #RubyOnRails
[03:52:25] sevenseacat: got your jquery_ujs hooked up properly, with no js errors on the page?
[03:52:48] pontiki: oh, let me check, i haven't changed that from the default install
[03:53:19] sevenseacat: but thats really odd that it hits the second route, because the URLs arent the same
[03:53:40] MEATCHICKEN: has joined #RubyOnRails
[03:55:49] Radar: It'll still match it.
[03:56:22] pontiki: it matches the second one using "sign_out" as the :id
[03:56:33] pontiki: well well well
[03:56:35] sevenseacat: makes perfect sense :)
[03:56:37] pontiki: no ujs at all
[03:56:42] sevenseacat: pontiki: whoops!
[03:56:53] pontiki: i have to figure where that got removed...
[03:57:10] sevenseacat: <git blame> "pontiki, 2 weeks ago"
[03:57:22] pontiki: i'm quite sure
[03:58:08] CarlosYoo: has joined #RubyOnRails
[03:58:36] Radar: "Debug Sprockets crap at 3pm", he thought. "How hard could it be?", he thought.
[03:59:02] Radar: I was so sure that asset paths included their digests when the assets were precompiled.
[03:59:09] bronson: has joined #RubyOnRails
[03:59:11] Radar: however, there's a tag here which is: <script src="/assets/application.js"></script>
[03:59:31] Radar: A request to that path succeeds in the app... but there's no public/assets/application.js, nor is the asset pipeline enabled.
[04:00:07] unreal_: has joined #RubyOnRails
[04:01:14] pontiki: ghods, what a tool
[04:02:47] Rodya_: has joined #RubyOnRails
[04:03:14] pontiki: ace, sevenseacat
[04:04:24] stannard: has joined #RubyOnRails
[04:09:17] ss_much: has joined #RubyOnRails
[04:11:28] sevenseacat: has joined #RubyOnRails
[04:16:16] diego1: has joined #RubyOnRails
[04:16:21] braincrash: has joined #RubyOnRails
[04:17:02] hardtail: has joined #RubyOnRails
[04:20:34] elton: has joined #RubyOnRails
[04:21:03] nbdy: has joined #RubyOnRails
[04:21:40] kp666: has joined #RubyOnRails
[04:22:40] kp666: has joined #RubyOnRails
[04:25:16] iateadonut: has joined #RubyOnRails
[04:25:18] Cache_Money: has joined #RubyOnRails
[04:25:36] kp666: has joined #RubyOnRails
[04:27:25] djbkd: has joined #RubyOnRails
[04:30:58] maloik: has joined #RubyOnRails
[04:31:52] annlewis: has joined #RubyOnRails
[04:32:42] rafaelfranca: Radar: classic error while using sprockets
[04:32:55] rafaelfranca: we have a test to check that in shopify
[04:33:18] Oog: has joined #RubyOnRails
[04:35:13] Radar: I still think Sprockets was a troll by Sam Stephenson that gained adoption accidentally.
[04:35:15] Radar: Just like npm.
[04:35:26] roxtrongo: has joined #RubyOnRails
[04:36:22] mloy: has joined #RubyOnRails
[04:36:33] sevenseacat: wait, what does sam stephenson have to do with npm o.o
[04:36:52] Radar: I mean the npm project was a troll
[04:37:14] rafaelfranca: I don't know, I like sprockets
[04:37:27] rafaelfranca: for me it is still better than any alternative
[04:37:39] sevenseacat: one day the JS community will settle on some kind of standard. *sniffle* *snort* *full-on laughter*
[04:37:47] pyemkey: has joined #RubyOnRails
[04:37:53] Radar: rafaelfranca: Even better than Webpack?
[04:38:02] Radar: rafaelfranca: I don't find myself trying to debug Webpack nearly every month.
[04:38:10] Ropeney: has joined #RubyOnRails
[04:40:17] Radar: manifest = assets_manifest
[04:40:21] Radar: next line
[04:40:21] Radar: manifest.assets[path]
[04:40:27] Radar: #trollface
[04:40:28] yatish27: has joined #RubyOnRails
[04:41:11] sevenseacat: I've never looked at sprockets internals and i simply dont want to. its not a topic i'm interested in.
[04:41:14] RegulationD: has joined #RubyOnRails
[04:41:25] rafaelfranca: I never tried it
[04:41:43] rafaelfranca: but it seems to lack some features that sprockets have since the version 1
[04:41:47] rafaelfranca: like assets digest
[04:42:00] sevenseacat: are those things really important though?
[04:42:24] sevenseacat: are we still trying to cater to stupid old IEs, which IIRC is what the digest was for, to stop caching of assets?
[04:43:11] sevenseacat: I like the idea of a non-rails-specific asset management system
[04:43:25] sevenseacat: the asset pipeline confuses so many people coming from all kinds of places
[04:43:29] rafaelfranca: yes, it is still important
[04:43:41] rafaelfranca: assets digest is not for IE, but for caching in general
[04:44:04] rafaelfranca: but webpack does have that
[04:44:18] rafaelfranca: https://webpack.github.io/docs/long-term-caching.html
[04:45:39] lessless: has joined #RubyOnRails
[04:45:53] Radar: iirc we do the hash for the entire bundle thing
[04:46:19] lessless: Hey folks! Do you know what is reason of getting <ActionDispatch::Request::Session: not yet loaded> error in before_action filter?
[04:46:32] maloik: has joined #RubyOnRails
[04:46:34] lessless: just trying to access `session`
[04:47:49] Radar: lessless: session itself or a key within session?
[04:48:00] sevenseacat: can we see the code?
[04:48:08] jto: has joined #RubyOnRails
[04:48:51] iateadonut1: has joined #RubyOnRails
[04:49:29] Cache_Money: sevenseacat: I took you advice from last night and was able to figure out how to save nested attributes. But now I need a little help figuring out how to save the `quantity` of any checked `amazon_product_id`. Can you take a look? https://gist.github.com/anonymous/b407bd30eae9f7190b74
[04:50:12] sevenseacat: you can't use a HABTM relationship if you have extra data on the join table, it simply doesnt work.
[04:50:25] Radar: Hah, got an uninitialized constant Uglifier::VERSION and found out we were running a version from 2013 still.
[04:50:51] lessless: Radar: session by itself
[04:50:59] Radar: lessless: that's normal behaviour.
[04:51:23] Cache_Money: sevenseacat: wow, okay...
[04:52:13] Cache_Money: sevenseacat: what do you think I should do then?
[04:52:30] sevenseacat: Cache_Money: if you care enough about the join between two models to assign extra data to it, it should probably be its own model.
[04:53:25] Cache_Money: sevenseacat: isn't it it's own model? `AmazonProductKit`
[04:53:45] sevenseacat: thats a table, not a model
[04:54:15] sevenseacat: there's no AmazonProductKit model in that gist
[04:54:45] Cache_Money: sorry, I forgot to include it. All it has is a belongs_to statement for Kit and AmazonProduct right now
[04:54:58] owenjones: has joined #RubyOnRails
[04:55:01] sevenseacat: and this https://gist.github.com/anonymous/b407bd30eae9f7190b74#file-kit-rb-L14 implies there is no AmazonProductKit model - if it was, it would probably be has_many :amazon_products, through: :amazon_product_kits and has_many :amazon_product_kits
[04:55:22] sevenseacat: ok, so its not getting used at all in its current state
[04:55:57] Cache_Money: sevenseacat: oh. I can change my models to use has_many through instead of has_and_belongs_to_many
[04:56:06] sevenseacat: that would be a good start
[04:56:44] sevenseacat: then you can look at modifying your form to create nested AmazonProductKit instances (with added quantity field)
[04:56:57] sevenseacat: once you've added that new field to your database
[04:57:51] Cache_Money: okay, I'll work on that. Just to be sure I already see instances of the AmazonProductKit model after I submit the Kit form
[04:58:13] claytonzaugg: has joined #RubyOnRails
[04:58:18] sevenseacat: right, because you're saving data to the table it reads from
[04:58:33] bronson: has joined #RubyOnRails
[04:58:42] sevenseacat: you're not using the model to save that data though
[04:58:56] sevenseacat: I'm actually surprised that works, because HABTM tables arent supposed to have a primary key
[05:02:36] codezomb: has joined #RubyOnRails
[05:05:18] Sawbones: has joined #RubyOnRails
[05:07:01] sevenseacat: I have an awesome set of tests for a pundit policy, that alternate between two and seven failures every time i run them
[05:07:04] sevenseacat: this will be fun!
[05:13:43] joshkovach: has joined #RubyOnRails
[05:20:14] juddey: has joined #RubyOnRails
[05:20:20] jessemcgilallen: has joined #RubyOnRails
[05:22:49] maloik: has joined #RubyOnRails
[05:23:09] rgrmatt: has joined #RubyOnRails
[05:23:15] Cervajz: has joined #RubyOnRails
[05:24:32] Cervajz_: has joined #RubyOnRails
[05:26:12] Cache_Money: sevenseacat: I moved my models to use has_many through but I'm not really sure what I need to do in my _form to get it to save the nested AmazonProductKits https://gist.github.com/anonymous/53ba06f94b8456e5b159
[05:26:29] hahuang61: has joined #RubyOnRails
[05:31:24] quazimodo: has joined #RubyOnRails
[05:31:35] pwnd_nsfw: has joined #RubyOnRails
[05:32:03] quazimodo: are gemsets an rvm thing?
[05:32:22] quazimodo: i've never ran into an issue that would lead me to using them, I stuck with the Gemfile
[05:32:29] annlewis: has joined #RubyOnRails
[05:34:14] lacuna: has joined #RubyOnRails
[05:34:53] SteenJobs: has joined #RubyOnRails
[05:36:00] krz: has joined #RubyOnRails
[05:36:35] RWBY: has joined #RubyOnRails
[05:40:56] TheNet: quazimodo: gemsets are not replacements for Gemfile
[05:41:20] alias-ls-to-rm: has joined #RubyOnRails
[05:41:22] baweaver: has joined #RubyOnRails
[05:41:22] `based_pdev`: has joined #RubyOnRails
[05:41:46] amortimer1: has joined #RubyOnRails
[05:42:03] selfagency: has joined #RubyOnRails
[05:45:22] CarlosYoo: has joined #RubyOnRails
[05:45:46] selfagency: has joined #RubyOnRails
[05:46:26] rvanlieshout: has joined #RubyOnRails
[05:47:25] malbernaz: has joined #RubyOnRails
[05:50:49] yfeldblum: has joined #RubyOnRails
[05:51:29] yfeldblum: has joined #RubyOnRails
[05:53:41] tildes: has joined #RubyOnRails
[05:53:43] lilsheep: has joined #RubyOnRails
[05:55:41] naftilos76: has joined #RubyOnRails
[05:57:26] TheNet: has joined #RubyOnRails
[05:59:03] Oog: has joined #RubyOnRails
[05:59:14] corioliss: has joined #RubyOnRails
[06:01:15] startupality: has joined #RubyOnRails
[06:02:24] elton_: has joined #RubyOnRails
[06:04:53] elton: has joined #RubyOnRails
[06:06:10] startupality: has joined #RubyOnRails
[06:07:03] pyemkey: has joined #RubyOnRails
[06:09:55] startupality: if it want to sing in from a different subdomain as a devise user, is it not enough to send a post request to "users/sign_in" like http://pastie.org/private/4jjeqoir9ig5tobcikkya ? there seem to be some issues, setting :cookie_store, domain: :all, tld_length: 2 didnt help either.
[06:14:01] maloik: has joined #RubyOnRails
[06:15:05] rvanlieshout: startupality: show the log for that post request
[06:17:52] viner: has joined #RubyOnRails
[06:19:50] based_pdev_: has joined #RubyOnRails
[06:20:04] rromanchuk: has joined #RubyOnRails
[06:20:23] rromanch_: has joined #RubyOnRails
[06:20:28] yatish27: has joined #RubyOnRails
[06:21:23] startupality: has joined #RubyOnRails
[06:21:40] startupality: http://pastie.org/private/avafsu1cx87yj7q11w3xa
[06:22:40] IrishGringo: has joined #RubyOnRails
[06:23:17] Geffy: has joined #RubyOnRails
[06:23:45] SteenJobs: has joined #RubyOnRails
[06:23:59] user1138: has joined #RubyOnRails
[06:24:39] snrobot: has joined #RubyOnRails
[06:25:13] agit0: has joined #RubyOnRails
[06:26:17] tibra: has joined #RubyOnRails
[06:27:20] tibra_: has joined #RubyOnRails
[06:27:50] rvanlieshout: ok. so no CSRF token warning there. Does the browser set a cookie?
[06:33:23] annlewis: has joined #RubyOnRails
[06:36:02] juddey: has joined #RubyOnRails
[06:36:18] user1138: has joined #RubyOnRails
[06:38:17] bronson: has joined #RubyOnRails
[06:40:39] zpe: has joined #RubyOnRails
[06:40:43] cgfbee: has joined #RubyOnRails
[06:41:41] startupality: has joined #RubyOnRails
[06:41:59] RegulationD: has joined #RubyOnRails
[06:43:15] elton_: has joined #RubyOnRails
[06:44:57] trautwein: has joined #RubyOnRails
[06:45:54] elton: has joined #RubyOnRails
[06:46:24] ibouvousaime: has joined #RubyOnRails
[06:48:27] robbyoconnor: has joined #RubyOnRails
[06:48:50] elton_: has joined #RubyOnRails
[06:49:55] pwnd_nsfw: has joined #RubyOnRails
[06:50:30] MaDErroR123: has joined #RubyOnRails
[06:50:52] RickJamesTheThir: has joined #RubyOnRails
[06:51:08] RickJamesTheThir: Hi guys and gals
[06:51:29] elton: has joined #RubyOnRails
[06:52:14] iateadonut: has joined #RubyOnRails
[06:57:20] netzfisch: has joined #RubyOnRails
[06:59:31] pramodas23: has joined #RubyOnRails
[07:00:49] Pazician: has joined #RubyOnRails
[07:03:43] kmckelvin: has joined #RubyOnRails
[07:05:49] user1138: has joined #RubyOnRails
[07:06:03] yatish27: has joined #RubyOnRails
[07:07:16] nocontrol: has joined #RubyOnRails
[07:09:25] Cervajz: has joined #RubyOnRails
[07:12:38] xardion: has joined #RubyOnRails
[07:12:40] sandstrom: has joined #RubyOnRails
[07:12:53] startupality: has joined #RubyOnRails
[07:14:15] pwnd_nsfw: has joined #RubyOnRails
[07:14:25] nocontrol: has joined #RubyOnRails
[07:17:01] juddey: has joined #RubyOnRails
[07:19:21] Coldblackice: has joined #RubyOnRails
[07:20:07] alex88: has joined #RubyOnRails
[07:21:28] Oog: has joined #RubyOnRails
[07:22:19] SalexW: has joined #RubyOnRails
[07:23:38] solars: has joined #RubyOnRails
[07:24:36] multiscan: has joined #RubyOnRails
[07:24:58] solars: has joined #RubyOnRails
[07:28:12] elton: has joined #RubyOnRails
[07:28:40] IrishGringo: has joined #RubyOnRails
[07:30:40] malbernaz: has joined #RubyOnRails
[07:30:55] DoubleMalt: has joined #RubyOnRails
[07:33:27] sevenseacat: has joined #RubyOnRails
[07:33:44] drbayer: has joined #RubyOnRails
[07:33:53] CarlosYoo: has joined #RubyOnRails
[07:34:05] neanderslob_: has joined #RubyOnRails
[07:34:09] annlewis: has joined #RubyOnRails
[07:34:43] neanderslob: has joined #RubyOnRails
[07:36:55] jas02: has joined #RubyOnRails
[07:39:41] Pazician: has joined #RubyOnRails
[07:40:32] maloik: has joined #RubyOnRails
[07:44:29] MaDErroR123: has joined #RubyOnRails
[07:44:46] WizJin: has joined #RubyOnRails
[07:45:04] shanemcd: has joined #RubyOnRails
[07:49:13] lilsheep: Bootstrap isn't being included. Neithre are any other css (or JS) files
[07:49:28] troys: has joined #RubyOnRails
[07:49:36] srinidhi: has joined #RubyOnRails
[07:49:50] lilsheep: I still have the default
[07:49:59] Sawbones: has joined #RubyOnRails
[07:50:06] Oog: has joined #RubyOnRails
[07:50:14] lilsheep: https://github.com/hassanshaikley/Amarras-Portfolio
[07:50:47] RickJamesTheThir: has joined #RubyOnRails
[07:53:04] Denarii: has joined #RubyOnRails
[07:54:46] sevenseacat: pg_search can't be used for filtering by attributes, only by full text searching, can it
[07:56:13] darutoko: has joined #RubyOnRails
[07:57:05] teamcoltra: Hey everyone... my IDs were too large and I was getting this error "ActiveRecord::Type::Integer with limit 4" so I decided to use this to integrate bigint with my pks https://github.com/caboteria/rails-bigint-pk ... it worked great to update my database and it says that it should update my limit but I am still getting the activerecord error. Is there somehwere I can look to see if this value has changed and potentially fix it myself?
[07:57:39] rodfersou: has joined #RubyOnRails
[08:00:34] sevenseacat: grumble mcgrumblepants
[08:01:00] maloik: has joined #RubyOnRails
[08:05:31] Cervajz_: has joined #RubyOnRails
[08:05:46] tagrudev: has joined #RubyOnRails
[08:07:15] maloik: has joined #RubyOnRails
[08:07:34] pyemkey: has joined #RubyOnRails
[08:10:04] JulienITARD: has joined #RubyOnRails
[08:10:38] Wingar: has joined #RubyOnRails
[08:12:25] maloik_: has joined #RubyOnRails
[08:12:36] ql6wlld: has joined #RubyOnRails
[08:12:42] brunto: has joined #RubyOnRails
[08:13:27] melonstorm: has joined #RubyOnRails
[08:15:39] juddey: has joined #RubyOnRails
[08:16:20] pyemkey_: has joined #RubyOnRails
[08:17:09] comrad: has joined #RubyOnRails
[08:17:28] krz: has joined #RubyOnRails
[08:19:28] SolarSailor: has joined #RubyOnRails
[08:22:54] paulodiniz: has joined #RubyOnRails
[08:24:29] user1138: has joined #RubyOnRails
[08:25:18] quazimodo: has joined #RubyOnRails
[08:27:13] AliasLStoRM: has joined #RubyOnRails
[08:27:33] pyemkey: has joined #RubyOnRails
[08:28:39] elton: has joined #RubyOnRails
[08:30:31] ethe: has joined #RubyOnRails
[08:30:54] paulodiniz: has joined #RubyOnRails
[08:31:27] krz: has joined #RubyOnRails
[08:31:39] ibouvousaime: has joined #RubyOnRails
[08:33:08] ethe: has joined #RubyOnRails
[08:34:45] annlewis: has joined #RubyOnRails
[08:35:42] ethe: has joined #RubyOnRails
[08:37:20] Pumukel: has joined #RubyOnRails
[08:37:50] roshanavand: has joined #RubyOnRails
[08:39:20] ethe: has joined #RubyOnRails
[08:40:05] user1138: has joined #RubyOnRails
[08:41:42] roshanavand: has joined #RubyOnRails
[08:42:21] ethe: has joined #RubyOnRails
[08:42:45] RegulationD: has joined #RubyOnRails
[08:43:40] kmckelvin: has joined #RubyOnRails
[08:45:42] sandstrom: has joined #RubyOnRails
[08:48:16] nettoweb: has joined #RubyOnRails
[08:52:01] shibabu: has joined #RubyOnRails
[08:54:52] user1138: has joined #RubyOnRails
[08:57:14] user1138: has joined #RubyOnRails
[08:58:15] AzaToth: has joined #RubyOnRails
[08:58:40] user1138: has joined #RubyOnRails
[08:59:16] user1138: has joined #RubyOnRails
[09:02:55] nya: has joined #RubyOnRails
[09:03:44] artto: has joined #RubyOnRails
[09:03:49] lxsameer: has joined #RubyOnRails
[09:03:50] lxsameer: has joined #RubyOnRails
[09:06:49] jsrn_: has joined #RubyOnRails
[09:07:02] baweaver: has joined #RubyOnRails
[09:07:47] snowy: has joined #RubyOnRails
[09:11:43] gaussblurinc1: has joined #RubyOnRails
[09:15:03] dideler: has joined #RubyOnRails
[09:16:20] fox_mulder_cp: has joined #RubyOnRails
[09:19:01] marr: has joined #RubyOnRails
[09:24:44] based_pdev: has joined #RubyOnRails
[09:25:10] pwnd_nsfw: has joined #RubyOnRails
[09:28:17] nettoweb: has joined #RubyOnRails
[09:29:24] elton: has joined #RubyOnRails
[09:33:03] lemur: has joined #RubyOnRails
[09:33:17] multiscan: has joined #RubyOnRails
[09:33:18] MaDErroR123: has joined #RubyOnRails
[09:35:11] wldcordeiro: has joined #RubyOnRails
[09:35:34] likai_: has joined #RubyOnRails
[09:35:39] annlewis: has joined #RubyOnRails
[09:42:50] corioliss: has joined #RubyOnRails
[09:42:57] mikecmpbll: has joined #RubyOnRails
[09:43:41] mikecmpbll: anyone know which capistrano tasks run as part of the web role?
[09:44:02] mikecmpbll: trying to configure things so that I can just do a application code deploy to a separate server that doesn't serve the app on the web
[09:45:11] blackhuey: has joined #RubyOnRails
[09:45:34] towski_: has joined #RubyOnRails
[09:46:18] MissionCritical: has joined #RubyOnRails
[09:47:33] sonOfRa: has joined #RubyOnRails
[09:48:31] pyemkey_: has joined #RubyOnRails
[09:49:43] elton: has joined #RubyOnRails
[09:52:55] pyemkey: has joined #RubyOnRails
[09:53:15] workmad3: has joined #RubyOnRails
[09:53:24] annlewis: has joined #RubyOnRails
[09:58:08] cornerman: has joined #RubyOnRails
[09:58:28] tvw: has joined #RubyOnRails
[09:58:41] lilsheep: changes to application.css aren't displaying
[09:58:53] lilsheep: I have tried compiling
[09:59:01] lilsheep: The asset pipeline is enabled
[09:59:05] pyemkey: has joined #RubyOnRails
[09:59:17] lilsheep: well precompiling fails
[09:59:31] sevenseacat: lilsheep: !debug
[09:59:31] helpa: lilsheep: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[10:00:09] AntiSpamMeta: has joined #RubyOnRails
[10:00:49] johnflux: has joined #RubyOnRails
[10:00:50] johnflux: has joined #RubyOnRails
[10:04:36] pyemkey: has joined #RubyOnRails
[10:06:21] alex88: has joined #RubyOnRails
[10:12:14] edwinvdgraaf: has joined #RubyOnRails
[10:13:14] zpe: has joined #RubyOnRails
[10:14:10] paulodiniz: has joined #RubyOnRails
[10:15:50] lessless: has joined #RubyOnRails
[10:16:52] hectortrope: has joined #RubyOnRails
[10:17:49] chridal: has joined #RubyOnRails
[10:19:50] ql6wlld: has joined #RubyOnRails
[10:22:27] nfk|laptop: has joined #RubyOnRails
[10:23:48] elton: has joined #RubyOnRails
[10:25:23] kitsuneyo: has joined #RubyOnRails
[10:33:55] roxtrongo: has joined #RubyOnRails
[10:34:22] chridal: What can I use instead of puma etc. to not have to setup nginx or the alikes as a reverse proxy?
[10:34:34] chridal: It's an API and I need TLS.
[10:34:46] alphaatom: has joined #RubyOnRails
[10:35:01] ewnd9: has joined #RubyOnRails
[10:35:06] fox_mulder_cp: chridal: why u can't set up nginx?
[10:35:26] chridal: It's all dockerized and the complexity is exploding
[10:35:27] fox_mulder_cp: it's quick and easy
[10:36:08] fox_mulder_cp: chridal: i have a nginx + docker on hardnode + tonn of sites/apps in containers
[10:36:25] nertzy: has joined #RubyOnRails
[10:36:28] chridal: not saying it can't be done. I'd just rather not have all that complexity
[10:36:41] fox_mulder_cp: i have a cheat for it - all containers have a name + ip in local gray zone docker.loc
[10:37:21] fox_mulder_cp: after container start my script update dns zone on powerdns via its api and reloads nginx
[10:37:38] chridal: Sounds like a lot of complexity. :-)
[10:38:06] fox_mulder_cp: chridal: now i have a lot of scripts for a shared hosting isolated by docker :)
[10:38:08] chridal: It's just that I have a separate VM serving the frontend for this backend as well. Which itself in turn has its own Docker-setup
[10:38:35] fox_mulder_cp: chridal: if you want - can share my scripts
[10:38:39] Peg-leg: has joined #RubyOnRails
[10:38:51] chridal: Thank you for offering, but I don't want to start messing around with DNS etc.
[10:39:01] fox_mulder_cp: now i relearn rails to write a webintefrace to control this sharedhosting stuff
[10:39:09] kitsuneyo: has joined #RubyOnRails
[10:39:38] fox_mulder_cp: i have a one big trouble - docker + static ip's for a container
[10:39:41] chridal: I need something dead simple, but it seems that I won't be getting it.
[10:40:34] fox_mulder_cp: if docker gets this feature - dns + my scripts cheats may be forget as brood hacks
[10:41:24] chridal: maybe there is a way of sharing the puma socket between two containers with a volume
[10:41:43] fox_mulder_cp: now i must reload nginx or buy it pro version with online dns reloading function
[10:42:09] nya: has joined #RubyOnRails
[10:42:15] Ray`: has joined #RubyOnRails
[10:42:37] Cervajz: has joined #RubyOnRails
[10:43:29] RegulationD: has joined #RubyOnRails
[10:45:49] atomical: has joined #RubyOnRails
[10:49:59] squiercaster: has joined #RubyOnRails
[10:52:26] shibabu: has joined #RubyOnRails
[10:52:31] shauna: has joined #RubyOnRails
[10:54:18] annlewis: has joined #RubyOnRails
[10:56:58] ldnunes: has joined #RubyOnRails
[10:57:39] rubyonrails436: has joined #RubyOnRails
[10:58:47] wpp: has joined #RubyOnRails
[11:03:08] Cervajz_: has joined #RubyOnRails
[11:03:15] cac: has joined #RubyOnRails
[11:04:59] stannard: has joined #RubyOnRails
[11:07:43] Denarii: has joined #RubyOnRails
[11:07:53] DoubleMalt: has joined #RubyOnRails
[11:09:08] cjk101010: has joined #RubyOnRails
[11:09:32] Grundell: has joined #RubyOnRails
[11:10:13] wpp: Hello everyone and happy friday. I'm setting up a rails enviornment for staging and ran into the following issue. I bundle installed --without test and set the RAILS_ENV variable to 'staging'. However when I try and invoke the rails console I get "missing" gem minitest.
[11:10:16] wpp: minitest is listed in the test: group in my Gemfile.
[11:10:40] wpp: Is it required for other enviornments as well?
[11:11:49] mxrguspxrt: has joined #RubyOnRails
[11:12:08] digneety: has joined #RubyOnRails
[11:15:44] Psy-Q: has joined #RubyOnRails
[11:16:35] allcentury: has joined #RubyOnRails
[11:16:41] Psy-Q: has left #RubyOnRails: ("Leaving")
[11:17:00] annlewis: has joined #RubyOnRails
[11:19:37] bronson: has joined #RubyOnRails
[11:20:28] goodcodeguy: has joined #RubyOnRails
[11:21:21] eduardodeoh: has joined #RubyOnRails
[11:21:50] shamanime: has joined #RubyOnRails
[11:22:53] akshat: has joined #RubyOnRails
[11:23:12] allcentury: has joined #RubyOnRails
[11:23:28] atomical: has joined #RubyOnRails
[11:23:31] baweaver: has joined #RubyOnRails
[11:27:04] quazimodo: has joined #RubyOnRails
[11:28:46] sandstrom: has joined #RubyOnRails
[11:30:28] mikecmpbll: has joined #RubyOnRails
[11:31:23] elton: has joined #RubyOnRails
[11:31:49] snrobot: has joined #RubyOnRails
[11:32:48] pvertenten: has joined #RubyOnRails
[11:33:04] nya: has joined #RubyOnRails
[11:35:51] dionysus69: has joined #RubyOnRails
[11:38:26] baweaver: has joined #RubyOnRails
[11:41:22] sevenseacat: has joined #RubyOnRails
[11:42:26] arup_r: has joined #RubyOnRails
[11:42:41] Cervajz: has joined #RubyOnRails
[11:44:12] moei: has joined #RubyOnRails
[11:46:46] pyemkey: has joined #RubyOnRails
[11:50:01] Cervajz: has joined #RubyOnRails
[11:50:47] Cervajz_: has joined #RubyOnRails
[11:55:30] flashpoint9: has joined #RubyOnRails
[11:56:54] Grundell: has joined #RubyOnRails
[11:59:59] aaronr: has joined #RubyOnRails
[12:00:10] sdwrage: has joined #RubyOnRails
[12:00:22] nonmadden: has joined #RubyOnRails
[12:01:26] Grundell: has joined #RubyOnRails
[12:02:04] Cervajz: has joined #RubyOnRails
[12:02:34] kmckelvin: has joined #RubyOnRails
[12:03:05] User458764: has joined #RubyOnRails
[12:03:05] kmckelvin: has joined #RubyOnRails
[12:04:19] pvertenten: has joined #RubyOnRails
[12:04:43] MaDErroR123: has joined #RubyOnRails
[12:05:51] gaussblurinc1: has joined #RubyOnRails
[12:05:58] multiscan: has joined #RubyOnRails
[12:07:26] alex88: has joined #RubyOnRails
[12:08:15] upgrayeddd: has joined #RubyOnRails
[12:08:33] ibouvousaime: has joined #RubyOnRails
[12:08:34] johnflux: has joined #RubyOnRails
[12:08:35] johnflux: has joined #RubyOnRails
[12:08:48] gaussblurinc1: has joined #RubyOnRails
[12:13:43] pyemkey: has joined #RubyOnRails
[12:13:58] multiscan: has joined #RubyOnRails
[12:14:03] gaussblurinc1: has joined #RubyOnRails
[12:15:04] pulgalipe: has joined #RubyOnRails
[12:17:54] annlewis: has joined #RubyOnRails
[12:20:46] bronson: has joined #RubyOnRails
[12:21:18] robert45: has joined #RubyOnRails
[12:23:21] workmad3: has joined #RubyOnRails
[12:23:44] gaussblurinc1: has joined #RubyOnRails
[12:24:01] gaussblurinc1: has joined #RubyOnRails
[12:24:21] dionysus69: has joined #RubyOnRails
[12:26:50] ibouvousaime: has joined #RubyOnRails
[12:28:36] rgrmatt: has joined #RubyOnRails
[12:29:00] pragmatism: has joined #RubyOnRails
[12:29:56] Grundell: has joined #RubyOnRails
[12:30:30] sandstrom: has joined #RubyOnRails
[12:31:46] User458764: has joined #RubyOnRails
[12:32:26] pulgalipe: has joined #RubyOnRails
[12:32:37] lacuna: has joined #RubyOnRails
[12:33:49] elton: has joined #RubyOnRails
[12:35:13] cac: has joined #RubyOnRails
[12:36:15] cac: is yhere a way to save an image using capybara with poltergeist
[12:36:35] cac: i can save it as html or screenshot
[12:36:38] arup_r: I am creating checkboxes using form_for helper check_box method. But it is not creating the hidden fields for each check box, which is causing problem. If there is no hidden field for check box rails don't send the uncheck value we all know. Why though the hidden fields are not rendering any idea? https://gist.github.com/aruprakshit/922f8fac51177b1287d5
[12:36:43] Guest11: has joined #RubyOnRails
[12:36:54] cac: but i cant find a way to save image file
[12:37:07] arup_r: cac: http://www.rubydoc.info/github/jnicklas/capybara/Capybara%2FSession%3Asave_and_open_page ?
[12:37:52] arup_r: if you want to save image from a url it is possible to.
[12:37:57] cac: arup_r i try this but its saving as html file
[12:38:06] tknz: has joined #RubyOnRails
[12:38:09] arup_r: yes, not the method I linked..
[12:38:16] arup_r: something else..
[12:38:34] arup_r: cac: I answered before your 3rd line :D
[12:38:39] arup_r: that is the problem
[12:39:05] cac: on docs there is no save image method :))
[12:39:37] rodfersou: has joined #RubyOnRails
[12:39:53] cac: or something similar to save image
[12:40:04] arup_r: cac: use vanilla Ruby http://stackoverflow.com/questions/2515931/how-can-i-download-a-file-from-a-url-and-save-it-in-rails
[12:40:17] badoo: has joined #RubyOnRails
[12:40:54] cac: lookimg thanks
[12:41:45] bodie_: has joined #RubyOnRails
[12:42:46] Guest11: has joined #RubyOnRails
[12:44:32] User458764: has joined #RubyOnRails
[12:44:53] cac: checked the link you gave arup_r but
[12:45:06] cac: for images what i want to get there is curl protection
[12:45:23] cac: and i cant get using http request
[12:45:24] sdwrage: has joined #RubyOnRails
[12:45:37] cac: i need a headless browser to get the images
[12:46:11] cac: and i dont understand what do u mean with "use vanilla ruby"
[12:47:12] arup_r: idk then.. wait for other answers
[12:48:51] gaussblurinc1: has joined #RubyOnRails
[12:49:15] Cervajz: has joined #RubyOnRails
[12:50:18] User458764: has joined #RubyOnRails
[12:50:54] Cervajz_: has joined #RubyOnRails
[12:51:22] badoo: hi everyone, I'm using devise and I want to do some javascript when a user signs up for the first time, how should I do that ?
[12:51:40] nickenchuggets: has joined #RubyOnRails
[12:51:40] nickenchuggets: has joined #RubyOnRails
[12:52:18] badoo: when a user signs in*
[12:53:37] gaussblurinc1: has joined #RubyOnRails
[12:54:09] adac: has joined #RubyOnRails
[12:54:58] shibabu: has joined #RubyOnRails
[12:55:31] adac: has joined #RubyOnRails
[12:56:34] adac: has joined #RubyOnRails
[12:57:10] adac: With I18n.locale I get back :en. Wondering on how to get back all supported locales?
[12:57:18] adac: mean all locales enabled
[12:57:24] symbol: has joined #RubyOnRails
[12:57:30] Cervajz: has joined #RubyOnRails
[12:57:43] annlewis: has joined #RubyOnRails
[12:57:45] lacrymology: has joined #RubyOnRails
[12:58:54] gaussblurinc1: has joined #RubyOnRails
[12:59:05] adac: I18n.available_locales
[13:02:49] cajone: has joined #RubyOnRails
[13:03:09] simplyianm: has joined #RubyOnRails
[13:04:25] qejk: has joined #RubyOnRails
[13:04:52] gaussblurinc1: has joined #RubyOnRails
[13:06:21] gaussblurinc1: has joined #RubyOnRails
[13:07:09] jkamenik: has joined #RubyOnRails
[13:07:29] gaussblurinc1: has joined #RubyOnRails
[13:07:41] cac: has joined #RubyOnRails
[13:10:05] mikecmpbll: has joined #RubyOnRails
[13:10:30] gaussblurinc1: has joined #RubyOnRails
[13:10:54] arup_r: ok. `<%= f.check_box :elem , {}, "yes", "no" %>` or `<%= f.check_box :elem , {}, "yes" %>` creates hidden field but `<%= f.check_box :elem , {}, "true", "false" %>` don't. Why so ? Any reason is there ?
[13:11:31] Pazician: has joined #RubyOnRails
[13:13:09] rvanlieshout: i would think because false is interpreted als false
[13:13:45] arup_r: what do you mean by that ? :) Sorry I became a dumb again.. with this behaviour
[13:14:30] rvanlieshout: unchecked_value is false
[13:14:36] gaussblurinc1: has joined #RubyOnRails
[13:15:04] arup_r: check boxes only understand 1/0 and "yes"/"no" ?
[13:15:43] cac: has joined #RubyOnRails
[13:16:29] cac: http://www.stackoverflow.com/questions/34089031
[13:19:28] badoo: has joined #RubyOnRails
[13:20:52] arup_r: rvanlieshout: got you.. thanks
[13:22:09] SalexW: has joined #RubyOnRails
[13:22:41] Grundell: has joined #RubyOnRails
[13:24:33] cac: has joined #RubyOnRails
[13:24:50] Ropeney: has joined #RubyOnRails
[13:26:39] zpe: has joined #RubyOnRails
[13:27:47] adac: with "request.url" I get the current URL. is it somehow possible to get the current URL but with a different locale?
[13:28:11] d0nn1e: has joined #RubyOnRails
[13:29:05] nikky3: has joined #RubyOnRails
[13:30:10] rubyonrails372: has joined #RubyOnRails
[13:32:11] snrobot: has joined #RubyOnRails
[13:32:29] ornerymoose: has joined #RubyOnRails
[13:32:48] Pupeno: has joined #RubyOnRails
[13:32:48] Pupeno: has joined #RubyOnRails
[13:33:08] pyemkey_: has joined #RubyOnRails
[13:33:38] jgt: has joined #RubyOnRails
[13:33:38] gaussblurinc1: has joined #RubyOnRails
[13:33:44] rvanlieshout: adac: url_for(locale: :en)
[13:34:10] adac: rvanlieshout, awesome thanks!!
[13:34:31] lemur: has joined #RubyOnRails
[13:37:35] gaussblurinc1: has joined #RubyOnRails
[13:39:27] gaussblurinc1: has joined #RubyOnRails
[13:40:21] gaussblurinc1: has joined #RubyOnRails
[13:40:25] yuujinlee: has joined #RubyOnRails
[13:41:45] lacrymology: has joined #RubyOnRails
[13:42:06] lacrymology: has joined #RubyOnRails
[13:45:13] FooMunki: has joined #RubyOnRails
[13:46:25] gaussblurinc1: has joined #RubyOnRails
[13:49:07] goodcodeguy: has joined #RubyOnRails
[13:49:26] gaussblurinc1: has joined #RubyOnRails
[13:50:43] drbayer: has joined #RubyOnRails
[13:52:05] tvw: has joined #RubyOnRails
[13:52:22] gaussblurinc1: has joined #RubyOnRails
[13:54:18] allcentury: has joined #RubyOnRails
[13:55:54] arBmind: has joined #RubyOnRails
[13:57:30] TDJACR: has joined #RubyOnRails
[13:58:09] gaussblurinc1: has joined #RubyOnRails
[13:58:11] lacrymology: how can I check if a param is present?
[13:58:29] sdwrage: has joined #RubyOnRails
[13:58:54] lacrymology: I'm trying params[:foo].present? fails if foo=false,
[13:59:06] lacrymology: params is not a hash, so it has no #has_key
[13:59:20] gaussblurinc1: has joined #RubyOnRails
[14:01:00] rvanlieshout: params[:foo].nil?
[14:01:05] rvanlieshout: false.present? -> false
[14:01:10] kitsuneyo: has joined #RubyOnRails
[14:01:21] rvanlieshout: "".present? => false
[14:01:32] kitsuneyo: this line doesn't work in my controller: flash[:success] = "Record saved."
[14:01:45] gaussblurinc1: has joined #RubyOnRails
[14:01:58] rvanlieshout: kitsuneyo: !didntwork
[14:01:58] helpa: kitsuneyo: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[14:02:48] lacrymology: rvanlieshout: yeah .nil? seems to be the thing
[14:02:48] kitsuneyo: the flash message doesn't show
[14:03:21] rvanlieshout: kitsuneyo: why should it?
[14:03:40] kitsuneyo: rvanlieshout i decree it
[14:04:05] rvanlieshout: and where in the view do you render it?
[14:04:29] rvanlieshout: http://guides.rubyonrails.org/action_controller_overview.html#the-flash
[14:04:36] rvanlieshout: also, is there a :success?
[14:04:36] kitsuneyo: rvanlieshout i had it in the wrong place in my controller
[14:05:12] rgrmatt: has joined #RubyOnRails
[14:05:33] akshat: has joined #RubyOnRails
[14:05:53] kitsuneyo: thanks anyway
[14:08:41] kitsuneyo: should //= require_tree . always go at the bottom?
[14:08:47] arup_r: has joined #RubyOnRails
[14:09:54] kitsuneyo: ...of application.js?
[14:11:04] rvanlieshout: wherever you want to require that tree
[14:11:11] silverdust: has joined #RubyOnRails
[14:12:00] Pupeno: has joined #RubyOnRails
[14:12:26] kitsuneyo: i guess i don't understand that line then
[14:12:40] kitsuneyo: i thought it was just requiring the general rails tree
[14:12:48] Cervajz_: has joined #RubyOnRails
[14:14:27] rvanlieshout: there is no general rails tree
[14:14:40] rvanlieshout: it requires the other files in your javascripts folder
[14:15:04] pyemkey: has joined #RubyOnRails
[14:16:11] sankaber: has joined #RubyOnRails
[14:17:13] multiscan: has joined #RubyOnRails
[14:20:14] paulodiniz: has joined #RubyOnRails
[14:20:48] lacuna: has joined #RubyOnRails
[14:20:48] lacuna: has joined #RubyOnRails
[14:20:50] kitsuneyo: i was using selectize-rails in a test app and it worked fine. i now transferred pretty much the same code to another app, and my selectize field is just showing as a plain text field. here is a gist: https://gist.github.com/kitsuneyo/9d99f8718517f3dcb67c
[14:21:01] kitsuneyo: i *think* i have selectize-rails installed properly
[14:21:14] Pupeno: has joined #RubyOnRails
[14:22:35] kitsuneyo: anyone see what's wrong here?
[14:22:52] nettoweb: has joined #RubyOnRails
[14:24:11] rvanlieshout: is there something on the js console?
[14:24:32] gaussblurinc1: has joined #RubyOnRails
[14:24:37] sankaber: has joined #RubyOnRails
[14:24:52] rvanlieshout: and are you using that content_for content in your layout?
[14:24:58] rvanlieshout: also it's better to put that in your application js
[14:25:14] kitsuneyo: yeah i have yield:head or whatever
[14:25:23] kitsuneyo: but those 3 warnings are in the working version too
[14:25:38] fox_mulder_cp: o, people, have a question - how to use rails with only backend - json api for angular?
[14:25:39] kitsuneyo: the html output has selectize classes
[14:25:40] rvanlieshout: can you verify that js code gets executed?
[14:25:43] rvanlieshout: alert or something
[14:26:05] rvanlieshout: fox_mulder_cp: for rails the only difference is that you want it to server json views, not html
[14:26:10] kitsuneyo: i'll try that rvanliehout
[14:26:19] twilling: has joined #RubyOnRails
[14:27:01] fox_mulder_cp: rvanlieshout: so, i can use default json rendering from rails without new included gems?
[14:27:27] kitsuneyo: actually, i know part of it is being executed because i can type in the box and get autocomplete suggestions. but the styling is like a text box and i can't select anything
[14:27:47] rvanlieshout: if you and your angular app are happy with how that json looks like
[14:28:02] rvanlieshout: kitsuneyo: and why would part of it be executed then?
[14:28:07] rvanlieshout: also no errors when you start typing?
[14:28:26] kitsuneyo: i think it might be the selectize css that isn't loading
[14:28:50] rvanlieshout: then you should see some changes in the dom tree
[14:28:53] fox_mulder_cp: rvanlieshout: i'm now relearn rails course on codecademy for restoring my knowledges of rails (not use it since last winter)
[14:28:54] rvanlieshout: and an ajax request
[14:29:09] fox_mulder_cp: and intrested to angular too
[14:29:47] SolarSailor: has joined #RubyOnRails
[14:29:48] drbayer: has joined #RubyOnRails
[14:29:51] kitsuneyo: yeah when i type i see AutocompletionService in the network bit
[14:29:59] kitsuneyo: it's fetching place suggestions
[14:30:05] rvanlieshout: ok so css makes sense. you've added this to the application.js
[14:30:10] rvanlieshout: did you also add something to the application.css
[14:30:48] drbayer: has joined #RubyOnRails
[14:31:00] tibra: has joined #RubyOnRails
[14:31:27] drbayer: has joined #RubyOnRails
[14:32:07] kitsuneyo: yeah i've just added my application.css.sass to the gist
[14:32:20] kitsuneyo: it's just the same as in my test app, which worked
[14:32:32] drbayer: has joined #RubyOnRails
[14:32:44] kp666: has joined #RubyOnRails
[14:33:13] drbayer: has joined #RubyOnRails
[14:33:30] kitsuneyo: ack... i had missed the "*/" off the end of the required files in application.css
[14:33:33] kitsuneyo: it's working now
[14:33:48] kitsuneyo: thanks rvanlieshout :D
[14:34:02] drbayer: has joined #RubyOnRails
[14:34:54] dionysus69: has joined #RubyOnRails
[14:35:08] elton: has joined #RubyOnRails
[14:35:26] drbayer: has joined #RubyOnRails
[14:35:52] drbayer: has joined #RubyOnRails
[14:36:58] drbayer: has joined #RubyOnRails
[14:37:23] drbayer: has joined #RubyOnRails
[14:37:38] Pupeno: has joined #RubyOnRails
[14:38:12] drbayer: has joined #RubyOnRails
[14:38:18] pvertenten: has joined #RubyOnRails
[14:39:01] drbayer: has joined #RubyOnRails
[14:39:32] adavia: has joined #RubyOnRails
[14:39:48] drbayer: has joined #RubyOnRails
[14:39:53] agit0: has joined #RubyOnRails
[14:40:36] drbayer: has joined #RubyOnRails
[14:41:55] davout: has left #RubyOnRails: ("kthxbye")
[14:44:27] Pupeno: has joined #RubyOnRails
[14:45:24] sdwrage: has joined #RubyOnRails
[14:45:33] atomical_: has joined #RubyOnRails
[14:47:06] morsik: has joined #RubyOnRails
[14:49:16] ql6wlld: has joined #RubyOnRails
[14:49:55] centrx: has joined #RubyOnRails
[14:51:35] The_Phoenix: has joined #RubyOnRails
[14:52:15] Cervajz: has joined #RubyOnRails
[14:52:52] artto_: has joined #RubyOnRails
[14:53:00] The_Phoenix: has joined #RubyOnRails
[14:53:26] ddv: why can't you call destroy_all on a scope, or is it me?
[14:53:49] rvanlieshout: why can't you?
[14:54:05] ddv: no idea i'm getting undefined method `destroy_all' for #<ActiveRecord::QueryMethods::WhereChain:0x007fa0563ed728>
[14:54:28] lacrymology: how can I get my current time zone (from system data)?
[14:54:43] ddv: or is because of squeel? I have something like scope :empty, -> { where{amount <= 0} }
[14:55:02] AliasLStoRM: has joined #RubyOnRails
[14:55:12] baweaver: has joined #RubyOnRails
[14:56:17] SolarSailor: has joined #RubyOnRails
[14:56:20] timmyBsd: has joined #RubyOnRails
[14:56:32] ddv: apparently that is not how destroy_all works :)
[14:57:41] fox_mulder_cp: my yesterday trouble with form sumbit is fixed. no tag form in tag table.
[14:57:44] thecyclone: has joined #RubyOnRails
[14:57:53] fox_mulder_cp: z move tag table info form
[14:58:35] Cervajz: has joined #RubyOnRails
[14:59:02] shibabu: has joined #RubyOnRails
[15:00:12] thecyclone: hi, can someone tell me the pros of rails vs nodejs?
[15:00:32] fox_mulder_cp: thecyclone: ruby vs javascript?
[15:00:37] snowy: inb4shitstorm
[15:00:47] thecyclone: fox_mulder_cp: yeah, kindof
[15:02:15] polishdub: has joined #RubyOnRails
[15:03:09] ashishsingh173: has joined #RubyOnRails
[15:03:48] fox_mulder_cp: rails = fully functionality framework. ready for a quick development
[15:03:51] roshanavand: has joined #RubyOnRails
[15:04:01] fox_mulder_cp: and prototyping
[15:04:47] naftilos76: has joined #RubyOnRails
[15:05:29] qnsi: has joined #RubyOnRails
[15:05:56] axl_: has joined #RubyOnRails
[15:08:52] Frem: has joined #RubyOnRails
[15:10:57] stannard: has joined #RubyOnRails
[15:12:10] lacrymology: thecyclone: you're asking to compare a framework with a language?
[15:12:26] safetypin: has joined #RubyOnRails
[15:12:42] lacrymology: like.. can someone tell me the advantages of VLC media player vs. C++?
[15:12:56] krz: has joined #RubyOnRails
[15:13:00] HalcyonicStorm: has joined #RubyOnRails
[15:13:29] rubyonrails943: has joined #RubyOnRails
[15:15:20] jottr: has joined #RubyOnRails
[15:16:28] snrobot: has joined #RubyOnRails
[15:18:42] ElFerna: has joined #RubyOnRails
[15:19:15] Rodya_: has joined #RubyOnRails
[15:19:28] nickenchuggets: has joined #RubyOnRails
[15:19:29] nickenchuggets: has joined #RubyOnRails
[15:21:36] AliasLStoRM: has joined #RubyOnRails
[15:23:03] SalexW: has joined #RubyOnRails
[15:27:44] skyjumper: has joined #RubyOnRails
[15:28:01] kies: has joined #RubyOnRails
[15:28:24] alex88: has joined #RubyOnRails
[15:28:47] honestemu: has joined #RubyOnRails
[15:28:56] shanemcd: has joined #RubyOnRails
[15:29:22] wsewolod: has joined #RubyOnRails
[15:30:55] annlewis: has joined #RubyOnRails
[15:31:59] kitsuneyo: how should i test record creation in minitest? i tried assert_difference in Record.count, and post_via_redirect(records_path(fields: stuff)) to create the record
[15:34:37] 5EXAAEQLP: has joined #RubyOnRails
[15:34:58] fryguy: kitsuneyo: what code are you trying to test? model code or controller code?
[15:35:11] fryguy: or something else
[15:35:18] lemur: has joined #RubyOnRails
[15:35:23] kitsuneyo: it's an integration test to check that admins can create records, others cannot
[15:35:34] kitsuneyo: my controller is in an admin namespace
[15:35:37] fryguy: why is it an integration test instead of a controller test?
[15:35:38] yatish27: has joined #RubyOnRails
[15:35:52] elton: has joined #RubyOnRails
[15:36:00] kitsuneyo: the msg i get back is "ActionController::ParameterMissing: param is missing or the value is empty: place"
[15:36:38] kitsuneyo: i dunno fryguy, if a controller test works i could do that
[15:36:38] 5EXAAEQLP: has left #RubyOnRails: ()
[15:36:51] fryguy: i think you'd be better suited with a controller test
[15:37:03] k1io: has joined #RubyOnRails
[15:37:09] Pupeno: has joined #RubyOnRails
[15:37:21] kitsuneyo: ok i'll try that
[15:37:23] yardenbar: has joined #RubyOnRails
[15:41:01] uri: has joined #RubyOnRails
[15:41:16] mag42c: has joined #RubyOnRails
[15:41:54] dopie: has joined #RubyOnRails
[15:42:30] bratsche: has joined #RubyOnRails
[15:42:38] Wizek: has joined #RubyOnRails
[15:42:40] kitsuneyo: that works really well, thanks fryguy
[15:43:13] kitsuneyo: i was able to just use post :create
[15:46:17] nertzy: has joined #RubyOnRails
[15:47:03] Pupeno: has joined #RubyOnRails
[15:47:33] Ergo: has joined #RubyOnRails
[15:49:52] artto: has joined #RubyOnRails
[15:51:17] Cervajz_: has joined #RubyOnRails
[15:51:49] pragmatism: has joined #RubyOnRails
[15:54:00] waseem_: has joined #RubyOnRails
[15:54:19] xcesariox: has joined #RubyOnRails
[15:55:29] moeabdol: has joined #RubyOnRails
[15:55:33] Pupeno: has joined #RubyOnRails
[15:56:02] tibra: has joined #RubyOnRails
[15:57:24] lapide_viridi: has joined #RubyOnRails
[15:58:22] Denarii: has joined #RubyOnRails
[15:59:06] jessemcgilallen: has joined #RubyOnRails
[15:59:38] AliasLStoRM: has joined #RubyOnRails
[16:00:51] _HombreTepic: has joined #RubyOnRails
[16:01:17] jscheel: has joined #RubyOnRails
[16:01:22] baweaver: has joined #RubyOnRails
[16:04:31] Pupeno: has joined #RubyOnRails
[16:06:41] ethe: has joined #RubyOnRails
[16:07:33] corioliss: has joined #RubyOnRails
[16:08:53] RegulationD: has joined #RubyOnRails
[16:08:55] lacuna: has joined #RubyOnRails
[16:08:56] lacuna: has joined #RubyOnRails
[16:09:24] rakm: has joined #RubyOnRails
[16:10:11] claytonzaugg: has joined #RubyOnRails
[16:11:57] mary5030: has joined #RubyOnRails
[16:12:03] bronson: has joined #RubyOnRails
[16:13:05] roshanavand: has joined #RubyOnRails
[16:13:35] arup_r: has joined #RubyOnRails
[16:13:44] Pupeno: has joined #RubyOnRails
[16:16:32] mag42c: has joined #RubyOnRails
[16:18:37] rubyonrailed: has joined #RubyOnRails
[16:18:37] Cache_Money: has joined #RubyOnRails
[16:20:04] Cohedrin: has joined #RubyOnRails
[16:21:01] unreal: has joined #RubyOnRails
[16:21:21] kies: has joined #RubyOnRails
[16:21:28] drbayer: has joined #RubyOnRails
[16:22:49] Pupeno: has joined #RubyOnRails
[16:25:15] drbayer: has joined #RubyOnRails
[16:25:47] lord4163: has joined #RubyOnRails
[16:25:49] shibabu: has joined #RubyOnRails
[16:27:14] drbayer: has joined #RubyOnRails
[16:28:40] baweaver: has joined #RubyOnRails
[16:29:10] ereslibre: has joined #RubyOnRails
[16:29:11] ereslibre: has joined #RubyOnRails
[16:30:09] elton: has joined #RubyOnRails
[16:32:37] Lectus: has joined #RubyOnRails
[16:33:29] annlewis: has joined #RubyOnRails
[16:33:41] douglas: has joined #RubyOnRails
[16:34:11] jondot: has joined #RubyOnRails
[16:35:00] Cervajz: has joined #RubyOnRails
[16:36:11] wildlander: has joined #RubyOnRails
[16:36:29] based_pdev_: has joined #RubyOnRails
[16:36:58] hello9: has joined #RubyOnRails
[16:37:29] Lectus: Hello! I need help with this piece of code: http://paste.ofcode.org/XBLqpSGFfihYsdfjtwVqup I'm trying to produce radio buttons with simple_form, but with this code when I check one radio button it automatically gets treated as if all radio buttons were inside the same group. I need individual groups of yes/no for each line. Any idea?
[16:37:54] hello9: Is rails the .uniq method will consider ID (i.e everything can be the same by ID), is there a way to skip ID uniq, so such a case would fail uniqueness?
[16:38:56] [Butch]: has joined #RubyOnRails
[16:40:05] elton: has joined #RubyOnRails
[16:40:13] hello9: sorry i meant Is rails the .uniq method will consider ID (i.e everything can be the same BUT ID), is there a way to skip ID uniq, so such a case would fail uniqueness?
[16:40:37] disgrntld: has joined #RubyOnRails
[16:40:58] hobodave: has joined #RubyOnRails
[16:42:36] safety_cut: has joined #RubyOnRails
[16:42:55] centrx: hello9, In an ActiveRecord query, .uniq (or .distinct) just adds a DISTINCT to the SELECT clause
[16:43:19] hello9: @centrx so theres no way to be like uniq except for ID or something
[16:43:41] ethe: has joined #RubyOnRails
[16:44:35] platzhirsch: has joined #RubyOnRails
[16:45:11] centrx: hello9, specify all the columns except id in the select clause
[16:45:21] centrx: hello9, But it sounds like bad design
[16:45:31] centrx: hello9, What are you really trying to do?
[16:45:34] hello9: @centrx or just bad DB management
[16:45:52] hello9: listing records that are actually unique, but the DB is flooded with "dups"
[16:45:54] roshanavand: has joined #RubyOnRails
[16:46:10] sonofdirt: has joined #RubyOnRails
[16:46:21] centrx: hello9, right that's data corruption in the database
[16:46:31] centrx: hello9, Fix the database: remove the duplicates and add a UNIQUE key
[16:46:44] hello9: thats probably what im going to do
[16:47:00] hello9: no sense writing smelly code
[16:47:59] jhill: has joined #RubyOnRails
[16:48:18] drbayer: has joined #RubyOnRails
[16:48:26] Lectus: can anyone help me?
[16:48:38] helpa: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
[16:48:55] Lectus: Hello! I need help with this piece of code: http://paste.ofcode.org/XBLqpSGFfihYsdfjtwVqup I'm trying to produce radio buttons with simple_form, but with this code when I check one radio button it automatically gets treated as if all radio buttons were inside the same group. I need individual groups of yes/no for each line. Any idea?
[16:49:12] Encapsulation: has joined #RubyOnRails
[16:49:13] drbayer: has joined #RubyOnRails
[16:50:02] drbayer: has joined #RubyOnRails
[16:50:18] centrx: Lectus, Do you need to do a separate f.collection_radio_buttons for each group?
[16:50:22] centrx: Lectus, Maybe with another loop?
[16:50:47] tubbo: Lectus: first of all, i think it should be f.fields_for, second, i think you need to `do |ff|` and use `ff.collection_radio_buttons` in order to tie that to the :status of a training_status, not the whole form
[16:50:52] Emma_UK: has joined #RubyOnRails
[16:50:52] adavia: is it possibly my app does not scroll smoothly due to images. It feels kinda heavy
[16:50:56] tubbo: right now it's all pointing to the same form object, and that's not what you want
[16:51:25] drbayer: has joined #RubyOnRails
[16:51:35] towski_: has joined #RubyOnRails
[16:51:53] drbayer: has joined #RubyOnRails
[16:52:09] Lectus: tubbo: Thanks. I'll try your suggestions.
[16:52:37] Goliathus: has joined #RubyOnRails
[16:52:42] Emma_UK: has left #RubyOnRails: ()
[16:52:54] Lectus: centrx: I need each group of yes/no to be handled as one. For example, if I click yes on the second line, it doesn't uncheck the no I clicked in the first line.
[16:52:58] drbayer: has joined #RubyOnRails
[16:53:08] naftilos76: has joined #RubyOnRails
[16:53:26] drbayer: has joined #RubyOnRails
[16:54:27] drbayer: has joined #RubyOnRails
[16:55:05] aaronr: has joined #RubyOnRails
[16:55:15] drbayer: has joined #RubyOnRails
[16:55:49] Goliathus: has left #RubyOnRails: ()
[16:56:12] drbayer: has joined #RubyOnRails
[16:57:05] drbayer: has joined #RubyOnRails
[16:57:52] drbayer: has joined #RubyOnRails
[16:58:41] drbayer: has joined #RubyOnRails
[16:59:01] Pupeno: has joined #RubyOnRails
[16:59:51] atomical: has joined #RubyOnRails
[17:00:18] drbayer: has joined #RubyOnRails
[17:00:23] nofxx: has joined #RubyOnRails
[17:00:42] safety_cut: has joined #RubyOnRails
[17:00:47] tlarevo: has joined #RubyOnRails
[17:00:47] Pupeno_: has joined #RubyOnRails
[17:00:48] nofxx: MyModel.model_name.human count: :many or count: 2 is really, really ugly
[17:00:56] nofxx: why can't we have a proper human_plural ?
[17:00:59] axl_: has joined #RubyOnRails
[17:01:15] drbayer: has joined #RubyOnRails
[17:01:57] drbayer: has joined #RubyOnRails
[17:02:45] drbayer: has joined #RubyOnRails
[17:03:27] drbayer: has joined #RubyOnRails
[17:04:15] drbayer: has joined #RubyOnRails
[17:05:17] drbayer: has joined #RubyOnRails
[17:06:02] Coldblackice: has joined #RubyOnRails
[17:06:14] aaronr: has joined #RubyOnRails
[17:06:26] drbayer: has joined #RubyOnRails
[17:07:05] drbayer: has joined #RubyOnRails
[17:07:53] drbayer: has joined #RubyOnRails
[17:08:23] lapide_viridi: has joined #RubyOnRails
[17:08:35] drbayer: has joined #RubyOnRails
[17:09:33] drbayer: has joined #RubyOnRails
[17:09:39] zpe: has joined #RubyOnRails
[17:10:22] nettoweb: has joined #RubyOnRails
[17:15:25] hackeron: has joined #RubyOnRails
[17:16:55] towski_: has joined #RubyOnRails
[17:19:29] ornerymoose: has joined #RubyOnRails
[17:19:32] moeabdol: has joined #RubyOnRails
[17:20:19] manuelmartinez: has joined #RubyOnRails
[17:21:20] ElFerna: has joined #RubyOnRails
[17:22:32] jessemcgilallen: has joined #RubyOnRails
[17:22:41] atomical: has joined #RubyOnRails
[17:23:32] Shoutsid: has joined #RubyOnRails
[17:23:53] SalexW: has joined #RubyOnRails
[17:23:54] lacrymology: has joined #RubyOnRails
[17:26:31] Cervajz: has joined #RubyOnRails
[17:26:35] webdestroya: has joined #RubyOnRails
[17:27:50] netzfisch: has joined #RubyOnRails
[17:27:54] Grundell: has joined #RubyOnRails
[17:27:55] robbyoconnor: has joined #RubyOnRails
[17:29:10] bronson: has joined #RubyOnRails
[17:31:06] twilling: has joined #RubyOnRails
[17:32:22] andatche: has joined #RubyOnRails
[17:33:35] bob_f: has joined #RubyOnRails
[17:34:16] annlewis: has joined #RubyOnRails
[17:34:26] bob_f: salut les gars
[17:35:37] bob_f: I want to slightly modify the way form labels are auto-generated (specifically I want to replace "." with ": "). Is there an easy way to do this, or am I better off just writing my own label formatter ?
[17:36:10] adre: has joined #RubyOnRails
[17:37:46] Grundell: has joined #RubyOnRails
[17:38:22] ur5us: has joined #RubyOnRails
[17:38:33] jscheel: has joined #RubyOnRails
[17:40:00] sandstrom: has joined #RubyOnRails
[17:40:52] benlieb: has joined #RubyOnRails
[17:41:16] nickenchuggets: has joined #RubyOnRails
[17:41:17] nickenchuggets: has joined #RubyOnRails
[17:41:30] bob_f: Ah, looks like I was looking for `humanize`. Thanks anyway, guys.
[17:45:18] mikecmpbll: has joined #RubyOnRails
[17:46:55] peterppp: has joined #RubyOnRails
[17:46:58] markh: has joined #RubyOnRails
[17:48:21] maxx88: has joined #RubyOnRails
[17:48:36] peterppp: I have a number of models that are associated with each other through a chain of belongs_to's and has_many's; now, say, I have A -> B -> C, is there an association that lets me easily get all C's that indirectly belong to an A?
[17:49:03] pantaleon: has joined #RubyOnRails
[17:49:52] sonofdirt: has joined #RubyOnRails
[17:50:55] elektronaut: has joined #RubyOnRails
[17:52:50] diegoviola: has joined #RubyOnRails
[17:53:14] mrtomme: has joined #RubyOnRails
[17:53:50] Rodya_: has joined #RubyOnRails
[17:54:25] lacuna: has joined #RubyOnRails
[17:54:25] lacuna: has joined #RubyOnRails
[17:54:29] jhass: peterppp: has_many :cs, through: :bs
[17:54:42] tfitts: has joined #RubyOnRails
[17:55:37] jottr: has joined #RubyOnRails
[17:56:43] jgpawletko: has joined #RubyOnRails
[17:56:45] baweaver: has joined #RubyOnRails
[17:57:51] peterppp: jhass: oh, thanks
[17:58:07] based_pdev_: has joined #RubyOnRails
[17:58:39] peterppp: I'm pretty new to Rails, and every day I use it I'm just amazed by it
[17:58:40] arup_r: adding codeclimate with repo made me crazy.. all are red.. hehe
[17:59:04] arup_r: peterppp: once Rails 5 will be in market, you will be just WOW
[17:59:08] peterppp: I did some web development ten years ago with PHP and it was such a mess
[17:59:22] adac: has joined #RubyOnRails
[17:59:40] ElFerna: has joined #RubyOnRails
[17:59:45] peterppp: there's so been so much progress
[17:59:46] arup_r: then, based on your 10 years exp, you need 3 months to mix in Rails..
[18:00:17] peterppp: I haven't done any web development for ten years
[18:00:26] arup_r: oh.. misread :p
[18:00:36] arup_r: may be effect of codeclimate
[18:00:37] peterppp: so until now I was unaware of what's been going on in the meantime
[18:00:47] Grundell: has joined #RubyOnRails
[18:01:12] roshanavand: has joined #RubyOnRails
[18:01:29] arup_r: tubbo: you stopped coming here now-a-days why? :D
[18:01:30] mikecmpbll: has joined #RubyOnRails
[18:01:32] greengriminal: has joined #RubyOnRails
[18:02:21] renegadeandy: has joined #RubyOnRails
[18:02:54] renegadeandy: Can anybody offer to help me with this request : http://stackoverflow.com/questions/34033517/how-can-i-find-the-number-of-current-subscriptions-using-privatepub-and-faye-in
[18:03:10] colleenmcguckin: has joined #RubyOnRails
[18:03:21] SolarSailor: has joined #RubyOnRails
[18:03:24] Pupeno: has joined #RubyOnRails
[18:05:47] manfrin: has joined #RubyOnRails
[18:06:13] sleungcy: has joined #RubyOnRails
[18:06:32] Sawbones: has joined #RubyOnRails
[18:07:12] mikecmpbll: has joined #RubyOnRails
[18:08:38] cac: has joined #RubyOnRails
[18:10:58] hardtail: has joined #RubyOnRails
[18:12:16] nickenchuggets: has joined #RubyOnRails
[18:12:16] nickenchuggets: has joined #RubyOnRails
[18:13:39] atomical: has joined #RubyOnRails
[18:14:42] kitallis: has joined #RubyOnRails
[18:15:02] hamtaro: has joined #RubyOnRails
[18:16:42] gnugmanov: has joined #RubyOnRails
[18:16:53] juddey: has joined #RubyOnRails
[18:17:18] mary5030: has joined #RubyOnRails
[18:17:28] mary5030_: has joined #RubyOnRails
[18:18:07] KensoDev: has joined #RubyOnRails
[18:18:15] sbarg: has joined #RubyOnRails
[18:18:45] mikecmpbll: has joined #RubyOnRails
[18:21:19] paulodiniz: has joined #RubyOnRails
[18:22:12] netzfisch: has joined #RubyOnRails
[18:22:15] TheNet: has joined #RubyOnRails
[18:23:48] hahuang61: has joined #RubyOnRails
[18:24:35] ascarter: has joined #RubyOnRails
[18:24:57] djbkd: has joined #RubyOnRails
[18:27:27] herminiotorres: has joined #RubyOnRails
[18:28:37] platzhirsch: has left #RubyOnRails: ()
[18:29:07] shanemcd: has joined #RubyOnRails
[18:29:18] RegulationD: has joined #RubyOnRails
[18:30:20] bronson: has joined #RubyOnRails
[18:31:46] stannard_: has joined #RubyOnRails
[18:33:06] cac: has joined #RubyOnRails
[18:34:07] godzillaenlacasa: has joined #RubyOnRails
[18:35:03] annlewis: has joined #RubyOnRails
[18:35:54] lsone: Alrighty, ran into a weird routing issue
[18:35:56] lsone: https://gist.github.com/pstutes/676138f3d917984b1185
[18:36:05] lsone: Look at the action on the final file in that
[18:36:48] lsone: the news_articles_news_comments_path is doing something funky in the simple_form_for
[18:37:51] shanemcd: has joined #RubyOnRails
[18:38:18] paulodiniz: has joined #RubyOnRails
[18:38:25] krz: has joined #RubyOnRails
[18:38:31] diegoviola: how do I say in AR "Give me all data except the ones that contain foo in column X"?
[18:39:07] bronson: has joined #RubyOnRails
[18:40:38] troyready: has joined #RubyOnRails
[18:40:40] herminiotorres: has joined #RubyOnRails
[18:41:37] elton: has joined #RubyOnRails
[18:43:12] cac: has joined #RubyOnRails
[18:45:20] nightsh: has joined #RubyOnRails
[18:45:55] wpp: has joined #RubyOnRails
[18:46:10] ascarter: has joined #RubyOnRails
[18:46:29] paulodiniz: has joined #RubyOnRails
[18:46:46] dmric: has joined #RubyOnRails
[18:47:27] herminiotorres: has joined #RubyOnRails
[18:50:14] Aasha: has joined #RubyOnRails
[18:52:16] melonstorm: has joined #RubyOnRails
[18:55:02] elektronaut: has joined #RubyOnRails
[18:55:29] rakm: has joined #RubyOnRails
[18:55:54] RegulationD: has joined #RubyOnRails
[18:56:08] herminiotorres: has joined #RubyOnRails
[18:57:14] dkmric: has joined #RubyOnRails
[18:58:29] mary5030: has joined #RubyOnRails
[18:59:35] viner: has joined #RubyOnRails
[19:00:20] nofxx: diegoviola, where(:column.ne => foo) iirc
[19:00:36] nofxx: hey, why you need to pass the locale to #pluralize .. is that intentional?
[19:00:51] twilling: has joined #RubyOnRails
[19:01:34] nofxx: 'fooz?o'.pluralize # fooz?os 'fooz?o'.pluralize(I18n.locale) # fooz?es
[19:01:35] kadoppe: has joined #RubyOnRails
[19:01:46] lxsameer: has joined #RubyOnRails
[19:01:55] lxsameer: has joined #RubyOnRails
[19:01:55] nofxx: got a inflector for that pt rule.. but anyways, shouldn't the locale be used?
[19:03:02] Jasaka: has joined #RubyOnRails
[19:05:09] Pazician: has joined #RubyOnRails
[19:05:34] flashpoint9: has joined #RubyOnRails
[19:05:48] cac: has joined #RubyOnRails
[19:07:24] dkmric: has joined #RubyOnRails
[19:08:04] rakm: has joined #RubyOnRails
[19:11:19] safety_cut: has joined #RubyOnRails
[19:11:31] bdnelson: has joined #RubyOnRails
[19:11:52] S1kx: has joined #RubyOnRails
[19:17:36] dopie: has joined #RubyOnRails
[19:18:19] twilling: has joined #RubyOnRails
[19:19:20] s2013: has joined #RubyOnRails
[19:21:29] centrx: has joined #RubyOnRails
[19:21:29] silkwood: has joined #RubyOnRails
[19:21:48] bergs: has joined #RubyOnRails
[19:23:06] djbkd: has joined #RubyOnRails
[19:23:18] mikecmpbll: has joined #RubyOnRails
[19:25:07] SalexW: has joined #RubyOnRails
[19:26:32] treehug88: has joined #RubyOnRails
[19:27:18] adac: has joined #RubyOnRails
[19:28:11] mikecmpbll: has joined #RubyOnRails
[19:30:09] moeabdol: has joined #RubyOnRails
[19:30:27] hardtail: has joined #RubyOnRails
[19:31:35] kegan_: has joined #RubyOnRails
[19:32:26] krz: has joined #RubyOnRails
[19:35:16] Pazician: has joined #RubyOnRails
[19:35:56] annlewis: has joined #RubyOnRails
[19:37:48] s2013: whats up? any reason why when new records are created it would skip some ids.. so its not fully sequential
[19:37:52] Grundell: has joined #RubyOnRails
[19:38:47] juddey: has joined #RubyOnRails
[19:39:29] slash_me: s2013: that depends on your database's primary key sequence
[19:39:57] s2013: i feel like its some random pattern
[19:40:10] slash_me: s2013: if you create 3 records (in a fresh db)... ids will be 1 2 3... if you destroy "3" and create another, it will have an id of 4
[19:40:14] s2013: so some thing has an id of 50, then 51, then 52,. etc.. then it skips to like 63 instead of 63
[19:40:17] s2013: yeah i know that
[19:40:22] s2013: but nothing is beign deleted
[19:40:30] rakm: has joined #RubyOnRails
[19:40:31] s2013: thats whats confusing the hell out of me
[19:40:48] bdnelson: has joined #RubyOnRails
[19:41:25] slash_me: s2013: is this in tests? are you sure another test isn't insterting records? no database cleaner running?
[19:41:41] s2013: no production
[19:41:57] pyemkey: has joined #RubyOnRails
[19:42:42] elton: has joined #RubyOnRails
[19:43:05] s2013: so let me explain what happened.. we have a Lead model and a Membership model.. so if a lead applies for membership the lead is marked as applied and has the membership id in its record
[19:43:27] s2013: but we have had some leads that were marked as applied but i cant find the membership for it anywhere.. most have membership id that doesnt exist
[19:43:31] fox_mulder_cp: leader has_many memers..
[19:43:39] s2013: so its confusing the hell out of me
[19:43:47] s2013: i even searched for logs, couldnt find anything
[19:43:58] s2013: and it has been happening recently. past couple of weeks
[19:44:07] diegoviola: I have this in my model https://gist.github.com/diegoviola/f65f5f6b500079686c5e but I also need to do something like if ts_signature - ts_print <= 1.hour then show a message otherwise another one, can I do this on the same query or I use a different method for that?
[19:44:50] slash_me: s2013: it's hard to debug this for you... how are you saving the related objects? are any validations failing? any callbacks erroring?
[19:44:50] ornerymoose: has left #RubyOnRails: ()
[19:44:55] diegoviola: ts_signature and ts_print are fields of my Correspondence model
[19:45:02] roshanavand: has joined #RubyOnRails
[19:45:53] tubbo: diegoviola: you should probably do that in a class outside your model, since it seems as though showing a particular message is not part of the expertise of your model.
[19:46:17] aaronr: has joined #RubyOnRails
[19:46:29] diegoviola: tubbo: the problem is I need to show that as part of the records/rows
[19:46:47] diegoviola: tubbo: that I'm getting from that by_sedex method
[19:46:59] tubbo: diegoviola: i don't understand
[19:47:15] s2013: slash_me yeah ive been scratching my head tryignto figure out how to debug it. thing is it started happening couple fo weeks ago but i havent changed anything that woul affect that part of the codebase
[19:47:22] diegoviola: tubbo: https://i.imgur.com/ThaZYfy.png
[19:47:39] s2013: yeah if their cc fails the application gets rolled back
[19:47:48] s2013: thats only thing i could think of
[19:47:48] diegoviola: tubbo: the SEDEX 10 table is where I show correspondences by SEDEX
[19:47:53] fox_mulder_cp: tubbo: i fix my problem from yesterday, i today said here, that in tag table can't use any tags, and when i move tag form outside table - it's ok
[19:48:23] fox_mulder_cp: thanks for your help
[19:48:33] diegoviola: tubbo: I need to add another column in that table to show the status, and I need to get the status by doing ts_print - ts_signature <= 1.hour
[19:48:46] diegoviola: tubbo: but I don't know where to add that code, if in the query (and add a column dynamically) or somewhere else
[19:49:10] fox_mulder_cp: diegoviola: oh, no column add, it's bad idea.
[19:49:35] fox_mulder_cp: make a method for filtering, as example
[19:49:40] arup_r: has joined #RubyOnRails
[19:49:55] diegoviola: fox_mulder_cp: can you show me an example?
[19:50:06] fox_mulder_cp: also, how use postgresql features such as functions, filters, views...
[19:51:06] smathy: has joined #RubyOnRails
[19:51:10] fox_mulder_cp: diegoviola: i don't know rails, i'm dummy now :) but is asp.net mvc and it ORM i use filtering code
[19:51:44] honestemu: has joined #RubyOnRails
[19:51:52] fox_mulder_cp: such as payment.date.month = now.month; etc
[19:51:54] diegoviola: any other ideas?
[19:52:10] diegoviola: perhaps I could use a helper for this?
[19:52:12] diegoviola: helper method
[19:52:16] arup_r: I am trying to build an online/offline functionality. Found one blog, any other ways to implement this you might aware of ? blog: http://www.ryanepp.com/blog/how-do-i-tell-if-a-user-is-online
[19:52:35] diegoviola: and pass in ts_signature and ts_print from my view to the helper?
[19:52:39] diegoviola: and do the math on the helper
[19:52:44] diegoviola: is there a better way?
[19:53:20] fox_mulder_cp: diegoviola: can i see original request for your task?
[19:53:46] stannard: has joined #RubyOnRails
[19:54:25] smathy: arup_r, that blog post is just about detecting whether a user is still looking at your page, is that what you mean by "online/offline functionality"?
[19:54:51] arup_r: Oh, no that is not what I want.
[19:55:03] diegoviola: fox_mulder_cp: https://gist.github.com/diegoviola/3c7a16e8161fd0459045
[19:55:44] arup_r: When I will be visiting someone else profile, if that user is logged in to the app, I want his/her profile to show that up there..
[19:55:55] bronson: has joined #RubyOnRails
[19:56:38] arup_r: I am using Devise ... But alone this gem will not help..
[19:57:10] fox_mulder_cp: diegoviola: o, what chart you use?
[19:57:54] joshkovach: has joined #RubyOnRails
[19:57:55] hardtail: has joined #RubyOnRails
[19:58:57] smathy: arup_r, ok so you just want the indicator to show that they're logged in? Even if they're not looking at your site anymore?
[19:59:09] slash_me: s2013: my wild guess is an error in a callback
[19:59:11] arup_r: yes exactly
[19:59:22] s2013: yea trying to figure that out
[20:00:53] annlewis: has joined #RubyOnRails
[20:01:23] srinidhi: has joined #RubyOnRails
[20:02:02] rakm: has joined #RubyOnRails
[20:02:03] Uptime: has joined #RubyOnRails
[20:02:30] shibabu: has joined #RubyOnRails
[20:02:50] arup_r: smathy: looking at your site means? I meant they will log in to the app, and may be visiting to any page or any activities.. until he logged out from the system, I want to mark the user as loggin ( some green light I would like to ON ) :)
[20:05:46] smathy: arup_r, what I mean is that if someone logs into a website, then navigates away to somewhere else, the website still thinks they're logged in - eg. if they return to the website they won't have to log in again.
[20:06:02] smathy: arup_r, so you want to show them as "online" even if they've navigated away from your site?
[20:06:23] lapide_viridi: has joined #RubyOnRails
[20:07:27] arup_r: ok.. smathy good question, I have timeout set in Devise as 15 minutes. So if they don't do any activity in next 15 minutes after login, he/she will be logged out.
[20:08:29] djbkd: has joined #RubyOnRails
[20:08:52] drbayer: has joined #RubyOnRails
[20:09:21] smathy: arup_r, right, so there'll be some Devise method you can use, like that_user.timed_out? or something. Check the docs.
[20:09:46] arup_r: yes, that we have.
[20:09:59] drbayer: has joined #RubyOnRails
[20:10:12] jmrepetti: has joined #RubyOnRails
[20:10:12] rgrmatt: has joined #RubyOnRails
[20:10:19] arup_r: Till now I am clear. But next question is how should I implement auto update.. using JS polling ?
[20:10:28] arup_r: will it be good idea..
[20:10:48] Uptime: has joined #RubyOnRails
[20:10:54] drbayer: has joined #RubyOnRails
[20:11:04] arup_r: say I am on a user profile page 12 minutes..and in between he/she logged in, I want the green light to on without page refresh
[20:11:30] smathy: arup_r, what do you mean by auto-update, you mean if I'm just sitting there looking at your profile, not clicking anything, and your devise session times out you want the indicator to change to "Offline" on the page I'm looking at without me reloading?
[20:11:54] smathy: arup_r, so yeah, either polling or websockets.
[20:12:03] drbayer: has joined #RubyOnRails
[20:12:19] arup_r: pusher is good choice ?
[20:12:28] diegoviola: fox_mulder_cp: chartkick
[20:12:42] drbayer: has joined #RubyOnRails
[20:13:25] drbayer: has joined #RubyOnRails
[20:14:13] drbayer: has joined #RubyOnRails
[20:14:38] ruid: has joined #RubyOnRails
[20:14:39] ruid: has joined #RubyOnRails
[20:14:59] drbayer: has joined #RubyOnRails
[20:15:38] smathy: arup_r, I suppose, seems like overkill to me, if I wanted websockets I'd just do them myself. I'd only go with websockets over polling if I wanted the status updated instantly. I imagine I'd be happy with it being updated within 10 seconds or something, so I'd just use polling.
[20:15:57] smathy: ...but that depends on your use cases.
[20:16:02] drbayer: has joined #RubyOnRails
[20:16:21] claytonzaugg: has joined #RubyOnRails
[20:17:10] drbayer: has joined #RubyOnRails
[20:17:11] qejk: has joined #RubyOnRails
[20:17:57] drbayer: has joined #RubyOnRails
[20:18:24] yatish27: has joined #RubyOnRails
[20:18:54] drbayer: has joined #RubyOnRails
[20:19:34] drbayer: has joined #RubyOnRails
[20:20:19] Uptime: has joined #RubyOnRails
[20:20:48] drbayer: has joined #RubyOnRails
[20:21:28] drbayer: has joined #RubyOnRails
[20:22:24] drbayer: has joined #RubyOnRails
[20:23:19] drbayer: has joined #RubyOnRails
[20:23:44] drbayer: has joined #RubyOnRails
[20:24:03] arup_r: smathy: What gem you would advise though to implement websocket.. EventMachine ?
[20:24:28] drbayer: has joined #RubyOnRails
[20:25:48] drbayer: has joined #RubyOnRails
[20:26:02] jmarchello: has joined #RubyOnRails
[20:26:27] drbayer: has joined #RubyOnRails
[20:26:27] pyemkey: has joined #RubyOnRails
[20:26:42] hive-mind: has joined #RubyOnRails
[20:27:13] mdowd: has joined #RubyOnRails
[20:27:23] atomical: has joined #RubyOnRails
[20:27:23] drbayer: has joined #RubyOnRails
[20:27:44] podman: has joined #RubyOnRails
[20:27:57] drbayer: has joined #RubyOnRails
[20:28:19] viner: has joined #RubyOnRails
[20:28:42] drbayer: has joined #RubyOnRails
[20:29:33] drbayer: has joined #RubyOnRails
[20:29:59] smathy: arup_r, for polling? I wouldn't use any gem.
[20:30:11] tubbo: diegoviola: the last couple problems you've had indicate to me that you don't use decorators or presenters for your models. is that true? it seems like using a gem like Draper might help across the board, but in this case creating a small presenter object to do this logic and show the correct message, then basically delegate all other method calls back to the model with method_missing, might be
[20:30:13] tubbo: sufficient enough.
[20:30:15] arup_r: websocket.. I rejected polling
[20:30:38] drbayer: has joined #RubyOnRails
[20:30:47] tubbo: smathy / arup_r - i've actually implemented websockets myself AND using pusher. if you can afford it, pusher is so much easier.
[20:30:50] tubbo: it "just works".
[20:31:01] diegoviola: tubbo: yes, I'm currently using my dashboard helper, seems to work fine but I'll check out draper
[20:31:12] PlasmaStar: has joined #RubyOnRails
[20:31:13] diegoviola: tubbo: https://gist.github.com/00d6fc81ad7a0d779ac0
[20:31:19] drbayer: has joined #RubyOnRails
[20:31:20] smathy: arup_r, then I'd just use websocket-rails probably.
[20:31:25] diegoviola: tubbo: this is how I'm halding it atm
[20:32:01] tubbo: diegoviola: yeah either way...you just want the model to give you back data. it's up to something in the view tier (helper, decorator/presenter, a conditional inside the view template) to do the job of presenting that data in a human-readable way.
[20:32:08] drbayer: has joined #RubyOnRails
[20:32:30] diegoviola: tubbo: right, so either a decorator/presenter or helper will do the job, right?
[20:32:42] tubbo: we used pusher to develop in-app notifications when our sales people got a new message
[20:32:44] tubbo: diegoviola: yeah
[20:32:50] diegoviola: tubbo: cool, thanks :)
[20:32:55] drbayer: has joined #RubyOnRails
[20:33:26] diegoviola: I want to keep my views logic-free
[20:33:52] drbayer: has joined #RubyOnRails
[20:34:20] jmrepetti: has joined #RubyOnRails
[20:34:22] pyemkey: has joined #RubyOnRails
[20:35:10] drbayer: has joined #RubyOnRails
[20:35:26] yfeldblum: has joined #RubyOnRails
[20:35:52] mikecmpbll: has joined #RubyOnRails
[20:35:57] drbayer: has joined #RubyOnRails
[20:36:04] smathy: I think that if I had non-web subscribers, or wanted to push from multiple places, then I'd definitely consider it /cc tubbo
[20:36:21] wpp: has joined #RubyOnRails
[20:36:38] drbayer: has joined #RubyOnRails
[20:37:35] drbayer: has joined #RubyOnRails
[20:37:36] kitsuneyo: has joined #RubyOnRails
[20:38:42] drbayer: has joined #RubyOnRails
[20:39:05] drbayer: has joined #RubyOnRails
[20:39:07] jmarchello: has left #RubyOnRails: ()
[20:39:22] jscheel: has joined #RubyOnRails
[20:39:46] arup_r: smathy: Hum, got something which will help me. I just don't need the message event though.. rest all is ok. Just one question though, where will I put this eventmachine code with Rails ?
[20:39:49] arup_r: https://blog.engineyard.com/2013/getting-started-with-ruby-and-websockets
[20:39:57] safety_cut: has joined #RubyOnRails
[20:40:12] drbayer: has joined #RubyOnRails
[20:40:26] tubbo: don't you have to run a separate server?
[20:40:41] drbayer: has joined #RubyOnRails
[20:41:52] drbayer: has joined #RubyOnRails
[20:42:34] arup_r: omg.. didn't think one more server... ok pretty hard work I got then.. Never used it, so asking some dumbest questions.. 30 minutes back i had no idea how to do this.. Now atleast got idea
[20:42:38] drbayer: has joined #RubyOnRails
[20:42:53] smathy: No, but it does have to be its own thread or process - arup_r using eventmachine with Rails isn't a simple thing to do. ...one of the reasons I said I'd use websocket-rails.
[20:43:15] arup_r: humm reading https://github.com/websocket-rails/websocket-rails
[20:43:25] arup_r: API looks very easy
[20:43:27] atomical_: has joined #RubyOnRails
[20:43:29] elton: has joined #RubyOnRails
[20:43:40] drbayer: has joined #RubyOnRails
[20:44:47] drbayer: has joined #RubyOnRails
[20:44:53] mikecmpbll: has joined #RubyOnRails
[20:45:45] drbayer: has joined #RubyOnRails
[20:46:30] arup_r: well.. Let me get start with websocket-rails.. have very good doc for me like n00bs.. https://github.com/websocket-rails/websocket-rails/wiki/The-Event-Router thanks smathy and tubbo
[20:47:03] drbayer: has joined #RubyOnRails
[20:47:49] drbayer: has joined #RubyOnRails
[20:48:33] drbayer: has joined #RubyOnRails
[20:48:44] sandstrom: has joined #RubyOnRails
[20:48:49] pyemkey: has joined #RubyOnRails
[20:49:02] dcope: is there a way to bundle platform binaries in a rails app so it can call to them?
[20:49:09] safety_cut: has joined #RubyOnRails
[20:49:09] yos7ph: has joined #RubyOnRails
[20:49:10] dcope: without installing the dependencies on the system itself
[20:49:23] drbayer: has joined #RubyOnRails
[20:49:26] tubbo: dcope: platform binaries?
[20:49:35] pwnd_nsfw: has joined #RubyOnRails
[20:49:39] dcope: tubbo: yeah, just like a linux binary
[20:49:49] Pazician: has joined #RubyOnRails
[20:50:12] drbayer: has joined #RubyOnRails
[20:50:54] drbayer: has joined #RubyOnRails
[20:51:41] twilling: has joined #RubyOnRails
[20:51:43] drbayer: has joined #RubyOnRails
[20:51:44] tubbo: dcope: not really. i would argue that's a job for your package manager
[20:51:47] tubbo: whatever that may be
[20:51:55] dcope: yeah, i figured that was the 'right' way to do it
[20:52:03] mikecmpbll: has joined #RubyOnRails
[20:52:25] drbayer: has joined #RubyOnRails
[20:53:12] drbayer: has joined #RubyOnRails
[20:53:18] tubbo: newer rails apps have a script called bin/setup that is generated...if RAILS_ENV == 'production', typically i'll do a `apt-get install -yy $ALL_OF_MY_DEPS` in that setup script.
[20:53:36] tubbo: especially if i'm running it in a Docker container, because i always RUN ./bin/setup at the end of my Dockerfile
[20:53:55] drbayer: has joined #RubyOnRails
[20:54:43] drbayer: has joined #RubyOnRails
[20:55:05] honestemu1: has joined #RubyOnRails
[20:55:37] drbayer: has joined #RubyOnRails
[20:56:15] bdnelson: has joined #RubyOnRails
[20:56:26] brunto: has joined #RubyOnRails
[20:56:36] drbayer: has joined #RubyOnRails
[20:57:02] drbayer: has joined #RubyOnRails
[20:58:07] drbayer: has joined #RubyOnRails
[20:59:06] s2013: has joined #RubyOnRails
[20:59:16] drbayer: has joined #RubyOnRails
[20:59:39] drbayer: has joined #RubyOnRails
[21:00:29] drbayer: has joined #RubyOnRails
[21:00:59] Exuma: has joined #RubyOnRails
[21:01:15] drbayer: has joined #RubyOnRails
[21:01:40] annlewis: has joined #RubyOnRails
[21:02:03] drbayer: has joined #RubyOnRails
[21:03:09] drbayer: has joined #RubyOnRails
[21:03:58] drbayer: has joined #RubyOnRails
[21:03:59] ModusPwnens: has joined #RubyOnRails
[21:04:38] dcope: tubbo: the issue is that im in charge of these binaries
[21:04:49] drbayer: has joined #RubyOnRails
[21:04:55] ModusPwnens: Let's say you have a data-remote form and there is a failure during server-side processing. Is it possible to redirect to an ErrorController and execute some JS in response to the failuire?
[21:05:13] ModusPwnens: I'm trying that currently and it does successfully return some javascript, but the javascript does not actually get evaluted and executed.
[21:05:28] drbayer: has joined #RubyOnRails
[21:05:45] tubbo: dcope: at a previous job, we actually used to build our own .deb packages because it was *way* easier to install our own binaries that way.
[21:05:53] diegoviola: given a model called Correspondence with ts_print and ts_signature as datetime, is it possible to do something like "Show me all from Correspondence that equal ts_print <= til 19 hs from ts_signature"
[21:06:33] tubbo: dcope: to be honest, if it's just the bin you need, it might be a good idea to just host them on S3 and pull them down when you deploy your box.
[21:06:38] drbayer: has joined #RubyOnRails
[21:07:02] tubbo: all a package manager does is unpack the .deb (which is a special .tar.gz, just like a rubygem) and put its files in their "correct" locations.
[21:07:05] drbayer: has joined #RubyOnRails
[21:10:39] diegoviola: is it possible to do that sort of math on AR?
[21:10:43] Uranio: has joined #RubyOnRails
[21:12:08] nofxx: diegoviola, just use the time helpers... #days_ago, #months_ago
[21:13:01] xcesariox: has joined #RubyOnRails
[21:13:29] hello9: has joined #RubyOnRails
[21:14:05] nofxx: foo + 5.days, + 2.hours
[21:14:07] ur5us: has joined #RubyOnRails
[21:14:16] nofxx: btw *_ago has a inverse for future, no?
[21:14:44] hello9: What is the preferred way to "collect" all child models of a model in ActiveRecord? I tried Account.first.posts.map(&:comments) but that actually generated (in the result only) comments with other ids, which is so weird
[21:15:26] diegoviola: nofxx: lol ok
[21:17:24] Maletor: has joined #RubyOnRails
[21:17:56] Maletor: should i expect my associations to be frozen within the context of an after_destroy? is this behavior new with 4.2?
[21:18:47] pyemkey: has joined #RubyOnRails
[21:22:10] ModusPwnens: I figured out my issue, sort of. Pastie: http://pastie.org/10609468.
[21:22:38] Maletor: Ok, I think I see what has happened. The assoc. is already gone from the DB so Rails froze it by way of saying "don't bother".
[21:23:06] ModusPwnens: Do you have to preserve a content-type header or something across internal redirects in order for this to work?
[21:23:51] rakm: has joined #RubyOnRails
[21:24:51] wpp: has joined #RubyOnRails
[21:25:43] SalexW: has joined #RubyOnRails
[21:26:51] ascarter: has joined #RubyOnRails
[21:27:16] cac: has joined #RubyOnRails
[21:29:43] DoctorMonocular: has joined #RubyOnRails
[21:32:13] yaewa: has joined #RubyOnRails
[21:33:36] nofxx: diegoviola, #ago evil twin is #from_now
[21:34:59] safetypin: has joined #RubyOnRails
[21:35:16] diegoviola: Correspondence.where(:ts_print <= :ts_signature == 7.hours.from_now)
[21:35:19] diegoviola: something like that then?
[21:36:32] diegoviola: I need to say til 7 hours from ts_signature
[21:36:32] diegoviola: not sure if that does it
[21:37:27] nofxx: you need to improve your ruby... :date.lt => signature + 7.hours or something like
[21:38:10] tubbo: nofxx: isn't that Mongoid? or can you do that weird shit with AR?
[21:40:06] diegoviola: nofxx: more like my AR fu
[21:40:34] FooMunki: has joined #RubyOnRails
[21:40:37] nofxx: tubbo, yeah, maybe it is. What's the ar way for gt/lt?
[21:41:13] tubbo: nofxx: where("attribute >= ?", value)
[21:41:19] tubbo: you just drop down to SQL.
[21:42:51] chridal: has joined #RubyOnRails
[21:43:25] s2013: has joined #RubyOnRails
[21:44:22] elton: has joined #RubyOnRails
[21:47:08] user1138: has joined #RubyOnRails
[21:48:52] pyemkey: has joined #RubyOnRails
[21:49:27] FLeiXiuS: has joined #RubyOnRails
[21:49:28] FLeiXiuS: has joined #RubyOnRails
[21:49:50] Pupeno: has joined #RubyOnRails
[21:49:54] Cervajz: has joined #RubyOnRails
[21:50:03] drbayer: has joined #RubyOnRails
[21:51:47] twilling: has joined #RubyOnRails
[21:51:49] Cervajz: has joined #RubyOnRails
[21:52:03] rubyonrailed: has joined #RubyOnRails
[21:52:09] Grundell: has joined #RubyOnRails
[21:54:53] pantaleon: has joined #RubyOnRails
[21:58:18] cac: has joined #RubyOnRails
[22:01:18] netzfisch: has joined #RubyOnRails
[22:01:41] Maletor: Have I just bastardized AR or is this a Rails bug? https://gist.github.com/maletor/a87979427480decdeb11
[22:01:45] tbuehlmann: nofxx, if you want to use arel: Correspondence.where(Correspondence.arel_tabe[:attribute].gteq(value))
[22:02:17] Maletor: or use Float::Infinity in a range statement, nofxx
[22:02:23] diegoviola: I need to be able to say
[22:02:26] annlewis: has joined #RubyOnRails
[22:02:35] Maletor: Correspondence.where(4..Float::Infinity)
[22:02:46] duncannz: has joined #RubyOnRails
[22:02:46] axl__: has joined #RubyOnRails
[22:02:58] shibabu: has joined #RubyOnRails
[22:02:59] Maletor: ^ better than using ARel, a private API
[22:03:15] diegoviola: "Show me all from correspondence where ts_print <= ts_signature til 19 hours from ts_signature
[22:03:50] smathy: Arel's not a private API.
[22:04:06] Maletor: Certainly is.
[22:04:52] Maletor: smathy: https://github.com/rails/rails/issues/16978#issuecomment-56211310
[22:04:58] Potatomound: has joined #RubyOnRails
[22:05:19] Maletor: smathy: the best way to tell if something is private is if you search it on api.rubyonrails.com and it doesn't come back
[22:06:06] tubbo: maletor: i think that's because arel is actually pulled in as a gem: https://github.com/rails/arel
[22:06:32] tubbo: maletor: it's not really a "private" API, it's just a "more lower level" API.
[22:06:51] tubbo: or maybe...more generic? :)
[22:06:52] smathy: maletor, that just means it's not part of Rails. Arel itself is a published gem with a public API.
[22:06:59] Maletor: right, i understand this
[22:07:04] netzfisch: has joined #RubyOnRails
[22:07:23] Maletor: if you use arel in your code without declaring the dependency explicitly. you're gonna have a bad time
[22:07:51] Maletor: any thoughts on my gist though?
[22:07:55] diegoviola: is Arel something AR uses internally?
[22:08:01] Maletor: diegoviola: yeap
[22:08:09] tubbo: maletor: ActiveRecord pulls in arel as a dependency on my app.
[22:08:18] tubbo: i don't need to declare it in Gemfile
[22:08:44] tubbo: maletor: the fuck is this? has_one :user, dependent: :nullify
[22:08:48] tubbo: you lil hacker
[22:10:04] tubbo: maletor: fwiw, the ActiveRecord error you got does not necessarily indicate that ARel, or even your association, is the issue. in fact, it could be a callback being called on the model, say on an after_destroy, wherein you're trying to update the model's attributes in some way.
[22:10:46] jottr: has joined #RubyOnRails
[22:11:37] rgrmatt: has joined #RubyOnRails
[22:12:29] jmrepetti: has joined #RubyOnRails
[22:13:45] smathy: maletor, which version of Rails?
[22:15:18] smathy: maletor, looks like a bug in has_one - not the first bug.
[22:16:31] maloik: has joined #RubyOnRails
[22:19:16] tbuehlmann: maletor, this is rails, we don't declare our dependencies :\
[22:19:21] banister: has joined #RubyOnRails
[22:20:11] Maletor: smathy: this is an upgrade from 4.1 to 4.2
[22:20:12] Maletor: is how i found it
[22:20:28] th_masv: has joined #RubyOnRails
[22:20:38] smathy: Yeah, I reproduced it in 4.2 - looks like a has_one bug.
[22:20:40] Maletor: true, it could be a red herring for an after_destroy. but for what it's worth removing the , :nullify makes it owrk
[22:20:47] Maletor: it's a bug!?
[22:21:08] SalexW: has joined #RubyOnRails
[22:22:18] Maletor: smathy: can you gist your repro steps? are you creating the bug or shall i?
[22:22:34] Maletor: %s/bug/bug report
[22:22:38] smathy: maletor, FWIW it's redundant in 4.2
[22:22:49] Maletor: smathy: care to elaborate?
[22:22:51] smathy: maletor, the default is to set the foreign key to NULL.
[22:23:03] twilling: has joined #RubyOnRails
[22:24:16] smathy: Should still not cause the error you're getting, should operate the same as has_many
[22:25:37] Maletor: trying to find the language in the api docs just to be doubly sure
[22:25:47] Trynemjoel: has joined #RubyOnRails
[22:28:01] Maletor: smathy: hmmm. > The default strategy is to do nothing (leave the foreign keys with the parent ids set),
[22:28:16] s2013: whats up beautiful people
[22:30:00] Maletor: smathy: i think the nullify is significant. at least in 4.2
[22:31:29] safety_cut: has joined #RubyOnRails
[22:31:49] Maletor: smathy: i'm gonna put together a report. shout at me if you see anything new.
[22:32:53] diegoviola: I get just a => #<Correspondence::ActiveRecord_Relation:0x2b2a78702e5c> when doing Correspondence.where("ts_print <= ts_signature + 7.hours")
[22:32:56] diegoviola: I expect to see data, why?
[22:33:18] Maletor: because rails?
[22:33:23] diegoviola: 7.hours is not being evaluated, might be the reason?
[22:33:50] Maletor: that strign is passed directly to sql. sql doesn't understand what 7.hours is
[22:33:58] shanemcd: has joined #RubyOnRails
[22:34:41] diegoviola: do I have to switch to PostgreSQL and use interval '19 hours' then?
[22:34:46] versatiletech: has left #RubyOnRails: ()
[22:34:48] rubyonrailed: has joined #RubyOnRails
[22:34:50] diegoviola: not sure how else to do this
[22:34:53] Maletor: no, you don't have to switch dbs
[22:35:16] artX000: has joined #RubyOnRails
[22:37:09] TheNet: has joined #RubyOnRails
[22:38:05] smathy: maletor, sorry, you're right - I hadn't reloaded my console.
[22:38:45] solenoids: has joined #RubyOnRails
[22:40:40] mary5030: has joined #RubyOnRails
[22:42:39] mdowd: has joined #RubyOnRails
[22:43:17] diegoviola: do you happen to know how I can do this from AR in a rdbms agnostic way?
[22:43:43] diegoviola: I've googled and I can't find anything
[22:44:39] tubbo: diegoviola: where('ts_print <= ?', ts_signature + 7.hours) is probably what you want.
[22:44:44] tubbo: that 2nd argument is a doozy
[22:45:21] tubbo: diegoviola: that said, what's the value of ts_signature?
[22:45:39] s2013: sup tubbo
[22:45:45] shanemcd: has joined #RubyOnRails
[22:46:06] diegoviola: tubbo: both are datetimes
[22:46:06] tubbo: oh wait, i think you can *return* elements like that. for example, where('ts_print <= (ts_signature + ?)', 7.hours)
[22:46:18] tubbo: diegoviola: that's not its value, thats its type.
[22:46:34] shanemcd: has joined #RubyOnRails
[22:46:39] tubbo: my above code i think is what you want...you basically want to do some math on ts_signature and add the value of 7.hours to it, right?
[22:46:42] tubbo: s2013: yoo
[22:46:44] atomical: has joined #RubyOnRails
[22:46:56] s2013: whats good
[22:47:06] petricore: has joined #RubyOnRails
[22:47:16] tubbo: not a whole lot
[22:47:28] s2013: hows work
[22:48:00] tubbo: it's work
[22:48:33] Maletor: smathy: https://github.com/rails/rails/issues/22498
[22:49:03] paradisaeidae: has joined #RubyOnRails
[22:49:04] diegoviola: [19] pry(main)> Correspondence.where('ts_print <= (ts_signature + ?)', 7.hours)
[22:49:56] tubbo: diegoviola: ??\_(???)_/??
[22:50:02] smathy: Cool maletor :+1:
[22:50:17] tubbo: does it at least generate the SQL you want it to diegoviola?
[22:51:24] diegoviola: Correspondence Load (0.5ms) SELECT "correspondences".* FROM "correspondences" WHERE (ts_print <= (ts_signature + 25200))
[22:53:06] jbrhbr: has joined #RubyOnRails
[22:53:39] Maletor: i'd be curious about the explain on that. it might be kinda slow but i have no idea.
[22:53:43] Trynemjoel: has joined #RubyOnRails
[22:54:20] jbrhbr: hey folks, i'm trying to make sense of the Turbolinks docs. can i use this for single-page apps? like to have a dynamic view of my model records as they change, for example
[22:54:36] jbrhbr: or am i better off just using WebSockets or some ajaxy type stuff
[22:55:02] Maletor: turbolinks depends on you linking between pages. it just makes it so you don't have to reparse js across page loads
[22:55:11] Maletor: it's ajax for the <body> tag
[22:55:13] Cohedrin: has joined #RubyOnRails
[22:55:34] pantaleon: has joined #RubyOnRails
[22:55:44] Maletor: if i were you i'd write it off. i'd write of js completely in rails.
[22:55:51] jbrhbr: yea i read that blurb at the top, but then there's some stuff about "partial client-side replacement" or whatever
[22:56:08] Maletor: ya, i think that's new and more in line with the new actioncable stuf
[22:56:23] Maletor: dhh might not like me saying it, but for a SPA just go with ember or react
[22:56:40] jbrhbr: react is hip
[22:56:49] jbrhbr: thanks for your input
[22:57:07] Maletor: just my opinon based on my experience
[22:57:51] jmarchello: has joined #RubyOnRails
[22:59:28] jottr: has joined #RubyOnRails
[22:59:54] Pupeno: has joined #RubyOnRails
[22:59:54] Pupeno: has joined #RubyOnRails
[23:00:11] tubbo: jbrhbr: that partial client-side replacement stuff isn't actually usable yet, unfortunately.
[23:00:17] tubbo: i tried it out myself
[23:00:33] tercenya: has joined #RubyOnRails
[23:00:38] cac: has joined #RubyOnRails
[23:00:40] tubbo: i use turboliks on my own projects fwiw. it definitely gets the job done.
[23:00:45] tubbo: it is not a replacement for a SPA.
[23:00:49] jbrhbr: for the caching etc?
[23:01:14] tubbo: yeah, basically if you just want markup to change, just change markup. no need to rely on the browser's caching abilities..
[23:01:26] tubbo: and i'm a big fan of returning html to the client rather than json and then doing client-side templating
[23:01:32] tubbo: when it makes sense
[23:01:41] tubbo: rails has the ability to do both, which is why i'm still using it.
[23:01:42] jbrhbr: erb makes such things pretty easy at least
[23:02:04] Maletor: tubbo: you speak the truth. but once isomorphism becomes a reality, i think that will be the holy grail
[23:02:37] tubbo: maletor: probably, i mean...i still like ruby a lot
[23:02:43] Synthead: has joined #RubyOnRails
[23:02:45] tubbo: so i'm probably gonna still use it
[23:02:56] Maletor: the worst part about client side frameworks is the dichotemy in templating it creates
[23:03:12] annlewis: has joined #RubyOnRails
[23:03:12] Maletor: but isomorhpism solves all those issues :)
[23:03:25] tubbo: maletor: the problem with isomorphism is that it's inherently flawed...until every client uses the same brand of javascript interpreter as the server, there's always going to be weird inconsistencies and problems.
[23:03:52] jbrhbr: tubbo: can you elaborate on what you mean by "isn't actually usable"?
[23:04:08] sleungcy: has joined #RubyOnRails
[23:04:11] tubbo: in an ideal world, everyone uses chrome. but in the real world, that's not the case. client-side JS and server-side JS may look similar, but the devil is in the details.
[23:04:30] Maletor: ...maybe. babel is pretty baller these days. but obviously some things don't backport
[23:04:39] tubbo: maletor: also, javascript needs to improve its floating point and numerical logic for me to start trusting it with monetary transactions.
[23:05:01] Maletor: seriously what is up with that? the largest integer it can handle is like 4.
[23:05:07] tbuehlmann: "that partial client-side replacement stuff isn't actually usable yet, unfortunately." <-- I tried turbolinks 3 just a few days ago, worked like a charm for me
[23:05:14] tubbo: jbrhbr: this was a while ago admittedly, but i tried to use the master branch of rails/turbolinks in a project, and none of the partial replacement stuff worked.
[23:05:28] tubbo: jbrhbr: like i did `render :show, change: 'foo'` and it had no effect.
[23:05:32] owenjones: has joined #RubyOnRails
[23:05:39] tbuehlmann: can tell the exact difference, just worked :)
[23:05:51] tubbo: tbuehlmann: orly...maybe i have to give it another shot. you using the latest rails/turbolinks?
[23:06:15] tubbo: i actually am as well now because of the nice little progressBar
[23:06:18] cnk: has joined #RubyOnRails
[23:07:05] tbuehlmann: some days ago I read about basecamp's rewrite of turbolinks, not having the partial replacement stuff in it. I'd be pretty sad if that feature is not available in turbolinks 5/rails 5
[23:07:11] jbrhbr: tbuehlmann: so you think the simple use case i described would fit into it well?
[23:07:29] moei: has joined #RubyOnRails
[23:07:49] tbuehlmann: sorry, I haven't followed the actual conversation
[23:08:22] jbrhbr: tbuehlmann: my example was a listing of rows of model data that just updated and refreshed whenever those rows changed
[23:08:51] tbuehlmann: the change coming from you or a different "session"?
[23:09:14] jbrhbr: i'm interested in the answer to either scenario
[23:09:43] tbuehlmann: when the change is coming from you: very easy to achieve with turbolinks
[23:09:43] jbrhbr: suppose there's a button on that page to insert a new model record
[23:09:49] tbuehlmann: the latter, well, actioncable? :)
[23:10:05] herminiotorres: has joined #RubyOnRails
[23:10:59] bdnelson: has joined #RubyOnRails
[23:11:13] lapide_viridi: has joined #RubyOnRails
[23:14:59] simplyianm: has joined #RubyOnRails
[23:17:09] hamstersky: has joined #RubyOnRails
[23:21:14] cac: has joined #RubyOnRails
[23:23:02] hamstersky: has joined #RubyOnRails
[23:23:20] SalexW: has joined #RubyOnRails
[23:24:45] pyemkey: has joined #RubyOnRails
[23:26:54] debster: has joined #RubyOnRails
[23:27:07] diegoviola: my coworker is saying we have to use ts_print.day and ts_signature.day but ts_signature is a datetime
[23:27:11] shanemcd: has joined #RubyOnRails
[23:27:13] yfeldblum: has joined #RubyOnRails
[23:27:23] diegoviola: I can't do ts_signature.day afaik
[23:28:13] twilling: has joined #RubyOnRails
[23:31:27] ql6wlld: has joined #RubyOnRails
[23:32:13] rubyonrailed: has joined #RubyOnRails
[23:32:33] debajit: has joined #RubyOnRails
[23:32:36] B1n4r10: has joined #RubyOnRails
[23:36:12] s2013: has joined #RubyOnRails
[23:37:52] dopie: https://gist.github.com/staycreativedesign/2d78eac3b7ad31bd0202
[23:38:07] dopie: why am i getting this if i created a htm relationship
[23:40:19] w0bni: has joined #RubyOnRails
[23:40:34] cnk: dopie: what are the Event class's associations?
[23:41:09] cnk: has_many :vip, through: :vip_at_events?
[23:41:43] dopie: updated gist
[23:41:53] dopie: has_many :vip_at_events
[23:41:53] dopie: has_many :vips, through: :vip_at_events
[23:42:01] w0bni: has joined #RubyOnRails
[23:42:13] cnk: so your view needs vips not vip
[23:42:25] cnk: f.text_field :vip
[23:42:47] dopie: when I do that
[23:42:50] dopie: i get this
[23:42:59] dopie: http://www.screencast.com/t/rwdOAAddHL
[23:43:00] dopie: on the field
[23:43:09] dopie: Vip ActiveRecord::Association
[23:43:27] mdowd: has joined #RubyOnRails
[23:44:53] cnk: accepts_nested_attributes_for :vips
[23:45:00] cnk: add that to your events model
[23:45:10] cnk: http://www.sitepoint.com/complex-rails-forms-with-nested-attributes/
[23:45:17] cnk: discusses nested forms
[23:46:20] SalexW: has joined #RubyOnRails
[23:47:26] annlewis: has joined #RubyOnRails
[23:49:26] dopie: i still get Vips ActiveRecord
[23:49:36] dopie: restarting server
[23:50:59] blackhuey: has joined #RubyOnRails
[23:52:27] TheNet: has joined #RubyOnRails
[23:52:57] Grundell: has joined #RubyOnRails
[23:53:51] jmrepetti: has joined #RubyOnRails
[23:54:19] blackmesa: has joined #RubyOnRails
[23:55:23] jmrepetti: has joined #RubyOnRails
[23:58:11] Radar: GOOD MORNING
[23:58:22] dopie: Good morning
[23:58:41] Radar: dopie: show us the new code
[23:59:01] elton: has joined #RubyOnRails
[23:59:32] dopie: https://gist.github.com/staycreativedesign/2d78eac3b7ad31bd0202