« Back to channel list

#RubyOnRails - 09 July 2016

« Back 1 day Forward 1 day »
[00:00:29] pawnbox: has joined #RubyOnRails
[00:02:04] roamingdog: has joined #RubyOnRails
[00:02:10] nickjj: np, good luck
[00:03:36] Darmani: nickjj: This is my first project without training wheels lol
[00:03:45] Darmani: I seem to come here everyday asking about something I don't know how to do xD
[00:06:38] JakFrist: has joined #RubyOnRails
[00:13:40] jstransky: has joined #RubyOnRails
[00:15:04] blackmesa: has joined #RubyOnRails
[00:15:14] whathappens: has joined #RubyOnRails
[00:16:39] quazimodo: has joined #RubyOnRails
[00:18:37] JakFrist: has joined #RubyOnRails
[00:20:26] kevr: has joined #RubyOnRails
[00:21:41] whathappens: has joined #RubyOnRails
[00:24:30] blackmesa: has joined #RubyOnRails
[00:28:02] PlasmaStar: has joined #RubyOnRails
[00:28:11] weaksauce: has joined #RubyOnRails
[00:35:04] emachnic: has joined #RubyOnRails
[00:35:11] qejk: has joined #RubyOnRails
[00:36:34] pawnbox: has joined #RubyOnRails
[00:40:16] qejk: has joined #RubyOnRails
[00:42:04] oystersauce8: has joined #RubyOnRails
[00:43:39] KnownSyntax_: has joined #RubyOnRails
[00:43:39] KnownSyntax_: has joined #RubyOnRails
[00:51:54] Rodya_: has joined #RubyOnRails
[00:52:59] Ayey_: has joined #RubyOnRails
[01:00:23] dnrce_: has joined #RubyOnRails
[01:00:25] eserror: has joined #RubyOnRails
[01:00:55] Rodya_: has joined #RubyOnRails
[01:02:23] jhack: has joined #RubyOnRails
[01:08:22] enitiz: has joined #RubyOnRails
[01:10:44] whathappens: has joined #RubyOnRails
[01:14:35] ur5us: has joined #RubyOnRails
[01:23:30] ekinmur: has joined #RubyOnRails
[01:28:42] DevMagpie: has joined #RubyOnRails
[01:33:29] roamingdog: has joined #RubyOnRails
[01:34:22] Rodya_: has joined #RubyOnRails
[01:44:27] dangerousdave: has joined #RubyOnRails
[01:48:17] hahuang61: has joined #RubyOnRails
[01:51:22] Rodya_: has joined #RubyOnRails
[01:52:15] flashpoint9: has joined #RubyOnRails
[01:53:40] Ayey_: has joined #RubyOnRails
[01:54:29] ekinmur: has joined #RubyOnRails
[01:56:51] emachnic: has joined #RubyOnRails
[02:01:13] benlieb: has joined #RubyOnRails
[02:05:40] rct: has joined #RubyOnRails
[02:07:55] rct: has left #RubyOnRails: ()
[02:08:36] lxsameer: has joined #RubyOnRails
[02:16:13] utal: has joined #RubyOnRails
[02:24:29] tego101: has joined #RubyOnRails
[02:25:12] blackmesa: has joined #RubyOnRails
[02:28:01] pur3eval: has joined #RubyOnRails
[02:34:48] emachnic: has joined #RubyOnRails
[02:40:00] tego101: has joined #RubyOnRails
[02:43:34] benlieb: has joined #RubyOnRails
[02:44:10] ur5us: has joined #RubyOnRails
[02:51:38] Ardent: has joined #RubyOnRails
[02:51:42] Ardent: has left #RubyOnRails: ()
[02:52:38] kevr: has joined #RubyOnRails
[02:54:42] Ayey_: has joined #RubyOnRails
[02:56:43] flashpoint9: has joined #RubyOnRails
[03:06:15] _Tariq: has joined #RubyOnRails
[03:06:29] pawnbox: has joined #RubyOnRails
[03:09:01] tego101: has joined #RubyOnRails
[03:10:28] _Tariq_: has joined #RubyOnRails
[03:12:36] braincrash: has joined #RubyOnRails
[03:21:35] treaki__: has joined #RubyOnRails
[03:27:05] blackmesa: has joined #RubyOnRails
[03:29:46] Tempesta: has joined #RubyOnRails
[03:31:39] emachnic: has joined #RubyOnRails
[03:31:59] kevr: has joined #RubyOnRails
[03:33:16] null__: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[03:38:02] rafaelfranca: has joined #RubyOnRails
[03:41:48] phelpsiv: has joined #RubyOnRails
[03:42:08] oystersauce8: has joined #RubyOnRails
[03:43:13] phelpsiv: has joined #RubyOnRails
[03:43:13] tego101: has joined #RubyOnRails
[03:44:53] sypheren: has joined #RubyOnRails
[03:49:01] hahuang61: has joined #RubyOnRails
[03:52:25] AmiMoench: has joined #RubyOnRails
[03:55:31] Ayey_: has joined #RubyOnRails
[03:56:26] benlieb: has joined #RubyOnRails
[04:00:20] hippyphysicist: has joined #RubyOnRails
[04:01:26] alfiemax: has joined #RubyOnRails
[04:01:43] chouhoulis: has joined #RubyOnRails
[04:03:23] djbkd: has joined #RubyOnRails
[04:03:42] kevr: has joined #RubyOnRails
[04:10:53] xcesariox: has joined #RubyOnRails
[04:10:57] Ebok: has joined #RubyOnRails
[04:19:10] pawnbox: has joined #RubyOnRails
[04:22:46] jenrzzz: has joined #RubyOnRails
[04:25:44] emachnic: has joined #RubyOnRails
[04:30:00] blackmesa: has joined #RubyOnRails
[04:37:57] roamingdog: has joined #RubyOnRails
[04:38:04] rafaelfranca: has joined #RubyOnRails
[04:39:33] roamingdog: has joined #RubyOnRails
[04:41:17] enitiz_: has joined #RubyOnRails
[04:46:00] jenrzzz: has joined #RubyOnRails
[04:46:00] jenrzzz: has joined #RubyOnRails
[04:51:56] alfiemax: has joined #RubyOnRails
[04:54:22] flashpoint9: has joined #RubyOnRails
[04:54:32] djbkd: has joined #RubyOnRails
[04:55:32] dtzuzu: has joined #RubyOnRails
[04:56:04] jenrzzz: has joined #RubyOnRails
[04:56:13] Ayey_: has joined #RubyOnRails
[04:56:33] AndrewIsHere: has joined #RubyOnRails
[05:06:54] pawnbox: has joined #RubyOnRails
[05:19:32] utal: has joined #RubyOnRails
[05:19:55] emachnic: has joined #RubyOnRails
[05:33:02] blackmesa: has joined #RubyOnRails
[05:36:27] Rodya_: has joined #RubyOnRails
[05:37:10] futilegames: has joined #RubyOnRails
[05:44:56] Rodya_: has joined #RubyOnRails
[05:46:22] tego101: has joined #RubyOnRails
[05:49:02] tvw: has joined #RubyOnRails
[05:49:43] kevr: has joined #RubyOnRails
[05:49:46] hahuang61: has joined #RubyOnRails
[05:53:39] daumie: has joined #RubyOnRails
[05:57:14] Ayey_: has joined #RubyOnRails
[05:57:17] navo: has joined #RubyOnRails
[05:57:26] pontiki: has joined #RubyOnRails
[05:57:36] Devalo: has joined #RubyOnRails
[06:03:50] xcesariox: has joined #RubyOnRails
[06:06:53] Markhor1991: has joined #RubyOnRails
[06:07:07] chouhoulis: has joined #RubyOnRails
[06:07:24] alfiemax: has joined #RubyOnRails
[06:08:10] Axsuul: has joined #RubyOnRails
[06:12:41] jahbrewski: has joined #RubyOnRails
[06:14:06] emachnic: has joined #RubyOnRails
[06:19:23] Dimik: has joined #RubyOnRails
[06:20:51] qejk: has joined #RubyOnRails
[06:22:42] dionysus69: has joined #RubyOnRails
[06:28:14] Devalo: has joined #RubyOnRails
[06:29:09] arBmind: has joined #RubyOnRails
[06:29:38] oystersauce8: has joined #RubyOnRails
[06:29:42] enitiz: has joined #RubyOnRails
[06:33:10] JoshGlzBrk: has joined #RubyOnRails
[06:34:48] blackmesa: has joined #RubyOnRails
[06:42:33] dc4: has joined #RubyOnRails
[06:43:58] draig: has joined #RubyOnRails
[06:46:44] jenrzzz: has joined #RubyOnRails
[06:46:44] jenrzzz: has joined #RubyOnRails
[06:53:19] phelpsiv: has left #RubyOnRails: ()
[06:53:26] The_Phoenix1: has joined #RubyOnRails
[06:57:06] tego101: has joined #RubyOnRails
[06:57:19] dionysus70: has joined #RubyOnRails
[06:58:15] Ayey_: has joined #RubyOnRails
[07:01:41] hck89: has joined #RubyOnRails
[07:02:35] hck89: has joined #RubyOnRails
[07:03:10] deecross: has joined #RubyOnRails
[07:08:18] emachnic: has joined #RubyOnRails
[07:12:34] alfiemax: has joined #RubyOnRails
[07:14:28] rafaelfranca: has joined #RubyOnRails
[07:14:43] solars: has joined #RubyOnRails
[07:17:07] yfeldblum: has joined #RubyOnRails
[07:17:53] der-landgraf: has joined #RubyOnRails
[07:17:53] der-landgraf: has joined #RubyOnRails
[07:18:06] darutoko: has joined #RubyOnRails
[07:20:20] max1: has joined #RubyOnRails
[07:21:58] yfeldblum: has joined #RubyOnRails
[07:25:42] davidklsn: has joined #RubyOnRails
[07:32:22] crdpink2: has joined #RubyOnRails
[07:35:56] kevr: has joined #RubyOnRails
[07:36:21] jenrzzz: has joined #RubyOnRails
[07:36:36] blackmesa: has joined #RubyOnRails
[07:39:57] dtzuzu: has joined #RubyOnRails
[07:44:02] davidklsn: has joined #RubyOnRails
[07:44:25] sypheren: has joined #RubyOnRails
[07:48:26] wethu: has joined #RubyOnRails
[07:50:30] hahuang61: has joined #RubyOnRails
[07:50:37] jahbrewski: has joined #RubyOnRails
[07:56:43] wethu: has joined #RubyOnRails
[07:56:46] flashpoint9: has joined #RubyOnRails
[07:58:13] finnnnnnnnnnn: has joined #RubyOnRails
[07:59:17] Ayey_: has joined #RubyOnRails
[08:06:01] wethu: has joined #RubyOnRails
[08:07:22] benlieb: has joined #RubyOnRails
[08:09:06] rubyonrails548: has joined #RubyOnRails
[08:09:53] rubyonrails548: I cannot get Cloudinary's image transformation parameters to work
[08:10:05] rubyonrails548: image_tag(post.image_url, width:640, fetch_format:"auto", quality: 50, class: "img-responsive")
[08:10:36] rubyonrails548: here, i've changed the quality to many different values but i'm not seeing any changes on the images on the site
[08:10:48] rubyonrails548: i.e the quality of the images remains as before
[08:11:18] rubyonrails548: i tried cl_image_tag instead of just image_tag, but that isn't working either
[08:12:03] Devalo: has joined #RubyOnRails
[08:13:22] Devalo: has joined #RubyOnRails
[08:15:02] benlieb: has joined #RubyOnRails
[08:15:40] tbuehlmann: rubyonrails548: don't know Cloudinary, but the docs tell us to use cl_image_tag("sample.jpg", :width => 100, :height => 150, :crop => :fill)
[08:15:51] tbuehlmann: just using image_tag won't apply the correct params to the url
[08:16:20] rubyonrails548: i tried cl_image_tag as well but that's not working either
[08:17:02] arup_r: has joined #RubyOnRails
[08:18:11] shock_one: has joined #RubyOnRails
[08:18:35] tbuehlmann: what exactly do you mean when you say "that's not working"?
[08:19:36] rubyonrails548: @tbuehlmann as in changing the quality parameter to different values doesn't affect the images' quality in the site
[08:20:46] srinidhi: has joined #RubyOnRails
[08:22:19] wethu: has joined #RubyOnRails
[08:22:32] tbuehlmann: can you check whether the url changes at all when you provide the qualit argument?
[08:24:03] alfiemax: has joined #RubyOnRails
[08:25:22] blackmesa: has joined #RubyOnRails
[08:25:31] rubyonrails548: @tbuehlmann nope the url doesn't change
[08:28:43] tbuehlmann: before checking the source code of the gem: could you try using the key :q instead of :quality?
[08:31:02] tbuehlmann: if that doesn't work, check the source code of the gem
[08:36:11] blackmesa: has joined #RubyOnRails
[08:43:56] finnnnnnnnnnn: has joined #RubyOnRails
[08:45:36] Ayey_: has joined #RubyOnRails
[08:45:37] conta: has joined #RubyOnRails
[08:56:48] emachnic: has joined #RubyOnRails
[09:00:53] lexileo: has joined #RubyOnRails
[09:02:26] finnnnnnnnnnn: has joined #RubyOnRails
[09:11:30] hck89: has joined #RubyOnRails
[09:13:29] armyriad: has joined #RubyOnRails
[09:14:43] benlieb: has joined #RubyOnRails
[09:18:53] daumie: has joined #RubyOnRails
[09:22:32] andywww: has joined #RubyOnRails
[09:24:59] theod: has joined #RubyOnRails
[09:25:34] M4dH4TT3r: has joined #RubyOnRails
[09:33:19] pawnbox: has joined #RubyOnRails
[09:43:10] antgel: has joined #RubyOnRails
[09:43:29] quazimodo: has joined #RubyOnRails
[09:43:46] AzaToth: has joined #RubyOnRails
[09:46:53] futilegames: has joined #RubyOnRails
[09:50:56] emachnic: has joined #RubyOnRails
[09:51:13] hahuang61: has joined #RubyOnRails
[09:52:55] blackmesa: has joined #RubyOnRails
[09:53:58] pawnbox: has joined #RubyOnRails
[10:03:21] daumie: has joined #RubyOnRails
[10:05:21] AndrewIsHere: has joined #RubyOnRails
[10:08:20] benlieb: has joined #RubyOnRails
[10:11:27] jahbrews1i: has joined #RubyOnRails
[10:25:34] ElFerna: has joined #RubyOnRails
[10:25:38] jenrzzz: has joined #RubyOnRails
[10:25:38] jenrzzz: has joined #RubyOnRails
[10:28:26] yfeldblum: has joined #RubyOnRails
[10:28:47] wethu: has joined #RubyOnRails
[10:33:15] snowy: has joined #RubyOnRails
[10:33:22] M4dH4TT3r: has joined #RubyOnRails
[10:33:39] M4dH4TT3r: has joined #RubyOnRails
[10:37:09] GodFather: has joined #RubyOnRails
[10:46:00] AndrewIsHere: has joined #RubyOnRails
[10:57:36] peterppp: has joined #RubyOnRails
[10:58:56] peterppp: I'm trying to deploy my Rails app using Capistrano for the first time, but Capistrano only creates an empty directory structure without any files whatsoever. What did I do wrong?
[11:00:03] lexiMon: has joined #RubyOnRails
[11:07:25] benlieb: has joined #RubyOnRails
[11:09:27] flashpoint9: has joined #RubyOnRails
[11:10:28] abhvl: has joined #RubyOnRails
[11:10:50] abhvl: whele trying to old object to new using .dup i get error on its .photos association that Paperclip::Errors::NotIdentifiedByImageMagickError
[11:13:37] flashpoi_: has joined #RubyOnRails
[11:14:45] xcesariox: has joined #RubyOnRails
[11:15:09] dc4: has joined #RubyOnRails
[11:28:57] deecross: has joined #RubyOnRails
[11:30:30] Pumukel: has joined #RubyOnRails
[11:38:04] ElFerna: has joined #RubyOnRails
[11:42:53] dikons: has joined #RubyOnRails
[11:43:25] M4dH4TT3r: has joined #RubyOnRails
[11:43:30] wethu: has joined #RubyOnRails
[11:48:03] jahbrewski: has joined #RubyOnRails
[11:50:03] binaryplease4: has joined #RubyOnRails
[11:51:58] hahuang61: has joined #RubyOnRails
[11:52:03] shock_one: has joined #RubyOnRails
[11:52:29] durexlw: has joined #RubyOnRails
[11:52:44] durexlw: afternoon all
[11:52:47] tvw: has joined #RubyOnRails
[11:53:59] durexlw: anyone here has experience building a modular saas app that allows users to buy modules and when they bought them, have them available in your webapp?
[12:00:47] GodFather: has joined #RubyOnRails
[12:00:51] allcentury: has joined #RubyOnRails
[12:04:10] wethu: has joined #RubyOnRails
[12:13:21] carlosd: has joined #RubyOnRails
[12:17:44] Ebok: has joined #RubyOnRails
[12:19:55] finnnnnnnnnnn: can anyone suggest a more succinct way to make this hash? https://gist.github.com/anonymous/f2f7831fe40e4ec72ac6a584baf91341
[12:21:30] Z00t: has joined #RubyOnRails
[12:22:21] hck89: has joined #RubyOnRails
[12:28:49] nickjj: durexlw, in some way or another yes
[12:29:40] durexlw: nickjj: what did you use to declare roles? I kinda expect you need a login/authorization and way to handle certain roles for users?
[12:30:17] blackmesa: has joined #RubyOnRails
[12:30:22] durexlw: Maybe if I ask the question more general: I'm looking for an architecture on how to set this up, but I don't have any experience with it, so I'm looking for some good ideas
[12:31:05] nickjj: durexlw, i tend to reach for devise/pundit to handle the combo for authentication and authorization
[12:31:34] nickjj: but if you generalize your problem, a module is just a type of content that a user conditionally has access to
[12:31:45] durexlw: yeah indeed
[12:32:00] nickjj: and that access is going to be based on them having some type of transaction ID saved to a db for that module
[12:32:07] nickjj: which would be provided by your payment gateway
[12:33:12] workmad3: has joined #RubyOnRails
[12:33:35] durexlw: yeah, I guess I'm still trying to make a mental picture in my head about that. basicly, what I want to do is: a website, one central login system, users can unlock modules that then become available in the site to them. Let's say we forget payment for a sec, how would you go about this problem, design wise?
[12:33:46] nickjj: implementation wise, it's not really different than restricting someone from only being able to view their own todo list
[12:34:13] nickjj: except instead of restricting it on user_id, you'd restrict it on that along with a transaction id of some sort
[12:35:09] durexlw: makes perfect sense... what you're saying is: a module is unlocked, the combination of this unlock-key and the user being logged in, is what makes the module accesible
[12:36:37] durexlw: nickjj: how is this tied into roles then?
[12:37:20] nickjj: if you wanted to eliminate the payment aspect but still wanted to tie it into an action, you could just email them a link, and when they click the link you'd save a random token to the db -- and that kind of mocks the payment
[12:37:33] nickjj: (for development purposes early on)
[12:37:47] skroon: has joined #RubyOnRails
[12:38:05] skroon: is there a way to disable paperclip to do url/file checking on remote host? it slows down my site a lot
[12:38:30] nickjj: durexlw, role details would be handled by pundit, i recommend checking their readme since they have examples
[12:39:31] durexlw: I certainly will nickjj, I'm still a bit wondering: roles seem to be things that are used 'inside' the modules, not so much for unlocking them, would you agree?
[12:39:32] nickjj: basically you'd create a policy that says "this user must have something saved in his records that shows he purchased the module", and then you'd just protect your modules controller actions with this authorization policy
[12:40:13] nickjj: they are the rules that dictate whether or not you have access
[12:40:38] durexlw: I guess it's a good time to read those docs
[12:40:55] nickjj: i think you should remove "role" from your vocab for this problem set
[12:41:12] nickjj: because a role defines what you are
[12:41:27] nickjj: are you a user? an admin? an editor?
[12:42:19] srinidhi: has joined #RubyOnRails
[12:42:59] durexlw: so you're saying don't think about roles for unlocking modules. Unlocking modules is about what you can access, whereas a role is about who you are when granted that access?
[12:43:41] nickjj: personally i would use roles for things like separating users from admins
[12:45:27] nickjj: even if you decided to make a role out of each module, you'd still want to use pundit to do the authorization of it
[12:45:39] nickjj: (or another authorization gem if you decide to use something else)
[12:46:36] durexlw: nickjj: but if I understand correctly, from your experience you'd adise against making a role for a module, right? Or am I understanding you wrong?
[12:47:32] moeabdol: has joined #RubyOnRails
[12:47:35] nickjj: durexlw, it wouldn't be a terrible idea -- in my cases i've only built systems where there was 1 module to be bought
[12:47:50] durexlw: Currently I have a User that has_many activations and an activation has_many modules. So an activation ties a user to a module. The activation between a module and a user is created when provided the correct unlock-code
[12:48:20] benlieb: has joined #RubyOnRails
[12:48:22] durexlw: So a user can give a code in his profile and this unlocks a module
[12:49:19] nickjj: i'd imagine the auth on a role based module would be as simple as: current_user.roles.include? 'foo_module'
[12:49:28] durexlw: this works fine, but this is because a module is currently more a group of articles. So it were as if your example: a user can only but one (kind) of module
[12:49:48] nickjj: and that role gets set to their account upon payment success
[12:49:52] nickjj: and removed if they decide to get a refund
[12:50:22] durexlw: but like you say: when there would be different kind of modules, I'm kinda guessing this would become a mess, and the suggestion of making each module a role, would clean this mess up quite a lot and make it more managable
[12:50:57] durexlw: *a user can only BUY one (kind) of module
[12:51:01] nickjj: yeah, when dealing with multiple things, it seems like a good abstraction
[12:51:08] durexlw: much agreed
[12:51:12] nickjj: because you're just adding/removing roles from a list
[12:51:42] Ebok: has joined #RubyOnRails
[12:51:50] durexlw: I really appreciate your time and help, nickjj. I think this exchange has brought a lot of clarity and saved me a bunch of headache down the road, so thanks
[12:52:24] durexlw: so what you working on currently?
[12:52:56] durexlw: skroon: what do you mean exactly?
[12:53:03] nickjj: for the last year i've been creating online courses
[12:54:18] skroon: durexlw: paperclip, is doing a check if the file exists before rendering the URL, but if you have images not on local filesystem but on S3 of Google Cloud, this because a *really* slow process for large collection of files
[12:55:48] durexlw: nickjj: cool... I'm kinda making a site for that. I give real life classes, but I get a lot of questions, so I'm building something that people can register for the online equivalent of the aqtual course, so that I can capture there questions there and they can find the documentation for the course they followed all in one organised place
[12:55:54] durexlw: what's the online courses about?
[12:56:42] nickjj: oh that sounds pretty cool
[12:56:54] nickjj: they are a mixture of docker, rails and flask
[12:57:33] durexlw: nickjj: nice, where do you publish them?
[12:57:34] nickjj: for example, one of them goes into learning about docker and how to scale a load balanced rails app on AWS with docker
[12:58:14] nickjj: for now i use udemy.com, but i'm always looking for a better platform
[12:58:32] nickjj: but i have all of them listed on my site at http://nickjanetakis.com/courses/
[12:59:02] peterppp: I just found capistrano-ssh-doctor, and claims that SSH agent forwarding is set up correctly, but when I try to deploy I still end up with an empty directory structure
[12:59:28] netzfisch: has joined #RubyOnRails
[12:59:34] durexlw: nickjj: if you'd be interested, we could pair up... I'm not in it for the money, so it might be a good deal for you. And I'm mainly happy if people find what they're looking for
[12:59:43] peterppp: I feel pretty dumb and if someone could point me in the right direction, I'd be very grateful
[13:00:13] nickjj: durexlw, course hosting platforms are a tricky thing to do well but sure we can talk more about it
[13:04:42] passbe: has joined #RubyOnRails
[13:06:24] passbe: I'm trying to use store_accessor to expose keys within a jsonb postgres column like this: http://nandovieira.com/using-postgresql-and-jsonb-with-ruby-on-rails. But with Rails 5 im getting: ArgumentError: wrong number of arguments (given 3, expected 1..2) anyone aware of changes to serialization that may affect this?
[13:06:59] workmad3: has joined #RubyOnRails
[13:07:20] mdw: has joined #RubyOnRails
[13:09:46] matthewd: passbe: I believe jsonb should work the same as json: http://guides.rubyonrails.org/active_record_postgresql.html#json
[13:10:07] passbe: oh jesus, turns out you can't serialize more than one field. ie: serialize :field, :field JSON
[13:11:06] matthewd: peterppp: I don't know much about capistrano, but I doubt anyone can help you without any indication of what you're doing
[13:11:42] lele: has joined #RubyOnRails
[13:12:50] Ayey_: has joined #RubyOnRails
[13:13:17] mdw7: has joined #RubyOnRails
[13:13:27] peterppp: matthewd, thanks for your response, I'm trying to follow the tutorial on how to deploy a Rails app from gorails.com
[13:13:36] gerep: has joined #RubyOnRails
[13:14:27] gerep: Can someone please help me understand why my message in the block comes as nil? I'm using aasm to manage the object states: https://gist.github.com/gerep/078dea8152ea62d6862dc5df121a22bb
[13:14:45] gerep: After the read event I need to update the read_at (datetime) column in my message object
[13:15:17] Ebok: has joined #RubyOnRails
[13:16:52] matthewd: peterppp: !gist your capfile (and the terminal session of you running it, I guess)
[13:16:52] helpa: peterppp: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[13:18:44] matthewd: gerep: What are you expecting it to be, and why?
[13:28:25] mdw: has joined #RubyOnRails
[13:28:26] elle: has joined #RubyOnRails
[13:34:07] quazimodo: has joined #RubyOnRails
[13:35:26] pontiki: has joined #RubyOnRails
[13:35:35] sergey_makagon: has joined #RubyOnRails
[13:36:25] PotatoChipz: has joined #RubyOnRails
[13:37:17] PotatoChipz: Hello. I am trying to add a new DSL to Grape API. And I just added a new class in lib/grape/dsl directory. But.. I cannot make it work.
[13:37:24] PotatoChipz: Am i doing it wrong?
[13:37:53] Fernando-Basso: When I create a new rails app, is it possible to have rails installed in vendor/ ? (I use rvm, if that matters)
[13:38:20] Fernando-Basso: I would like to generate tags including rails stuff.
[13:38:42] HerMajor: has joined #RubyOnRails
[13:38:59] pontiki: Fernando-Basso: if you use --skip-bundle on the rails new command, you can run bundle later telling it to go into vendor
[13:39:50] Fernando-Basso: pontiki: Let me see.
[13:41:10] dtzuzu: has joined #RubyOnRails
[13:44:14] Fernando-Basso: rails new testapp; cd !$; bundle install and vendor/ only has the assets dir. Perhaps my bashrc is the culprit, since it is setting GEM_HOME
[13:44:55] pontiki: Fernando-Basso: please spend at least a little time reading the rails new help
[13:45:00] pontiki: and bundle install help
[13:45:27] Fernando-Basso: I will. Thanks.
[13:46:22] moeabdol1: has joined #RubyOnRails
[13:46:36] sk0r: has joined #RubyOnRails
[13:47:08] HerMajor: Росияне есть?
[13:47:44] blackmesa: has joined #RubyOnRails
[13:48:22] gerep: I have a controller archive methods called via PUT and my test is checking if a state of my message object has changed: https://gist.github.com/gerep/3f6a2f15594b7d06fd5da73f51731ce5
[13:48:49] gerep: I don't know why in my tests, after the controller archive methods is called it is still maintaining the old state "unread"
[13:49:25] gerep: Debugging the controller I can see that before the @message.archive method is called, the state is "unread" and after it is "archived" as expected but in my unit test it is not working
[13:49:50] gerep: The same debug shows that in my unit test the @message.state is always "unread", before and after the PUT call
[13:50:03] gerep: I'm using fixtures
[13:50:23] gerep: Making the tests using rails console I can make the entire process work
[13:50:39] pawnbox: has joined #RubyOnRails
[13:50:39] gerep: The states are being changed as expected, except in this single test
[13:51:09] matthewd: Fernando-Basso: Note that the Gemfile.lock is intended to deal with the problem of keeping Rails (etc) versions in sync with the code in your repository... depending on exactly what problem you're trying to solve, you may not actually need to vendor the full gem contents
[13:51:12] gerep: I have tried using @message.reload but no success
[13:52:16] Fernando-Basso: matthewd: I am trying to have gems and rails itself indexed in my tags file.
[13:52:44] hahuang61: has joined #RubyOnRails
[13:52:51] matthewd: Fernando-Basso: Oh, as in ctags?
[13:53:01] gerep: matthewd: sorry, just now I noticed you answered my previous question :(
[13:53:17] gerep: matthewd: that one is fixed, now I'm facing this issue with my unit test
[13:55:49] matthewd: Fernando-Basso: I haven't tried it, but https://coderwall.com/p/modh-g/ctags-bundler-vim-exuberance may interest you
[13:56:27] Fernando-Basso: I'll take a look. Thanks.
[13:59:39] sergey_makagon: has joined #RubyOnRails
[14:04:16] matthewd: gerep: Does re-finding the record work any better?
[14:04:57] matthewd: assert Message.find(@message.id).archived?
[14:06:01] gerep: matthewd: it didn't
[14:06:30] gerep: matthewd: I'm using the aasm gem and I noticed I can use the ! sign
[14:06:36] gerep: matthewd: using that works
[14:07:14] dionysus69: has joined #RubyOnRails
[14:08:57] pontiki: gerep: https://github.com/aasm/aasm#activerecord
[14:09:41] gerep: pontiki: that's it, my fault not reading the entire documentation :)(
[14:11:14] pontiki: gerep: aasm has a lot of little fiddly bits like that
[14:11:27] jahbrewski: has joined #RubyOnRails
[14:11:31] qejk: has joined #RubyOnRails
[14:11:37] pontiki: it's still the one i reach for when i need a state machine and transitions
[14:11:48] hahuang61: has joined #RubyOnRails
[14:12:17] allcentury: has joined #RubyOnRails
[14:12:27] pontiki: (which might be entirely due to the having spent so much time figuring it out, not that it's better)
[14:12:44] gerep: pontiki: hahaha makes sense :)
[14:13:34] Ayey_: has joined #RubyOnRails
[14:13:43] gerep: pontiki: maybe you can help me with another issue? https://gist.github.com/gerep/3f6a2f15594b7d06fd5da73f51731ce5#file-message-rb I need to save the message date when a state is called but my test shows that the archived_at column is nil
[14:14:32] matthewd: gerep: Isn't that exactly the same problem?
[14:14:33] gerep: pontiki: maybe you already had to do that?
[14:14:55] gerep: matthewd: I'm not sure, show will I do that in self.archived_at = Time.current?
[14:15:13] gerep: matthewd: should I call self.save ?! (sounds wrong)
[14:15:31] pontiki: gerep: yeah, those callbacks are tricky
[14:15:52] pontiki: as in, you might need to put the callback on the transition itself
[14:16:21] rubyonrails971: has joined #RubyOnRails
[14:16:41] matthewd: gerep: save (well, more likely save!) seems plausible to me
[14:19:08] daumie: has joined #RubyOnRails
[14:19:39] Oliphaunte: has joined #RubyOnRails
[14:21:12] gerep: matthewd: sure, that's an option...another option was doing this: https://gist.github.com/gerep/3f6a2f15594b7d06fd5da73f51731ce5#file-message-rb
[14:21:20] gerep: pontiki: take a look: https://gist.github.com/gerep/3f6a2f15594b7d06fd5da73f51731ce5#file-message-rb hahahaha
[14:21:31] gerep: At least the tests are passing now
[14:21:46] chipotle: has joined #RubyOnRails
[14:22:13] pontiki: so which one is running? both? only one?
[14:22:48] pontiki: you can also put an after callback in a block on the transition
[14:23:04] gerep: pontiki: sorry, forgot to remove the event on. I'm using the method
[14:23:04] pontiki: what a strange language we speak ....
[14:24:58] peterppp: for a few hours I've been trying to deploy a Rails app using Capistrano so far unsuccessfully, here's a gist with my deploy.rb and the output of capistrano: https://gist.github.com/anonymous/30f2d6f8ffed3620b721fab2e7bee03e
[14:25:08] peterppp: if someone could have a look, I'd appreciate that
[14:25:11] khelair: has joined #RubyOnRails
[14:26:41] Ayey_: has joined #RubyOnRails
[14:28:07] peterppp: ... had to do it again: https://gist.github.com/anonymous/a50b9f05af52d56b3de4257d71107c36
[14:28:12] sergey_makagon: has joined #RubyOnRails
[14:28:27] _Tariq: has joined #RubyOnRails
[14:28:48] pontiki: i don't see where an error is
[14:29:03] pontiki: are you sure that's the entire output from cap?
[14:29:56] pontiki: been ages since i looked at cap...
[14:30:10] peterppp: thanks for having a look
[14:30:25] sneep: Yeah, looks peachy
[14:30:35] peterppp: everything looks fine but still ther are only empty directories on my server
[14:30:56] sneep: Why are there so many ellipses?
[14:31:39] AmiMoench: has joined #RubyOnRails
[14:31:54] finnnnnnnnnnn: has joined #RubyOnRails
[14:32:31] fryguy: none of this stuff matches up at all
[14:33:23] fryguy: the cap file says it deploys to /home/me/myapp but logs reference /home/peter/myapp
[14:33:29] peterppp: in my gist? if so, that's because I replaced a couple strings perhaps inconsistently
[14:33:44] helpa: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[14:33:52] peterppp: okay, sorry for that
[14:34:01] pawnbox: has joined #RubyOnRails
[14:34:05] pontiki: peterppp: include your deploy/*.rb files. only instead of making one HUGE text file, add files individually
[14:35:09] matthewd: !gist-usage
[14:35:09] helpa: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[14:36:18] srinidhi: has joined #RubyOnRails
[14:37:36] skroon: has joined #RubyOnRails
[14:41:51] dtzuzu: has joined #RubyOnRails
[14:50:42] sk0r: has joined #RubyOnRails
[14:50:47] blackmesa: has joined #RubyOnRails
[14:51:31] skroon: has joined #RubyOnRails
[14:58:51] adavia: has joined #RubyOnRails
[15:03:18] rubyonrails132: has joined #RubyOnRails
[15:04:17] Oliphaunte: has joined #RubyOnRails
[15:04:34] rubyonrails132: I'm trying to render a partial (_view.html.haml) from PostsController in a view inside ProfilesController
[15:04:34] dionysus69: has joined #RubyOnRails
[15:04:45] rubyonrails132: I tried = render partial: '/posts/view' but I'm getting a missing template error
[15:05:19] rubyonrails132: The error goes like "Missing partial profiles/_post, application/_post... "
[15:06:00] vjacob: has joined #RubyOnRails
[15:06:22] mustmodify_: has joined #RubyOnRails
[15:07:20] mustmodify_: When deploying my monolith, I got "Deadlock found when trying to get lock ...." for an update statement. I assume it happened while I was migrating that table to add a column. Is this avoidable? Or just something you live with?
[15:08:09] flashpoint9: has joined #RubyOnRails
[15:17:51] pawnbox: has joined #RubyOnRails
[15:22:34] xcesariox: has joined #RubyOnRails
[15:29:50] macsteps: has joined #RubyOnRails
[15:33:40] Velizar: has joined #RubyOnRails
[15:34:13] carlosd: has joined #RubyOnRails
[15:35:33] roamingdog: has joined #RubyOnRails
[15:40:37] jahbrewski: has joined #RubyOnRails
[15:42:40] dtzuzu: has joined #RubyOnRails
[15:47:10] ecnalyr: has joined #RubyOnRails
[15:48:02] skroon: has joined #RubyOnRails
[15:52:59] marr: has joined #RubyOnRails
[15:53:50] blackmesa: has joined #RubyOnRails
[15:58:03] moei: has left #RubyOnRails: ("Leaving...")
[15:58:25] sergey_makagon: has joined #RubyOnRails
[16:00:23] pawnbox: has joined #RubyOnRails
[16:04:06] macsteps: has joined #RubyOnRails
[16:07:55] allcentury: has joined #RubyOnRails
[16:11:39] banisterfiend: has joined #RubyOnRails
[16:13:05] ecnalyr: has joined #RubyOnRails
[16:14:27] hahuang61: has joined #RubyOnRails
[16:18:04] durexlw: has joined #RubyOnRails
[16:18:38] eserror: has joined #RubyOnRails
[16:22:03] xcesariox: has joined #RubyOnRails
[16:22:44] pawnbox: has joined #RubyOnRails
[16:28:55] vanvemden: has joined #RubyOnRails
[16:30:55] HerMajor: has joined #RubyOnRails
[16:31:48] arup_r: has joined #RubyOnRails
[16:38:11] enitiz: has joined #RubyOnRails
[16:39:21] efy: has joined #RubyOnRails
[16:41:06] daumie: has joined #RubyOnRails
[16:42:35] bga57: has joined #RubyOnRails
[16:42:57] Trynemjoel: has joined #RubyOnRails
[16:44:09] efy: has joined #RubyOnRails
[16:52:17] eladmeidar: has joined #RubyOnRails
[16:52:23] The_Phoenix: has joined #RubyOnRails
[16:55:41] blackmesa: has joined #RubyOnRails
[17:02:04] ia9371: has joined #RubyOnRails
[17:02:16] ia9371: hello I am trying to put a site that is on github
[17:02:18] ia9371: onto my server
[17:02:21] ia9371: someone help me do this
[17:02:46] peterppp: you mean deploy it?
[17:03:09] peterppp: I've been battling with this all day long
[17:03:45] ia9371: I mean its on github looks like all the versions are the same. I copy and paste the entire contents but of course this doesnt work so im trying to think of the most efficient way of get this to work
[17:04:11] dionysus69: has joined #RubyOnRails
[17:04:19] peterppp: you mean literally cope and paste?
[17:04:41] ia9371: pretty much I should just need to copy the app folder and than edit some config settings right?
[17:04:56] peterppp: there's a program out there called 'git' which can do this for you
[17:05:08] srinidhi: has joined #RubyOnRails
[17:07:43] Coldblackice: has joined #RubyOnRails
[17:08:46] Oliphaunte: has joined #RubyOnRails
[17:10:27] Detch: has joined #RubyOnRails
[17:13:12] vanvemden: has joined #RubyOnRails
[17:14:47] blackmesa: has joined #RubyOnRails
[17:15:31] Axsuul: has joined #RubyOnRails
[17:20:21] SteenJobs: has joined #RubyOnRails
[17:21:21] mustmodify_: ia9371: So just to verify... you have your code on github. And you have a server. And you want to know how to get your code from github to your server?
[17:24:19] vanvemden_: has joined #RubyOnRails
[17:25:50] rafaelfranca: has joined #RubyOnRails
[17:25:50] rafaelfranca: has joined #RubyOnRails
[17:27:50] pontiki: has joined #RubyOnRails
[17:29:59] eserror: has joined #RubyOnRails
[17:36:10] xcesariox: has joined #RubyOnRails
[17:41:19] benlieb: has joined #RubyOnRails
[17:46:57] arup_r: has joined #RubyOnRails
[17:47:19] SteenJobs: has joined #RubyOnRails
[17:49:08] jahbrewski: has joined #RubyOnRails
[17:51:03] dangerousdave: has joined #RubyOnRails
[17:56:25] mustmodify_: ok new weird problem.
[17:56:26] flashpoint9: has joined #RubyOnRails
[17:56:36] mustmodify_: actually NM this is for #bundler
[18:03:52] Oliphaunte: has joined #RubyOnRails
[18:06:07] macsteps: has joined #RubyOnRails
[18:06:23] antgel: has joined #RubyOnRails
[18:07:16] Xentil: has joined #RubyOnRails
[18:09:27] ia9371: im having trouble rake db:migrate in ruby on rails in gatorhost
[18:09:39] ia9371: IM not sure what port and url i should use
[18:10:23] art-solopov: has joined #RubyOnRails
[18:10:37] ia9371: should it be localhost or 'localhost'
[18:12:11] ia9371: it keeps saying I dont have gems
[18:12:31] ia9371: and than i try to install them and it says that unable to install, im using gatorhost
[18:14:29] zacts: has joined #RubyOnRails
[18:14:42] Haaibo: has joined #RubyOnRails
[18:14:42] Haaibo: has joined #RubyOnRails
[18:15:11] hahuang61: has joined #RubyOnRails
[18:16:37] benlieb: has joined #RubyOnRails
[18:16:54] durexlw: what's gatorhost? coding ui?
[18:17:01] ia9371: gatorhost is my host
[18:17:10] durexlw: ow webhosting
[18:17:14] durexlw: why not heroku?
[18:18:35] ia9371: well i was trying gatorhost and it has been giving me issues I may change hosts soon
[18:18:50] ia9371: But im having problems doing simple things like updating gems
[18:18:51] SharksAbove: has joined #RubyOnRails
[18:19:23] ia9371: its been a while since I have used rails but I am having a lot of trouble just getting the database to migrate
[18:20:11] SharksAbove: has joined #RubyOnRails
[18:20:38] diegoviola: has joined #RubyOnRails
[18:22:01] JoshGlzBrk: has joined #RubyOnRails
[18:26:45] SteenJobs: has joined #RubyOnRails
[18:28:35] rogue_koder: has joined #RubyOnRails
[18:32:37] EisenX: has joined #RubyOnRails
[18:38:00] dtzuzu: has joined #RubyOnRails
[18:40:56] Rodya_: has joined #RubyOnRails
[18:45:25] JoshGlzB_: has joined #RubyOnRails
[18:49:10] ia9371: I think gatorhost just doesnt support a lot of the features that I need
[18:49:26] dionysus69: has joined #RubyOnRails
[18:49:53] meoblast001: has joined #RubyOnRails
[18:49:53] one_zero: has joined #RubyOnRails
[18:50:47] Z00t: has joined #RubyOnRails
[18:51:28] Xentil: has joined #RubyOnRails
[18:52:58] Dimik: has joined #RubyOnRails
[18:57:29] flashpoint9: has joined #RubyOnRails
[18:57:35] Oliphaunte: has joined #RubyOnRails
[18:57:41] JoshGlzBrk: has joined #RubyOnRails
[18:58:27] jheathco1: has joined #RubyOnRails
[19:03:35] flashpoint9: has joined #RubyOnRails
[19:05:19] pawnbox_: has joined #RubyOnRails
[19:07:05] blackmesa: has joined #RubyOnRails
[19:10:31] SteenJobs: has joined #RubyOnRails
[19:10:35] sergey_makagon: has joined #RubyOnRails
[19:13:57] Oliphaunte: has joined #RubyOnRails
[19:14:57] asianMike: has joined #RubyOnRails
[19:16:47] Oliphaunte: has joined #RubyOnRails
[19:18:53] weaksauce: has joined #RubyOnRails
[19:24:00] daumie: has joined #RubyOnRails
[19:26:24] Moeh: has joined #RubyOnRails
[19:26:52] dgynn: has joined #RubyOnRails
[19:27:56] GodFather: has joined #RubyOnRails
[19:28:32] Fernando-Basso: I am in admin/posts, but controller_name returns just 'posts'. Is that correct?
[19:28:42] Fernando-Basso: s/correct/expected/
[19:29:06] Rodya_: has joined #RubyOnRails
[19:29:45] Fernando-Basso: H'mm. controller_path may help here.
[19:31:07] Moeh: Hey guys, is there a way to get a erb file in a controller as string? (would like to convert to PDF)
[19:31:22] Moeh: I tried using render:, but rails complains that I cannot use multiple renders in one action
[19:32:45] roamingdog: has joined #RubyOnRails
[19:33:25] mustmodify_: has left #RubyOnRails: ()
[19:34:17] yfeldblum: has joined #RubyOnRails
[19:35:28] ecnalyr: has joined #RubyOnRails
[19:41:03] GodFather: has joined #RubyOnRails
[19:41:42] rafaelfranca: has joined #RubyOnRails
[19:42:55] dc4: has joined #RubyOnRails
[19:49:27] roshanavand: has joined #RubyOnRails
[19:50:33] Rodya_: has joined #RubyOnRails
[19:54:32] Rodya_: has joined #RubyOnRails
[20:01:20] Oliphaunte: has joined #RubyOnRails
[20:02:48] macsteps: has joined #RubyOnRails
[20:03:15] roshanavand: has joined #RubyOnRails
[20:03:31] JoshGlzBrk: has joined #RubyOnRails
[20:04:28] solars: has joined #RubyOnRails
[20:05:50] Hobogrammer: has joined #RubyOnRails
[20:10:53] macsteps: has joined #RubyOnRails
[20:11:45] Oliphaunte: has joined #RubyOnRails
[20:13:28] Xentil: has joined #RubyOnRails
[20:15:55] hahuang61: has joined #RubyOnRails
[20:16:11] JoshGlzBrk: has joined #RubyOnRails
[20:18:46] andywww_: has joined #RubyOnRails
[20:19:07] banisterfiend: has joined #RubyOnRails
[20:20:12] jottr: has joined #RubyOnRails
[20:20:38] dtzuzu: has joined #RubyOnRails
[20:21:23] pLaToOn: has joined #RubyOnRails
[20:22:03] xibalba: has joined #RubyOnRails
[20:22:30] dcunit3d: has joined #RubyOnRails
[20:25:54] andywww_: anyone having a look at clojure?
[20:26:59] flashpoint9: has joined #RubyOnRails
[20:29:30] hahuang61: has joined #RubyOnRails
[20:31:34] moep: has joined #RubyOnRails
[20:37:39] syahdeini: has joined #RubyOnRails
[20:38:16] syahdeini: hi guys, is it possible using attr_accessible for saving hash ?
[20:39:04] GodFather: has joined #RubyOnRails
[20:43:31] ia9371: when I rails generate controller Welcome index it generates some files but it doesnt generate the welcome and index controller and view
[20:43:50] ia9371: im on very old version of rails and ruby
[20:45:29] arup_r: has joined #RubyOnRails
[20:48:37] zacts: has joined #RubyOnRails
[20:49:00] blackmesa: has joined #RubyOnRails
[20:49:08] fermonkus: has joined #RubyOnRails
[20:54:07] Fernando-Basso: For some reason, db ids are very high, something like 590023556 in an app I just started developing. Is that something new with rails 5?
[20:54:31] ia9371: im following the easy tutorial online and rails rake db:migrate works but when I do rails generate controller Welcome index it generates a bunch of stuff but it doesnt actually make the controller or the view
[20:54:45] whathappens: has joined #RubyOnRails
[20:56:19] Oliphaunte: has joined #RubyOnRails
[20:56:57] JoshGlzBrk: has joined #RubyOnRails
[20:59:55] ia9371: oh you have to use script/generate
[21:00:30] creature: Why are you using such an old version?
[21:02:33] arup_r: ia9371: ^
[21:02:43] dcunit3d: has joined #RubyOnRails
[21:02:59] Guest18723: has joined #RubyOnRails
[21:03:47] art-solopov: Fernando-Basso: Is it developer DB or test DB?
[21:03:55] tweeeaks: ya, get on the rails5-super-amazing-action-cable-websocket-magic train
[21:04:41] art-solopov: tweeeaks: I've seen a job vacancy from a company stating they use Rails 5. I wonder if I should look into their eyes.
[21:05:45] tweeeaks: the answer is most certainly yes.
[21:09:06] lupine: rails5 seems to have been done right
[21:09:16] lupine: in that upgrades aren't spine-tinglingly unpleasant
[21:10:10] ia9371: im on a host that doesnt support newer versions I have to upgrade soon
[21:10:42] tweeeaks: rails5 is legit
[21:11:03] tweeeaks: 2legit2quit
[21:11:15] ia9371: whatever im just playing around right now
[21:11:30] ia9371: all the books i bought like 10 years ago work with version 2
[21:12:11] ia9371: all though it has been deprecated for several years now
[21:12:19] syahdeini: hi guys, is attr_accessible can save an hash object?
[21:17:00] fox_mulder_cp: ia9371: so u can learn rails again from scratch
[21:17:30] Z00t: has joined #RubyOnRails
[21:18:09] zacts: has joined #RubyOnRails
[21:18:54] alex88: has joined #RubyOnRails
[21:19:23] zacts: has joined #RubyOnRails
[21:19:44] alex88: hi there, if I have a DataChannel, to broadcast to every connected user, is ActionCable.server.broadcast('data', ....) enough? I doesn't seems to receive any message client side
[21:19:49] barajasfab: has joined #RubyOnRails
[21:20:00] alex88: do I need redis in development to being able to broadcasting?
[21:20:23] whathappens: has joined #RubyOnRails
[21:22:07] svdb64: has joined #RubyOnRails
[21:22:13] tweeeaks: you should get redis up and running
[21:22:54] alex88: even in development? I thought that with 1 server everything can be done within the app server
[21:25:34] ia9371: anyone have experience with cpanel settings making website show up as index of files
[21:25:54] Xentil: has joined #RubyOnRails
[21:25:56] ia9371: messing up the routes.rb settings
[21:26:05] shinnya: has joined #RubyOnRails
[21:26:22] mad_cow: has left #RubyOnRails: ("Leaving")
[21:26:56] mad_cow: has joined #RubyOnRails
[21:26:59] Fernando-Basso: art-solopov: development.
[21:27:12] mad_cow: hi guys, is it possible to save a hash object in attr_accessible
[21:28:12] art-solopov: Fernando-Basso: Hmm. Sorry, I can only say "weird" then. >_<
[21:28:51] Fernando-Basso: Although I think I ran tests on the devel db accidentaly.
[21:28:57] roshanavand: has joined #RubyOnRails
[21:29:22] Fernando-Basso: Perhaps I could empty every row in the db/tables and do something like alter sequence foo_id_seq restart with 1
[21:33:24] Fernando-Basso: art-solopov: Should tests use random ids?
[21:33:52] art-solopov: Fernando-Basso: Fixtures tend to use some sort of generated ids which can be gigantic.
[21:34:06] Fernando-Basso: Okay, that might be it then.
[21:36:42] svdb64: has joined #RubyOnRails
[21:40:48] crdpink: has joined #RubyOnRails
[21:41:31] Markhor1991: so how is rails5? worth learning for my site instead of rails 4?
[21:41:45] Markhor1991: i meant, is it worth learning 5's uniqueness and features instead of only 4's
[21:42:51] Haaibo: has joined #RubyOnRails
[21:46:17] oystersauce8: has joined #RubyOnRails
[21:46:41] oystersauce8: has joined #RubyOnRails
[21:50:07] roshanavand: has joined #RubyOnRails
[21:50:16] Ayey_: has joined #RubyOnRails
[21:54:19] Fernando-Basso: art-solopov: Yes, that was the problem. I had the test db accidentaly set to the devel db when ran some tests. I cleared all tables, restarted all id sequenses to 1, and now I get ids like 1, 2, etc.
[21:54:43] Fernando-Basso: Thanks for pointing me to the right diretion.
[21:56:53] art-solopov: Fernando-Basso: You're welcome. =)
[21:57:46] quazimodo: has joined #RubyOnRails
[21:58:17] roamingdog: has joined #RubyOnRails
[22:00:32] blackmesa: has joined #RubyOnRails
[22:04:28] naftilos76: has joined #RubyOnRails
[22:05:06] djbkd: has joined #RubyOnRails
[22:05:21] naftilos76: Is there a way to prevent a specific css file from loading by entering some kind of exception in application.css ?
[22:06:07] naftilos76: maybe by explicitly defining only those css files i wish to load?
[22:08:53] quazimodo: has joined #RubyOnRails
[22:09:10] ia9371: anyone know why when i go to my rails site it just takes me to the Index page
[22:09:23] hunq8: has joined #RubyOnRails
[22:09:25] ia9371: index of files and not what i configure in routes
[22:09:31] hunq8: how can you see the name of your deployment user and group
[22:09:38] ia9371: i go to mywebsite.com/public
[22:10:02] fryguy: ia9371: show your routes file
[22:10:06] ia9371: i can see the index file but I change that to indexOld.html and try to configure routes
[22:10:57] ia9371: http://pastebin.com/7UdP911i
[22:10:58] fox_mulder_cp: has joined #RubyOnRails
[22:11:13] fryguy: ia9371: you have no route for public there
[22:11:41] ia9371: i dont want o go to public i want to go to my controller/view
[22:11:50] ia9371: I think its something to do with my hosts cpanel \
[22:12:06] ia9371: im using really old versions of ruby and rails
[22:13:32] ElFerna: has joined #RubyOnRails
[22:13:48] pontiki: has joined #RubyOnRails
[22:14:01] roshanavand: has joined #RubyOnRails
[22:14:34] ia9371: looks like i may have to edit .htaccess file
[22:15:48] flashpoint9: has joined #RubyOnRails
[22:16:22] businessgeek: has joined #RubyOnRails
[22:18:35] businessgeek: hi all. I have a brief question regarding rails 4.2 to 5 upgrade. I am just working on the upgrade and i observed a different behaviour during navigating between different pages. sometimes elements which changed some clicks before are loaded again. the loading indicator seems also to be much more active then before. in addition, on my dashboard done with chart.js i can see that the charts are loaded 2 times sometimes. are this al
[22:18:36] businessgeek: side-effects by the new turbolinks 3 stuff? did you observe the same
[22:20:53] hunq8: can someone help me?
[22:21:39] fryguy: just ask what you want to ask
[22:24:30] enitiz: has joined #RubyOnRails
[22:27:31] kevr: has joined #RubyOnRails
[22:28:28] ecnalyr: has joined #RubyOnRails
[22:30:15] hahuang61: has joined #RubyOnRails
[22:34:46] JoshGlzBrk: has joined #RubyOnRails
[22:35:11] jheathco: has joined #RubyOnRails
[22:37:01] jheathco: has joined #RubyOnRails
[22:37:17] jahbrews1i: has joined #RubyOnRails
[22:41:20] Oliphaunte: has joined #RubyOnRails
[22:42:13] dcunit3d: has joined #RubyOnRails
[22:42:30] YeomansIII: has joined #RubyOnRails
[22:43:17] YeomansIII: Hello. I'm looking for help with a hopefully simple problem.
[22:44:04] YeomansIII: function link() { [native code] }
[22:44:40] ia9371: someone tell me how this is suppose to go http://pastie.org/10903004
[22:45:22] YeomansIII: http://pastie.org/10903006
[22:45:24] YeomansIII: There we are
[22:45:44] YeomansIII: Basically the ! not operator is not evaluating false to true...
[22:45:56] YeomansIII: I think I'm going mad
[22:46:32] rafaelfranca: has joined #RubyOnRails
[22:46:44] ia9371: YeomansIII that was not a response to my question was it?
[22:46:50] ia9371: Im talking abotu a routes.rb file
[22:47:06] rafaelfranca: has joined #RubyOnRails
[22:47:09] YeomansIII: That was my question :P
[22:47:35] diegoviola: has joined #RubyOnRails
[22:47:44] YeomansIII: What exactly is your issue ia9371 ?
[22:48:06] fryguy: YeomansIII: what is the data type of archived?
[22:48:19] fryguy: YeomansIII: it's not what you think it is, it's a string
[22:51:47] Ayey_: has joined #RubyOnRails
[22:52:19] Guest18723: has joined #RubyOnRails
[23:06:14] dalbusch1t: has joined #RubyOnRails
[23:08:08] ia9371: can someone tell me how your suppose to do this routes file http://pastie.org/10903016
[23:08:33] ia9371: i want it to route to welcome/index
[23:08:53] ia9371: Im having trouble with cpanel though as well
[23:09:17] apeiros: ?rails ia9371
[23:09:29] apeiros: my fault. I thought I was in #ruby :D
[23:10:13] ia9371: im using rails 2.3
[23:12:33] pontiki: ia9371: why?
[23:15:58] macsteps: has joined #RubyOnRails
[23:16:01] ia9371: im using an older host
[23:16:07] ia9371: i mean a host that only supports that
[23:16:14] ia9371: I just need to get the routes.rb to work
[23:16:37] ia9371: i think the host is apache is messed up too
[23:17:09] flashpoint9: has joined #RubyOnRails
[23:19:41] moep: has joined #RubyOnRails
[23:20:19] rubyonrails510: has joined #RubyOnRails
[23:21:35] hahuang61: has joined #RubyOnRails
[23:25:37] flashpoint9: has joined #RubyOnRails
[23:30:21] alex88: why does DateTime.now.change(usec: 0).usec doesn't return show 0?
[23:30:29] macsteps: has joined #RubyOnRails
[23:30:31] alex88: *doesn't return 0?
[23:30:36] hahuang61: has joined #RubyOnRails
[23:31:25] alex88: this one works fine instead 1.hour.ago.change(usec: 0).usec
[23:34:34] brianpWins: has joined #RubyOnRails
[23:37:27] roamingdog: has joined #RubyOnRails
[23:37:49] kevr: has joined #RubyOnRails
[23:38:38] fredolinhares: has joined #RubyOnRails
[23:39:42] fredolinhares: Why ActionController::Base have authenticate_with_http_basic and ActionController::API don't?
[23:47:59] asianMike: has joined #RubyOnRails
[23:48:37] zacts: has joined #RubyOnRails
[23:50:48] ia9371: http://pastie.org/10903048
[23:50:59] ia9371: can someone tell me what is ammatter with that .htaccess file
[23:51:15] M4dH4TT3r: has joined #RubyOnRails
[23:51:20] ia9371: IM pretty sure my host required that I edit the .htaccess file
[23:52:45] fryguy: ia9371: i doubt anybody here has any idea how to get rails to run in a FastCGI type environment
[23:53:03] Ayey_: has joined #RubyOnRails