« Back to channel list

#RubyOnRails - 04 July 2016

« Back 1 day Forward 1 day »
[00:04:40] harfangk: has joined #RubyOnRails
[00:10:27] AmiMoench: has joined #RubyOnRails
[00:11:45] triptec: has joined #RubyOnRails
[00:11:55] Ropeney: has joined #RubyOnRails
[00:14:58] Rodya_: has joined #RubyOnRails
[00:16:50] l4v2: has joined #RubyOnRails
[00:19:37] eljimmy: has joined #RubyOnRails
[00:21:52] w09x: has joined #RubyOnRails
[00:22:39] Oog: got it working thanks!
[00:22:48] Oog: matthewd try_files was the answer
[00:23:14] Rodya_: has joined #RubyOnRails
[00:26:57] Oog: has joined #RubyOnRails
[00:27:19] triptec: has joined #RubyOnRails
[00:31:03] Oliphaunte: has joined #RubyOnRails
[00:31:58] harfangk: has joined #RubyOnRails
[00:35:38] Honeycomb: has joined #RubyOnRails
[00:42:46] rakm: has joined #RubyOnRails
[00:44:06] chipotle: has joined #RubyOnRails
[00:45:14] zacts: has joined #RubyOnRails
[00:47:17] pawnbox: has joined #RubyOnRails
[00:48:42] Oliphaunte: has joined #RubyOnRails
[00:50:52] chipotle_: has joined #RubyOnRails
[00:51:35] quazimodo: has joined #RubyOnRails
[00:51:45] quazimod1: has joined #RubyOnRails
[00:52:08] rogue_koder: has joined #RubyOnRails
[00:54:24] arBmind: has joined #RubyOnRails
[00:56:19] deecross: has joined #RubyOnRails
[00:56:27] mello: has joined #RubyOnRails
[00:56:38] ur5us: has joined #RubyOnRails
[01:00:30] roamingdog: has joined #RubyOnRails
[01:00:40] Ayey_: has joined #RubyOnRails
[01:02:14] chipotle: has joined #RubyOnRails
[01:03:07] phillipjones: has joined #RubyOnRails
[01:09:37] rubyonrailed: has joined #RubyOnRails
[01:10:58] blackmesa: has joined #RubyOnRails
[01:14:28] one_zero: has joined #RubyOnRails
[01:16:51] ur5us: has joined #RubyOnRails
[01:17:32] ekinmur: has joined #RubyOnRails
[01:17:39] mdel: has joined #RubyOnRails
[01:19:22] sevenseacat: has joined #RubyOnRails
[01:20:57] Oliphaunte: has joined #RubyOnRails
[01:24:21] der-landgraf: has joined #RubyOnRails
[01:24:36] openstruct: has joined #RubyOnRails
[01:28:38] kevr: has joined #RubyOnRails
[01:36:08] nettoweb: has joined #RubyOnRails
[01:38:45] pawnbox: has joined #RubyOnRails
[01:42:41] kevr: let's say i have a Recipe model, and a Recipe::Ingredient model, the Recipe model contains 'has_many :ingredients' and i also want a collection of main ingredients which are a subset of :ingredients, is there a way to define something like 'has_many :main_ingredients that are :ingredients'?
[01:43:21] mello: has joined #RubyOnRails
[01:43:28] kevr: then, down the road, i can say like Recipe.main_ingredients.create(ingredient_id: 1) or something
[01:43:40] ensyde__: has joined #RubyOnRails
[01:43:40] jayc0b0: has joined #RubyOnRails
[01:43:43] kevr: or do i need a separate model for a Main Ingredient that just relates to an Ingredient?
[01:54:36] Oliphaunte: has joined #RubyOnRails
[02:01:57] eserror: has joined #RubyOnRails
[02:02:44] Ayey_: has joined #RubyOnRails
[02:03:43] openstruct: has joined #RubyOnRails
[02:07:13] asheinfeld: has joined #RubyOnRails
[02:08:09] pontiki: kevr: are the ingredients in your recipes not shared with other recipes?
[02:14:43] pawnbox: has joined #RubyOnRails
[02:15:46] blackmesa: has joined #RubyOnRails
[02:15:55] ss_much: has joined #RubyOnRails
[02:19:57] deecross: has joined #RubyOnRails
[02:30:49] roamingdog: has joined #RubyOnRails
[02:32:45] DZj091231kld: has joined #RubyOnRails
[02:34:11] kevr: they may be, or they may not be
[02:36:19] pvertenten: has joined #RubyOnRails
[02:38:42] pontiki: the approach you take depends on that
[02:38:56] triptec: has joined #RubyOnRails
[02:49:32] Meow-J: has joined #RubyOnRails
[02:57:45] rubyonrailed: has joined #RubyOnRails
[03:03:11] h0lyd1v3r: has joined #RubyOnRails
[03:03:29] Ayey_: has joined #RubyOnRails
[03:16:04] dc4: has joined #RubyOnRails
[03:17:04] blackmesa: has joined #RubyOnRails
[03:19:25] phillipjones: has joined #RubyOnRails
[03:19:48] crdpink2: has joined #RubyOnRails
[03:22:46] jheathco: has joined #RubyOnRails
[03:34:13] Oliphaunte: has joined #RubyOnRails
[03:35:22] KetoEater: has joined #RubyOnRails
[03:36:02] asheinfeld: has joined #RubyOnRails
[03:36:18] Oliphaun_: has joined #RubyOnRails
[03:40:19] Devalo: has joined #RubyOnRails
[03:44:57] Rodya_: has joined #RubyOnRails
[03:45:47] rickmasta: has joined #RubyOnRails
[03:47:28] pawnbox: has joined #RubyOnRails
[03:56:03] Rodya_: has joined #RubyOnRails
[03:57:05] JoshGlzBrk: has joined #RubyOnRails
[04:03:06] pawnbox: has joined #RubyOnRails
[04:03:46] jenrzzz: has joined #RubyOnRails
[04:04:22] Ayey_: has joined #RubyOnRails
[04:07:48] moei: has joined #RubyOnRails
[04:08:22] rubyonrailed: has joined #RubyOnRails
[04:09:59] justrohu: has joined #RubyOnRails
[04:11:14] dc4: has joined #RubyOnRails
[04:17:30] roamingd_: has joined #RubyOnRails
[04:18:44] azor: has joined #RubyOnRails
[04:19:34] blackmesa: has joined #RubyOnRails
[04:29:06] sebstrax: has joined #RubyOnRails
[04:31:05] Devalo: has joined #RubyOnRails
[04:33:19] ferr: has joined #RubyOnRails
[04:37:16] asheinfeld: has joined #RubyOnRails
[04:38:53] justrohu: has joined #RubyOnRails
[04:42:22] deecross: has joined #RubyOnRails
[04:42:29] dc4: has joined #RubyOnRails
[04:54:00] jenrzzz: has joined #RubyOnRails
[05:00:07] pawnbox: has joined #RubyOnRails
[05:01:44] alfiemax: has joined #RubyOnRails
[05:02:05] rails240: has joined #RubyOnRails
[05:06:01] triptec: has joined #RubyOnRails
[05:06:36] JoshGlzBrk: has joined #RubyOnRails
[05:06:50] dminuoso: has joined #RubyOnRails
[05:09:29] srinidhi: has joined #RubyOnRails
[05:13:52] alfiemax: has joined #RubyOnRails
[05:16:58] conta: has joined #RubyOnRails
[05:21:43] triptec: has joined #RubyOnRails
[05:22:40] Ropeney: has joined #RubyOnRails
[05:26:59] dc4: has joined #RubyOnRails
[05:32:57] blackmesa: has joined #RubyOnRails
[05:35:33] alfiemax: has joined #RubyOnRails
[05:35:48] pawnbox: has joined #RubyOnRails
[05:38:12] asheinfeld: has joined #RubyOnRails
[05:43:58] rvanlieshout: has joined #RubyOnRails
[05:44:02] siaw23: has joined #RubyOnRails
[05:44:16] siaw23: i need help. anytime i run rspec i get https://gist.github.com/siaw23/4e2decfcde918a115e20151be0e3e021
[05:44:32] siaw23: i have my rails_helper and spec_helper in that link. i’ll appreciate some help
[05:44:55] sevenseacat: siaw23: what have you changed, because it was working before
[05:45:55] siaw23: i realised the project uses spork. i found spork on github, read a bit and it said: A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.
[05:46:27] siaw23: so i thought that might explain why my tests are behaving “abnormally” with importing stuff and all the PG errors
[05:46:36] jishankai: has joined #RubyOnRails
[05:46:46] siaw23: so i started spork in another terminal session
[05:46:48] sevenseacat: I explained that to you yesterday
[05:46:57] siaw23: you did…
[05:47:07] siaw23: but spork must be in the project for a reason
[05:47:11] sevenseacat: you do not have to start spork manually
[05:47:21] siaw23: i don’t?
[05:47:38] siaw23: then how’s it going to give me the “A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.” part?
[05:47:46] siaw23: i have to start that server right?
[05:48:43] sevenseacat: I suggest removing spork.
[05:49:17] dminuoso: has joined #RubyOnRails
[05:49:38] siaw23: oh really?
[05:53:25] phredus: I just started using chruby and ruby-install and things are good, I don't want to screw things up. What is the prefered method for installing rails?
[05:54:50] CrossFit_Jesus: gem install rails, usually
[05:55:11] deecross: has joined #RubyOnRails
[05:56:34] rubyonrailed: has joined #RubyOnRails
[05:57:11] tvw: has joined #RubyOnRails
[05:57:41] netzfisch: has joined #RubyOnRails
[05:59:51] pontiki: has joined #RubyOnRails
[06:00:03] phredus: ok, good thanks guys
[06:00:14] xlegoman: has joined #RubyOnRails
[06:00:47] helpa: We're not all guys here - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[06:03:06] dc4: has joined #RubyOnRails
[06:06:25] Ayey_: has joined #RubyOnRails
[06:09:36] edwinvdgraaf: has joined #RubyOnRails
[06:14:16] rails454: has joined #RubyOnRails
[06:16:59] rails454: /msg NickServ VERIFY REGISTER rails454 gsowuepbktre
[06:18:02] rails454: I am trying to build a city switcher
[06:18:09] rails454: from the nav bar
[06:18:27] rails454: how do I go about this? Do I use the application controller or are there any methods that allows it to work on all pages?
[06:19:46] blackmesa: has joined #RubyOnRails
[06:23:09] darutoko: has joined #RubyOnRails
[06:24:51] Pazician: has joined #RubyOnRails
[06:24:52] Pazician: has joined #RubyOnRails
[06:25:56] pontiki: i'd build a dedicated controller & action for it
[06:26:24] rvanlieshout: what is a city switch?
[06:26:30] rvanlieshout: is that something session related?
[06:26:42] pontiki: as all the controllers inherit from ApplicationController, you don't want to put something in there
[06:28:14] conta: has joined #RubyOnRails
[06:28:33] rails454: it is session related
[06:28:38] rvanlieshout: then SessionsController#update :)
[06:28:41] User458764: has joined #RubyOnRails
[06:28:59] rails454: thanks a lot for informing
[06:29:36] rails454: the way I want it, is, when the use enters the location, they are able to conduct all activity within the confines of their existing location, but their profile shows activity for all locations
[06:29:42] siaw23: has left #RubyOnRails: ()
[06:30:53] netzfisch: has joined #RubyOnRails
[06:31:28] deecross: has joined #RubyOnRails
[06:31:31] dminuoso: has joined #RubyOnRails
[06:31:45] arBmind: has joined #RubyOnRails
[06:38:23] dionysus69: has joined #RubyOnRails
[06:40:18] asheinfeld: has joined #RubyOnRails
[06:43:02] artto: has joined #RubyOnRails
[06:43:10] GoranPavlovic: has joined #RubyOnRails
[06:44:20] deecross: has joined #RubyOnRails
[06:45:15] triptec: has joined #RubyOnRails
[06:45:21] qejk: has joined #RubyOnRails
[06:45:22] comrad: has joined #RubyOnRails
[06:48:01] aganov: has joined #RubyOnRails
[06:53:04] daumie: has joined #RubyOnRails
[06:55:50] pyemkey: has joined #RubyOnRails
[06:57:20] anquegi: has joined #RubyOnRails
[06:59:54] dminuoso: has joined #RubyOnRails
[07:00:30] morfin: has joined #RubyOnRails
[07:00:46] morfin: do you use repositories in your applications and how you implement that?
[07:01:42] pontiki: i haven't, altho it's an interesting concept
[07:02:12] daumie: morfin: do you mean Version Control?
[07:02:55] pontiki: oh, i was assuming they meant the Repository Pattern
[07:03:29] morfin: yep i did mean that pattern
[07:03:30] pontiki: the closest i have come is to pull logic away from the persistence objects into service objects
[07:03:42] morfin: i looked at some strange implementations but they're a bit cmplicated
[07:03:59] pontiki: i wouldn't call it a Repository pattern really, just a bit of a move that direction
[07:04:44] mark_66: has joined #RubyOnRails
[07:06:54] pontiki: where have you seen it used, morfin ?
[07:07:13] Ayey_: has joined #RubyOnRails
[07:08:08] harfangk_: has joined #RubyOnRails
[07:09:26] chipotle: has joined #RubyOnRails
[07:15:38] finnnnnnnnnnn: has joined #RubyOnRails
[07:19:23] User458764: has joined #RubyOnRails
[07:20:08] deecross: has joined #RubyOnRails
[07:20:21] ur5us: has joined #RubyOnRails
[07:21:14] pawnbox: has joined #RubyOnRails
[07:22:02] lxsameer: has joined #RubyOnRails
[07:22:28] artto: has joined #RubyOnRails
[07:23:04] antgel: has joined #RubyOnRails
[07:25:02] SanguineAnomaly: has joined #RubyOnRails
[07:25:54] jenrzzz: has joined #RubyOnRails
[07:26:12] rubyonrailed: has joined #RubyOnRails
[07:26:23] morfin: i just looked at some examples over Internet
[07:27:31] pawnbox: has joined #RubyOnRails
[07:33:17] eGGshke: has joined #RubyOnRails
[07:36:51] deecross: has joined #RubyOnRails
[07:39:53] Macaveli: has joined #RubyOnRails
[07:40:09] artto: has joined #RubyOnRails
[07:41:09] asheinfeld: has joined #RubyOnRails
[07:42:46] naftilos76: has joined #RubyOnRails
[07:43:12] srinidhi: has joined #RubyOnRails
[07:45:10] alfiemax: has joined #RubyOnRails
[07:46:15] Lumpy: has joined #RubyOnRails
[07:49:34] conta: has joined #RubyOnRails
[07:49:47] ngw: has joined #RubyOnRails
[07:52:00] quazimodo: has joined #RubyOnRails
[07:54:57] adgtl: has joined #RubyOnRails
[07:57:01] nclbr: has joined #RubyOnRails
[07:57:41] nclbr: has joined #RubyOnRails
[07:59:44] artto: has joined #RubyOnRails
[08:00:49] PotatoChipz: has joined #RubyOnRails
[08:01:16] PotatoChipz: Can anyone explain to me the concept of post_initialize in Sandi Metz examples :S
[08:04:33] sevenseacat: without seeing the code, no
[08:04:50] marr: has joined #RubyOnRails
[08:07:15] fox_mulder_cp: hi, folks. i add resque for my app, when i create model, i call job and pass model.id for it for loong, loong creating task. how i can start task when i need drop model, i must serialize model into json and pass into long destraoying job?
[08:08:20] Ayey_: has joined #RubyOnRails
[08:09:00] emilkarl: has joined #RubyOnRails
[08:10:00] artto: has joined #RubyOnRails
[08:11:00] rvanlieshout: fox_mulder_cp: queueu one after_destroy ?
[08:11:59] fox_mulder_cp: rvanlieshout: after_destroy model is dropped from db?
[08:12:58] dannyguk: has joined #RubyOnRails
[08:15:23] snowy: has joined #RubyOnRails
[08:15:36] snowy: has joined #RubyOnRails
[08:16:45] rvanlieshout: you want to schedule job when a model instance is destroyed, no?
[08:16:46] fox_mulder_cp: rvanlieshout: at which stage removes the model?
[08:16:51] pLaToOn: has joined #RubyOnRails
[08:16:57] rvanlieshout: i don't understand your question
[08:17:00] morfin: which server you use for production?
[08:17:10] rvanlieshout: we use passenger, puma or unicorn
[08:17:11] fox_mulder_cp: rvanlieshout: yes, but BEFORE is deleteing in sql
[08:17:17] rvanlieshout: before_destroy then?
[08:17:29] rvanlieshout: depends on the situation
[08:17:30] morfin: i tried Puma it seems to be pretty nice thing
[08:17:35] morfin: and Unicorn
[08:17:42] fox_mulder_cp: morfin: i use nginx + puma
[08:18:59] srinidhi: has joined #RubyOnRails
[08:19:10] rvanlieshout: morfin: so why the question?
[08:19:35] morfin: what can you say abot Thin - last time i used it had some issues
[08:19:43] dminuoso: morfin: We use nginx for TLS termination and puma behind it.
[08:20:27] tbuehlmann: I favor nginx with puma, running a lot of things on heroku though
[08:20:29] rvanlieshout: morfin: why the need to know about all?
[08:20:32] rvanlieshout: does what you have work?
[08:20:47] tbuehlmann: morfin: http://rails-hosting.com/2016/
[08:21:51] fox_mulder_cp: morfin: rails 5 recommend puma for websockets active cable work
[08:23:01] dminuoso: tbuehlmann: I wonder what happened to all the nginx/passenger people.
[08:23:02] rvanlieshout: there are way to many things to keep in mind for any of these answers to be correct
[08:23:19] rvanlieshout: there just is no single best solution
[08:33:10] finnnnnnnnnnn: has joined #RubyOnRails
[08:34:00] srinidhi: has joined #RubyOnRails
[08:35:21] jsrn: has joined #RubyOnRails
[08:35:40] blackmesa: has joined #RubyOnRails
[08:37:52] srinidhi1: has joined #RubyOnRails
[08:37:52] srinidhi: has joined #RubyOnRails
[08:37:56] artto_: has joined #RubyOnRails
[08:38:12] AzaToth: has joined #RubyOnRails
[08:39:59] edwinvdgraaf: has joined #RubyOnRails
[08:41:52] asheinfeld: has joined #RubyOnRails
[08:43:07] AimlessRAven: has joined #RubyOnRails
[08:43:09] AimlessRAven: https://gist.github.com/anonymous/039ad818bd05eafd437785b706fd94fa
[08:43:36] AimlessRAven: why i can use can :read, Post.published but i cant use can :comment, Post.published
[08:43:49] AimlessRAven: if i use can :comment, Post
[08:43:53] AimlessRAven: its work.. but not for my published scope
[08:43:54] omaraliqureshi: has joined #RubyOnRails
[08:45:21] AimlessRAven: the error is CanCan::AccessDenied in PostsController#like You are not authorized to access this page.
[08:47:50] AimlessRAven: someone knows?
[08:47:52] conta: has joined #RubyOnRails
[08:50:13] tvw: has joined #RubyOnRails
[08:50:31] jenrzzz: has joined #RubyOnRails
[08:50:31] jenrzzz: has joined #RubyOnRails
[08:51:14] duncannz: has joined #RubyOnRails
[08:52:42] finnnnnnnnnnn: has joined #RubyOnRails
[08:54:40] rubyonrailed: has joined #RubyOnRails
[08:56:00] mark_66: has joined #RubyOnRails
[09:03:23] codelahoma: has joined #RubyOnRails
[09:03:50] Sashimi: has joined #RubyOnRails
[09:04:17] pLaTo0n: has joined #RubyOnRails
[09:04:47] yardenbar: has joined #RubyOnRails
[09:07:09] alfiemax: has joined #RubyOnRails
[09:12:26] lxsameer: has joined #RubyOnRails
[09:15:27] jokke: is it possible to define and use more complex routing concerns that would take arguments?
[09:16:42] Hyuk: has joined #RubyOnRails
[09:16:59] rvanlieshout: jokke: could you give that a bit more context? what problem are you trying to solve?
[09:17:47] harfangk: has joined #RubyOnRails
[09:17:59] pawnbox: has joined #RubyOnRails
[09:18:09] jokke: i have a functionality that allows me to define attachment associations on models. There can be many of them and they have different names. For the image uploading i'd need something similar
[09:18:30] jokke: but i just realized i could just add a param, which would specify the prefix for the association
[09:19:05] rvanlieshout: and with routing concerns you mean a scope?
[09:19:16] alfiemax: i was wondering if some one here could help me understand how to implement soa in a rails app
[09:19:51] alfiemax: Service Oriented Architecture
[09:20:02] sevenseacat: thats rather a broad idea
[09:20:09] rvanlieshout: create an app/services/... and work from there
[09:20:17] alfiemax: if someone could point me to a sample repo or something that i can refer to
[09:20:21] alfiemax: or a tutorial
[09:20:41] sevenseacat: alfiemax: what are you trying to do?
[09:20:47] sevenseacat: SOA is a method, not a goal
[09:20:48] alfiemax: i think i have somewhat understanding of it theoreticaly
[09:20:59] alfiemax: ok, let me ask
[09:21:13] alfiemax: if i have a rails app,
[09:21:29] alfiemax: and now i want to extract out the registrations module to a separate service
[09:21:37] alfiemax: how should i go about and do that?
[09:21:50] alfiemax: so specific purpose, just learning
[09:22:04] alfiemax: i just took this as an example to speak upon
[09:22:24] rvanlieshout: alfiemax: a service could just be a PORO
[09:22:27] rvanlieshout: just a class you define yourself
[09:22:41] rvanlieshout: RegistrationService.new(registration_params).process!
[09:22:50] Velizar: has joined #RubyOnRails
[09:24:00] rvanlieshout: plain old ruby object
[09:24:22] alfiemax: i'm looking at this : https://www.sitepoint.com/soa-for-the-little-guys/
[09:25:08] alfiemax: this is a statement given there : `Each service has its own database, its own domain logic, and its own HTTP interface`
[09:25:31] rvanlieshout: imho that should only be done if there is a good reason
[09:25:35] rvanlieshout: and most likely there is none
[09:26:36] alfiemax: i agree, but right now. i don't have a valid requirement. and i'm only trying to learn how to implement an app in soa
[09:26:40] harfangk: hm… does anyone have experience with google translate API? i’m wondering if it’s possible to instruct Google Translate to give a custom vocab list high priority when translating. This is to ensure that jargons to a particular field get translated correctly. For example, I want Google Translate to identify and translate “account payable” as an accounting word, not a combination of two common words. Documentation doesn’t list such endpoint
[09:26:40] harfangk: but i want to ask just to be sure
[09:27:08] rvanlieshout: alfiemax: this is just a way too overcomplicated thing
[09:28:02] alfiemax: hmm... i agree... i've read like alot of blogs, articles, etc.. and after all this.. i'm totally clueless
[09:28:40] jokke: how can i define methods on the caller from a module method that's being called in class evaluation context?
[09:28:48] rvanlieshout: alfiemax: wait for a proper use case
[09:28:59] rvanlieshout: then apply something like this (well.. not that over complicated article, but something sane)
[09:29:15] jokke: as in class Foo; SomeModule.foo; end
[09:29:28] jokke: SomeModule.foo would then define methods on Foo
[09:32:26] jokke: hm more like a #ruby question i guess
[09:34:33] morfin: Ruby can even create new types from nothing
[09:34:35] srinidhi1: has joined #RubyOnRails
[09:36:21] morfin: MyType = Struct.new(:foo,:bar); my = MyType.new
[09:37:18] conta1: has joined #RubyOnRails
[09:37:52] pawnbox: has joined #RubyOnRails
[09:42:36] asheinfeld: has joined #RubyOnRails
[09:42:51] harfangk: has joined #RubyOnRails
[09:45:21] blackhuey: has joined #RubyOnRails
[09:46:42] kevr: has joined #RubyOnRails
[09:49:01] Oog: has joined #RubyOnRails
[09:52:22] Circuit8: has joined #RubyOnRails
[09:52:43] User458764: has joined #RubyOnRails
[09:58:34] artto: has joined #RubyOnRails
[10:01:17] arBmind: has joined #RubyOnRails
[10:05:09] marr: has joined #RubyOnRails
[10:07:31] agent_white: has joined #RubyOnRails
[10:08:27] adgtl_: has joined #RubyOnRails
[10:10:54] Ropeney: has joined #RubyOnRails
[10:12:48] baash05: has joined #RubyOnRails
[10:13:29] baash05: Hey.. not specifically a rails question but has anyone ever worked with cloudplatform?
[10:14:19] dminuoso: So I wanted to buy a Ford, so I went to a Volkswagen dealer.
[10:14:47] rvanlieshout: baash05: why does that matter?
[10:18:24] artto_: has joined #RubyOnRails
[10:23:45] baash05: I was looking for a channel, and since if someone asked me if I knew of AWS or heroku I would have some insight I figured perhaps another rails dev would be able to share.
[10:24:19] artto: has joined #RubyOnRails
[10:24:46] baash05: Anyone know of a good channel to hop on about cloudplatform? Or worked with it
[10:24:54] DoubleMalt: has joined #RubyOnRails
[10:25:45] rvanlieshout: but what do you want to know about it?
[10:26:05] arup_r: has joined #RubyOnRails
[10:26:09] rvanlieshout: can your actual question only be answered by whomever uses cloudplatform?
[10:26:33] rvanlieshout: also, there are tons of 'cloudplatform'
[10:26:46] rvanlieshout: even doubt if any of their users actually knows the defenition of cloud computing
[10:28:56] gremly: has joined #RubyOnRails
[10:30:48] harfangk: has joined #RubyOnRails
[10:33:44] rubyonrailed: has joined #RubyOnRails
[10:33:47] jenrzzz: has joined #RubyOnRails
[10:33:47] jenrzzz: has joined #RubyOnRails
[10:34:01] arup_r: We are storing files in local file system. Now we are planning to switch to s3. for sometime, I am thinking to store images both local and s3. Is this possible? Any pointers on this?
[10:34:12] Ergo: has joined #RubyOnRails
[10:34:22] matthewd: arup_r: Why?
[10:35:03] arup_r: to migrate them slowly so that nothing harms. But I am open to other ideas
[10:35:27] finnnnnnnnnnn: has joined #RubyOnRails
[10:36:00] GorillaApe: has joined #RubyOnRails
[10:36:02] matthewd: If you're doing the file handling manually, I see no reason you can't Just Do That. If you're using something like carrierwave, I imagine it would be more effort than it's worth.
[10:36:27] arup_r: matthewd: I forgot to mention that i am using carrierwave
[10:36:36] GorillaApe: Should I include whole app directory to guard rils
[10:37:32] arup_r: I am just looking for best way to migrate from file system storage to s3
[10:39:16] matthewd: arup_r: I would suggest just doing a wholesale migration, unless you have a seriously large amount of data
[10:39:27] benlieb: has joined #RubyOnRails
[10:39:36] matthewd: GorillaApe: "to guard rails"?
[10:39:52] GorillaApe: I am talking about guard gem
[10:40:04] rvanlieshout: doesn't that already include all kinds of stuff for rails?
[10:41:38] baash05: Sorry.. supper :) I was trying to figure out how to ssh into a citrix cloudplatfrom system.
[10:42:10] baash05: I have username and password but I want to figure out how to get the code and database off the system and to a local dev environment.
[10:42:26] baash05: Or perhaps copy the VM to a local box.
[10:43:11] rvanlieshout: you don't have the code in version control?
[10:43:22] asheinfeld: has joined #RubyOnRails
[10:43:39] Ergo^: has joined #RubyOnRails
[10:43:45] baash05: I've not been given access to the github yet. (I am just debating on if I want to take a contract)
[10:44:59] sevenseacat: you've been given access to the prod server without signing a contract? >_>
[10:45:30] baash05: I signed the NDA.
[10:45:52] alfiemax: has joined #RubyOnRails
[10:45:59] baash05: But I've not decided if I want to work with the client.
[10:46:15] baash05: He wants some strange things and depending on how the code looks...
[10:47:01] matthewd: If the NDA is sufficient to give you access to *production*, repo access doesn't seem an unreasonable request
[10:47:52] baash05: Yeah.. He's getting around to it, but part of what I want to know is how easy it is to access to the "box"
[10:49:13] baash05: He wants me to "create an installer" of "the app" which has me puzzled and has me thinking he's not quite sure what he's doing.. I've lived with these types of clients before, but if the code and env is puzzling too then I'd rather not get to deep.
[10:50:05] baash05: I figure if I can ssh into the box, I have all I need.
[10:50:48] pyemkey: has joined #RubyOnRails
[10:51:22] rodfersou: has joined #RubyOnRails
[10:53:00] ur5us: has joined #RubyOnRails
[10:56:05] omaraliqureshi: citrix cloudplatform D:
[10:56:17] omaraliqureshi: where insanity meets the enterprise
[10:56:41] rvanlieshout: people tend to like a sentence with a few buzz words in it
[10:56:56] Ergo: has joined #RubyOnRails
[10:56:56] rvanlieshout: there is a radio commercial i've heard recently about connecting big data with cloud
[10:57:15] omaraliqureshi: i bet that company makes LOADS of money
[10:58:10] rvanlieshout: like 99% of the companies who clame to use big data just don't
[10:59:12] mtaw: has joined #RubyOnRails
[10:59:15] mtaw1: has joined #RubyOnRails
[11:00:11] omaraliqureshi: https://www.youtube.com/watch?v=nYscs78R5Fs&feature=youtu.be&t=14
[11:06:40] pyemkey: has joined #RubyOnRails
[11:10:09] PotatoChipz: has joined #RubyOnRails
[11:10:25] baash05: Ha... I love all the buzz words..
[11:10:59] User458764: has joined #RubyOnRails
[11:15:06] emilkarl: has joined #RubyOnRails
[11:16:50] harfangk: has joined #RubyOnRails
[11:17:12] roshanavand: has joined #RubyOnRails
[11:18:47] artto: has joined #RubyOnRails
[11:19:37] jishankai: has joined #RubyOnRails
[11:21:37] Ergo^: has joined #RubyOnRails
[11:25:57] ych: has joined #RubyOnRails
[11:29:52] conta: has joined #RubyOnRails
[11:30:05] samuelgiles_: has joined #RubyOnRails
[11:30:19] samuelgiles_: In Rails 5 if I try and use nil as a value in an ActiveRecord query it raises an Argument Error: "ArgumentError: invalid argument: nil." pointing at /activerecord-5.0.0/lib/active_record/relation/spawn_methods.rb:36 So for example in Rails 4 you could do User.where(club_id: nil), now you get 'invalid argument: nil' - Any ideas?
[11:31:59] matthewd: samuelgiles_: Are you calling User.where(club_id: nil) and getting that error? Or is that just an example?
[11:33:04] sevenseacat: thats a valid query, so thats not the problem
[11:33:05] samuelgiles_: Thats just an example
[11:33:12] baash05: Got the real code :)
[11:34:26] samuelgiles_: Just something I noticed in an application I'm trying to update at the moment - Just checking to see whats changed in spawn_methods in Rails 5
[11:34:52] sevenseacat: samuelgiles_: we can't really help you without seeing the code and the error
[11:35:13] blackmesa: has joined #RubyOnRails
[11:35:35] samuelgiles_: No problem, I just wondered if anyone had noticed this change in Rails 5 and whether they knew if it was intentional
[11:36:11] baash05: sam.. send us the code you're killing us man
[11:36:12] matthewd: samuelgiles_: The thing you described is not true, so: no, no-one has noticed that change
[11:36:45] baash05: (sevenseascat.. I assumed man cause name is samual :) )
[11:37:09] samuelgiles_: I can't send the code unfortunately as its part of a huge application - I'm just verifying if it affects a brand new Rails 5 at the moment
[11:37:40] artto: has joined #RubyOnRails
[11:38:03] baash05: Shouldn't be an issue.. the code works in 5 and 4.
[11:38:05] ElFerna: has joined #RubyOnRails
[11:38:21] pontiki: has joined #RubyOnRails
[11:39:13] deecross: has joined #RubyOnRails
[11:41:38] samuelgiles_: Yeah just checked, as your said it works fine in Rails 5, brand new app Article.where(title: nil) works as expected - Very odd!
[11:43:13] siaw23: has joined #RubyOnRails
[11:44:01] dionysus69: has joined #RubyOnRails
[11:44:07] asheinfeld: has joined #RubyOnRails
[11:46:58] siaw23: hello i have a model with this part in it: https://gist.github.com/siaw23/131eaf53983b3a60f31c5b5c42db41fc but i found http://apidock.com/rails/ActiveRecord/QueryMethods/uniq so #uniq has been replaced with #distinct but i can’t tell how to use it in my model
[11:48:39] sevenseacat: siaw23: whats the question?
[11:49:17] siaw23: sevenseacat: the question is how do i replace https://gist.github.com/siaw23/131eaf53983b3a60f31c5b5c42db41fc#file-some_model-rb-L2 with the new #distinct since i’m upgrading to rails4?
[11:50:11] siaw23: #uniq is not used in rails 4 anymore. there’s instead #distinct. how do i use it in my model?
[11:51:37] sevenseacat: it's not used anymore?
[11:51:58] GodFather_: has joined #RubyOnRails
[11:52:31] noodman: has joined #RubyOnRails
[11:52:43] sevenseacat: you may need to put it as part of the conditions on the association
[11:53:53] sevenseacat: eg. has_many :whatevers, -> { uniq }
[11:53:55] samuelgiles_: Discovered the problem - A gem I'm using called acts_as_tenant was attempting to a define a default_scope with nil as an argument, seems that default_scope lambda { nil } perhaps used to work
[11:54:21] sevenseacat: samuelgiles_: that just looks wrong
[11:54:23] samuelgiles_: (Not that its valid code, but it never raised an error before)
[11:54:27] alfiemax: has joined #RubyOnRails
[11:55:30] Ergo: has joined #RubyOnRails
[11:55:45] samuelgiles_: sevenseacat: Yeah, I think really it should never have worked and someone has protected against it happening in Rails 5
[11:58:00] benlieb: has joined #RubyOnRails
[11:58:28] siaw23: sevenseacat: you mean something liket this? https://gist.github.com/siaw23/131eaf53983b3a60f31c5b5c42db41fc#file-i_tried_this-rb-L2
[11:58:42] sevenseacat: I mean exactly what I said
[12:03:18] pontiki: anyone happen to know how to get to the 4.2 docs?
[12:05:01] sevenseacat: http://api.rubyonrails.org/v4.2/
[12:05:12] pontiki: ta, sevenseacat
[12:05:23] CornishPasty: ACTION pats all sevenseacats
[12:09:00] soroot: has joined #RubyOnRails
[12:11:22] Sashimi: has joined #RubyOnRails
[12:15:22] Circuit8: What do you guys use for logging in heroku? The default option seems to only keep the last few thousand lines of log
[12:15:56] rvanlieshout: i don't use heroku
[12:16:23] Circuit8: rvanlieshout: Thanks for that
[12:17:11] baash05: I use papertrail..
[12:17:25] baash05: AFIK it goes back a long long way.
[12:17:51] siaw23: sevenseacat: working. thank you. using #distinct also works :D
[12:18:06] Circuit8: baash05: Ah ok thanks
[12:18:10] sevenseacat: papertrail is pretty good.
[12:18:26] Circuit8: sevenseacat: OK cool I'll check it out
[12:18:59] dc4: has joined #RubyOnRails
[12:19:36] pvertenten: has joined #RubyOnRails
[12:20:09] Kedare: has joined #RubyOnRails
[12:21:42] pawnbox: has joined #RubyOnRails
[12:25:00] diegoviola: has joined #RubyOnRails
[12:28:44] ldnunes: has joined #RubyOnRails
[12:29:55] AntiSpamMeta: has joined #RubyOnRails
[12:30:48] brazenbraden: has joined #RubyOnRails
[12:31:37] Ropeney: has joined #RubyOnRails
[12:31:55] alfiemax: has joined #RubyOnRails
[12:32:25] brazenbraden: hey guys. trying to upgrade to rails 5. followed the upgrade guide. identified and removed incompatible gems, etc. App runs, but when I access it online, it shows me Not a directory @ rb_sysopen - /app/tmp/cache/assets/development/sprockets/v3.0/Wy/WyeU9jNO...
[12:32:54] brazenbraden: tried clearing browser cache, rake tmp:clear, restarting app
[12:33:02] kareeoleez: has joined #RubyOnRails
[12:33:06] kareeoleez: anyone please http://stackoverflow.com/questions/38178772/scheduling-with-clockwork-delayed-job-activejob-to-run-every-5-minutes-round ?
[12:33:16] Ayey_: has joined #RubyOnRails
[12:33:27] dminuoso: BrazenBraden: I would clobber your assets.
[12:33:33] brazenbraden: done that too
[12:33:38] dminuoso: Or actually. Nevermind.
[12:33:43] dminuoso: The problem is the other way around.
[12:33:46] brazenbraden: also ran precompile (which shouldnt do anything cos im in dev mode)
[12:34:02] nettoweb: has joined #RubyOnRails
[12:35:00] l4v2: has joined #RubyOnRails
[12:35:20] brazenbraden: its breaking on my first =styleshee_link_tag in my app.haml
[12:35:50] matthewd: BrazenBraden: The full path it's naming exists, but is a file instead of a directory?
[12:36:34] matthewd: It is giving you a path (which you truncated)
[12:36:39] pawnbox: has joined #RubyOnRails
[12:36:58] matthewd: It is claiming that path exists but is not a directory
[12:36:59] brazenbraden: yea, its a tmp file generated by sprockets with is a long hash
[12:37:17] matthewd: Can you confirm that to be a truefact?
[12:38:39] brazenbraden: hmm. im not seeing the dir Wv. there are a tonne of other dirs though all generated on first load of page
[12:38:45] oystersauce8: has joined #RubyOnRails
[12:43:23] matthewd: Is the problem specific to that stylesheet? If you remove the reference, does it just break on the next asset?
[12:43:28] siaw23_: has joined #RubyOnRails
[12:44:17] brazenbraden: both css and js
[12:44:26] brazenbraden: but only mine. doesnt care about cdn links
[12:44:58] asheinfeld: has joined #RubyOnRails
[12:49:20] matthewd: Huh. Okay... maybe try emptying out your assets directory, down to just an empty file for the stylesheet.
[12:49:59] blackmesa: has joined #RubyOnRails
[12:50:34] finnnnnnnnnnn: has joined #RubyOnRails
[12:52:27] brazenbraden: still breaks on the now empty application.css.scss. all other files were removed
[12:52:47] matthewd: With the same tmp path?
[12:53:12] brazenbraden: no, different one
[12:53:20] brazenbraden: now a /bs/ folder
[12:53:30] brazenbraden: and thats exactly what this is, bs. lol
[12:53:47] matthewd: tmp:clear just to check, though that doesn't sound likely to help
[12:54:22] matthewd: Do you have any sprockets/assets-related 3rd party gems involved?
[12:55:24] brazenbraden: cleared the cache. all files disappeared. reload page, boom, 100 files. but still the error
[12:55:51] matthewd: And again the path it's complaining about doesn't exist?
[12:56:11] jhack: has joined #RubyOnRails
[12:59:16] roelof: has joined #RubyOnRails
[12:59:36] roelof: why is my category still empty/nill here : https://gist.github.com/rwobben/50b44b1b8240a1e6dc55cf4b86aa0b89
[13:00:24] sevenseacat: roelof: where are you setting it to not be nil for that record?
[13:00:33] Kus: has joined #RubyOnRails
[13:01:18] brazenbraden: i read that rails 5 now uses puma over webrick as the dev server but i have been using unicorn. will that be a problem?
[13:01:35] rvanlieshout: BrazenBraden: it just needs something that can handle multiple requests
[13:01:57] brazenbraden: ok so unicorn is fine
[13:02:14] ramortegui: has joined #RubyOnRails
[13:02:18] brazenbraden: also discovered that gem remotipart isnt compatible with rails 5 so had to remove that
[13:02:27] roelof: sevenseacat: I use postman and there I entered the data for name and category. Both are there the text "test"
[13:02:39] sevenseacat: roelof: whats that got to do with whats in your database?
[13:03:02] sevenseacat: or how your app saves that data
[13:03:25] roelof: I thought postman will make a request to the create function and that one saves the data to the database
[13:03:52] sevenseacat: and where is that happening?
[13:04:02] brazenbraden: is sprockets meant to generate a folder called v3.0 in the tmp/cache/assets/sprockets folder with a hundred files? or I have got something misconfigured?
[13:04:03] sevenseacat: postman makes a request to wherever you tell it to make a request to
[13:04:37] roelof: yep, postman makes a post request to /account
[13:04:59] eljimmy: has joined #RubyOnRails
[13:05:15] sevenseacat: and where are the logs for that?
[13:05:53] artto: has joined #RubyOnRails
[13:06:47] roelof: sevenseacat: you mean the rails server logs ? or a postman log ?
[13:06:59] sevenseacat: roelof: we're talking about a rails app, so the rails logs.
[13:07:07] sevenseacat: i dont give a crap about postman, it's irrelevant here
[13:07:59] matthewd: BrazenBraden: That does seem like more folders than I'd expect, given you've emptied out app/assets
[13:08:26] brazenbraden: i've put the files back as even an empty css file threw the same error
[13:08:53] tweeeaks: does action cable provide external websocket api functionality?
[13:09:32] roelof: sevenseacat: I updated the gist and see something not right : Parameters: {"account"=>{"name"=>"test", "category"=>{" "=>"test"}}}
[13:09:33] tweeeaks: ie: client side consuming of a websocket
[13:09:43] pawnbox: has joined #RubyOnRails
[13:09:50] roelof: schould be Parameters: {"account"=>{"name"=>"test", "category"=> "test"}}
[13:09:55] sevenseacat: roelof: so the request you're making is malformed, ergo, it's not saving correctly.
[13:10:04] User458764: has joined #RubyOnRails
[13:10:10] AimlessRAven: has joined #RubyOnRails
[13:10:17] roelof: yep, wierd that all the test are green
[13:10:32] sevenseacat: do your tests test for malformed input?
[13:10:33] roelof: sevenseacat: any idea why the request is malformed ?
[13:10:35] matthewd: BrazenBraden: Is your sprockets up to date? I don't recognise this error, but still..
[13:10:37] arBmind: has joined #RubyOnRails
[13:10:44] sevenseacat: roelof: because you've done something wrong in postman
[13:10:57] matthewd: tweeeaks: I'm still not sure what you mean
[13:11:01] brazenbraden: should be. did a bundle update to get all the gems updated including rails from 4.2 to 5.
[13:11:01] roelof: sevenseacat: not yet, it test only for well formed input
[13:11:09] sevenseacat: thats why they're all green then.
[13:11:15] AimlessRAven: https://gist.github.com/anonymous/ed8d5529238c8ff10b56f27092d19e07
[13:11:15] matthewd: tweeeaks: Communication with an arbitrary websocket service? No.
[13:11:20] brazenbraden: sprockets is at 3.6.3
[13:11:22] AimlessRAven: where is my wrong here
[13:11:26] roelof: sevenseacat: oke, then I have to find out what I do wrong in postman :(
[13:11:30] AimlessRAven: how to create and delete item in one controller action
[13:11:33] AimlessRAven: with different route for this
[13:12:01] roelof: or find out how I can test this with curl on the prompt
[13:12:12] brazenbraden: AimlessRaven, check the request param for .post? or .delete?
[13:13:12] AimlessRAven: BrazenBraden:
[13:13:13] AimlessRAven: => {"_method"=>"delete", "authenticity_token"=>"sshj8an72qN4rotnRKTCNhJSBKdYGY7nY61QreJVLOK9ncFd98ffMBp5c9LJv84Mk6v/zmMFbgnZ25O9mczQQw==", "controller"=>"events", "action"=>"like", "id"=>"neweventmains"}
[13:13:17] AimlessRAven: this is my delete params
[13:13:38] brazenbraden: yea, so, if request.delete?; do some stuff; end;
[13:14:01] brazenbraden: although why do both in one action?
[13:14:13] brazenbraden: thats not restful
[13:14:28] AimlessRAven: yeah but my boss want this way
[13:14:30] pvertenten: has joined #RubyOnRails
[13:14:42] brazenbraden: i know the feels
[13:15:35] tweeeaks: matthewd: yes thats what I meant, wasn't sure if I was overlooking something.
[13:15:35] arup_r1: has joined #RubyOnRails
[13:15:52] AimlessRAven: BrazenBraden: :D
[13:16:27] EXCHGR: has joined #RubyOnRails
[13:17:39] matthewd: BrazenBraden: Generate a new app and confirm it's okay, then try copying in your assets, I guess?
[13:17:39] artto: has joined #RubyOnRails
[13:17:43] roelof: sevenseacat: thanks, I had to set the content-type to application/json and now it seems to work well
[13:17:53] matthewd: BrazenBraden: If it sounds like I'm clutching at straws, well.. ;)
[13:18:13] arup_r1: I am using carrierwave to do file uploads. I was using file system storage, now I will move to cloud s3. I am seeking for ideas, how should I migrate all the existing files from file system to s3? Will this http://stackoverflow.com/a/24719415/2767755 be a good approach or there some better approach exist?
[13:18:53] nettoweb: heys guys, do you know a way to translate the words "edit and create" from routes to another language?
[13:19:23] AimlessRAven: BrazenBraden: hah i validates_uniquenes of user_id in event like :)
[13:19:26] AimlessRAven: to like only one time
[13:19:31] AimlessRAven: and now when i want to @like.destroy
[13:19:50] dminuoso: nettoweb: Use a dictionary?
[13:19:57] AimlessRAven: validation tell me user @like.destroy
[13:20:04] AimlessRAven: user already been taken
[13:20:11] AimlessRAven: lol, i want to remove this, no to add again
[13:20:11] dminuoso: nettoweb: As for a technology that can assist you, use I18n.
[13:20:27] pontiki: nettoweb: http://guides.rubyonrails.org/routing.html#translated-paths
[13:20:37] brazenbraden: i dont understand
[13:20:47] AimlessRAven: :) anyway my problem tnx
[13:20:52] AimlessRAven: ill be solve that
[13:25:06] conta: where do I put code that generates select? I don't wanna do that in View
[13:25:06] soroot: <%= f.collection_select :name, Actor.distinct(:name), :id, :name %> I'm getting always undfiend method :name, for the text method
[13:25:42] soroot: I'm using mongoid btw
[13:25:42] k13nox: has joined #RubyOnRails
[13:27:44] sevenseacat: "for the text method"?
[13:28:55] brazenbraden: matthewd, i generated a rails 5 app, added in a stylesheet, all works fine o.O
[13:29:02] soroot: sevenseacat: after the value_method
[13:29:11] sevenseacat: SoRoot: please gist the full error
[13:29:23] matthewd: BrazenBraden: Okay, so now we have to try to break it
[13:29:28] soroot: sevenseacat: undefined method `name' for "Marian":String
[13:29:30] harfangk: has joined #RubyOnRails
[13:29:40] brazenbraden: matthewd, easier said than done lol
[13:29:42] matthewd: BrazenBraden: Try grabbing your app's Gemfile
[13:30:02] sevenseacat: SoRoot: because Actor.distinct(:name) gives you an array of names, it sounds like
[13:30:14] pawnbox: has joined #RubyOnRails
[13:30:31] sevenseacat: and strings representing names do not have a `name` method
[13:30:54] brazenbraden: it includes gems which arent windows friendly and setting up a vagrant box and provisioning with docker just to bundle install sounds like a bit of a pain
[13:30:54] matthewd: After that, the only thing I can think of is some asset-related config setting
[13:31:11] brazenbraden: matthewd, its probably that but i dont know which
[13:31:40] matthewd: What non-standard asset config do you have?
[13:32:36] brazenbraden: nothing out of the ordinary. just added a couple paths
[13:32:50] blackmesa: has joined #RubyOnRails
[13:33:19] matthewd: ... you said windows
[13:33:34] matthewd: Is tmp on a case-insensitive filesystem?
[13:33:53] brazenbraden: yup. but my app is in a debian based docker container
[13:34:08] Ayey_: has joined #RubyOnRails
[13:37:11] quazimodo: has joined #RubyOnRails
[13:38:28] tweeeaks: matthewd: do you recommend any methods for accessing arbitrary websocket services? i dont' know why i figured action cable would have that side of things included as well
[13:39:27] matthewd: BrazenBraden: You could try the sprockets 4 beta... that's potentially exchanging one set of unknowns for another, but I know caching changed. So maybe it'll incidentally fix this.
[13:39:46] finnnnnnnnnnn_: has joined #RubyOnRails
[13:40:50] brazenbraden: there is clearly something i've configured wrong. will go through my configs and disable things one at a time, maybe find the culprit.
[13:41:31] pvertenten: has joined #RubyOnRails
[13:44:18] mdw: has joined #RubyOnRails
[13:45:43] asheinfeld: has joined #RubyOnRails
[13:48:00] daveomcd__: has joined #RubyOnRails
[13:50:28] matthewd: tweeeaks: Nope, sorry; actioncable is a layer on top of websockets. But if you want to talk the raw protocol, the browser's built-in API might be sufficient?
[13:51:58] matthewd: tweeeaks: I'm not as familiar with the client-side, but my impression is that there isn't a great deal of code there -- https://github.com/rails/rails/tree/master/actioncable/app/assets/javascripts
[13:53:20] shinnya: has joined #RubyOnRails
[13:54:20] diego2: has joined #RubyOnRails
[13:58:00] lidenbrock: has joined #RubyOnRails
[13:59:03] brazenbraden: doesnt seem any of my configs are the problem. also noticed that the tmp sprockets dir and file changes on every refresh
[13:59:13] brazenbraden: as expected though since there is no caching
[14:01:17] jhack: has joined #RubyOnRails
[14:01:35] pLaToOn: has joined #RubyOnRails
[14:09:36] jenrzzz: has joined #RubyOnRails
[14:14:01] artto: has joined #RubyOnRails
[14:15:32] alfiemax: has joined #RubyOnRails
[14:16:12] siaw23: anyone knows why this is failing? https://gist.github.com/siaw23/ab56b9ebb3a00e60df74f0f8f1051722 i have the test too attached
[14:16:25] jhack: has joined #RubyOnRails
[14:18:19] the_drow: has joined #RubyOnRails
[14:18:20] brazenbraden: hmm.. my assets:precompile are also breaking with the same error
[14:19:00] the_drow: How do I distinguish between RoutingErrors caused by a user accessing the wrong page and a RoutingError caused by using a URI helper incorrectly?
[14:19:47] the_drow: I currently have rescue_from ActionController::RoutingError, :with => :return_nothing_for_unknown_route and we're getting blank pages for real programming errors
[14:20:26] dc4: has joined #RubyOnRails
[14:24:36] macsteps: has joined #RubyOnRails
[14:24:49] nettoweb: Im wonderign what's the best way to work with JS files in rails, because I have lots of JS files that should run just in some pages, but every JS is minified in just one application.js file. can you suggest me some way to organize the JS?
[14:27:13] Fernando-Basso: Is it possible to `rake routes` restricted to a namespace? For instance, we can do CONTROLLER=admin/users rake routes. What if I want all routes from the admin namespace (but not from other namespaces)? Is there a NAMESPACE=foo rake routes thing or I'll have to grep the output?
[14:29:44] naftilos76: has joined #RubyOnRails
[14:33:49] artto: has joined #RubyOnRails
[14:35:04] sevenseacat: siaw23: seems like you're calling fetch on a number.
[14:35:43] Ayey_: has joined #RubyOnRails
[14:35:53] siaw23: sevenseacat: yeap. i read this: https://relishapp.com/rspec/rspec-mocks/v/2-99/docs/method-stubs made some changes and things are working now :)
[14:39:54] rikkipitt: has joined #RubyOnRails
[14:40:28] rikkipitt: hello everyone
[14:40:36] rikkipitt: does anyone know how to rspec controller test nested resources? an example would be great!
[14:40:56] rikkipitt: i'm having trouble with the routing...
[14:42:29] siaw23: rikkipitt: http://stackoverflow.com/questions/7962285/how-to-test-controllers-with-nested-routes-using-rspec
[14:43:31] dminuoso: has joined #RubyOnRails
[14:43:43] darkxploit: has joined #RubyOnRails
[14:43:55] herpless: has joined #RubyOnRails
[14:44:25] futilegames: has joined #RubyOnRails
[14:45:15] rikkipitt: siaw23: i'll keep trying, i'm on the right tracks i think...
[14:45:32] urbanmonk: has joined #RubyOnRails
[14:46:24] asheinfeld: has joined #RubyOnRails
[14:46:48] brazenbraden: not having much luck. This is the log when i run assets:precompile: https://gist.github.com/brazenbraden/8c4f2845852817cc74eafc233e3112dd
[14:48:36] dgynn: has joined #RubyOnRails
[14:49:45] DaniG2k: has joined #RubyOnRails
[14:51:29] blackmesa: has joined #RubyOnRails
[14:52:00] nettoweb: has joined #RubyOnRails
[14:52:34] ekinmur: has joined #RubyOnRails
[14:53:12] matthewd: BrazenBraden: Okay, different angle.. what changed since this last worked?
[14:53:40] brazenbraden: matthewd, actually, i dont think it ever worked (since the update)
[14:54:46] bruce_lee: has joined #RubyOnRails
[14:54:59] User458764: has joined #RubyOnRails
[14:55:18] matthewd: Which update?
[14:55:28] brazenbraden: from rails 4 to 5
[14:55:28] binaryplease: has joined #RubyOnRails
[14:55:30] soroot: has joined #RubyOnRails
[14:56:19] matthewd: Presumably a bunch of other gems got updated at the same time... try pushing sprockets (and maybe sprockets-rails) back to whatever version they were on before?
[14:56:42] soroot: I'm looking for a method to do something like Actors.all.unique(true) so that it doesen't show my dublicates??
[14:56:51] matthewd: Without actually checking, I'm moderately confident 2.x works with rails 5
[14:57:41] brazenbraden: i know sprockets is a dependency of rails but will changing the version work if i specify it in my gemfile under the rails gem?
[14:57:42] sadaf2606: has joined #RubyOnRails
[14:58:16] matthewd: You should already have an entry for sprockets-rails, I would think. sprockets, yes, you can just add it.
[14:58:42] matthewd: SoRoot: http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-distinct
[14:59:03] matthewd: SoRoot: Though Actors.all should not be returning duplicates to begin with..
[14:59:25] brazenbraden: should i change the version of sprockets or sprockets-rails ?
[14:59:58] matthewd: I'd start by changing both (to whatever was previously set in the Gemfile.lock)
[15:00:11] matthewd: If that errors, we can try changing just one
[15:00:25] brazenbraden: ok, will try that out
[15:01:27] fumck: has joined #RubyOnRails
[15:01:59] DaniG2k: talking about a Rails 4 to 5 upgrade?
[15:02:05] DaniG2k: hmm I should try that at some point
[15:02:08] DaniG2k: is it painful?
[15:03:12] matthewd: DaniG2k: Depends how coupled you are to private / undocumented API, mostly
[15:04:12] pawnbox: has joined #RubyOnRails
[15:04:33] brazenbraden: matthewd, the older version of sprockets i used to use is no longer compatible with sass-rails and a dependency called 'tilt'
[15:05:15] gthank: has joined #RubyOnRails
[15:05:16] gthank: has joined #RubyOnRails
[15:05:28] matthewd: Hmm. Might be able to push those versions back too
[15:05:54] matthewd: (what is that version of sprockets, btw?)
[15:08:39] matthewd: So, the other avenue of investigation would be to branch your app from right before you started the 5 upgrade, and upgrade only sprockets & sprockets-rails (and anything else that insists)
[15:09:04] tekku: has joined #RubyOnRails
[15:10:13] icedp: has joined #RubyOnRails
[15:11:40] sunya7a_: has joined #RubyOnRails
[15:13:58] the_drow: How do I distinguish between RoutingErrors caused by a user accessing the wrong page and a RoutingError caused by using a URI helper incorrectly? I currently have rescue_from ActionController::RoutingError, :with => :return_nothing_for_unknown_route and we're getting blank pages for real programming errors
[15:17:11] sevenseacat: may look at upgrading the app I maintain at work, to Rails 5 tomorrow
[15:19:14] matthewd: the_drow: I think that might've been fixed, to split the exceptions up?
[15:19:31] matthewd: the_drow: Either that, or there's an open issue somewhere that would welcome your interested attention ;)
[15:21:02] artto: has joined #RubyOnRails
[15:24:20] harfangk: has joined #RubyOnRails
[15:26:53] the_drow: matthewd, we're using rails 4.1
[15:27:00] the_drow: do we have to upgrade?
[15:27:33] macsteps: has joined #RubyOnRails
[15:29:02] matthewd: the_drow: Looks like it might have been changed in 4.2: https://github.com/rails/rails/pull/16229
[15:30:47] dionysus69: has joined #RubyOnRails
[15:32:32] bmaland: has joined #RubyOnRails
[15:36:38] Ayey_: has joined #RubyOnRails
[15:37:43] roelof: has joined #RubyOnRails
[15:37:54] finnnnnnnnnnn: how do I return unix time from Date.parse('Tue, 29 Sep 2015 00:00:00 +0000')
[15:38:22] roelof: is it possible to validate on string. So a hash or a array is not allowed on entry ?
[15:38:28] xlegoman: has joined #RubyOnRails
[15:38:28] matthewd: finnnnnnnnnnn: Why Date.parse ?
[15:38:41] finnnnnnnnnnn: matthewd: another method would be fine
[15:38:46] finnnnnnnnnnn: but I need to pass it that string
[15:41:29] fox_mulder_cp: finnnnnnnnnnn: http://stackoverflow.com/questions/1805950/ruby-rails-converting-a-date-to-a-unix-timestamp~
[15:41:54] finnnnnnnnnnn: fox_mulder_cp: will read, thanks
[15:41:56] matthewd: finnnnnnnnnnn: Time.parse(..).to_i (or .to_f, if you like)
[15:42:30] finnnnnnnnnnn: matthewd: awesome
[15:44:34] macsteps: has joined #RubyOnRails
[15:45:36] pyemkey: has joined #RubyOnRails
[15:47:15] asheinfeld: has joined #RubyOnRails
[15:47:25] pvertenten: has joined #RubyOnRails
[15:47:53] GrizzlyZolam: has joined #RubyOnRails
[15:48:17] GrizzlyZolam: has joined #RubyOnRails
[15:48:48] User458764: has joined #RubyOnRails
[15:50:00] GrizzlyZolam: has joined #RubyOnRails
[15:50:27] superlou: has joined #RubyOnRails
[15:51:20] mokha: has joined #RubyOnRails
[15:53:20] pawnbox: has joined #RubyOnRails
[15:55:30] pvertenten: has joined #RubyOnRails
[15:59:22] Ergo: has joined #RubyOnRails
[16:00:41] roelof: is it possible to accept only string input and not hashes or arrays or javascript when someone sends a json request to my api ?
[16:01:12] the_drow: matthewd, Thanks! We'll have hard time to upgrade to 4.2 but we will
[16:01:57] matthewd: the_drow: You could try backporting that PR for a more immediate fix... but upgrading is always a good idea
[16:02:04] GodFather_: has joined #RubyOnRails
[16:02:23] the_drow: And apply the patch every time we deploy?
[16:04:53] roshanavand: has joined #RubyOnRails
[16:06:00] Oliphaunte: has joined #RubyOnRails
[16:06:34] nettoweb: has joined #RubyOnRails
[16:13:20] dionysus69: has joined #RubyOnRails
[16:20:40] siaw23: has joined #RubyOnRails
[16:21:27] kies: has joined #RubyOnRails
[16:33:09] Hyuk: has joined #RubyOnRails
[16:36:57] Ayey_: has joined #RubyOnRails
[16:37:04] Oliphaunte: has joined #RubyOnRails
[16:39:33] darkxploit: has joined #RubyOnRails
[16:40:59] mokha: has joined #RubyOnRails
[16:42:02] fox_mulder_cp: how to fix custom path names with dropping 's' at end? gist here https://gist.github.com/foxmuldercp/8ef7d4ffb9c011e97f99c107607b7eb0
[16:42:20] fox_mulder_cp: i want to start_web_app_path, not start_web_apps_path, which is now
[16:43:28] mokha: has joined #RubyOnRails
[16:44:03] matthewd: fox_mulder_cp: You probably don't want #collection, then
[16:45:18] fox_mulder_cp: matthewd: start_web_app_path -> web_app_stop_path
[16:45:48] fox_mulder_cp: it seems as fail path naming guied
[16:47:06] fox_mulder_cp: new_web_app_path, edit_web_app_path etc
[16:48:02] asheinfeld: has joined #RubyOnRails
[16:48:32] deecross: has joined #RubyOnRails
[16:49:05] Sashimi: has joined #RubyOnRails
[16:49:36] dc4: has joined #RubyOnRails
[16:51:28] dminuoso: has joined #RubyOnRails
[16:52:06] pawnbox: has joined #RubyOnRails
[16:58:01] pflanze: has joined #RubyOnRails
[16:59:14] jhack: has joined #RubyOnRails
[17:01:05] pflanze: Hi. We're looking for something that is extremely easy to set up tables, and relations between them, and enter and view data.
[17:01:20] banisterfiend: has joined #RubyOnRails
[17:01:37] pflanze: Something that a developer/admin can set up once, then people who are non-programmers can extend the data schema and use it by themselves.
[17:01:46] pflanze: Would RoR offer this level of highlevel-ness?
[17:02:28] fox_mulder_cp: pflanze: pgadmin, phpmyadmin...
[17:02:47] pflanze: Those seem too lowlevel and centered around "administering"?
[17:03:06] pflanze: i.e. n:m tables should not have to be handled as such manually.
[17:03:08] fox_mulder_cp: why u want your own bike, when we have a created popular apps which used and secured via tons of users
[17:03:33] pflanze: There should be a way to say what kind of connection exists between two kinds of objects, and then it handles this transparently.
[17:03:54] pflanze: What do you mean, what popular apps?
[17:04:36] matthewd: pflanze: No, Rails can't help with that.
[17:05:02] fox_mulder_cp: pflanze: pgadmin, phpmyadmin...
[17:05:23] fox_mulder_cp: for postgresql and mysql/maria etc
[17:05:54] fox_mulder_cp: i don't know about sqllite, but it only for small test apps, not for production loads
[17:07:05] shinnya: has joined #RubyOnRails
[17:09:34] dc4: has joined #RubyOnRails
[17:11:19] conta: has joined #RubyOnRails
[17:11:28] deecross: has joined #RubyOnRails
[17:11:42] pflanze: *admin require database knowledge, i.e. to use integers and auto-increment to allocate ids that you can use to make references.
[17:12:04] pflanze: Users shouldn't worry about this.
[17:12:28] pflanze: So, one could surely build an app to do what I describe on RoR. None exists already?
[17:12:41] mokha: in rails 5, why was 'get :show' replaced with 'process :show' ?
[17:13:20] matthewd: mokha: It wasn't
[17:13:38] mokha: you're right. but why the future deprecation?
[17:13:55] matthewd: What deprecation? :/
[17:14:34] mokha: https://gist.github.com/mokhan/4a596164536deaec74298a3ab40b66fa
[17:15:34] mokha: the deprecation warning appears to be coming from ActionController::TestCase so I assume this is a rails change.
[17:15:59] matthewd: Hmm, perhaps this needs rewording
[17:16:26] matthewd: "will accept only keyword arguments" != "use process now"
[17:18:21] mokha: should i change this: 'get :show, id: user.to_param' to this 'process :show, method: :get, params: { id: user.to_param }
[17:18:36] mokha: i'm a bit confused with the message.
[17:20:43] matthewd: The message is supposed to be giving two good examples
[17:22:28] mokha: oh i see. okay. i get it now. Thanks matthewd
[17:24:00] finnnnnnnnnnn: has joined #RubyOnRails
[17:26:24] bougyman: has joined #RubyOnRails
[17:26:27] Oliphaunte: has joined #RubyOnRails
[17:26:45] bougyman: if i'm in some unknown rails console (debuggins some stuff), can I get the version of rails with some constant?
[17:27:15] bougyman: the only RAILS<tab> constant I get is RAILS_CACHE
[17:27:47] bougyman: Rails.version, found it.
[17:28:02] bougyman: 3.2.19, will that be arel, or ??
[17:28:08] bougyman: trying to figure out how to get the query I want.
[17:31:39] mokha: bougyman: that 3.2.19 will be the version of rails/activerecord
[17:32:01] mokha: bougyman: you can check the Gemfile.lock for the version of arel.
[17:33:03] mokha: bougyman: what kind of query are you trying to build?
[17:35:41] mokha: or 'irb(main):002:0> Arel::VERSION
[17:39:05] JoshGlzBrk: has joined #RubyOnRails
[17:40:01] blackmesa: has joined #RubyOnRails
[17:40:37] roshanavand: has joined #RubyOnRails
[17:42:27] bougyman: mokha: this is the pits.
[17:43:00] darkxploit: has joined #RubyOnRails
[17:43:36] bougyman: I want SELECT count(id), console_status FROM `consoles` WHERE `consoles`.`location` = 'dfw' and consoles.type = 'web'
[17:43:55] bougyman: I can do it with an arel projection, but I can't figure out how to get an arel projection to give me the damned rows.
[17:44:04] bougyman: and in a Console.find_by_sql, it doesn't return the count(id)
[17:44:19] bougyman: even when I add 'as count'
[17:44:50] bougyman: I can fake it by using 'as id'
[17:45:20] bougyman: but what's the right way to construct this?
[17:45:30] bougyman: I never use arel/activerecord, always sequel
[17:45:38] bougyman: but they use ar at my job, so I need to learn it.
[17:47:35] pawnbox: has joined #RubyOnRails
[17:48:01] conta: has joined #RubyOnRails
[17:48:47] asheinfeld: has joined #RubyOnRails
[17:49:54] siaw23: has joined #RubyOnRails
[17:50:23] meoblast001: has joined #RubyOnRails
[17:50:39] Oliphaunte: has joined #RubyOnRails
[17:51:44] mokha: bougyman: http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-group i think you need a group by on console_status to get a count of id.
[17:52:58] deecross: has joined #RubyOnRails
[17:53:29] mokha: bougyman: Console.select('count(id), console_status').group(:console_status).where(loctation: 'dfw', type: 'web')
[17:53:34] mokha: something like that ^
[17:57:38] bougyman: that gives unexpected results
[17:58:13] mokha: can you share a gist?
[17:58:18] User458764: has joined #RubyOnRails
[17:59:27] mokha: i spelled location wrong in the where clause.
[18:00:02] l4v2: has joined #RubyOnRails
[18:00:05] bougyman: it returns 4 rows, with one attribute each. the console_status
[18:03:25] rogue_koder: has joined #RubyOnRails
[18:04:21] GoranPavlovic: has joined #RubyOnRails
[18:08:09] mokha: bougyman: Console.group(:console_status).where(loctation: 'dfw', type: 'web').count
[18:08:39] greenhat|: has joined #RubyOnRails
[18:08:40] mokha: bougyman: i believe that should return a hash key'd by console_status with a value of the count for each.
[18:09:56] greenhat|: has joined #RubyOnRails
[18:11:08] jenrzzz: has joined #RubyOnRails
[18:13:10] xibalba: has joined #RubyOnRails
[18:15:10] bougyman: thanks a lot, mokha
[18:15:12] bougyman: has left #RubyOnRails: ()
[18:19:21] bougyman: has joined #RubyOnRails
[18:19:41] bougyman: sorry mokha, how to add a created_at > '2016-07-04' ?
[18:21:56] mokha: bougyman: .where('created_at > ?', '2016-07-4')
[18:22:10] mokha: typo on the '04'
[18:22:16] ferr: has joined #RubyOnRails
[18:22:27] roshanavand: has joined #RubyOnRails
[18:25:28] macsteps: has joined #RubyOnRails
[18:25:36] dminuoso: bougyman: Im fairly sure you can even pass a Date object there, which will automatically take care of proper formatting depending on your databases locale setups.
[18:29:14] fraktalize: has joined #RubyOnRails
[18:29:55] pontiki: has joined #RubyOnRails
[18:30:04] fraktalize: Hello! I have some issues with installing a rails applcation on Debian. In the installation instructions I am told to run rails g spree:install, however when I run rails g I only get the Rails help message... Any ideas on what might be going on?
[18:30:21] lexileo: has joined #RubyOnRails
[18:30:27] jhass: well rails g isn't rails rails g spree:install
[18:30:37] pontiki: fraktalize: make sure you are in the rails project directory
[18:32:16] fraktalize: pontiki, the directory generated when I run "rails new"?
[18:32:45] fraktalize: I'm running it from there with no success
[18:32:57] matthewd: .. are you trying to set up an existing application, or create a new one?
[18:33:30] jhass: fraktalize: make a gist of your terminal session, all commands you ran and their output
[18:34:18] pLaToOn: has joined #RubyOnRails
[18:34:19] fraktalize: matthewd, I'm trying to install the Spree ecommerce platform, but I'm new to Ruby on Rails
[18:34:55] pontiki: jeepers, nothing like jumping off the high cliff first
[18:35:26] matthewd: fraktalize: So you're following https://github.com/spree/spree#getting-started ?
[18:35:28] benlieb: has joined #RubyOnRails
[18:35:29] fraktalize: jhass, the terminal output is mainly Ruby on Rails help messages
[18:35:41] fraktalize: matthewd, yes
[18:36:08] matthewd: !gist what you're seeing
[18:36:08] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[18:36:35] fraktalize: I'll redo it from scratch to make the gist cleaner then
[18:37:38] qejk: has joined #RubyOnRails
[18:38:56] Ayey_: has joined #RubyOnRails
[18:39:00] Oliphaunte: has joined #RubyOnRails
[18:39:00] dionysus69: has joined #RubyOnRails
[18:40:27] fraktalize: https://gist.github.com/anonymous/f16aa7cd91c4bd48a1a28e9544367227
[18:41:27] pontiki: fraktalize: at line 113, you did NOT change into the project directory
[18:41:57] Andr3as_: he went in there at line , no
[18:42:08] Andr3as_: darn keyboard
[18:42:45] Andr3as_: as if not, bundle install would've failed too, i guess
[18:43:22] pontiki: ah, right, that's so...
[18:44:05] pontiki: but i'm not seeing any rails in that bundle, either
[18:44:05] jhass: fraktalize: does prepending bundle exec help?
[18:44:16] fraktalize: jhass, I tried that before to no avail
[18:44:36] Andr3as_: but just to make sure, fraktalize, you might do a ls inside that dir and update the gist
[18:44:38] pontiki: if that Gemfile at the top is the whole thing, that's not installing any rails
[18:44:57] fraktalize: I think I miight be seeing the problem now, I'll try another thing real quick
[18:45:52] fraktalize: Ok, I figured it out now
[18:45:58] Andr3as_: what was it?
[18:46:24] fraktalize: I was confused a bit with rails project directories and so on, and I had made a new Gemfile rather than editing the one that was generatied using rails new
[18:46:43] fraktalize: I kind of feel stupid now haha, thank you all for the help!
[18:47:08] dlx: has joined #RubyOnRails
[18:47:10] Andr3as_: aight, always good when it boils down to a layer 8 error ;)
[18:47:50] fraktalize: hahah yeah, a bit easier to resolve as well :)
[18:49:32] asheinfeld: has joined #RubyOnRails
[18:49:40] Oliphaunte: has joined #RubyOnRails
[18:58:21] Axsuul: has joined #RubyOnRails
[18:58:56] macsteps: has joined #RubyOnRails
[18:59:24] nettoweb: has joined #RubyOnRails
[18:59:55] andywww: has joined #RubyOnRails
[19:00:16] andywww: are there any self employed contractors in the UK in here?
[19:00:24] andywww: I’m curious where yu guys go to find work
[19:02:22] Andr3as_: friend of mine was using jobserve.com back in the days.. (he was a delphi coder, though)
[19:08:26] andywww: looks good, thanks!
[19:09:33] Andr3as_: after brexit you guys will need any pound you can get ;)
[19:10:54] dlx: has joined #RubyOnRails
[19:11:45] lxsameer: has joined #RubyOnRails
[19:14:29] macsteps: has joined #RubyOnRails
[19:16:46] RailsNewbie: has joined #RubyOnRails
[19:17:57] RailsNewbie: I am having SSL problem. I tried pretty much every solutions I found on line stackoverflow and bunch of other sites not nothing worked so far.
[19:18:42] RailsNewbie: Any help will be greatly appretiated.
[19:19:02] jhass: railsnewbie: you gotta provide a bit more information than that
[19:19:52] mytrile: has joined #RubyOnRails
[19:20:17] RailsNewbie: I am using uscis_status gem
[19:20:28] RailsNewbie: https://github.com/gguerini/uscis_status/blob/master/lib/uscis_status.rb
[19:20:32] RailsNewbie: here is the code.
[19:20:45] RailsNewbie: It does have verify none.
[19:20:50] RailsNewbie: And it still does not work
[19:20:54] pawnbox: has joined #RubyOnRails
[19:21:23] jhass: that's so sad
[19:21:29] RailsNewbie: All I am doing is calling check function.
[19:21:32] RailsNewbie: USCISStatus.check(applications)
[19:21:41] jhass: I doubt your error is "doesn't work" though
[19:22:00] RailsNewbie: and I the error is SSL_connect returned=1 errno=0 state=error: certificate verify failed
[19:22:18] Andr3as_: so a self signed certificate?
[19:23:10] RailsNewbie: The gem is not even using SSL. Its set to verify none.
[19:23:19] RailsNewbie: Which is fine as its just scrapping a web page
[19:23:42] RailsNewbie: I tried downloading the ssl certificate and pulling in lib folder
[19:23:45] RailsNewbie: and all those things.
[19:24:02] RailsNewbie: I spend my two days and now seems like a good time to ask for help
[19:24:19] ekinmur: has joined #RubyOnRails
[19:25:03] jhass: well the first issue why not verifying the cert at all would be needed is that the servers chain is incomplete https://www.ssllabs.com/ssltest/analyze.html?d=egov.uscis.gov
[19:25:34] jhass: the more proper solution would be to download the right intermediate and configure it as ca_file=
[19:26:10] jhass: then I have no idea why the gem forces version to SSLv3, the server seems to support TLS1.2 just fine
[19:26:34] jhass: and in fact I would suspect that to mess things up, given your OpenSSL or Ruby version might not even support SSLv3 anymore
[19:26:55] RailsNewbie: I have ruby 2.3
[19:27:03] RailsNewbie: and rails 5.0.0 RC1
[19:27:04] jhass: lastly I would avoid the smartness of doing a.b, a.c = x, y, just to avoid an error source
[19:28:36] matthewd: Seems plausible that 3 years ago the server only worked with SSLv3
[19:28:39] shinnya: has joined #RubyOnRails
[19:28:51] RailsNewbie: I am not sure why the auther did his way.
[19:29:01] RailsNewbie: for that gem.
[19:29:36] RailsNewbie: So I should change SSLv3 to TLSv1.2
[19:29:56] RailsNewbie: Whats the best way to modify others gem.
[19:30:27] RailsNewbie: If I bundle again wont it be again changed to what it gets from rubyorg
[19:31:37] jhass: no you should just drop it
[19:31:46] jhass: the defaults should then negotiate TLSv1.2
[19:32:20] jhass: you can fork the gem and use bundler's git:/github: option in your Gemfile
[19:32:32] banisterfiend: has joined #RubyOnRails
[19:35:04] RailsNewbie: Okey Thank you.
[19:35:26] RailsNewbie: Thanks much jhass, I will try and let u know it that works.
[19:36:11] dminuoso: railsnewbie: If you have anything that reads "SSL" you really want to upgrade it. ;-)
[19:37:15] dminuoso: I think SSL 3.0 has feasible attack vectors on all commonly used ciphers. Someone correct me if I remember things wrong.
[19:37:57] roelof: has joined #RubyOnRails
[19:37:59] Andr3as_: heartbleed might ring some bells
[19:38:23] roelof: why does my name message not shown up in the json output : https://gist.github.com/rwobben/a114ccf22d7cb90b8e02a31e6feb5942
[19:38:53] CrossFit_Jesus: because you didnt configure the json view file?
[19:39:07] jhass: railsnewbie: https://p.jhass.eu/40.txt certainly does for me
[19:39:26] Ayey_: has joined #RubyOnRails
[19:41:53] RailsNewbie: Thanks jhass .
[19:41:58] RailsNewbie: I am working n it.
[19:42:02] RailsNewbie: I am new and slow
[19:42:07] jhass: no worries
[19:42:09] RailsNewbie: so will take some time.
[19:42:22] jhass: mainly wanted to demonstrate downloading and setting the intermediate
[19:42:33] jhass: you shouldn't have to do that, their server is still misconfigured
[19:43:22] RailsNewbie: You mean I dont have to do that.
[19:44:03] roelof: CrossFit_Jesus: oke, and why does the category error message show up, I also did not configure that in a json view
[19:44:34] RailsNewbie: def self.check(application_numbers) # Check if the parameter is an Array, otherwise create one applications = application_numbers.kind_of?(Array) ? application_numbers : application_numbers.split a = Mechanize.new statuses = [] applications.each do |number| next if number.nil? or number.empty? page = a.post("https://egov.uscis.gov/cris/Dashboard/CaseStatus.do", { "appReceipt
[19:44:55] CrossFit_Jesus: roelof: no idea, i guess, sorry i'm really new to rails
[19:45:11] roelof: CrossFit_Jesus: thanks for trying to help me
[19:45:32] CrossFit_Jesus: (wanted to be helpfull instead of just abusing the more knowledgable ppl around here) :P
[19:45:41] jhass: railsnewbie: I mean in an ideal world you shouldn't have to
[19:46:05] jhass: but here you have to (well don't actually download the intermediate each time, write it to a file somewhere and include it into the gem)
[19:46:19] jhass: also that was unreadable, use gist.github.com
[19:46:49] CrossFit_Jesus: what ide are you using jhass, just for some further knowledge
[19:47:17] jhass: I do use sublime, I wouldn't call it an IDE
[19:47:35] CrossFit_Jesus: i wouldnt call it either, thats why i asked for sublime after you said you dont use an IDE ;)
[19:47:53] jhass: heh, didn't expect you to type that fast ;)
[19:48:16] arunpyasi: has joined #RubyOnRails
[19:48:37] bga57: has joined #RubyOnRails
[19:49:55] jhass: also I guess in the Ruby world that question can be rephrased to "Do you use RubyMine" :P
[19:50:05] CrossFit_Jesus: hahah yeah i know
[19:50:13] CrossFit_Jesus: even as a newb you get that
[19:50:16] asheinfeld: has joined #RubyOnRails
[19:50:52] CrossFit_Jesus: i think sublime actually has really advanced features, linting etc
[19:51:04] CrossFit_Jesus: the whole addon base is amazing
[19:51:57] jhass: so does vim or emacs or textmate or atom
[19:52:19] jhass: an IDE is a bit more IMO, it has semantic insight into the code
[19:52:24] yfeldblum: has joined #RubyOnRails
[19:53:03] CrossFit_Jesus: atom doesnt have codeintel yet... if it had that i would prob switch
[19:55:23] nettoweb: has joined #RubyOnRails
[19:57:48] nettoweb: has joined #RubyOnRails
[19:58:45] RailsNewbie: https://gist.github.com/anonymous/139f95af0819ee67629f3f3494c86208
[19:58:50] RailsNewbie: check this out
[19:58:56] RailsNewbie: I am getting the same error
[19:59:15] jhass: railsnewbie: yes that's expected
[19:59:28] RailsNewbie: The only difference between urs and mine was you were doing get vs me post
[19:59:37] roelof: why does my name message not shown up in the json output : https://gist.github.com/rwobben/a114ccf22d7cb90b8e02a31e6feb5942
[19:59:48] jhass: railsnewbie: I also set the intermediate as ca_file
[20:00:06] RailsNewbie: Yes do you want me to set intermediate file.
[20:00:13] RailsNewbie: I thought you said i can leave that
[20:00:21] jhass: no, I didn't
[20:00:25] jhass: perhaps you missed my reply
[20:00:37] RailsNewbie: My bad I must have mis interpretated.
[20:00:45] RailsNewbie: Thanks will try that
[20:03:02] pyemkey: has joined #RubyOnRails
[20:03:25] alfiemax: has joined #RubyOnRails
[20:06:51] Coldblackice: has joined #RubyOnRails
[20:06:52] drptbl: has joined #RubyOnRails
[20:07:04] Oliphaunte: has joined #RubyOnRails
[20:08:28] macsteps: has joined #RubyOnRails
[20:11:58] rafaelfranca: has joined #RubyOnRails
[20:14:50] ekinmur: has joined #RubyOnRails
[20:15:03] nettoweb: has joined #RubyOnRails
[20:19:53] chopin: has joined #RubyOnRails
[20:22:36] Dimik: has joined #RubyOnRails
[20:23:15] blackmesa: has joined #RubyOnRails
[20:23:21] Oliphaunte: has joined #RubyOnRails
[20:24:22] AmiMoench: has joined #RubyOnRails
[20:27:17] Velizar: has joined #RubyOnRails
[20:28:41] arBmind: has joined #RubyOnRails
[20:33:04] solars: has joined #RubyOnRails
[20:33:05] benlieb: has joined #RubyOnRails
[20:37:14] ldnunes_: has joined #RubyOnRails
[20:38:55] AmiMoench: has joined #RubyOnRails
[20:40:06] ekinmur: has joined #RubyOnRails
[20:40:14] Ayey_: has joined #RubyOnRails
[20:41:30] pawnbox: has joined #RubyOnRails
[20:42:12] Oliphaunte: has joined #RubyOnRails
[20:45:17] iamvery: has joined #RubyOnRails
[20:49:53] superlou: has joined #RubyOnRails
[20:50:32] nettoweb: has joined #RubyOnRails
[20:51:05] asheinfeld: has joined #RubyOnRails
[20:51:48] roamingdog: has joined #RubyOnRails
[20:54:40] banisterfiend: has joined #RubyOnRails
[20:57:52] netzfisch: has joined #RubyOnRails
[21:02:44] upsell5: has joined #RubyOnRails
[21:03:01] upsell5: Hi, when adding to @env, is this for the current request only? https://github.com/discourse/discourse/blob/master/lib/auth/default_current_user_provider.rb#L28
[21:03:48] pyemkey: has joined #RubyOnRails
[21:07:32] brianpWins: has joined #RubyOnRails
[21:11:47] ur5us: has joined #RubyOnRails
[21:12:15] jhass: depends on where/how that class is used
[21:12:59] zave: has joined #RubyOnRails
[21:15:27] Doddlin: has joined #RubyOnRails
[21:15:33] jenrzzz: has joined #RubyOnRails
[21:15:33] jenrzzz: has joined #RubyOnRails
[21:15:38] GodFather_: has joined #RubyOnRails
[21:25:21] blackmesa: has joined #RubyOnRails
[21:26:14] kitsuneyo: has joined #RubyOnRails
[21:26:48] kitsuneyo: is ryan biggs's answer here outdated? http://stackoverflow.com/questions/4350499/adding-variable-to-params-in-rails
[21:27:28] kitsuneyo: i've tried using something like @page= Page.new(params[:page].merge(:user_id => current_user.id)) to no avail
[21:27:52] kitsuneyo: well more like @page= Page.new(params[:page].merge(user_id: current_user.id))
[21:29:03] kitsuneyo: has joined #RubyOnRails
[21:29:36] matthewd: kitsuneyo: That doesn't look much like Ryan's answer
[21:29:45] macsteps: has joined #RubyOnRails
[21:29:58] matthewd: kitsuneyo: "no avail" isn't quite enough to describe your problem, either
[21:30:15] kitsuneyo: you're right, it's not his answer, my mistake
[21:30:44] EasyCo: has joined #RubyOnRails
[21:31:29] EasyCo: Hey team, can you interpolate ENV variables into a locale yml or does it need to be passed variable?
[21:32:14] blackmesa: has joined #RubyOnRails
[21:32:23] kitsuneyo: i get this error: undefined method `merge' for nil:NilClass ... but i'm not sure what is nil
[21:32:36] kitsuneyo: i just know it
[21:32:40] kitsuneyo: is that line
[21:35:30] matthewd: If the error isn't sufficient to tell you which part of the expression is nil, then you should be able to add debugging statements to show the values of the sub-parts
[21:36:20] Oliphaunte: has joined #RubyOnRails
[21:38:55] daveomcd: has joined #RubyOnRails
[21:41:15] Ayey_: has joined #RubyOnRails
[21:42:02] KnownSyntax_: has joined #RubyOnRails
[21:49:41] Brando753-o_O_o: has joined #RubyOnRails
[21:50:59] augcesar: has joined #RubyOnRails
[21:51:50] asheinfeld: has joined #RubyOnRails
[21:58:14] yfeldblum: has joined #RubyOnRails
[22:02:58] erlend: has joined #RubyOnRails
[22:04:37] pyemkey: has joined #RubyOnRails
[22:04:38] Oliphaunte: has joined #RubyOnRails
[22:08:11] hahuang61: has joined #RubyOnRails
[22:10:01] KnownSyntax_: has joined #RubyOnRails
[22:15:07] Coldblackice_: has joined #RubyOnRails
[22:21:13] chipotle_: has joined #RubyOnRails
[22:27:55] chipotle: has joined #RubyOnRails
[22:29:13] Coldblackice: has joined #RubyOnRails
[22:32:18] roamingdog: has joined #RubyOnRails
[22:36:00] calmchaos: has joined #RubyOnRails
[22:38:25] phredus: I am using chruby and ruby-install and trying to keep my OS out of the equation as much as possible. Other than using my OS's package manager, what else can I use to install nodejs? Something like gem install nodejs?
[22:38:58] dc4: has joined #RubyOnRails
[22:42:14] Ayey_: has joined #RubyOnRails
[22:43:59] cd-rum: has joined #RubyOnRails
[22:45:29] kevr: has joined #RubyOnRails
[22:46:21] matthewd: phredus: nodejs is not related to ruby; install it however you like
[22:46:54] phredus: matthewd: thank you
[22:47:05] cd-rum_: has joined #RubyOnRails
[22:47:13] matthewd: phredus: If you don't care, I'd go with the OS package (that's what I do). If you might care about nodejs as you would ruby (e.g., you have actual nodejs apps), then I think they have a chruby/rvm-like of their own
[22:47:44] jhass: or probably a dozen as I know the community
[22:47:57] ponzii: has joined #RubyOnRails
[22:48:41] matthewd: jhass: I think we lost the ability to throw that particular stone when someone invented a bundler version manager ;)
[22:48:52] ponzii: Since validations are tied to models how do I validate an form input which I don't want added to the database?
[22:49:13] jhass: matthewd: never heard of it :P
[22:49:54] jhass: why would you anyway, bundler is probably the most backwards compatible piece of ruby after rubygems
[22:52:39] asheinfeld: has joined #RubyOnRails
[22:54:16] eserror: has joined #RubyOnRails
[23:05:21] pyemkey: has joined #RubyOnRails
[23:06:19] Papierkorb: doesn't the rubygems `bundle` binstub allow you to select a specific version already?
[23:07:20] kitsuneyo: has joined #RubyOnRails
[23:07:35] matthewd: Papierkorb: Yeah.. this chooses it automatically from the lockfile (and auto-installs it if needed)
[23:09:03] matthewd: Papierkorb: https://github.com/bundler/postit, now merged into bundler proper: https://github.com/bundler/bundler/pull/4643
[23:11:28] deur-: has joined #RubyOnRails
[23:11:30] dalbuschat: has joined #RubyOnRails
[23:12:28] nettoweb: Im trying to filter result using Ransack gem, using check_boxes, here ir my code: https://gist.github.com/osnysantos/f811501779206648dcd25654d6d52166 but I'm wonder if there' a better way to do this using .check_box instead check_box_tag, maybe this way the checkbox comes the the default value checked.
[23:12:34] hahuang65: has joined #RubyOnRails
[23:20:08] pur3eval: has joined #RubyOnRails
[23:21:08] pur3eval: has joined #RubyOnRails
[23:22:09] solars: has joined #RubyOnRails
[23:23:38] Oliphaunte: has joined #RubyOnRails
[23:24:14] upsell5: has joined #RubyOnRails
[23:30:58] one_zero: has joined #RubyOnRails
[23:32:34] quazimodo: has joined #RubyOnRails
[23:32:44] roamingdog: has joined #RubyOnRails
[23:33:28] brianpWins_: has joined #RubyOnRails
[23:36:33] GodFather_: has joined #RubyOnRails
[23:42:59] baash05: has joined #RubyOnRails
[23:43:04] Ayey_: has joined #RubyOnRails
[23:44:02] zacts: has joined #RubyOnRails
[23:45:14] Sashimi: has joined #RubyOnRails
[23:47:13] flashpoint9: has joined #RubyOnRails
[23:48:55] Fuzai: has joined #RubyOnRails
[23:51:44] upsell5: has joined #RubyOnRails
[23:52:31] flashpoint9: Im just getting into rspec and running into an issue, here is my test and error https://gist.github.com/JosephLeon/144c0f2a9e2618d6cfc586959949103d
[23:52:37] Oliphaunte: has joined #RubyOnRails
[23:53:00] User458764: has joined #RubyOnRails
[23:53:16] flashpoint9: The tutorial I am following doesn't have me generate controllers but uses factory girl to generate testable data
[23:53:22] asheinfeld: has joined #RubyOnRails
[23:54:09] jenrzzz: has joined #RubyOnRails
[23:54:09] jenrzzz: has joined #RubyOnRails
[23:56:52] greenhat|: You need to create the loan object. Does `loan = create(:loan)` work?
[23:58:34] phon: has joined #RubyOnRails
[23:59:13] greenhat|: As a caveat, I've never used rspec, so I'm sure they have some kind of complex syntax to assign a loan to a variable, probably in a let block. But that's the basic idea.
[23:59:22] KnownSyntax_: has joined #RubyOnRails