#RubyOnRails - 22 October 2017
« Back 1 day Forward 1 day »
[04:55:03] bijan_: Hi I want to spent part of my sunday to support open source. I thought a nice addition would be to make coffeescript 2.0.1 available to rails. So I saw that there are two repos: https://github.com/rails/coffee-rails and https://github.com/rails/ruby-coffee-script. Anyone here worked on these before?
[05:05:07] Skull0Inc: I haven't worked on any before. Isn't the coffee-rails one default for rails apps?
[05:37:31] bijan_: Unfortunately it hasn't been updated to support version 2 of coffeescript. I fixed that for now locally on my machine changing this file here: https://github.com/rails/ruby-coffee-script/blob/master/script/build-source-gem
[05:55:47] bijan_: Pull request is out for coffeescript 2 support: https://github.com/rails/ruby-coffee-script/pull/23
[06:26:54] blackcross: I am following https://www.railstutorial.org/book/advanced_login and am at Listing 9.27: ... My current app/controllers/sessions_controller.rb is https://0bin.net/paste/e+FTop1hJFA8wgSH#zPb+otQwC6Ci85G9thKQi-OhsoFkVpf2F3PQ2D3e62S , but when I try to goto the login page, I get the following error, "500 Internal Server Error
[06:26:54] blackcross: If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong." Here is the stacktrace: https://0bin.net/paste/mUNvVpo+OrDQDM7t#buRc-Bvz6wJeTkn8nExbnK4ObaCQMxG6n1QtHGRk8yY . I tried googling, "SyntaxError (/home/ubuntu/workspace/sample_app/app/controllers/sessions_controller.rb:7: syntax error,
[06:28:28] bijan_: blackcross this is the RubyOnRails Channel. The Tutorial is maintained by Michael Hartl
[06:42:18] bijan_: blackcross: I'm hanging around here for a few more minutes. If you have any further questions let me know :)
[06:44:19] ivanskie: I have an input with, placeholder=<%= "Search near " + request.location.city %>
[06:48:49] ivanskie: that worked. you know, blackcross that was my first instinct to try, but my editor didn't highlight it. so I was like ooh i guess this wont work...
[06:50:27] bijan_: concerning tooling: I like sublime and vscode for ruby. At work I sometimes use RubyMine but I don't really warm up with it.
[06:51:51] ivanskie: no one asked but i'll chime in too.. i've been using atom for a while. but been getting frustrated at loading time. same with vscode.
[06:53:39] ivanskie: well where i was going with that is.. anything built with Electron is the same thing
[06:54:48] bijan_: @blackcross and if you're new to rails development this script will setup your env including ruby version manager node, yarn, postgres, redis, etc etc: https://github.com/thoughtbot/laptop
[06:57:54] ivanskie: again. also opinionated, like using some services which are paid only. without free account. which you have to disable otherwise won't work in staging or production
[06:58:14] bijan_: ivanskie: are you using this: https://github.com/dvorka/hstr I really like it for reverse search
[07:00:07] blackcross: awesome, I am coming from django and learning rails. So far it's a faster syntax I've noticed.
[07:01:15] bijan_: blackcross: I played with django a few years ago but I never fully warmed up with it. then I used flask for that python project. Is there a specific reason you are switching?
[07:02:12] blackcross: bijan_: may lawyers suggested I code in a different language/platform to help prove against a potential IP infringement lawsuit.
[07:03:08] blackcross: the IP lawyer has been doing IP law for 20 years now, so going to take his advice :)
[07:03:17] ivanskie: if you are using the same algorithm, and if its IP, it doesn't matter what language you write it in
[07:03:28] bijan_: blackcross: okay so you worked in a domain where you gathered a lot of knowledge bound in python code and now want to do your own thing similar to this?
[07:04:28] blackcross: bijan_, eseentially I designed a warehouse management system for a pharmaceutical company written in django from the ground up. I want to do the same thing in rails for a company I am starting.
[07:07:09] bijan_: blackcross: no no I didn't work for a company using SAP. I was working for SAP ;D
[07:07:13] blackcross: that's essentially what i did for my past employer, not doing it for myself, good thing is, no NDA, IP agreement, or non-compete was signed :)
[07:08:50] blackcross: what did they think about rails? I am guessing you demo'd it to the R&D team that actually understood it.
[07:09:37] bijan_: but I had to use the JVM so in the middle of the project I migrated from MRI-Ruby to JRuby
[07:11:43] blackcross: I know I'll have to integrate with EDI eventually, and have seen what it looks like, but greatly lack in the knowledge of connectors, formatting, daemon hosting, etc.
[07:12:26] blackcross: it's an industry standard now, so of course it's a behimoth, and will probably only keep growing
[07:13:38] bijan_: blackcross: no i was full time not contract. but to be honest I'm not into that connector stuff anymore
[07:14:12] blackcross: Funny thing is their new 4HANA Cloud, that uses their own database system has zero comparisons to current databases. Appearntly, they are refusing to let people test it vs other databases, and are not providing connectors to 3rd party apps.
[07:18:40] bijan_: I also need to go for breakfast :) I'll be back later. @blackcross let me know how you proceed with your endeavour: https://twitter.com/BijanRahnema :)
[08:35:49] snickers: Hi, I have problem with bootstrap selectpicker, dropdown list not working for select input. Someone can help?
[13:18:28] Hexafox[I]: Is there any reason why you would want to add has_many to a model but not belongs_to to the other?
[13:44:48] maryo: I am just trying to understand few lines in my Rails Application (which is created long time back by another programmer). Can someone explain me this https://gist.github.com/anonymous/7b688f9f2e0e00ce7cb61eeaaa1e0c24
[14:51:45] pmunt: @maryo - It looks like its a hack to reload the whole page in development when using turbolinks
[21:48:13] xco: hi, not rails but i’m sure someone here uses sphinx, i need help installing it https://stackoverflow.com/questions/46879099/installing-sphinx-from-source
[23:17:54] hello9: is there a way to ensure a js function in 'onclick' finished firing before calling the next expect in capybara?