« Back to channel list

#RubyOnRails - 30 May 2016

« Back 1 day Forward 1 day »
[00:03:49] Ropeney: has joined #RubyOnRails
[00:06:32] xhoy: has joined #RubyOnRails
[00:13:24] upsell5: has joined #RubyOnRails
[00:15:08] jeyraof: has joined #RubyOnRails
[00:18:06] maxz: has joined #RubyOnRails
[00:20:07] Oliphaunte: has joined #RubyOnRails
[00:21:24] diegoaguilar: has joined #RubyOnRails
[00:21:57] der-landgraf: has joined #RubyOnRails
[00:22:34] jancel: has joined #RubyOnRails
[00:29:06] triptec: has joined #RubyOnRails
[00:33:13] allcentury: has joined #RubyOnRails
[00:44:17] bob434: has joined #RubyOnRails
[00:44:38] Oliphaunte: has joined #RubyOnRails
[00:44:43] triptec: has joined #RubyOnRails
[00:45:20] nettoweb: has joined #RubyOnRails
[00:48:40] bob434: has joined #RubyOnRails
[00:49:10] datanoise: has joined #RubyOnRails
[00:49:15] Oliphaunte: has joined #RubyOnRails
[00:49:32] IFrank004: has joined #RubyOnRails
[00:49:33] IFrank00: has joined #RubyOnRails
[00:53:03] von-strauss: has joined #RubyOnRails
[00:55:56] DoctorMonocular: has joined #RubyOnRails
[00:59:56] owenjones: has joined #RubyOnRails
[01:01:24] macsteps: has joined #RubyOnRails
[01:04:40] Cache_Money: has joined #RubyOnRails
[01:09:13] Radar: von-strauss: So yeah, carrying on from #ruby, why are you using Rails 3.2.16?
[01:10:34] smathy: has joined #RubyOnRails
[01:11:54] AntiSpamMeta: has joined #RubyOnRails
[01:15:02] roamingdog: has joined #RubyOnRails
[01:15:41] tanuki: has joined #RubyOnRails
[01:15:41] Ebok: has joined #RubyOnRails
[01:15:44] Rodya_: has joined #RubyOnRails
[01:22:14] P4Titan: has joined #RubyOnRails
[01:22:52] P4Titan: Radar: Do you remember me about the button that opens a new tab and triggers a callback in rails?
[01:23:23] Radar: P4Titan: yes that was only like 2hrs ago
[01:23:48] P4Titan: I know I know
[01:24:07] P4Titan: anyway, it appears that I cannot open a newtab from a rails function
[01:24:10] sevenseacat: has joined #RubyOnRails
[01:24:13] AntiSpamMeta: has joined #RubyOnRails
[01:24:22] P4Titan: it can only be done through the button_to or link_to
[01:24:30] Radar: P4Titan: This is why I said to put it on the link_to initally.
[01:24:52] Radar: 1) User clicks link 2) it opens a new tab which goes to the action within your app 3) the action does whatever it needs to do 4) the action redirects the user to the external site
[01:25:02] Radar: Sorry I wasn't that clear this AM
[01:26:08] P4Titan: oh, so the newly opened tab is first part of my site
[01:26:13] P4Titan: but then redirects
[01:28:25] RegulationD: has joined #RubyOnRails
[01:30:15] von-strauss: Radar, gem install rails
[01:30:19] von-strauss: sudo apt-get install rails
[01:30:23] von-strauss: yielded Rails 3.2.16
[01:32:37] Ropeney: von-strauss, what os & version?
[01:33:01] von-strauss: linux mint giulia
[01:33:46] Ropeney: its a tad old
[01:34:15] Ropeney: von-strauss, I suggest https://github.com/rbenv/rbenv and get a later ruby version and then do gem install rails :)
[01:34:39] sevenseacat: Ropeney: how will that make a difference...?
[01:34:48] Ropeney: sevenseacat, how will what?
[01:35:00] sevenseacat: installing rbenv?
[01:35:19] Ropeney: well I believe the package he installed through mint is 3.2.16
[01:35:28] sevenseacat: with `gem install rails` ?
[01:35:30] Ropeney: since its such an old version of mint
[01:35:37] Ropeney: [11:00:19] von-strauss: sudo apt-get install rails
[01:35:52] sevenseacat: and before that?
[01:36:15] Ropeney: I believe this overrides that
[01:36:27] Ropeney: so i suggest using a ruby environment manager, and not using that :)
[01:38:12] DanByc: has joined #RubyOnRails
[01:38:22] DanByc: hello all
[01:38:37] Ropeney: hello DanByc
[01:38:45] Radar: von-strauss: !ubuntu
[01:38:45] helpa: von-strauss: Ubuntu, Ruby, ruby-install, chruby, Rails setup guide: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/ - Gauranteed to work 100% of the time or your money back!
[01:39:06] DanByc: I am a Rails beginner, I was wondering if anyone could help me out with a simple bug I am having
[01:39:12] Radar: DanByc: Sure thing
[01:39:48] von-strauss: Should I use Rails 4 or 5?
[01:40:29] DanByc: I just installed the latest version of everything, and after tried downloading an example project off of Github. It's not allowing me to 'bundle install' because my version of Ruby is 2.3.1. It needs 2.3.0
[01:40:58] DanByc: Shouldn't this be backwards compatible?
[01:41:30] Ropeney: whats the example project link?
[01:41:55] Radar: von-strauss: Rails 4.2.6.
[01:41:56] DanByc: its a git clone: https://github.com/RailsApps/learn-rails.git
[01:42:24] Radar: DanByc: You can change the version at the top of the Gemfile. It should still work with 2.3.1.
[01:42:52] DanByc: Awesome, let me try that real quick
[01:44:04] DanByc: That was so simple. Thanks for your help!
[01:46:21] DanByc: Do you have any other recommendations for learning resources for a complete beginner, who is already proficient in HTML, CSS, and Javascript?
[01:46:45] von-strauss: keep on keeping on
[01:46:57] sevenseacat: if you've got that, you're not a complete beginner, you're doing well :)
[01:46:59] Ropeney: von-strauss, solved?
[01:47:04] von-strauss: unfortunately no
[01:47:13] sevenseacat: Ruby would probably be next, then Rails
[01:47:20] von-strauss: i have little experience compiling from source
[01:47:44] von-strauss: why cant i sudo purge ruby sudo purge rails and compile ruby and rails from source
[01:47:49] von-strauss: i dont want two versions at once
[01:47:55] von-strauss: why do i need that ruby version switchal management thing
[01:48:07] DanByc: I finished the Ruby and the RoR Codecademy courses already. I want to start building already! lol
[01:48:18] sevenseacat: DanByc: then jump right in with a Rails tutorial!
[01:48:49] sevenseacat: or I'm not sure how much those courses cover - maybe you have enough to start building your own app?
[01:49:39] DanByc: I dabbled in .NET for an internship a few years ago, but never really understood anything I was doing
[01:50:08] DanByc: I want to actually know why I'm doing things instead of just winging it and writing other people's code for a change
[01:50:18] sevenseacat: in my experience .NET encourages point and click programming and so you dont understand what its doing under the hood
[01:50:34] von-strauss: sevenseacat, ignorance is bliss
[01:50:36] DanByc: That's exactly how it felt
[01:50:48] sevenseacat: von-strauss: not when you're trying to figure out why something doesnt work
[01:50:55] sypheren: has joined #RubyOnRails
[01:51:35] DanByc: ^ agreed. Major headaches and too much "starting over from scratch"
[01:51:40] sevenseacat: DanByc: do you feel like you need a tutorial on building a Rails app from scratch, or you can jump right in and start building your own?
[01:51:40] nettoweb: has joined #RubyOnRails
[01:51:48] Devalo: has joined #RubyOnRails
[01:52:02] sevenseacat: either way, we can help :)
[01:52:10] DanByc: I really think tutorials would suit me well for a few simple projects
[01:52:26] m_antis: has joined #RubyOnRails
[01:52:28] DanByc: Want to get a portfolio started up for my photography
[01:52:35] Ropeney: von-strauss, you can do exactly what you said. But your just going down a difficult path :)
[01:52:43] DanByc: and I'm glad, I heard about this chatroom from a podcast about rails
[01:53:10] sevenseacat: in that case I humbly recommend Rails 4 in Action, a book that teaches Rails along side testing and other common practices - disclaimer - I am one of the authors of the book
[01:53:25] von-strauss: how much do you get paid per purchase
[01:53:31] sevenseacat: sweet bugger all
[01:53:46] von-strauss: you need a better agent
[01:54:23] sevenseacat: which is why we share a lot of access to the online version of the book :P
[01:56:28] konsolebox: has joined #RubyOnRails
[01:57:06] von-strauss: a lot, but just enough to make you buy the damn thing
[01:57:26] sevenseacat: you make a lot of presumptions
[01:57:39] von-strauss: i'm kidding, and i apologise to be so presumptuous
[01:58:23] allcentury: has joined #RubyOnRails
[01:58:27] konsolebox: has joined #RubyOnRails
[01:58:39] sevenseacat: DanByc: if R4IA (https://www.manning.com/books/rails-4-in-action) sounds like something you'd be interested, let me know and I'll give you access to the book on Github
[02:00:41] DanByc: That would be awesome and greatly appreciated!
[02:00:52] sevenseacat: just let me know your github username
[02:01:55] DanByc: DanByczynski18
[02:03:34] paradisaeidae_: has joined #RubyOnRails
[02:05:17] Radar: sevenseacat: You didn't have admin permissions to do that. I've fixed that. While I was there, I also invited DanByc.
[02:06:00] von-strauss: love this tightknit ruby community
[02:06:04] von-strauss: you guys are so nice helping each other out
[02:06:54] macsteps: has joined #RubyOnRails
[02:07:13] DanByc: I wish I knew enough to help out LOL
[02:07:29] sevenseacat: all good, in time
[02:08:52] von-strauss: once you do pay it forward
[02:10:42] upsell5: testing saves our bacon? lol nice chapter title
[02:11:57] upsell5: ah, I have rails 3 in action…oldie
[02:12:26] DanByc: This e-book is exactly what I was looking for, thanks again guys
[02:14:38] Cache_Money: I want to allow my users (auth w/ Devise) to update their profile w/out having to input their password each time. In this example (https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password) do I need to generate the devise controller? Or can I just create /app/controllers/registrations_controller.rb to overide the update action?
[02:19:54] SteenJobs: has joined #RubyOnRails
[02:22:50] phredus__: has joined #RubyOnRails
[02:25:12] one_zero: has joined #RubyOnRails
[02:25:58] quazimodo: has joined #RubyOnRails
[02:26:16] upsell5: sevenseacat: are you an author?
[02:26:20] sevenseacat: upsell5: I am.
[02:26:32] quazimodo: how on earth do i set 1 controller action to NOT force ssl when I've set production.rb to force_ssl ?
[02:26:38] quazimodo: i need to do a health check via http only
[02:26:41] upsell5: You are Yehuda?
[02:26:48] sevenseacat: no, I am Rebecca.
[02:27:14] tvon: has joined #RubyOnRails
[02:27:36] upsell5: sevenseacat: oh ok hi! you are also a tenpin bowler…wow all rounder :)
[02:28:02] quazimodo: weird life investigation going on here
[02:28:30] quazimodo: sevenseacat: know how to turn off ssl on something?
[02:29:01] upsell5: quazimodo: what is that something?
[02:29:22] quazimodo: upsell5: a controller action
[02:30:07] davidheward: has joined #RubyOnRails
[02:30:59] upsell5: quazimodo: how did you turn in on?
[02:31:18] upsell5: forse_ssl?
[02:33:11] quazimodo: config.force_ssl = true in production.rb
[02:33:17] quazimodo: but I don't think it's possible now
[02:33:22] quazimodo: it seems to be a blanket statemnt
[02:33:23] upsell5: looks like you can possible do: force_ssl :only => :cheeseburger
[02:33:32] quazimodo: that's in the controller
[02:33:38] upsell5: not sure if that will override what you have in your config.
[02:33:45] quazimodo: no, i don't think it will
[02:35:40] upsell5: then you can’t turn it off….
[02:35:54] upsell5: maybe you should add it to your controllers then
[02:35:59] upsell5: so you can pick and choose
[02:38:40] macsteps: has joined #RubyOnRails
[02:44:46] paradisaeidae: has joined #RubyOnRails
[02:44:46] datanoise: has joined #RubyOnRails
[02:54:50] Ropeney: quazimodo, did you see http://www.eq8.eu/blogs/14-config-force_ssl-is-different-than-controller-force_ssl
[03:00:06] allcentury: has joined #RubyOnRails
[03:02:02] quazimodo: Ropeney: yeah i did
[03:02:18] roamingdog: has joined #RubyOnRails
[03:03:12] Alazoral: has joined #RubyOnRails
[03:05:19] roamingdog: has joined #RubyOnRails
[03:06:31] quazimodo: Ropeney: looked at the source
[03:06:36] quazimodo: i have to write a custom bit of kit it seems
[03:13:27] braincras: has joined #RubyOnRails
[03:14:37] robbyoconnor: has joined #RubyOnRails
[03:17:46] sypheren: has joined #RubyOnRails
[03:19:09] Radar: GOOD AFTERNOON
[03:20:56] k3rn31: has joined #RubyOnRails
[03:27:11] nettoweb: has joined #RubyOnRails
[03:32:12] lxsameer: has joined #RubyOnRails
[03:34:08] jenrzzz: has joined #RubyOnRails
[03:35:22] barhum2013: has joined #RubyOnRails
[03:35:56] bob434: has joined #RubyOnRails
[03:36:57] mloy: has joined #RubyOnRails
[03:38:03] ksoze: has joined #RubyOnRails
[03:38:41] allcentury: has joined #RubyOnRails
[03:39:09] northfurr: has joined #RubyOnRails
[03:39:53] roamingdog: has joined #RubyOnRails
[03:41:46] paradisaeidae: has joined #RubyOnRails
[03:42:22] jancel: has joined #RubyOnRails
[03:43:31] dkam: has joined #RubyOnRails
[03:45:59] lictor36: has joined #RubyOnRails
[03:46:46] njero: has joined #RubyOnRails
[03:49:48] Inside: has joined #RubyOnRails
[03:53:01] Devalo: has joined #RubyOnRails
[03:56:03] AntiSpamMeta: has joined #RubyOnRails
[03:59:26] King_Rex: has joined #RubyOnRails
[04:00:47] Oliphaunte: has joined #RubyOnRails
[04:02:20] quazimodo: has joined #RubyOnRails
[04:03:25] ksoze: has joined #RubyOnRails
[04:03:27] pawnbox: has joined #RubyOnRails
[04:04:47] xlegoman: has joined #RubyOnRails
[04:08:26] rafaelfranca: has joined #RubyOnRails
[04:10:54] pawnbox: has joined #RubyOnRails
[04:25:28] roamingdog: has joined #RubyOnRails
[04:27:13] northfurr: has joined #RubyOnRails
[04:31:02] k3rn31: has joined #RubyOnRails
[04:32:00] JoshGlzBrk: has joined #RubyOnRails
[04:35:06] pawnbox: has joined #RubyOnRails
[04:39:34] njero: has joined #RubyOnRails
[04:39:35] mikecmpbll: has joined #RubyOnRails
[04:42:07] Devalo: has joined #RubyOnRails
[04:44:42] bob434: has joined #RubyOnRails
[04:47:24] SteenJobs: has joined #RubyOnRails
[04:48:19] roamingdog: has joined #RubyOnRails
[04:54:07] armyriad: has joined #RubyOnRails
[05:03:27] tildes: has joined #RubyOnRails
[05:06:50] roamingdog: has joined #RubyOnRails
[05:11:27] thejamespinto_: has joined #RubyOnRails
[05:11:33] Cohedrin: has joined #RubyOnRails
[05:17:35] indianowl: has joined #RubyOnRails
[05:18:27] alfiemax: this is not directly related to rails, but was hoping if someone here might be of some help
[05:20:52] davidheward: has joined #RubyOnRails
[05:21:23] Devalo: has joined #RubyOnRails
[05:21:46] alfiemax: what are focus keywords? i realized that they are different from meta keywords. But how do is specify those for my pages in rails ?
[05:22:03] alfiemax: i'm using this gem : https://github.com/kpumuk/meta-tags
[05:22:08] sevenseacat: never heard of them.
[05:22:39] alfiemax: sevenseacat, here's the link where i got to know about it : http://kb.yoast.com/article/137-the-difference-between-focus-keywords-and-meta-keywords
[05:22:52] alfiemax: it's a feature of wordspress's yoast plugin
[05:24:11] bob434: has joined #RubyOnRails
[05:24:18] sevenseacat: after reading all those pages, I still have no idea
[05:24:49] sevenseacat: checking out the HTML generated by yoast might tell you how they are used
[05:24:55] roamingdog: has joined #RubyOnRails
[05:25:49] indianowl: facing this error
[05:25:51] indianowl: https://gist.github.com/abuzarhamza/f561d114f7c64d55b08067cb3d5c7dd7
[05:26:05] indianowl: when I am trying to access the
[05:26:20] sevenseacat: indianowl: you cant have a model with the same name as your app.
[05:26:23] alfiemax: sevenseacat, i'll check that
[05:26:44] alfiemax: sevenseacat, ah.. i can't :(
[05:26:56] alfiemax: it's only available in the premium version of the plugin
[05:27:01] indianowl: ooh Thanks sevenseacat
[05:27:19] ur5us: has joined #RubyOnRails
[05:29:54] RegulationD: has joined #RubyOnRails
[05:31:09] jancel: has joined #RubyOnRails
[05:35:15] Radar: alfiemax: Brew a pot of peppermint tea using proper leaves. Let the tea dry over the next few days. Observe the bottom of the cup and interpret the leaves arrangement to learn how to SEO properly.
[05:35:25] pawnbox_: has joined #RubyOnRails
[05:35:52] Radar: alfiemax: I'm assuming you've read http://static.googleusercontent.com/media/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf already
[05:36:11] Radar: You know, the guide written by the only search engine which matters.
[05:37:44] _Sypheren: has joined #RubyOnRails
[05:42:55] norc: has joined #RubyOnRails
[05:43:40] dawidof: has joined #RubyOnRails
[05:43:41] Radar: alfiemax: Going to assume your silence means that you're reading the guide and applying the lessons within?
[05:43:45] norc: Using omniauth with OAuth2, what is an adequate place to store a refresh token for a given user?
[05:44:33] northfurr: has joined #RubyOnRails
[05:45:27] norc: Is the "credentials" hash in my auth hash schema a good place?
[05:46:55] sypheren: has joined #RubyOnRails
[05:47:56] duncannz: has joined #RubyOnRails
[05:48:48] moeabdol: has joined #RubyOnRails
[05:49:18] rvanlieshout: has joined #RubyOnRails
[05:52:23] ur5us: has joined #RubyOnRails
[05:57:28] barhum2013: has joined #RubyOnRails
[06:00:22] dionysus69: has joined #RubyOnRails
[06:00:38] mikecmpbll: i tried to understand oauth2 once.
[06:02:28] ur5us: has joined #RubyOnRails
[06:04:33] AzaToth: has joined #RubyOnRails
[06:05:23] aganov: has joined #RubyOnRails
[06:09:07] Macaveli: has joined #RubyOnRails
[06:12:00] allcentury: has joined #RubyOnRails
[06:12:18] norc: mikecmpbll: oauth2 is not hard to grasp
[06:12:34] mikecmpbll: norc : speak for yourself :)
[06:13:36] norc: mikecmpbll: Im just trying to figure out how to use this particular implementation with my APIs. But the OAuth2 flows are easy to understand. :-)
[06:13:54] mikecmpbll: again, speak for yourself.
[06:14:02] norc: Elaborate
[06:14:42] norc: mikecmpbll: I think there was a misunderstanding.
[06:14:44] mikecmpbll: they are not easy to understand for me, or a great many who post questions about oauth 2.0 on stack overflow.
[06:15:37] norc: mikecmpbll: Google has a decent description on the flows: https://developers.google.com/identity/protocols/OAuth2
[06:16:53] norc: mikecmpbll: Also the difference between authorization and authentication was key to getting a grasp on the whole topic.
[06:19:31] datanoise: has joined #RubyOnRails
[06:19:44] agit0: has joined #RubyOnRails
[06:21:08] sypheren: has joined #RubyOnRails
[06:21:17] _Sypheren: has joined #RubyOnRails
[06:22:19] solars: has joined #RubyOnRails
[06:23:15] roshanavand: has joined #RubyOnRails
[06:24:38] Contigi: has joined #RubyOnRails
[06:26:18] comrad: has joined #RubyOnRails
[06:28:33] rogue_koder: has joined #RubyOnRails
[06:32:04] dkam: has joined #RubyOnRails
[06:33:25] grassass: has joined #RubyOnRails
[06:37:15] tildes: has joined #RubyOnRails
[06:37:45] Oliphaunte: has joined #RubyOnRails
[06:40:02] dionysus69: has joined #RubyOnRails
[06:41:12] Palsson: has joined #RubyOnRails
[06:41:19] User458764: has joined #RubyOnRails
[06:46:58] ksoze: has joined #RubyOnRails
[06:51:05] barhum2013: has joined #RubyOnRails
[06:52:58] Pazician: has joined #RubyOnRails
[06:53:22] GABBA: has joined #RubyOnRails
[07:00:07] ksoze: has joined #RubyOnRails
[07:02:55] mikecmpbll: has joined #RubyOnRails
[07:07:56] dkam: has joined #RubyOnRails
[07:10:07] avelldiroll: has joined #RubyOnRails
[07:12:04] roamingdog: has joined #RubyOnRails
[07:12:54] rogue_koder: has joined #RubyOnRails
[07:14:02] okdas: has joined #RubyOnRails
[07:14:03] okdas: has joined #RubyOnRails
[07:15:42] chridal: has joined #RubyOnRails
[07:15:49] veloutin: has joined #RubyOnRails
[07:16:42] darutoko: has joined #RubyOnRails
[07:17:12] solars: has joined #RubyOnRails
[07:18:52] lxsameer: has joined #RubyOnRails
[07:19:24] ur5us: has joined #RubyOnRails
[07:21:06] mikecmpbll: has joined #RubyOnRails
[07:23:53] edwinvdgraaf: has joined #RubyOnRails
[07:25:04] User458764: has joined #RubyOnRails
[07:26:03] okdas: has joined #RubyOnRails
[07:26:03] okdas: has joined #RubyOnRails
[07:27:15] eGGshke: has joined #RubyOnRails
[07:29:35] one_zero: has joined #RubyOnRails
[07:32:26] Oliphaunte: has joined #RubyOnRails
[07:38:52] TvL2386: has joined #RubyOnRails
[07:39:40] DoctorMonocular: has joined #RubyOnRails
[07:43:44] dkam: has joined #RubyOnRails
[07:44:33] r0bby_: has joined #RubyOnRails
[07:45:18] r0bby_: has joined #RubyOnRails
[07:46:16] rafaelfr_: has joined #RubyOnRails
[07:47:19] antgel: has joined #RubyOnRails
[07:49:18] crdpink2: has joined #RubyOnRails
[07:49:27] arBmind: has joined #RubyOnRails
[07:50:43] hfp: has joined #RubyOnRails
[07:50:53] Pazician_: has joined #RubyOnRails
[07:50:59] lord4163: has joined #RubyOnRails
[07:53:01] watersoul: has joined #RubyOnRails
[07:55:44] neanderslob: has joined #RubyOnRails
[07:59:13] jiblet__: has joined #RubyOnRails
[08:00:16] thejamespinto: has joined #RubyOnRails
[08:01:57] user: has joined #RubyOnRails
[08:03:10] webdestroya: has joined #RubyOnRails
[08:03:23] Haydos: has joined #RubyOnRails
[08:06:48] Pazician_: has joined #RubyOnRails
[08:08:17] artto: has joined #RubyOnRails
[08:09:59] Ergo: has joined #RubyOnRails
[08:11:15] FreddieFresh: has joined #RubyOnRails
[08:11:45] mark_66: has joined #RubyOnRails
[08:12:48] roamingdog: has joined #RubyOnRails
[08:13:54] allcentury: has joined #RubyOnRails
[08:16:15] dkam: has joined #RubyOnRails
[08:20:10] artto: has joined #RubyOnRails
[08:25:13] eGGshke: has joined #RubyOnRails
[08:26:58] Oliphaunte: has joined #RubyOnRails
[08:28:26] marr: has joined #RubyOnRails
[08:29:22] Tempesta: has joined #RubyOnRails
[08:30:39] Ropeney: has joined #RubyOnRails
[08:30:42] syndikate: has joined #RubyOnRails
[08:32:17] pawnbox: has joined #RubyOnRails
[08:40:36] antgel: has joined #RubyOnRails
[08:40:41] viewty: has joined #RubyOnRails
[08:41:08] viewty: Hi all. This might be a very stupid question - how do I see if an application I've downloaded is running / runs on rails?
[08:41:42] universa1: viewty: it has a Gemfile and it lists gem "rails" in it
[08:41:58] snowy: has joined #RubyOnRails
[08:42:00] Mia: has joined #RubyOnRails
[08:42:00] Mia: has joined #RubyOnRails
[08:42:14] viewty: Ah ok, thanks
[08:49:28] mohsenjalalian: has joined #RubyOnRails
[08:50:00] Circuit8: has joined #RubyOnRails
[08:50:54] norc: Im trying to get omniauth-oauth2 working with another doorkeeper server. Everything works until the authorization code is exchanged for an access token (the doorkeeper server just responds with a 401 Unauthorized).
[08:51:01] mohsenjalalian: hi I have this error how can i solve it AbstractController::DoubleRenderError
[08:51:02] arup_r: has joined #RubyOnRails
[08:51:08] viewty: Thanks universa1
[08:51:12] viewty: has left #RubyOnRails: ("Leaving...")
[08:51:13] norc: What options do I have to figure out why doorkeeper is refusing to exchange that code?
[08:51:47] universa1: mohsenjalalian: do not render twice.
[08:53:51] mohsenjalalian: universa1 : thanks a lot
[08:54:35] jhass: no idea about doorkeeper specifically, but usually that's wrong redirect_uri or similar
[08:55:02] jhass: worst comes to worst put a mitmproxy inbetween and check the requests are what you expect
[08:55:02] universa1: mohsenjalalian: yw
[08:58:23] honzahovorka: has joined #RubyOnRails
[08:59:15] Talltree: sevenseacat: you where very helpfull the last time i had a question so i'm going to ask directly, what do you think is the correct way to make rails accept an array of json as post/put aka create?
[08:59:32] universa1: Talltree: it already does that.
[08:59:49] sevenseacat: yeah it shouldn't cause a problem.
[09:00:07] Talltree: thats weird... how's the format then? Oo
[09:00:24] universa1: Talltree: show your code, state your problem with yoru code, what is not working, where are you stuck....
[09:00:29] barhum2013: has joined #RubyOnRails
[09:00:31] sevenseacat: Talltree: so what problem are you having?
[09:00:36] sevenseacat: we don't help people by guessing at things
[09:00:50] thejamespinto: has joined #RubyOnRails
[09:01:22] norc: jhass: Not a bad idea (I used wireshark instead). Ended up noticing that everything was up to specs, just to notice that the access grant had expired... :)
[09:01:48] jhass: norc: ah, doesn't oAuth mandate TLS?
[09:02:03] jhass: hence I said mitmproxy instead of wireshark
[09:03:16] Talltree: i used a scaffold and it created this: http://pastie.org/10857801 ofc
[09:03:29] norc: jhass: Im assuming that it was left out of the implementation because with rails you usually rely on a separate TLS termination (perhaps a local nginx reverse proxy)
[09:03:39] norc: jhass: but yes, the oauth 2.0 require TLS.
[09:04:38] honzahov1: has joined #RubyOnRails
[09:05:05] Talltree: okay, shouldnt have asked this while at work for something else :D i dont have access to everything here...
[09:05:12] universa1: Talltree: problem? ... full code...
[09:05:41] honzahovorka: has left #RubyOnRails: ("WeeChat 1.5")
[09:07:05] Macaveli: has joined #RubyOnRails
[09:07:24] mohsenjalalian: has left #RubyOnRails: ()
[09:07:35] ur5us: has joined #RubyOnRails
[09:07:55] mohsenjalalian: has joined #RubyOnRails
[09:08:15] mohsenjalalian: has left #RubyOnRails: ()
[09:08:37] Talltree: universa1: http://pastie.org/10857804
[09:08:47] Talltree: posting this like this works
[09:08:47] mohsenjalalian: has joined #RubyOnRails
[09:08:53] mohsenjalalian: has left #RubyOnRails: ()
[09:09:01] Talltree: how do i format it to multible character entries?
[09:09:51] Talltree: all the ways i tried i had multible errors, i can't name the "character" different because the params code requires it, i admit that i dont understand that fully yet..
[09:11:00] lalalaaa: has joined #RubyOnRails
[09:12:21] Talltree: google isnt very helpfull with this either... multible suggestions that all seem to be hacky with code
[09:12:36] Talltree: if it allready does accept arrays i got no idea how...
[09:12:42] yfeldblum: has joined #RubyOnRails
[09:12:43] pawnbox: has joined #RubyOnRails
[09:13:35] roamingdog: has joined #RubyOnRails
[09:15:42] yfeldblum: has joined #RubyOnRails
[09:16:48] User458764: has joined #RubyOnRails
[09:19:59] artto_: has joined #RubyOnRails
[09:21:10] Oliphaunte: has joined #RubyOnRails
[09:21:36] maximilian: has joined #RubyOnRails
[09:22:38] weckl: has joined #RubyOnRails
[09:24:10] weckl: has joined #RubyOnRails
[09:25:08] weckl: has joined #RubyOnRails
[09:28:31] rogue_koder: has joined #RubyOnRails
[09:28:54] lxsameer: how can i prevent ActionController::RoutingError from printing out traceback in rails console ?
[09:29:34] norc: lxsameer: I do not think you are telling us your exact problem.
[09:30:23] norc: lxsameer: The rails console (which is usually irb or pry) always prints out a stack trace when an uncaugh exception is encountered. This is a good thing.
[09:30:53] lxsameer: norc: no it's the exact problem, I'm using rails 5 and each 404 ( mostly because of images and stylesheets ) produce tons of traceback messages and rails server output is usless
[09:31:23] norc: lxsameer: The solution is not to silence the error messages but to fix your assets.
[09:31:24] RegulationD: has joined #RubyOnRails
[09:32:21] lxsameer: norc: hmm no this is some how abnormal, because my terminal buffer is about 5000 lines and it ran out of buffer for a simple request logs
[09:32:28] lxsameer: which is pretty huge
[09:33:23] Talltree: universa1, sevenseacat: http://pastie.org/10857826 i hope that is more info...
[09:33:34] norc: lxsameer: In that case do not echo your logs to STDOUT.
[09:34:02] lxsameer: norc: it's like a shortcute to suicide
[09:34:12] norc: lxsameer: How is that?
[09:34:12] eGGshke: has joined #RubyOnRails
[09:34:27] lalalaaa: has joined #RubyOnRails
[09:34:59] Talltree: forgot to add this to the paste :X undefined method `permit' for #<Array:0x007f8d7871e9b0>
[09:35:03] norc: lxsameer: You seem to have 2 separate issues. One is related to your assets pipeline (causing 404s), the other one to your terminal buffer.
[09:35:05] lxsameer: norc: because rails server output is useful and i want them and redirecting this log to a file can cuase huge number of log rotation
[09:35:34] norc: lxsameer: You said yourself that output in those numbers is not useful anymore on pure display.
[09:35:49] lxsameer: norc: the assets pipleline problem is ok because the assets are not there ( I'm developing )
[09:35:53] norc: lxsameer: And I also told you that you need to fix your assets, which by itself will greatly reduce the error messages.
[09:36:10] lxsameer: norc: ok forget about it
[09:36:37] norc: lxsameer: But if you want a solution for this quickly, make a default route.
[09:36:57] norc: lxsameer: That will prevent the RoutingErrors from being emitted, thus reducing the burden of your logs.
[09:41:05] arBmind: has joined #RubyOnRails
[09:41:10] Talltree: is my error really that dumb? :D
[09:42:17] universa1: Talltree: http://guides.rubyonrails.org/action_controller_overview.html#strong-parameters
[09:42:37] artto: has joined #RubyOnRails
[09:44:01] braincrash: has joined #RubyOnRails
[09:44:38] sevenseacat: has joined #RubyOnRails
[09:46:01] braincra-: has joined #RubyOnRails
[09:46:23] czerasz: has joined #RubyOnRails
[09:47:09] arBmind: has joined #RubyOnRails
[09:48:24] tvw: has joined #RubyOnRails
[09:49:31] beilabs: has joined #RubyOnRails
[09:51:05] emilkarl: has joined #RubyOnRails
[09:55:38] datanoise: has joined #RubyOnRails
[09:56:53] Ergo^: has joined #RubyOnRails
[09:57:40] beilabs_: has joined #RubyOnRails
[10:00:34] beilabs: has joined #RubyOnRails
[10:00:41] bmorrison: has joined #RubyOnRails
[10:01:15] dkam_: has joined #RubyOnRails
[10:01:16] braincrash: has joined #RubyOnRails
[10:01:41] mikecmpbll: has joined #RubyOnRails
[10:03:21] artto: has joined #RubyOnRails
[10:03:28] pawnbox: has joined #RubyOnRails
[10:07:09] c355E3B: has joined #RubyOnRails
[10:08:07] allcentury: has joined #RubyOnRails
[10:10:10] mdw: has joined #RubyOnRails
[10:11:19] emilkarl: Anyone know how I can get the regex in Nginx config on line 3 to work. I would like it not to redirect for /langing and /api/* https://p.ngx.cc/cc
[10:13:02] bmorrison: has joined #RubyOnRails
[10:13:51] Talltree: universal: but we are actually talking about the same are we, i dont want to accept an array for 1 record, i want to post multible records at once...
[10:13:56] emilkarl: has joined #RubyOnRails
[10:14:16] Talltree: i understand how to accept an array for 1 record, but not the other...
[10:14:58] quazimodo: has joined #RubyOnRails
[10:14:59] quazimod1: has joined #RubyOnRails
[10:15:55] Oliphaunte: has joined #RubyOnRails
[10:16:19] Guest683: has joined #RubyOnRails
[10:19:04] beilabs: has joined #RubyOnRails
[10:19:30] srinidhi: has joined #RubyOnRails
[10:21:18] roamingdog: has joined #RubyOnRails
[10:22:30] Palsson: has joined #RubyOnRails
[10:23:53] artto: has joined #RubyOnRails
[10:23:57] Sylario: has joined #RubyOnRails
[10:24:09] gingray: has joined #RubyOnRails
[10:24:50] lxsameer: how can i rescue_from action_dispatch exceptions
[10:25:15] norc: lxsameer: Sounds like an XY problem. What are you trying to do, and what do you get instead?
[10:25:50] braincra-: has joined #RubyOnRails
[10:26:01] lxsameer: norc: appreantly we can not rescue_from certain exceptions in application controller, including action_dispatch exceptions
[10:26:25] lxsameer: norc: now i need to catch an active dispatch exception
[10:26:32] lxsameer: what's the solution ?
[10:27:15] norc: lxsameer: ActionDispatch is the middleware that is used to dispatch requests to controllers. You are not inside your controller yet, so you cannot handle such cases.
[10:27:20] jhass: the question is why and what can you do to prevent it in the first place
[10:27:53] lxsameer: norc: i see, but as far as i know, there is a solution for that
[10:28:11] norc: lxsameer: Yes. It is to not write buggy code that throws exceptions in the middle of rack.
[10:28:31] lxsameer: norc: no that's not it
[10:28:44] norc: You seem to be quite an expert.
[10:28:52] norc: Surely you do not need my help then.
[10:33:09] flopsec: has joined #RubyOnRails
[10:34:18] lxsameer: norc: I'm not that expert but I read the code and obviously in process of development there would be lots of cases dealing with
[10:34:41] pajton: has joined #RubyOnRails
[10:34:54] lxsameer: norc: assets problems ( for example porting an html template to rails )
[10:35:37] lxsameer: norc: so a traceback for each route error is not useful and there should be a solution to disable that
[10:35:52] emilkarl: Anyone know how I can get the regex in Nginx config on line 3 to work. I would like it not to redirect for /langing and /api/* https://p.ngx.cc/cc
[10:35:53] norc: lxsameer: I gave you a solution to handle these cases. Evidently you have completely ignored it.
[10:36:24] ur5us: has joined #RubyOnRails
[10:36:43] lxsameer: norc: while you're solution was alright but I'm looking for a permanent solution :)
[10:36:49] nettoweb: has joined #RubyOnRails
[10:37:00] bob434: has joined #RubyOnRails
[10:37:38] norc: lxsameer: So you want a permanent solution to silence backtraces on exceptions that are emitted because you have missing assets. I cannot and will not entertain that line of thought.
[10:38:05] lxsameer: norc: yupe, a simple 404 log message is sufficient,
[10:38:15] norc: lxsameer: And I gave you a solution that would allow for that exactly.
[10:39:07] norc: lxsameer: Feel free to write your own Rack middleware if you feel Rails is not advanced enough for your own needs.
[10:39:16] norc: Im done.
[10:41:02] pwnd_nsfw`: A more permanent solution would be to git gud
[10:42:00] pajton: has joined #RubyOnRails
[10:43:38] norc: I have a doorkeeper server and a server with omniauth-oauth2. In the oauth flow the omniauth server hands in the authorization token, but passing a redirect_uri with URL params (state, code) - doorkeeper rejects that request because of the added URL params.
[10:44:02] bob434: has joined #RubyOnRails
[10:44:34] norc: If I use curl to send custom http requests without the url params in the redirect uri when POSTing /oauth/token I get my access token.
[10:45:13] zel: has joined #RubyOnRails
[10:46:06] pajton_: has joined #RubyOnRails
[10:47:36] pajton: has joined #RubyOnRails
[10:48:33] pajton: has joined #RubyOnRails
[10:49:37] norc: https://gist.github.com/anonymous/f7fcd2b409f71701809745c4bc78db77 This is from my doorkeeper servers log. Why is omniauth adding these URL params to the callback?
[10:51:00] artto: has joined #RubyOnRails
[10:58:16] allcentury: has joined #RubyOnRails
[11:00:13] norc: emilkarl[away]: Don't you have to start regular expressions in maps with ~ ?
[11:02:13] phredus: has joined #RubyOnRails
[11:03:20] thejamespinto: has joined #RubyOnRails
[11:03:55] universa1: lxsameer: quiet assets gem?!
[11:04:31] lxsameer: universa1: unfortunately not useful in this case
[11:05:13] artto: has joined #RubyOnRails
[11:05:58] King_Rex: has joined #RubyOnRails
[11:06:36] rodfersou: has joined #RubyOnRails
[11:09:48] diegoaguilar: has joined #RubyOnRails
[11:17:12] quazimodo: has joined #RubyOnRails
[11:18:12] User458764: has joined #RubyOnRails
[11:22:03] quazimod1: has joined #RubyOnRails
[11:22:41] SteenJobs: has joined #RubyOnRails
[11:24:00] roamingdog: has joined #RubyOnRails
[11:24:05] alfiemax: has joined #RubyOnRails
[11:24:29] mark_66: has joined #RubyOnRails
[11:27:21] artto: has joined #RubyOnRails
[11:27:24] justrohu: has joined #RubyOnRails
[11:27:36] bonswouar: has joined #RubyOnRails
[11:27:58] justrohu: I am looking for #rubyonrails channel on slack and how to join it
[11:28:04] justrohu: How do I join it
[11:28:50] emilkarl: norc: yes, thank you!
[11:29:56] pawnbox: has joined #RubyOnRails
[11:32:35] RegulationD: has joined #RubyOnRails
[11:35:27] artto_: has joined #RubyOnRails
[11:38:18] AlexJakeGreen: has joined #RubyOnRails
[11:43:15] mrbubbles: has joined #RubyOnRails
[11:44:36] mrbubbles: hey guys, I have a system that is collecting data every minute from an FTP upload. When I come to access the data, I need it in terms of the difference over 30 minute or 24 hour periods. Obviously I can just group it by these periods but I was thinking that it would be faster if I have an extra table with these values stored as results arrive and a period finishes. Is there an established pattern to achieve
[11:44:36] mrbubbles: this? It sounds like something that is probably quite a common requirement.. thanks for any tips
[11:45:10] beilabs: has joined #RubyOnRails
[11:45:45] ldnunes: has joined #RubyOnRails
[11:47:13] owenjones: has joined #RubyOnRails
[11:48:14] bob434: has joined #RubyOnRails
[11:49:25] artto: has joined #RubyOnRails
[11:49:56] rodfersou: has joined #RubyOnRails
[11:51:05] beilabs: has joined #RubyOnRails
[11:52:24] bob434: has joined #RubyOnRails
[11:53:20] grios: has joined #RubyOnRails
[11:54:01] algernop_k: has left #RubyOnRails: ("// this should never happen")
[11:54:25] Talltree: he, turns out i'm still to bad at this...
[11:55:09] beilabs: has joined #RubyOnRails
[11:55:33] universa1: Talltree: might also be of interest to you: http://tutorialsfordevs.com/tutorials/build-json-api-rails-jsonapi-resources/
[11:56:35] nettoweb: has joined #RubyOnRails
[11:56:38] rodferso1: has joined #RubyOnRails
[11:57:18] Talltree: universa1 this doesnt cover posting multible records either
[11:57:54] Talltree: at once that is
[11:58:17] DoubleMalt: has joined #RubyOnRails
[11:58:20] Talltree: something something JSON.parse and going over entries with each
[11:58:25] universa1: so you're stuck at permitting an array of entries?
[11:58:42] nettoweb: has joined #RubyOnRails
[11:59:05] Talltree: lets stick with the actual case shall we? i want to post multible records for multible different characters at once to my hp
[11:59:17] Talltree: can i pm you a link?
[11:59:33] Talltree: @ universa1
[11:59:34] universa1: no. put it in a gist and share it here.
[11:59:52] rodfersou: has joined #RubyOnRails
[11:59:52] Talltree: you allready saw every field didnt you?
[12:00:24] willwright: has joined #RubyOnRails
[12:00:24] Talltree: i dont know which files you want, sorry universa1
[12:00:43] universa1: what did you want to pm me then?
[12:00:52] beilabs: has joined #RubyOnRails
[12:01:42] Talltree: the page so you can see what its for, so we are using the same terms, see english isnt my native language and i'm self-taught and i don't talk about programming often, so i may use the wrong terms and its diffcult to explain something for me
[12:02:52] universa1: Talltree: not a native speaker myself. so add the controller, an example log excerpt from a json request you sent to the app to a gist.
[12:03:00] Oliphaunte: has joined #RubyOnRails
[12:03:10] norc: Any thoughts to my omniauth problem I mentioned earlier?
[12:03:53] universa1: norc: never "used omniauth", but look at the gem, the added parameters must come from somewhere.
[12:04:09] willwright: has left #RubyOnRails: ()
[12:04:32] thejamespinto: has joined #RubyOnRails
[12:05:32] Talltree: universa1: http://pastie.org/10857964 posted that earlier, is that enough information?
[12:06:21] universa1: Talltree: can you please put that in a gist, it is way more readable. and full log excerpt from started processing... until the end of the stack trace.
[12:08:43] potbelly: has joined #RubyOnRails
[12:12:42] Talltree: universa1, https://gist.github.com/anonymous/e21d5c0bb1983f30c5705e6f4600faa2
[12:12:55] beilabs: has joined #RubyOnRails
[12:13:56] universa1: close... the lines above nomethoderror would have been intersting ;)
[12:14:41] norc: universa1: Okay, guess it is time for me to figure out how to byebug rails.
[12:16:04] Talltree: universa1 what lines above the error? :D
[12:16:40] |meta: has joined #RubyOnRails
[12:16:43] bob434: has joined #RubyOnRails
[12:17:18] universa1: Talltree: there is stuff like Started processing ...
[12:17:48] k3rn31: has joined #RubyOnRails
[12:18:10] universa1: Talltree: Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-18 15:29:36 +0100 for example ;)
[12:19:40] bob434: has joined #RubyOnRails
[12:21:05] norc: Mmm, I tried starting the rails server (webrick) through byebug, setting breakpoints and then c(ontinueing). I then tried actions, but my execution is not stopped at breakpoints.
[12:22:05] norc: Should this be possible, or do I need to plant byebug statements into the code?
[12:25:38] camilasan: has joined #RubyOnRails
[12:27:06] op84: has joined #RubyOnRails
[12:27:31] Talltree: universa1: http://pastie.org/10857979
[12:27:39] Talltree: ... cant edit the gist :-(
[12:27:46] alfiemax: has joined #RubyOnRails
[12:28:11] op84: hi there - why session[:bla] = { :hello => ‘there’ } gets converted on second request to { “hello” => “there”} ?
[12:28:52] jhass: I guess it's serialized using JSON
[12:29:09] tknz: has joined #RubyOnRails
[12:29:17] norc: op84: The information that they are symbols is lost when they are serialized into cookies.
[12:29:53] op84: norc: oh so it depends on the session store as well right?
[12:29:58] universa1: Talltree: you are looking for something like this: params.permit(character: [:title, :role, :alive, :hc, :addon, :exp_latest, :realm, :name])
[12:30:32] Talltree: i tried that allready, but i will try it again
[12:30:34] Talltree: and post error :D
[12:30:35] norc: op84: You could serialize into YAML before you stuff it into the session store if you want to preserve symbols for whatever reason.
[12:31:02] jhass: ^ "whatever reason" means there probably is none
[12:31:46] op84: norc ok so best practice is to use strings as keys - do you know whats the best way to store a timestamp in a session?
[12:32:06] norc: op84: The best way - as usual - depends on the use case.
[12:32:33] jhass: also that sounds a bit like you're storing way too much stuff in the session
[12:32:57] _fortis: has joined #RubyOnRails
[12:33:08] op84: jhass norc just to expire a geolocation
[12:33:47] futilegames: has joined #RubyOnRails
[12:34:23] Fernando-Basso: has joined #RubyOnRails
[12:34:37] jhass: I guess I'd just Time#iso8601 / Time.iso8601 it
[12:35:03] d0nn1e: has joined #RubyOnRails
[12:35:17] op84: jhass norc: alright thanks guys!!
[12:35:58] k3rn31: has joined #RubyOnRails
[12:36:09] futilegames: has joined #RubyOnRails
[12:38:12] AntiSpamMeta: has joined #RubyOnRails
[12:38:16] julian37: has joined #RubyOnRails
[12:42:11] Talltree: universa1: http://pastie.org/10857989
[12:43:27] jhass: characters = character_params[:character].map {|params| Character.new(params) }
[12:43:32] norc: universa1: This makes absolutely no sense. You cannot configure omniauth in a way that the url params are not added, and doorkeeper rightfully (according to specs) rejects it because of it.
[12:44:06] norc: This indicates that omniauth cannot possibly work with compliant oauth 2.0 implementations..
[12:44:08] norc: Something is wrong.
[12:44:09] universa1: Talltree: well, your create action code is only made for creating ONE record. you need to adopt that also
[12:44:20] Pwnna: has left #RubyOnRails: ("Leaving")
[12:44:37] universa1: Talltree: this is not a "change-one-line-and-everything-works solution"
[12:46:27] Alazoral: has joined #RubyOnRails
[12:46:35] Circuit8: Hey guys, having trouble finding a clear answer to this question in Rails 4. If I have Model A and B which are associated through a join model C (So A has_many B through: C - and vice versa) How do I ensure that no duplicate associations are made in C. So A and B can only ever be associated once?
[12:46:56] universa1: Circuit8: validations + unique index in the db.
[12:48:06] owenjones: has joined #RubyOnRails
[12:48:07] Talltree: json.parse converts json to ruby array right universa1 ?
[12:48:17] universa1: Talltree: you don't need json parse.
[12:48:31] Talltree: then its just params .each
[12:48:33] universa1: Talltree: look at the params hash, your json is already in there, parsed into ruby objects.
[12:48:35] Talltree: = character.new
[12:49:31] Ropeney: has joined #RubyOnRails
[12:49:45] triptec: has joined #RubyOnRails
[12:52:18] artto_: has joined #RubyOnRails
[12:52:23] Spami: has joined #RubyOnRails
[12:52:41] Circuit8: universa1: Thanks, So how do I write the unique index in a migration?
[12:52:41] adlerdias: has joined #RubyOnRails
[12:54:06] norc: Circuit8: add_index :table_name, [:column_name_a, :column_name_b], :unique => true
[12:54:27] norc: (Or if you want the index to work on a single column you specify it using a symbol instead of an array of symbols)
[12:54:50] Talltree: universa1 how up to date is this solution: https://www.codeschool.com/discuss/t/surviving-apis-with-rails-posting-multiple-records/4776/4
[12:56:12] Circuit8: norc: Thanks :)
[12:57:29] Oliphaunte: has joined #RubyOnRails
[12:58:34] universa1: Talltree: ?!
[12:58:56] universa1: sorry, not having the time to write it out for you, it looks like all the bits and peaces are there.
[12:59:23] universa1: and even if i had the time, i most likely wouldn't... ...only here to help help yourself ;)
[13:01:00] IFrank00: has joined #RubyOnRails
[13:01:04] IFrank004: has joined #RubyOnRails
[13:01:44] mdw: has joined #RubyOnRails
[13:03:24] qejk: has joined #RubyOnRails
[13:03:46] mdw7: has joined #RubyOnRails
[13:03:53] roamingdog: has joined #RubyOnRails
[13:04:30] ramortegui: has joined #RubyOnRails
[13:04:59] bob434: has joined #RubyOnRails
[13:05:08] thejamespinto: has joined #RubyOnRails
[13:05:35] Talltree: universa1 i get confused by the json.parse
[13:06:17] Talltree: i guess i parse it allready with the permit function?
[13:08:14] jhass: Talltree: rails parses it before that for you already
[13:08:28] jhass: did you take a look at my suggestion yet?
[13:12:35] Guest38693: has joined #RubyOnRails
[13:13:13] bob434: has joined #RubyOnRails
[13:15:58] bob434: has joined #RubyOnRails
[13:17:19] bob434: has joined #RubyOnRails
[13:18:40] bob434: has joined #RubyOnRails
[13:19:16] eljimmy: has joined #RubyOnRails
[13:22:21] beilabs: has joined #RubyOnRails
[13:26:41] gingray: has joined #RubyOnRails
[13:27:34] chintanparikh: has joined #RubyOnRails
[13:28:38] barhum2013: has joined #RubyOnRails
[13:28:48] chintanparikh: Hey all - I have the following models and associations: https://gist.github.com/chintanparikh/ae6d8069f490bbf1cb3d2003bcbca5af Basically there are a bunch of different models that can have a comment, so I have it implemented as a polymorphic association. But these different models also relate to each other, and at the top of the three is a deal. I need some way to get the root deal_id, and I'm having some trouble figuring out the best way to d
[13:29:02] chintanparikh: top of the tree*
[13:31:13] bob434: has joined #RubyOnRails
[13:32:06] datanoise: has joined #RubyOnRails
[13:33:04] mdw: has joined #RubyOnRails
[13:39:05] mdw: has joined #RubyOnRails
[13:39:06] thejamespinto: has joined #RubyOnRails
[13:39:55] chintanparikh: has joined #RubyOnRails
[13:41:56] apg: has joined #RubyOnRails
[13:43:23] antgel: has joined #RubyOnRails
[13:43:41] apg: has joined #RubyOnRails
[13:43:41] apg: has joined #RubyOnRails
[13:43:50] bob434: has joined #RubyOnRails
[13:44:32] Talltree: jhass, didnt notice it before, http://pastie.org/10858032 is the error i'm getting after that, didnt look into fixing that myself yet because at work :D
[13:44:39] Talltree: just postin it for ya
[13:45:01] apg: has joined #RubyOnRails
[13:45:03] croberts: has joined #RubyOnRails
[13:46:52] apg: has joined #RubyOnRails
[13:46:52] apg: has joined #RubyOnRails
[13:46:58] User458764: has joined #RubyOnRails
[13:49:24] artto: has joined #RubyOnRails
[13:50:38] arBmind: has joined #RubyOnRails
[13:51:37] Oliphaunte: has joined #RubyOnRails
[13:54:07] halcyonicstorm1: has joined #RubyOnRails
[13:56:08] Pwnna: has joined #RubyOnRails
[13:56:12] edwinvdgraaf: has joined #RubyOnRails
[13:57:04] northfurr: has joined #RubyOnRails
[13:58:51] owenjones: has joined #RubyOnRails
[14:00:03] bob434: has joined #RubyOnRails
[14:02:56] Kedare: has joined #RubyOnRails
[14:03:21] m_antis: has joined #RubyOnRails
[14:04:54] brendan-: has joined #RubyOnRails
[14:06:35] beilabs: has joined #RubyOnRails
[14:13:44] workmad3: has joined #RubyOnRails
[14:13:56] julian37: has left #RubyOnRails: ("ERC (IRC client for Emacs 24.5.1)")
[14:15:17] pawnbox: has joined #RubyOnRails
[14:15:27] pawnbox: has joined #RubyOnRails
[14:15:35] User458764: has joined #RubyOnRails
[14:16:27] k3rn31: has joined #RubyOnRails
[14:17:00] maxz: has joined #RubyOnRails
[14:18:16] jhack: has joined #RubyOnRails
[14:22:00] maxz: has joined #RubyOnRails
[14:27:15] DriesS: has joined #RubyOnRails
[14:27:29] DriesS: normaly this should work everywhere no? link_to "lowest prices", :sort => "price_lowest"
[14:27:35] ferr: has joined #RubyOnRails
[14:27:41] DriesS: I get always No route matches
[14:28:18] ferr: I have 2 columns start_date and end_date, both are datetime, how would I collect objects which fit in the given range?
[14:30:48] thejamespinto_: has joined #RubyOnRails
[14:30:53] arBmind: has joined #RubyOnRails
[14:32:58] Alazoral: has joined #RubyOnRails
[14:33:19] artto: has joined #RubyOnRails
[14:34:11] pawnbox: has joined #RubyOnRails
[14:35:15] tbuehlmann: ferr: like this? YourModel.where('start_date >= ?', range_start).where('end_date <= ?', range_end)
[14:35:37] user: has joined #RubyOnRails
[14:35:52] ferr: thanks tbuehlmann
[14:36:03] jhass: or .where("start_date >= ? AND end_date <= ?", range_start, range_end)
[14:37:04] ferr: Moreover, could anyone explain me the ransack? I use Model.ransack('my text value').result and it gives me all the records no matter which value I use
[14:37:27] tbuehlmann: or this: YourModel.where(YourModel.arel_table[:start_date].gteq(range_start).and(YourModel.arel_table[:end_date].lteq(range_end)))
[14:39:18] kgrz: has joined #RubyOnRails
[14:39:24] artto: has joined #RubyOnRails
[14:39:34] daguilaraguilar: has joined #RubyOnRails
[14:39:37] jhass: or .where { start_date >= start & end_date <= end } ... ah no that's sequel
[14:41:42] mdw: has joined #RubyOnRails
[14:43:36] DanByc: has joined #RubyOnRails
[14:43:43] DanByc: hello all
[14:44:53] Oliphaunte: has joined #RubyOnRails
[14:45:57] Fernando-Basso: has joined #RubyOnRails
[14:46:01] ddv: just use sequel
[14:46:40] chintanparikh: Does anyone have any insight as to how class comparison works with a case/when statement in Ruby? I'm googling but can't find much
[14:46:42] antgel: has joined #RubyOnRails
[14:47:07] chintanparikh: Here's code - https://gist.github.com/chintanparikh/7197231408b8ea581715292fdd501927
[14:47:24] scepticulous: has joined #RubyOnRails
[14:47:30] chintanparikh: I'm calling that method on a Comment object but it doesn't trigger the byebug
[14:47:59] chintanparikh: It looks like it's because self.class === Comment is false, even though self.class == Comment
[14:49:12] chintanparikh: Nevermind, found it!
[14:49:20] Hates_: chintanparikh: did you try just case self ?
[14:49:46] Hates_: chintanparikh: k
[14:49:52] chintanparikh: Hates_: Nope, that did the trick. Thanks!
[14:50:00] Oliphaunte: has joined #RubyOnRails
[14:50:19] chintanparikh: Also, is there a better way to write that code?
[14:50:53] Oliphaunte: has joined #RubyOnRails
[14:51:50] Oliphaunte: has joined #RubyOnRails
[14:54:05] Rodya_: has joined #RubyOnRails
[15:00:19] triptec: has joined #RubyOnRails
[15:01:21] Devalo: has joined #RubyOnRails
[15:01:22] eljimmy: has joined #RubyOnRails
[15:02:04] roamingdog: has joined #RubyOnRails
[15:02:37] AntiSpamMeta: has joined #RubyOnRails
[15:06:07] arBmind: has joined #RubyOnRails
[15:06:38] edwinvdgraaf: has joined #RubyOnRails
[15:08:25] jhack: has joined #RubyOnRails
[15:11:36] Guest38693: has joined #RubyOnRails
[15:14:12] Oliphaunte: has joined #RubyOnRails
[15:14:14] Pwnna: has left #RubyOnRails: ("Leaving")
[15:14:49] pawnbox: has joined #RubyOnRails
[15:15:55] macsteps: has joined #RubyOnRails
[15:18:53] jancel: has joined #RubyOnRails
[15:28:57] nettoweb: has joined #RubyOnRails
[15:29:21] Ergo^: has joined #RubyOnRails
[15:30:23] Oliphaunte: has joined #RubyOnRails
[15:32:42] northfurr: has joined #RubyOnRails
[15:33:09] eGGshke: has joined #RubyOnRails
[15:35:02] Oliphaunte: has joined #RubyOnRails
[15:35:51] chops_: has joined #RubyOnRails
[15:36:11] eljimmy: has joined #RubyOnRails
[15:36:41] fedexo: has joined #RubyOnRails
[15:41:07] barhum2013: has joined #RubyOnRails
[15:42:36] chouhoulis: has joined #RubyOnRails
[15:44:56] hcnewsom: has joined #RubyOnRails
[15:45:01] Ropeney: has joined #RubyOnRails
[15:47:14] northfurr: has joined #RubyOnRails
[15:47:31] Oliphaunte: has joined #RubyOnRails
[15:50:37] B1n4r10: has joined #RubyOnRails
[15:52:12] dionysus69: has joined #RubyOnRails
[15:52:24] norc: has joined #RubyOnRails
[15:54:09] jhbs: has joined #RubyOnRails
[15:55:43] owenjones: has joined #RubyOnRails
[15:58:12] Ropeney: has joined #RubyOnRails
[15:59:02] fedexo: has joined #RubyOnRails
[15:59:13] Guest38693: has joined #RubyOnRails
[15:59:25] triangles: has joined #RubyOnRails
[16:00:38] Inside: has joined #RubyOnRails
[16:05:04] Cohedrin: has joined #RubyOnRails
[16:06:05] northfurr: has joined #RubyOnRails
[16:06:18] armyriad: has joined #RubyOnRails
[16:10:04] idefine: has joined #RubyOnRails
[16:10:08] moeabdol: has joined #RubyOnRails
[16:11:25] moeabdol1: has joined #RubyOnRails
[16:11:36] armyriad: has joined #RubyOnRails
[16:13:38] meoblast001: has joined #RubyOnRails
[16:18:42] Mia: has joined #RubyOnRails
[16:18:42] Mia: has joined #RubyOnRails
[16:20:21] Spami_: has joined #RubyOnRails
[16:22:48] artto: has joined #RubyOnRails
[16:23:20] triptec: has joined #RubyOnRails
[16:27:34] allcentury: has joined #RubyOnRails
[16:29:34] idefine: has joined #RubyOnRails
[16:31:57] meoblast001: has joined #RubyOnRails
[16:33:59] diegoaguilar: has joined #RubyOnRails
[16:35:34] northfurr: has joined #RubyOnRails
[16:36:20] cgfbee: has joined #RubyOnRails
[16:36:34] cfloare: has joined #RubyOnRails
[16:37:11] jancel: has joined #RubyOnRails
[16:37:39] halcyonicstorm1: has joined #RubyOnRails
[16:38:34] barhum2013: Hello, has anybody configured a postgresql/compose.io db in a rails app in digitalocean? Can’t seem to find much documentation on it?
[16:40:23] pawnbox: has joined #RubyOnRails
[16:42:01] rafaelfranca: has joined #RubyOnRails
[16:44:41] halcyonicstorm1: has left #RubyOnRails: ()
[16:46:19] thejamespinto: has joined #RubyOnRails
[16:52:31] Rodya_: has joined #RubyOnRails
[16:53:03] VeryBewitching: has joined #RubyOnRails
[16:54:11] pontiki: barhum2013: try here? https://help.compose.io/docs/connecting-to-postgresql
[16:55:03] barhum2013: ponitki: I don’t need to install postgres on the server? Just let the ‘pg’ gem do all the work?
[16:56:30] idefine: has joined #RubyOnRails
[16:59:02] Guest38693: has joined #RubyOnRails
[16:59:31] qejk: has joined #RubyOnRails
[16:59:42] RegulationD: has joined #RubyOnRails
[16:59:54] pontiki: i thought the purpose of using compose.io was to eliminate having to install your own server
[17:00:03] pontiki: *database server
[17:00:30] pontiki: i've never used compose.io, but that's my read
[17:00:55] gusrub: has joined #RubyOnRails
[17:01:35] tildes_: has joined #RubyOnRails
[17:03:24] jhbs: on rails
[17:04:46] User458764: has joined #RubyOnRails
[17:05:21] yfeldblum: has joined #RubyOnRails
[17:06:11] yfeldblum: has joined #RubyOnRails
[17:08:04] datanoise: has joined #RubyOnRails
[17:08:14] allcentury: has joined #RubyOnRails
[17:09:45] barhum2013: pontiki: I think you are right, maybe it just needs the ‘pg’ gem to properly handle the db connection, not sure?
[17:12:48] IFrank004: has joined #RubyOnRails
[17:12:49] IFrank00: has joined #RubyOnRails
[17:16:15] pontiki: barhum2013: are you asking me to guess for you? :)
[17:17:08] cgfbee: has joined #RubyOnRails
[17:17:22] cfloare: has joined #RubyOnRails
[17:17:59] barhum2013: pontiki: sorry, instead of the question mark, I meant …
[17:18:17] barhum2013: but thanks for the help
[17:20:14] pontiki: oh, you will need the libpq-dev package installed
[17:21:38] jjgh32: has joined #RubyOnRails
[17:22:05] jjgh32: hey anyone know if the 'whenever' gem is supposed to start alongside the rails server, or does it need it's own initializer?
[17:23:10] pontiki: i don't recall that the whenever gem ran continuously, it just modifies the crontab
[17:23:37] jjgh32: oh okay thanks makes a lot more sense now
[17:25:51] dionysus69: has joined #RubyOnRails
[17:29:52] jancel: has joined #RubyOnRails
[17:31:04] User458764: has joined #RubyOnRails
[17:31:23] allcentury: has joined #RubyOnRails
[17:31:44] startupality: has joined #RubyOnRails
[17:40:01] nettoweb: has joined #RubyOnRails
[17:44:27] mdw: has joined #RubyOnRails
[17:44:27] kgrz: has joined #RubyOnRails
[17:48:35] owenjones: has joined #RubyOnRails
[17:50:52] alfiemax: has joined #RubyOnRails
[17:55:39] sdrew: has joined #RubyOnRails
[17:55:41] snowy: has joined #RubyOnRails
[17:56:00] DoctorMonocular: has joined #RubyOnRails
[17:56:41] AmiMoench: has joined #RubyOnRails
[17:58:24] SteenJobs: has joined #RubyOnRails
[17:59:43] zave: has joined #RubyOnRails
[18:04:59] Darmani: has joined #RubyOnRails
[18:05:06] fox_mulder_cp: has joined #RubyOnRails
[18:07:31] macsteps: has joined #RubyOnRails
[18:07:40] Rodya_: has joined #RubyOnRails
[18:09:32] futilegames: has joined #RubyOnRails
[18:14:32] hcnewsom: has joined #RubyOnRails
[18:15:15] futilegames: has left #RubyOnRails: ()
[18:17:29] ferr: has joined #RubyOnRails
[18:19:25] acovrig: has joined #RubyOnRails
[18:20:44] acovrig: I'm trying to implement http://stackoverflow.com/a/3553561 (customizing devise); when I do, the /sign_up page shows the sign_in view... why?
[18:22:34] acovrig: This is the relevant code of mine: https://gist.github.com/acovrig/6ebdc88dc5af61a92818f2a5c7a111f8
[18:27:00] ksoze: has joined #RubyOnRails
[18:28:41] eljimmy: has joined #RubyOnRails
[18:28:45] startupality: has joined #RubyOnRails
[18:29:35] acovrig: also, /sign_up shows the sign_in page, then if I refresh, I'm redirected to the sign_in page...
[18:39:53] Cohedrin_: has joined #RubyOnRails
[18:42:23] k3rn31: has joined #RubyOnRails
[18:44:10] edwinvdgraaf: has joined #RubyOnRails
[18:45:51] Darmani: Hi everyone ^.^
[18:46:37] Darmani: For some reason my rails app doesn't want to link my comments with an author I just keep getting an error.
[18:46:39] Darmani: https://gist.github.com/mfifth/194a9464839f56387bd1158d699af91e
[18:49:04] Rodya_: has joined #RubyOnRails
[18:50:24] mdw7: has joined #RubyOnRails
[18:51:09] xlegoman: by link do you mean a <a></a> style link or it just won't pull in the authors email next to the comment?
[18:52:29] workmad3: has joined #RubyOnRails
[18:53:51] allcentury: has joined #RubyOnRails
[18:55:23] dtg0n20: has joined #RubyOnRails
[18:56:10] Cohedrin: has joined #RubyOnRails
[18:58:50] Darmani: xlegoman: sorry bro didn't see your message. /query me next time.
[18:59:19] Darmani: xlegoman: It won't pull the author's email next to the comment.
[18:59:40] Darmani: Interestingly enough it will pull the "User" object if I leave the ".author" method out of it though.
[19:01:08] alfiemax: has joined #RubyOnRails
[19:01:51] eljimmy: has joined #RubyOnRails
[19:03:49] tw1sted: has joined #RubyOnRails
[19:05:32] mdw: has joined #RubyOnRails
[19:06:19] hcnewsom: has joined #RubyOnRails
[19:07:03] wmoxam: Darmani: you have some bad nesting in your markup
[19:07:12] wmoxam: <li><h4><%= comment.author.email %> -</li></h4>
[19:07:28] mdw7_: has joined #RubyOnRails
[19:07:34] Darmani: wmoxam: oh shit didn't even notice that lol
[19:08:37] allcentury: has joined #RubyOnRails
[19:08:40] antgel: has joined #RubyOnRails
[19:08:41] wtiger: has joined #RubyOnRails
[19:10:16] Darmani: Should I drop the database completely and redo it?
[19:10:38] Darmani: ACTION likes to spend hours trying to fix one error that doesn't make sense
[19:11:04] Darmani: I'm guessing it has something to do with my migrations.
[19:12:01] norc: What is the stance on high availability of services (be it your database, webservers, APIs) on people here? I know of some people who splatter their IT infrastructure with duplicated nodes, using random heartbeat scripts and corosync without much benefit. It seems to just senslessly add complexity when in most cases its not really needed.
[19:12:02] alfiemax: has joined #RubyOnRails
[19:12:33] norc: (In fact it seems that "high availability" without putting much thought and work into it, can actually reduce high availability due to the multitude and complexity of servers involved)
[19:12:44] hololeap: has joined #RubyOnRails
[19:13:27] hololeap: is there a less verbose way to do this: http://dpaste.com/2648NVE
[19:13:33] alfiemax: has joined #RubyOnRails
[19:13:58] Darmani: ACTION will be back.
[19:14:07] Darmani: someone pm me if they figure it out.
[19:17:48] sypheren: has joined #RubyOnRails
[19:18:03] alfiemax: has joined #RubyOnRails
[19:19:07] pontiki: norc, honestly, i prefer to let someone who knows a lot more about that stuff than i do figure it out
[19:19:14] srinidhi: has joined #RubyOnRails
[19:19:52] pontiki: i have the basics of devops, but nothing to that level
[19:21:21] roamingdog: has joined #RubyOnRails
[19:22:47] Dimik: has joined #RubyOnRails
[19:23:17] jancel: has joined #RubyOnRails
[19:24:10] yfeldblum: has joined #RubyOnRails
[19:24:53] greenride: has joined #RubyOnRails
[19:25:57] kgrz: has joined #RubyOnRails
[19:26:39] norc: pontiki, it is just so sad to see people who know how to write a 3 line bash script to be used by crontab and thus feel competent enough to introduce high availability solutions to improve a companies services..
[19:27:34] norc: We are currently pondering about high availabilty for our databases - and the first thought was: Let's buy it as a service. We don't know shit about it.
[19:29:01] pontiki: norc: do you think that's an unreasonable response?
[19:29:16] norc: At least it was honest. ;)
[19:29:19] pontiki: (this goes to show how little i know about it)
[19:30:33] roamingdog: has joined #RubyOnRails
[19:32:53] pontiki: i guess my thoughts are that if you find yourself in need of a high-availability architeture, you should seek / acquire expertise in that to determine what's optimal
[19:33:25] pontiki: but i also think most businesses don't do that
[19:33:54] norc: Some of the people I know have the "we can do everything ourselves" mentality. Even if its some half ass solution that does not work properly. But if there are multiple servers its a cluster, and clusters bring high availability - so it must be good.
[19:33:54] pontiki: well, "most" is inaccurate
[19:40:54] Oliphaunte: has joined #RubyOnRails
[19:43:38] emilkarl: has joined #RubyOnRails
[19:44:06] Oliphaunte: has joined #RubyOnRails
[19:45:30] Pwnna: has joined #RubyOnRails
[19:45:35] Pwnna: when does rails test create fixtures>?
[19:45:49] Pwnna: before the setup function on each testcase i assume?
[19:46:12] sypheren: has joined #RubyOnRails
[19:47:08] norc: Pwnna, the rails generators usually do that for you.
[19:47:34] Pwnna: oh so it's populated into the database during rake db:test:prepare?
[19:47:35] pontiki: i think he means when do they get loaded in the test DB
[19:47:46] pontiki: no, it's done before each test
[19:47:52] norc: Pwnna, sorry I misunderstood. :)
[19:47:57] pontiki: and yes, before the setup runs for each test
[19:47:59] Pwnna: before each test? before the setup function or after the setup function?
[19:48:11] hcnewsom: has joined #RubyOnRails
[19:48:23] Pwnna: what if i have a model that's test only (testing an abstract model) and i create the table during setup?
[19:48:30] Pwnna: it's not appropriate to use fixtures in this case right?
[19:48:45] Pwnna: i'm just doing create in the setup phase of each test (as well as creating the table before that )
[19:48:47] pontiki: i've never done that, but it sounds like it wouldn't work, yeah
[19:49:12] Pwnna: yeah that's what i thought too. i just couldn't figure out when rails populated the fixture into db from looking at the code.
[19:49:14] Pwnna: thanks a lot :)
[19:49:31] pontiki: you could, i'm pretty sure, call up the fixture loader in setup for that case
[19:50:06] fcampinho: has joined #RubyOnRails
[19:50:26] pontiki: it might just be easier to create the records at that point instead of using a fixture, too, depends on your taste, i guess
[19:52:50] jancel_: has joined #RubyOnRails
[19:53:11] roamingdog: has joined #RubyOnRails
[19:54:04] netzfisch: has joined #RubyOnRails
[19:54:19] roamingdog: has joined #RubyOnRails
[19:56:49] ur5us: has joined #RubyOnRails
[19:56:50] Rodya_: has joined #RubyOnRails
[19:58:35] Maxifalk: has joined #RubyOnRails
[20:02:02] Oliphaunte: has joined #RubyOnRails
[20:03:47] owenjones: has joined #RubyOnRails
[20:05:10] B1n4r10: has joined #RubyOnRails
[20:07:13] Pwnna: pontiki: yeah that's what i figure. also easier to read
[20:11:07] Rodya_: has joined #RubyOnRails
[20:12:30] barhum2013: has joined #RubyOnRails
[20:12:59] art-solopov: has joined #RubyOnRails
[20:13:37] roamingdog: has joined #RubyOnRails
[20:15:22] Talltree: how do you guys debug objectives in your controllers?
[20:15:35] roamingdog: has joined #RubyOnRails
[20:16:01] Talltree: can i puts stuff to see what it actually contains?
[20:16:48] pontiki: so, this is highly opinionated, but here goes.
[20:17:01] Radar: mmmm opinions
[20:17:03] pontiki: Talltree: i never put enough stuff into my controllers that requires i debug them
[20:17:51] pontiki: Talltree: rather, i put things into POROs and then i can test the crap outta them
[20:18:26] pontiki: ACTION passes Radar the popcorn
[20:18:41] Talltree: and if i'm too stupid for that?
[20:18:59] pontiki: i don't have an answer for that
[20:18:59] Oliphaunte: has joined #RubyOnRails
[20:19:08] Talltree: :P i didnt think you have
[20:19:14] Talltree: its rather rhetorical you know ^
[20:19:16] pontiki: if you were merely ignorant, there are lots of places to learn
[20:20:18] Talltree: i'm learning all the time, but this is getting to a point where having something ugly beats having nothing at all
[20:20:42] Talltree: i can always fix and get better after that, and i will
[20:21:28] art-solopov: Talltree: If you wanna debug stuff, look into pry, byebug and pry-byebug.
[20:24:17] Talltree: so. much. stuff. to. learn
[20:24:42] art-solopov: Talltree: Agree. =) But it has to be this way.
[20:27:54] Talltree: i'm kinda starting out and really begin to love git :D
[20:28:12] Talltree: push it at home, pull at work, push when work is done, pull at home, continue work
[20:29:29] roamingdog: has joined #RubyOnRails
[20:29:38] pontiki: i keep having a hard time geting my students to use it
[20:31:09] Talltree: its not really easy to learn to be honest
[20:31:48] Talltree: i still dont get some things, for example how to replace the default branch with a different one
[20:31:49] art-solopov: Talltree: Kinda, yeah. >_< I heard Mercurial is easier, but I've never tried it myself.
[20:32:05] chouhoulis: has joined #RubyOnRails
[20:32:53] Talltree: i use gitkraken at home, but cant at work
[20:32:59] owenjones: has joined #RubyOnRails
[20:33:07] Talltree: because my job is something completly different from this, lol
[20:33:18] pontiki: it's mostly, for them, just that it's something very new that they've never thought about before
[20:34:05] Talltree: idk, just recently i messed something up with vim and just hard-reset to an earlier commit instead of debugging for 4 hours
[20:34:06] pontiki: and yeah, it is not easy to learn
[20:34:45] norc: Talltree, pry and byebug are your biggest friends whenever you get any error/problem that is not immediately apparent to you. It is usually faster to debug into the spot than to read the source code and guess what is wrong.
[20:34:46] pontiki: right, there's that super personal experience that's hard to teach, but drills into you why it's necessary
[20:35:00] norc: Talltree, note that this applies to the entire Ruby world. Not just Rails.
[20:35:21] Talltree: norc: i mean, my code is working, i just wonder what some hash is sometimes, if i can actually access it etc. what it contains
[20:35:31] Talltree: and i would like to just have that printed...
[20:35:46] norc: Talltree, my own opinion is that if you ever have that though.. write a spec for it.
[20:35:48] Talltree: i was a bad little noob and copy pasted something :D
[20:36:01] futilegames: has joined #RubyOnRails
[20:36:03] norc: Talltree, because if it makes you wonder, some part of your application probably somehow relies on it.
[20:36:17] mherold: has joined #RubyOnRails
[20:36:34] norc: Which beats interactive introspection even.
[20:36:49] Talltree: norc: i have no idea what a spec is, i guess thats bad
[20:36:51] Talltree: so more to learn
[20:37:30] jancel: has joined #RubyOnRails
[20:38:15] norc: Talltree, RSpec (replace this with Minitest or any other framework you like) is a suite that lets you specify how certain parts of your application should behave.
[20:38:57] norc: These tests can then be run every time you make changes, amassing them over time - this allows you to make changes and testing whether it breaks any behaviour some part of your application might depend upon.
[20:39:15] Talltree: so its kinda like automatic debugging?
[20:39:28] norc: More like automatic enforcing that you didn't break something unintentionally.
[20:39:50] Talltree: thats intresting
[20:40:09] norc: Talltree, in fact most larger projects have set up automated environments that execute the entire test suits on many dozens of systems/operating systems, ensuring that even the smallest code addition you make does not break any other piece of code.
[20:40:14] Talltree: i don't really think its worth the time to implement this at this point for my little app
[20:40:25] norc: Talltree, even for small apps its a great thing to practice.
[20:40:50] Talltree: thats really col and i appreciate you taking the time to explain it to me. thanks. will definatly try it out
[20:40:59] triptec: has joined #RubyOnRails
[20:42:32] eGGshke: has joined #RubyOnRails
[20:43:06] mozzarella: has joined #RubyOnRails
[20:44:12] datanoise: has joined #RubyOnRails
[20:45:09] pawnbox: has joined #RubyOnRails
[20:45:19] Oliphaunte: has joined #RubyOnRails
[20:46:10] futilegames_: has joined #RubyOnRails
[20:50:03] allcentury: has joined #RubyOnRails
[20:52:36] roamingdog: has joined #RubyOnRails
[20:54:10] startupality: has joined #RubyOnRails
[20:56:31] Coldblackice: has joined #RubyOnRails
[21:05:20] arBmind: has joined #RubyOnRails
[21:06:13] futilegames: has joined #RubyOnRails
[21:08:43] barhum2013: has joined #RubyOnRails
[21:14:28] moeabdol1: has joined #RubyOnRails
[21:15:45] eljimmy: has joined #RubyOnRails
[21:20:28] jancel: has joined #RubyOnRails
[21:22:01] netzfisch: has joined #RubyOnRails
[21:23:26] gingray: has joined #RubyOnRails
[21:29:13] allcentury: has joined #RubyOnRails
[21:29:49] mdw: has joined #RubyOnRails
[21:30:37] sdrew: has joined #RubyOnRails
[21:37:02] Oliphaunte: has joined #RubyOnRails
[21:38:39] sergey_makagon: has joined #RubyOnRails
[21:39:29] edwinvdgraaf: has joined #RubyOnRails
[21:39:35] mdw: has joined #RubyOnRails
[21:43:49] audibleblink: has joined #RubyOnRails
[21:46:19] startupality: has joined #RubyOnRails
[21:57:53] roamingdog: has joined #RubyOnRails
[22:00:30] blackmesa: has joined #RubyOnRails
[22:01:35] pawnbox: has joined #RubyOnRails
[22:01:41] tvw: has joined #RubyOnRails
[22:06:09] roamingdog: has joined #RubyOnRails
[22:20:03] rogue_koder_: has joined #RubyOnRails
[22:20:42] xibalba: has joined #RubyOnRails
[22:20:56] xibalba: has joined #RubyOnRails
[22:22:35] mwcmitchell: has joined #RubyOnRails
[22:25:07] idefine: has joined #RubyOnRails
[22:25:23] IFrank004: has joined #RubyOnRails
[22:25:26] IFrank00: has joined #RubyOnRails
[22:28:45] Oliphaunte: has joined #RubyOnRails
[22:32:42] IFrank00: has joined #RubyOnRails
[22:32:47] SteenJobs: has joined #RubyOnRails
[22:33:16] macsteps: has joined #RubyOnRails
[22:33:32] phredus: has joined #RubyOnRails
[22:33:59] IFrank004: has joined #RubyOnRails
[22:34:30] rogue_koder: has joined #RubyOnRails
[22:39:06] xlegoman: has joined #RubyOnRails
[22:39:34] modalo: has joined #RubyOnRails
[22:42:38] modalo: Hi! Can someone help with my problem, I searched alot.. problem with 2 modals. Thats what i want to get: I have model A and associated model B; I open remote modal for model A, and i can choose: create new associated B object or pick existed; if i click "create new B" opens second modal, i fill form and submit it, and if it correct i want to my second form hide and my first form get selected this new created object
[22:42:53] helpa: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[22:43:51] modalo: Hi! Can someone help with my problem, I searched alot.. problem with 2 modals. Thats what i want to get: I have model "Invoce" and associated model "User"; I open remote modal for model "Invoice", and i can choose: create new associated "User" object or pick existed; if i click "create new User" opens second modal, i fill form and submit it, and if it correct i want to my second form hide and my first form get selected this new c
[22:44:03] modalo: i just fixed fake model names
[22:44:16] DanByc: has joined #RubyOnRails
[22:44:30] idefine: has joined #RubyOnRails
[22:44:44] modalo: i dont know how to work with 2 associated modal windows correctly and nicely
[22:45:13] barhum2013: has joined #RubyOnRails
[22:45:20] modalo: if i choose something in second modal window and submit it i want my first modal handle this logic
[22:45:41] modalo: damn, mb anyone know how to do it right
[22:54:58] draig: has joined #RubyOnRails
[22:56:11] DanByc: has joined #RubyOnRails
[22:59:04] roamingdog: has joined #RubyOnRails
[23:00:57] tildes_: has joined #RubyOnRails
[23:02:09] DanByc: has joined #RubyOnRails
[23:04:30] xalupeao: has joined #RubyOnRails
[23:04:39] xalupeao: https://github.com/jnbt/countdown not work in rails 4 :C
[23:04:44] xalupeao: and i need this gem
[23:04:56] xalupeao: exist for rails4 countdown gem?
[23:05:28] xalupeao: or gem to get days, minutes and seconds to ago
[23:06:05] Radar: Update it for Rails 4?
[23:07:10] iamdevnul: so anyone watch silicon valley last night?
[23:07:15] pwnd_nsfw`: iamdevnul, ye
[23:07:20] roamingdog: has joined #RubyOnRails
[23:07:21] iamdevnul: richard would tak issue with the ruby style guide
[23:08:08] triptec: has joined #RubyOnRails
[23:09:00] Dios: has joined #RubyOnRails
[23:14:00] jancel: has joined #RubyOnRails
[23:17:41] |meta: has joined #RubyOnRails
[23:18:02] roamingdog: has joined #RubyOnRails
[23:20:05] barhum2013: has joined #RubyOnRails
[23:23:25] owenjones: has joined #RubyOnRails
[23:23:44] triptec: has joined #RubyOnRails
[23:27:24] IFrank00: has joined #RubyOnRails
[23:27:28] IFrank004: has joined #RubyOnRails
[23:31:35] sdrew: has joined #RubyOnRails
[23:31:42] barhum2013: has joined #RubyOnRails
[23:32:11] triptec: has joined #RubyOnRails
[23:34:15] datanoise: has joined #RubyOnRails
[23:34:18] roamingdog: has joined #RubyOnRails
[23:38:25] JakFrist: has joined #RubyOnRails
[23:40:34] Darmani: Radar: Hola, you busy?
[23:44:57] jeromelanteri: has joined #RubyOnRails
[23:46:30] jeromelanteri: i not find how to do config the database by migration for make follow the delete cascading things... i think there is a command or an option on model paybe. someone know please ?
[23:46:42] TheCreepyPickle: has joined #RubyOnRails
[23:47:48] triptec: has joined #RubyOnRails
[23:49:54] hahuang65: has joined #RubyOnRails
[23:50:22] jwang: has joined #RubyOnRails
[23:50:41] TheCreepyPickle: has left #RubyOnRails: ()
[23:51:54] jancel: has joined #RubyOnRails
[23:51:58] dalbusch1t: has joined #RubyOnRails
[23:54:51] roamingdog: has joined #RubyOnRails
[23:55:06] owenjones: has joined #RubyOnRails
[23:56:36] roamingdog: has joined #RubyOnRails
[23:56:36] Dios: has joined #RubyOnRails
[23:57:01] Radar: Darmani: Nope.
[23:57:07] Radar: Darmani: What's up?
[23:57:18] Radar: jeromelanteri: Hi. How's things?
[23:57:33] someish: has joined #RubyOnRails
[23:57:36] Darmani: Just haven't been able to figure out why I can't all "email" on a "User" instance.
[23:57:37] Darmani: https://gist.github.com/mfifth/194a9464839f56387bd1158d699af91e
[23:58:22] Radar: What happens when you try it?
[23:58:55] Darmani: undefined method `email' for nil:NilClass
[23:59:20] Darmani: Radar: Interestingly enough, if I simply leave it as comment.author it will bring up the user object.
[23:59:27] Radar: So you're calling it on `nil` rather than a `User` instance.