#RubyOnRails - 25 December 2015
« Back 1 day Forward 1 day »
[00:06:42] tubbo: oh yeah that's totally what i want, to have to keep in my head the entire DOM structure just to change the fucking background color. whose idea was this
[01:38:49] havenwood: ruby-install ruby 2.3.0 --sha256 ec7579eaba2e4c402a089dbc86c98e5f1f62507880fd800b9b34ca30166bfa5e
[01:45:42] Papierkorb: Still not in ArchLinux repos .. meaning I'll be able to break my rails app starting tomorrow, and not now :(
[02:22:18] mices: on this page http://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_dropdown-menu&stacked=h they tell you to create a button with a class of dropdown-toggle but then they create the button with a class of "btn btn-primary dropdown-toggle" anyone can explain
[02:23:21] mices: in other words, as long as dropdown-toggle is included in the class name it'll work?
[02:34:18] sevenseacat: well, checking the bootstrap docs (instead of a crappy third-party site) would tell you that btn and btn-primary are used for styling. you know, what css classes are actually for.
[02:55:54] sevenseacat: VeryBewitching: so you directed them to a link, then did it again, then they asked me for the exact same link? nice.
[03:17:05] VeryBewitching: I'm glad I made the choice to put a little *more* Bailey's in this current cup of coffee.
[04:58:37] mices: how do i put my image all the way on the left and my button all the way on the right in the same banner div
[05:56:54] mices: i think they already do have precedence but it says in application.css that styling in this file will take precedence to scoped files
[06:53:18] mices: what would happen if i changed the name of the edit action, would the form submit get routed to update action
[14:01:25] vasilakisFiL: has anyone tried to run rails with frozen strings all over (ruby 2.3 I guess) ? Just wondering the performance gains
[14:08:05] fox_mulder_cp: hi. somebody can help me use amd actvate devise.mailer for sending mails via msmtp?
[16:34:49] arup_r: I wrote my own custom error pages and now trying to run test.. But I am not able to understand how should I test 505 page.. I tried to stub #index action and render some random page which might result in 505 and I'll get my test as GREEN. That trick didn't work.. any hints? https://gist.github.com/aruprakshit/337b1846aa66ce0fe162
[17:06:48] arup_r: Somehow I want to make an exception inside the Rails app .. so that it renders my 500 page
[17:08:04] arup_r: vist "some/path" will always do an HTML request.. any way, I can make some other request like xml or whatever.. Because if I do an XML request to the Sites#index action, Rails wouldn't find any match view and it will raise 500
[17:09:46] Papierkorb: arup_r: Can't tell you if that is considered good practice, but I had a 'test_error' route only active in test env to try stuff like that
[17:11:07] Papierkorb: I put it in the ErrorsController, but that controller literally managed logged errors, so YMMV
[17:11:27] arup_r: I thought also like to enable a route like you said when rails.env.test? and then map it to a action and then don't add any view for that.. and rails will do raise error when there is no matching voew
[17:12:11] Papierkorb: arup_r: Then I'd just do a "raise RuntimeError, 'Test error'" in the action method to test my code and not rails error recovery (which might change later on)
[17:12:48] Papierkorb: You can leave out the RuntimeError parameter of course, but I added it for clarity that I indeed wanted to raise a runtime error.
[17:13:47] arup_r: yes.. thanks for sharing.. I am also going to do that.. That is dead simple to make it GREEN
[17:43:08] stel_ro: hello guys, i am coming from c/c++, can you please suggest me good ruby book or e-book to read and rails respectivly ?
[17:45:34] Papierkorb: stel_ro: haven't read it, but it has good reviews and is free over xmas: http://www.amazon.com/dp/B00QK2T1SY
[17:45:45] Papierkorb: stel_ro: (Props to the books author: https://www.reddit.com/r/rails/comments/3xshyl/give_the_gift_of_learn_ruby_on_rails_for_free/ )
[17:57:07] JonasOSDever: Hello, right now I'm trying to install the Rails 5 beta gem on Windows. It fails building the native extension for hiredis, but I don't have a redis server anyways, so is there a way of getting gem install rails5 running without it?
[18:19:31] JonasOSDever: fox_mulder_cp: Meh, already assumed it's not a good idea. Windows is my main development OS though :/
[18:23:10] Papierkorb: JonasOSDever: My condolences. You could however try using a linux VM to play with it using VirtualBox. Maybe Vagrant would be of help to you too (Never used Vagrant for development stuff nor on windows though)
[18:29:02] JonasOSDever: Papierkorb: Danke fuers Beileid ;) Well actually I could setup a VM for that, it's just I wanted to know if there's a way without that because a) I hate working with one monitor only and b) Deutsche Telekom AG will slow my connection after a certain download limit -- which is why I avoid set up VMs needing images to download
[18:29:24] JonasOSDever: But it appears it's the only way right now... Well, gotta push the (traffic) limits
[18:44:14] arup_r: I am not able to save the screenshot https://gist.github.com/aruprakshit/9173c8fc8c7ff85e9329 how to do so ?
[18:47:16] fox_mulder_cp: JonasOSDever: as for me - i use windows sicne 3.1 linux sicne 2005 and have a vm with linux for perl,bash, and rails
[18:48:43] JonasOSDever: fox_mulder_cp: As for my laptop in school and for my servers I also prefer linux. And surely it's a great OS. But for some reason I don't want to switch my desktop due to the lack of VS ^^
[19:03:55] fox_mulder_cp: JonasOSDever: for vim/emacs you can connect your coffe machine, garage doors, cat's eat composer and freezer
[19:05:17] JonasOSDever: Well you can also say the other way around, if you want to VS to have these features, write a plugin. :p
[19:06:15] JonasOSDever: Maybe it's just a personal preference, but I'm used to it and so is that. Port it, together with Adobe PSE (no, not GIMP) and Adobe PRE to linux and I won't rely on Windows anymore
[19:07:25] diegoviola: just run windows in VM when you need to or use wine and then ditch the VM when you're done
[19:07:44] fox_mulder_cp: JonasOSDever: win8+ have a hyper-v feature onboard. iinstall ubuntu 15.10 on it and rails, for a half o'clock, ceep calm and code on
[19:08:54] JonasOSDever: As I said, the main problem is that my monthly internet traffic is limit by my ISP (w/o alternative), so...
[19:09:52] fox_mulder_cp: oh, crazy world. so, ubuntu-minimal - ~200mb image + minimal packages to developmnet
[19:11:29] fox_mulder_cp: diegoviola: centos, ubuntu are ok. debian so older, but crazy stabile for prodaction
[19:19:47] diegoviola: fox_mulder_cp: one of the points of linux is to have a stable kernel where things *never* break so the distro is sort of irrelevant... the changes between debian and arch are just in the release process, one is release based and the other one is rolling release
[19:26:19] diegoviola: CentOS have many years of support usually so I tend to just use that for servers
[19:26:45] Papierkorb: Rolling releases is one of my reasons for not even looking anymore at non-rolling release based distros.
[19:27:55] fox_mulder_cp: Papierkorb: now i relearn rails for building my own shared application/sites hosting web panel
[19:28:30] Papierkorb: Sounds like a useful application at that. Make sure to get authentication right though ..
[19:30:36] fox_mulder_cp: i really want use docker containers - for php app - apche + php at container + nginx for front
[20:07:10] JonasOSDever: What size of htaccess-Files are we talking about? Because nginx can handle the stuff in it's config files as well, having provided the right modules
[20:07:30] JonasOSDever: If it's just some auth-basic and rewriting it shouldn't be a too big problem
[20:09:38] JonasOSDever: But honestly, if it's just an auth-basic config and a few rewrites try convincing them of rewriting it. I doubt clients will do it as managers are like 'it worked in 1950, so it works now as well' but meh
[20:09:57] JonasOSDever: Actually I don't see what htaccess supports that nginx doesn't (with a different syntax)
[20:12:15] JonasOSDever: Well you can actually include config files from subdirs but I understand that's not possible, if the apps use a htaccess-File for each subdir
[20:13:08] fox_mulder_cp: JonasOSDever: so, all php cms use it. so all shared hosting must use apache + nginx
[20:17:51] fox_mulder_cp: JonasOSDever: :) no, after some years on hosting as support, as hostmaster, i know, how to make my own hosting :)
[20:19:16] JonasOSDever: I agree... Yet it seems quite odd to me being bound to one specific server just of one (ineffective) way of controlling access
[20:25:18] JonasOSDever: As far as I understood you are only using apache because of that one file, which is parsed at every request
[20:25:48] fox_mulder_cp: JonasOSDever: not one file. it search and parse all .htaccess in site dir structure
[20:29:59] arup_r: I have a feature spec which runs fine, when I run it.. But when I did `rake spec` it always fails.. https://gist.github.com/aruprakshit/1a1b5a863b42e19a4241 Any idea how can I fix this ?
[20:58:33] tbuehlmann: "Same as try, but will raise a NoMethodError exception if the receiver is not nil and does not implement the tried method."
[23:00:04] fox_mulder_cp: Meery Tesla X :) be happy http://newscodex.com/tesla-model-x-can-perform-a-christmas-light-show-all-by-itself-290a7813a4de43088e9de9eab70ed80e
[23:29:41] ponzii: New to Rails. What's the scope of a controller? It seems at first glance that a controller can service any arbitrary group of routes.
[23:31:15] Radar: ponzii: Typically though those routes are meant for a single "resource", i.e. the Post model