« Back to channel list

#RubyOnRails - 06 May 2016

« Back 1 day Forward 1 day »
[00:00:16] Megamos: has joined #RubyOnRails
[00:04:45] cydrobolt: has joined #RubyOnRails
[00:04:46] cydrobolt: has joined #RubyOnRails
[00:05:18] mices: has joined #RubyOnRails
[00:06:22] brent__: Rader: I changed to this https://gist.github.com/brentluna/9485c01d04a9dd490a2dd0141088b3ad seems to work
[00:07:44] aloneintheworld: has joined #RubyOnRails
[00:08:19] moeabdol: has joined #RubyOnRails
[00:08:48] rafaelfranca: has joined #RubyOnRails
[00:08:52] brent__: thank you for your help
[00:08:53] rafaelfranca: has joined #RubyOnRails
[00:11:23] quazimodo: has joined #RubyOnRails
[00:12:08] Radar: brent__: looks good to me :)
[00:14:29] nettoweb: has joined #RubyOnRails
[00:14:32] idefine: has joined #RubyOnRails
[00:14:54] idefine: has joined #RubyOnRails
[00:15:38] xcesariox: has joined #RubyOnRails
[00:16:44] doublemalt_: has joined #RubyOnRails
[00:22:32] et09: has joined #RubyOnRails
[00:22:38] et09: if i send out a broadcast via actioncable, is it bad practice to do it directly in the initiating controller? or should i put it behind some kind of job queueing mechanism (in which case, what?)?
[00:22:59] rafaelfranca: has joined #RubyOnRails
[00:23:16] et09: or several broadcasts actually
[00:24:10] macsteps: has joined #RubyOnRails
[00:27:43] bronson: has joined #RubyOnRails
[00:27:55] mwcmitchell: has joined #RubyOnRails
[00:30:09] FooMunki: has joined #RubyOnRails
[00:31:12] rafaelfranca: has joined #RubyOnRails
[00:34:17] adre: has joined #RubyOnRails
[00:35:24] wolfravenous_: has joined #RubyOnRails
[00:37:00] n008f4g_: has joined #RubyOnRails
[00:37:00] emachnic: has joined #RubyOnRails
[00:39:19] _Tariq: has joined #RubyOnRails
[00:40:13] kgrz: has joined #RubyOnRails
[00:42:24] _Tariq_: has joined #RubyOnRails
[00:42:59] _Tariq_: has joined #RubyOnRails
[00:47:08] pyface: has joined #RubyOnRails
[00:47:12] pyface: has left #RubyOnRails: ("Leaving")
[00:49:43] pawnbox: has joined #RubyOnRails
[00:50:13] WhereIsMySpoon_: has joined #RubyOnRails
[00:50:20] contradictioned: has joined #RubyOnRails
[00:50:27] many: has joined #RubyOnRails
[00:50:28] universa1: has joined #RubyOnRails
[00:51:27] FooMunki: has joined #RubyOnRails
[00:52:27] flashpoint9: has joined #RubyOnRails
[00:52:45] phrozen77: has joined #RubyOnRails
[01:02:14] RegulationD: has joined #RubyOnRails
[01:03:52] Ropeney: has joined #RubyOnRails
[01:05:10] LastWhisper____: has joined #RubyOnRails
[01:06:46] LastWhisper____: hey guys, im trying to get an image from assets/images/blah.jpg set as a variable in my :javascript block
[01:06:49] LastWhisper____: hopefully as a url of some sort
[01:06:59] LastWhisper____: It's all within a .haml file
[01:07:53] cd83x: has joined #RubyOnRails
[01:08:16] ur5us: has joined #RubyOnRails
[01:10:27] pawnbox: has joined #RubyOnRails
[01:12:18] LastWhisper____: var image = "#{ image_path('blah.jpg') }";
[01:17:14] emachnic: has joined #RubyOnRails
[01:18:02] patrick_star_2: has joined #RubyOnRails
[01:18:11] FooMunki: has joined #RubyOnRails
[01:18:30] emachnic_: has joined #RubyOnRails
[01:20:54] jfelchner: has joined #RubyOnRails
[01:29:07] DoctorMonocular: has joined #RubyOnRails
[01:30:36] cd83x_: has joined #RubyOnRails
[01:31:49] morenoh149: has joined #RubyOnRails
[01:33:07] xall: has joined #RubyOnRails
[01:36:00] nurey: has joined #RubyOnRails
[01:36:24] bazz_: has joined #RubyOnRails
[01:39:32] dikaio: has joined #RubyOnRails
[01:40:22] sb8244: has joined #RubyOnRails
[01:40:46] DoctorMonocular: has joined #RubyOnRails
[01:40:51] sb8244: Hey quick question about how Rails loads class info from the DB! This creates queries that start like `SELECT COUNT(*) FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = c.relnamespace`
[01:40:57] kgrz: has joined #RubyOnRails
[01:41:02] sb8244: Is there any way to preload this so it happens at a predictable point?
[01:41:18] sb8244: I'm locking a spec suite with DB query counts and this really flaps around a bunch
[01:41:41] cd83x_: has joined #RubyOnRails
[01:45:41] banisterfiend: has joined #RubyOnRails
[01:46:34] chipotle: has joined #RubyOnRails
[01:47:14] banisterfiend: yo -- i defined an activemodel::serializer for a model, and for its related controller i'm using respond_with(foo) however respond_with doesn't appear to use the serializer -- but if i use an explicit respond_to do |format| format.json { render json: foo } ; end then it does use the FooSerializer -- why doesn't respond_with use it? and how do i get it to use it?
[01:56:24] moeabdol: has joined #RubyOnRails
[02:01:06] sevenseacat: has joined #RubyOnRails
[02:04:07] nurey: has joined #RubyOnRails
[02:07:13] DoctorMonocular: has joined #RubyOnRails
[02:08:09] mwlang: banisterfiend: the action is most likely being called with html format (the default) rather than json.
[02:08:30] banisterfiend: mwlang but i am explicitly calling it with /1.json
[02:08:34] banisterfiend: that should force the json format, no?
[02:09:41] mwlang: What does the Processing by… line say on the console? HTML or JSON?
[02:09:55] mwlang: i.e. for me: Processing by PagesController#post as HTML
[02:17:31] banisterfiend: mwlang "Processing by Admin::OrganizationsController#show as JSON"
[02:17:42] banisterfiend: mwlang yet it's not using the serializer, it's just dumping out html
[02:18:48] neanderslob: has joined #RubyOnRails
[02:20:18] maletor1: has joined #RubyOnRails
[02:20:45] banisterfiend: mwlang this seems to be it https://github.com/rails-api/active_model_serializers/issues/491
[02:22:23] pawnbox: has joined #RubyOnRails
[02:23:45] JoshGlzBrk: has joined #RubyOnRails
[02:25:08] hahuang61: has joined #RubyOnRails
[02:28:18] bronson: has joined #RubyOnRails
[02:30:13] Caerus|Away: has joined #RubyOnRails
[02:32:43] nurey: has joined #RubyOnRails
[02:33:11] rakm: has joined #RubyOnRails
[02:38:40] linocisco: has joined #RubyOnRails
[02:39:08] linocisco: hi all, what is the best, fast and secure Web Design technology to be used with Rails?
[02:39:24] havenwood: linocisco: Ruby
[02:39:36] linocisco: havenwood, ruby is just language
[02:40:00] linocisco: havenwood, somebody told me Bootstrap
[02:40:04] et09: linocisco: if you are talking about frontend design, it's ambivalent to what you use on frontend
[02:40:05] havenwood: linocisco: I don't understand the question. Ah.
[02:40:24] havenwood: linocisco: "just a language"
[02:40:48] et09: if you ask my opinion, i don't like bootstrap, but it's got a large library etc. base
[02:41:10] et09: pure, skeleton, base, material, foundation etc. may be better choices
[02:41:23] et09: ink is interesting too
[02:41:40] kgrz: has joined #RubyOnRails
[02:44:10] tonytau: has joined #RubyOnRails
[02:44:31] tonytau: How is everyone today?
[02:45:11] GriffinHeart: has joined #RubyOnRails
[02:45:50] tonytau: Does anyone have experience with video uploads and rails? I am trying to perform resumable file uploads but not sure the best practice for this. I was planning on using tus.io with rubytus
[02:46:00] ensyde__: has joined #RubyOnRails
[02:46:25] et09: tonytau:resumable.js or similar
[02:46:33] et09: also flow.js
[02:48:19] tonytau: eto9 thanks for the suggestions
[02:48:37] d0nn1e: has joined #RubyOnRails
[02:48:47] nurey: has joined #RubyOnRails
[02:50:12] tonytau: eto9, I am storing the videos to s3. Any suggestions on how I should store the chunks until the video upload is complete? This task sucks because I am heroku guy, haven't done much deployment outside of it.
[02:51:02] et09: http://ink.sapo.pt/
[02:51:07] w0rd-driven: has joined #RubyOnRails
[02:52:52] linocisco: et09, what about squarespace? is it also good?
[02:57:48] et09: it's not a design framework
[02:58:01] et09: it's basically a templatable ecommerce site
[03:01:23] robbyoconnor: has joined #RubyOnRails
[03:02:10] SteenJobs: has joined #RubyOnRails
[03:03:02] Devalo: has joined #RubyOnRails
[03:05:28] benlieb: has joined #RubyOnRails
[03:08:13] zeel: has joined #RubyOnRails
[03:08:48] JoshGlzBrk: has joined #RubyOnRails
[03:12:11] braincrash: has joined #RubyOnRails
[03:16:34] sneakerhax: has joined #RubyOnRails
[03:19:56] _Tariq: has joined #RubyOnRails
[03:21:08] adre: has joined #RubyOnRails
[03:21:26] eljimmy: has joined #RubyOnRails
[03:22:24] maletor1: has joined #RubyOnRails
[03:25:13] azor: has joined #RubyOnRails
[03:30:32] pawnbox: has joined #RubyOnRails
[03:32:26] arathald_: has joined #RubyOnRails
[03:32:41] bruno-: has joined #RubyOnRails
[03:34:16] xall: has joined #RubyOnRails
[03:38:00] emachnic: has joined #RubyOnRails
[03:38:28] moeabdol: has joined #RubyOnRails
[03:38:35] G: has joined #RubyOnRails
[03:42:28] kgrz: has joined #RubyOnRails
[03:43:21] GnuYawk: has joined #RubyOnRails
[03:43:24] GnuYawk: has joined #RubyOnRails
[03:43:55] arathald_: has joined #RubyOnRails
[03:45:25] SparkMasterTape: has joined #RubyOnRails
[03:46:31] Radar: linocisco: !xy
[03:46:31] helpa: linocisco: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[03:46:33] bruno-: has joined #RubyOnRails
[03:47:16] SteenJobs: has joined #RubyOnRails
[03:47:50] linocisco: Radar, thanks for suggestion . btw, does rails have limitation to create sites like ebay?
[03:48:00] linocisco: Radar, thanks for suggestion . btw, does rails have limitation to create sites like ebay if users grow?
[03:48:49] Radar: linocisco: Did you actually read that URL or are you ignoring perfectly good advice?
[03:49:13] Radar: And yes, for what it's worth, Rails *can* scale
[03:50:58] ricsdeol: has joined #RubyOnRails
[03:51:05] pawnbox: has joined #RubyOnRails
[03:51:10] b|ackwolf: has joined #RubyOnRails
[03:51:19] linocisco: Radar, your second answer saved time
[03:53:49] xcesariox: may i ask where is the profile in rails?
[03:54:20] xcesariox: i try doing heroku create and push everything to heroku and have `puma` gem installed but it doesn't seems to be running on herkou, it says application error.
[03:54:30] xcesariox: may i ask where is the procfile
[03:54:43] SteenJobs: has joined #RubyOnRails
[03:54:48] xcesariox: i need to set something in the procfile in order for it to work, but where do i find this procfile
[03:54:58] xcesariox: sevenseacat
[03:58:00] kgrz: has joined #RubyOnRails
[03:58:31] xcesariox: Radar , sevenseacat both around?
[03:58:57] Radar: xcesariox: It should be at the root of your application. If it's not there, createit.
[03:59:05] Radar: xcesariox: If you want to know what content is in it, then Heroku's docs should help you
[03:59:16] Radar: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server
[03:59:40] xcesariox: Radar : is the `Procfile` = puma.rb?
[04:00:19] Radar: xcesariox: I am disappointed that you are asking a question without reading the documentation I spent time looking up for you.
[04:00:35] xcesariox: Radar : i am reading the same thing before i even asked you
[04:00:52] Radar: xcesariox: Please continue reading the guide.
[04:00:56] Radar: context: hi.
[04:00:58] xcesariox: Radar : if i ever ask , means i already looked it up but i don't understand it doesn't ask me to create a procfile but a puma.rb instead.
[04:01:10] context: like. /topic wow
[04:01:10] Radar: xcesariox: Did you get to the part in that guide where Procfile is mentioned?
[04:01:25] Radar: xcesariox: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#adding-puma-to-your-application
[04:01:29] context: radar: this is the BAC you tell me to close the lid and go to sleep ;)
[04:01:31] Radar: xcesariox: The first subheading there is "Gemfile"
[04:01:37] Radar: xcesariox: The second subheading is....?
[04:01:48] xcesariox: gem 'rails_12factor', group: :production
[04:01:54] xcesariox: Set Puma as the server for your web process in the Procfile of your application. You can set most values inline:
[04:02:36] Radar: xcesariox: Hooray :D
[04:02:39] helpa: Next question, please!
[04:02:58] context: i dont care, if i was literally poor living on the streets, id still come here for the humor
[04:04:11] xcesariox: has joined #RubyOnRails
[04:04:27] xcesariox: Radar: sorry, my textual 5 irc app hung.
[04:04:41] Radar: xcesariox: ok.
[04:04:48] Radar: xcesariox: So what precisely are you having difficulty with?
[04:05:00] Radar: xcesariox: You have the link to the guide which tells you 1) what a procfile is and 2) what to put into it
[04:05:05] xcesariox: heroku doesn't load what i run in my local when i push to heroku
[04:05:05] Radar: So I really don't get it. What is the problem?
[04:05:53] xcesariox: Radar : no, the heroku link that we both have doesn't tell us where to put procfile or to create it even, it doesn't say `touch Procfile` for e.g.
[04:06:02] xcesariox: Radar it just merely tells you about puma.rb to be created.
[04:06:06] Radar: xcesariox: Try putting it at the root of the application.
[04:06:23] xcesariox: Radar : so i do a touch Procfile ?
[04:06:34] Radar: xcesariox: I am not going to tell you how to create a file.
[04:06:39] Radar: I think it's something that you should know how to do by now.
[04:06:51] Radar: Eight Hundred and Fifty Three Days.
[04:07:00] Radar: You do know how to create a file, yeah?
[04:07:01] xcesariox: Radar : dude i know how to create files
[04:07:07] xcesariox: touch Procfile
[04:08:08] nettoweb: has joined #RubyOnRails
[04:12:41] context: what happen to trying
[04:12:48] context: heroku is still free no?
[04:13:00] context: at least 12-16 hours of they day?
[04:13:02] cd83x_: has joined #RubyOnRails
[04:14:16] azor: Yes, 17 hours I believe.
[04:14:26] azor: Plenty for small projects.
[04:14:39] azor: PostgresSQL database is free up to 10,000 records
[04:14:59] context: my first is due in 20 days, and so help me, if he ever hesitates to just FUCKING TRY something before asking, i may possibly smack him
[04:15:01] azor: They have a free Redis instance as well but I haven't used it before.
[04:15:07] jstransky: has joined #RubyOnRails
[04:18:55] pawnbox: has joined #RubyOnRails
[04:21:51] xcesariox: Radar : now comes the second issue, 2.3.1 : patchlevel 112, Rubygems : 2.5.1
[04:22:32] xcesariox: Radar : heroku runs the default 2.2.4 ruby, so i am confused here in the documentation. are they asking me to specify it in my gem file like gem 'ruby' , '2.3.1' ?
[04:22:53] xcesariox: Radar : either way, i did that, but it doesn't run and still defaults to 2.2.4, am i doing it wrongly?
[04:23:13] maletor1: has joined #RubyOnRails
[04:26:09] Radar: xcesariox: !g heroku ruby version
[04:26:20] helpa: Do your research before hand. Your question may be answerable with a quick Google search or by simply experimenting. If you're using a method in Rails, look it up in the API Docs or in the Official Guides.
[04:28:47] xcesariox: Radar : let me emphasise again, i google before i asked you. just that i don't get it or i am doing it wrongly.
[04:30:09] bronson: has joined #RubyOnRails
[04:31:38] dikaio: has joined #RubyOnRails
[04:34:41] idefine_: has joined #RubyOnRails
[04:35:54] duncannz: has joined #RubyOnRails
[04:37:16] nurey: has joined #RubyOnRails
[04:37:29] Radar: xcesariox: Show me your Gemfile please.
[04:37:30] Radar: in a gist.
[04:37:56] context: or here, either or
[04:38:12] xcesariox: Radar : https://gist.github.com/shaunstanislaus/a1099aa6cc77278d03a2c992effa6999
[04:38:36] Radar: xcesariox: Did you commit this and push it to Heroku? If so, show me the output from what happened once you did that>?
[04:38:43] xcesariox: Radar : i resolve the ruby, but the issue now is with the bundler
[04:38:49] context: that looks generated
[04:39:09] xcesariox: Radar : my bundler i updated it, deleted the gemfile.lock away and re `bundle install` but heroku still detecting it as 1.11.2
[04:39:20] Radar: xcesariox: That's because that's the version that Heroku uses.
[04:39:27] Radar: xcesariox: You can't change that version afaik
[04:39:28] context: is lock commited?
[04:39:32] xcesariox: it suppose to be 1.12.2
[04:40:06] xcesariox: Radar : then why it has an error message of this Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
[04:40:52] Radar: https://devcenter.heroku.com/articles/ruby-support#libraries
[04:40:53] xcesariox: Radar : when i already did `gem install bundler` and $bundler -v -> Bundler version 1.12.2
[04:40:59] Radar: You have a newer version of Bundler than Heroku does.
[04:41:07] Radar: This is just a warning that can be safely ignored.
[04:42:53] xcesariox: Radar : but my application still ain't running.
[04:42:58] xcesariox: https://sleepy-cove-55963.herokuapp.com/
[04:43:34] Radar: xcesariox: What does "heroku logs" tell you?
[04:43:39] xcesariox: Radar : i have Procfile, i have `config/puma.rb` with the default configs written on heroku docs.
[04:43:45] Radar: xcesariox: I'm still looking forward to seeing the deployment output too.
[04:44:36] xcesariox: Radar : https://gist.github.com/shaunstanislaus/1cd3027b37c6ca97912951d65c33c3c6
[04:45:25] xcesariox: Radar : deployment_output > https://gist.github.com/shaunstanislaus/5c70c365297d13894cd35a991bb8b0f9
[04:45:38] Radar: xcesariox: Did you commit your Gemfile and Gemfile.lock?
[04:45:49] Radar: https://gist.github.com/shaunstanislaus/1cd3027b37c6ca97912951d65c33c3c6#file-heroku_log-sh-L32
[04:45:50] Radar: This makes me think not
[04:45:53] xcesariox: eh i did git add .
[04:46:01] xcesariox: don't tell me that i have an ignore file that ignores gemfiles?
[04:46:15] Radar: Oh actually
[04:46:22] Radar: https://gist.github.com/shaunstanislaus/a1099aa6cc77278d03a2c992effa6999#file-gemfile-rb-L47
[04:46:27] Radar: Why are you specifying 0.8.0?
[04:46:36] Radar: That is from 2009.
[04:46:58] Radar: Remove the version specification, re-run bundle install, "git add Gemfile*", commit and push again.
[04:47:15] Radar: What gave me the hint is the end of that line: "(and ensure its version is at the minimum required by ActiveRecord)."
[04:49:23] xcesariox: Radar : ah okay! rebundling and pushing to heroku testing if it works.
[04:50:15] xcesariox: Radar : eh now something is showing on heroku web, i see The page you were looking for doesn't exist.
[04:50:24] Radar: xcesariox: Check heroku logs again
[04:50:46] chipotle: has joined #RubyOnRails
[04:53:28] xcesariox: Radar : https://gist.github.com/shaunstanislaus/8943864a23dd6f335d9a509974344bfe it says routing error, no routes for / GET
[04:53:42] Radar: xcesariox: Do you have a route for root?
[04:54:27] xcesariox: Radar : haha, i haven't uncomment root 'welcome#index'
[04:54:32] Radar: that'd be it
[04:54:47] Ropeney: I wonder if there is employment opportunity in giving help like this
[04:56:33] errakeshpd: has joined #RubyOnRails
[04:57:08] errakeshpd: HI my rails app is running on puma+nginx and angular files are put it in public/ folder but its not serving /public/index.html in production enviornment, its showing 'No route matches [GET] "/"' for any configuration is there for mentioning first page should be render as /public/index.html ?
[04:57:17] benlieb: has joined #RubyOnRails
[04:57:32] errakeshpd: nginx configuration
[05:00:34] xcesariox: Radar : thanks for being patience with me. one thing i forgot too was to generate the controller for the welcome#index besides uncommenting it.
[05:00:44] xcesariox: Radar : now it works like magic, thank you.
[05:00:56] y2mq37: has joined #RubyOnRails
[05:01:11] context: errakeshpd: well... you should problem route / to /inded
[05:01:42] context: radar: /topic MAGIC
[05:02:08] Radar: Ropeney: If there was, I would like to hear about it ;)
[05:02:27] fedexo: has joined #RubyOnRails
[05:02:44] sevenseacat: me too. i like free money.
[05:03:12] Radar: errakeshpd: http://stackoverflow.com/questions/11954255/nginx-how-to-set-index-html-as-root-file
[05:03:27] Radar: errakeshpd: my guess is that you're missing that index directive.
[05:04:25] chouhoulis: has joined #RubyOnRails
[05:04:55] dikaio: has joined #RubyOnRails
[05:07:50] pawnbox: has joined #RubyOnRails
[05:08:15] mwlang: Ropeney: lots of rails coaching employment opps. You just have to look for them.
[05:08:37] yfeldblum: has joined #RubyOnRails
[05:08:56] Ropeney: mwlang, fair enough; can't say I have looked too far.
[05:09:23] Radar: mwlang: must be willing to relocate to SF
[05:09:28] mwlang: Ropeney: programming bootcamps have been springing up all over the place.
[05:10:03] Ropeney: In Australia?
[05:10:20] mwlang: Ropeney: no idea down under. never been there. :-o
[05:10:37] mwlang: The spiders are huge and the sharks are vicious.
[05:10:59] dikaio: has joined #RubyOnRails
[05:11:02] DevastatingDave: has joined #RubyOnRails
[05:11:05] Ropeney: Yeah, can confirm
[05:11:21] Radar: But the beer is cold at least.
[05:11:23] errakeshpd: <Radar>https://gist.github.com/errakeshpd/b7332baea5da104b7117767271a80356
[05:11:40] Radar: errakeshpd: I don't see an index directive in that.
[05:12:15] errakeshpd: this line ? try_files $uri $uri/index.html index.html;
[05:13:08] Radar: Did my SO link not come throgh?
[05:13:18] Radar: [15:03:12] <Radar> errakeshpd: http://stackoverflow.com/questions/11954255/nginx-how-to-set-index-html-as-root-file
[05:14:59] mwlang: cold beers in oversized cans is ingenious
[05:16:12] errakeshpd: Sorry, 9 th line in the gist, is it a index directive configuration ?
[05:16:29] Radar: errakeshpd: Do you have something your IRC client that ignores stack overflow links
[05:16:33] Radar: legit question
[05:16:45] Radar: http://goo.gl/QMNyEI
[05:17:23] Devalo: has joined #RubyOnRails
[05:17:31] Bloomer: has joined #RubyOnRails
[05:19:34] mwlang: ACTION falls out of chair
[05:19:46] GriffinHeart: has joined #RubyOnRails
[05:19:53] bruno-: has joined #RubyOnRails
[05:20:00] errakeshpd: I added that line from the link you provided :(
[05:20:22] mwlang: just uncovered the erb template where *all* payment gateway logic is being performed almost entirely inside the ERB view file.
[05:20:54] Bloomer: has joined #RubyOnRails
[05:21:43] errakeshpd: <Radar>Thanks its worked.
[05:21:48] mwlang: apparently, the view sets it all up to be posted to remote server with callback url back to same view. when payment gateway processes and calls back, the view updates everything on the order record when user clicks “Finish” button to complete checkout.
[05:22:05] Radar: errakeshpd: good work :)
[05:22:14] Radar: mwlang: majestic
[05:22:32] mwlang: Well, that explains the 15 or so users each year that wonder why they didn’t get their orders even though they were billed!
[05:23:59] maletor1: has joined #RubyOnRails
[05:24:21] mwlang: I know I specialize in distress projects, but I think this has taken the cake for the year, if not the decade.
[05:26:25] RegulationD: has joined #RubyOnRails
[05:27:03] Ropeney: now that sounds like a fun job too mwlang
[05:28:40] mwlang: Ropeney: it’s usually fun. Sometimes not. one thing’s for sure: you learn everything you should never do in writing code. :-)
[05:30:39] mwlang: magic number for the day: <%= hidden_field_tag 'currency',208 %>
[05:30:59] edward__: has joined #RubyOnRails
[05:32:21] dikaio: has joined #RubyOnRails
[05:36:37] brianpWins: has joined #RubyOnRails
[05:36:57] dici: has joined #RubyOnRails
[05:38:00] ensyde__: has joined #RubyOnRails
[05:44:39] Cache_Money: has joined #RubyOnRails
[05:47:27] w0rd-driven: has joined #RubyOnRails
[05:49:02] sp1rs: has joined #RubyOnRails
[05:51:13] chipotle: has joined #RubyOnRails
[05:52:39] sp1rs: has joined #RubyOnRails
[05:53:01] arBmind: has joined #RubyOnRails
[05:57:11] DZj091231kld: has joined #RubyOnRails
[06:00:10] mikecmpbll: has joined #RubyOnRails
[06:05:48] xall: has joined #RubyOnRails
[06:08:58] brianpWins_: has joined #RubyOnRails
[06:11:30] triptec_: has joined #RubyOnRails
[06:14:07] sp1rs: has joined #RubyOnRails
[06:14:10] xall: has joined #RubyOnRails
[06:17:39] tvw: has joined #RubyOnRails
[06:20:36] bruno-: has joined #RubyOnRails
[06:21:56] Pazician: has joined #RubyOnRails
[06:22:34] arup_r: has joined #RubyOnRails
[06:24:45] maletor1: has joined #RubyOnRails
[06:27:22] pawnbox: has joined #RubyOnRails
[06:27:52] zacts: has joined #RubyOnRails
[06:28:22] zacts: so I take it that ruby on rails is better for larger projects, whereas sinatra is better for smaller scale projects?
[06:30:00] comrad: has joined #RubyOnRails
[06:31:29] bronson: has joined #RubyOnRails
[06:31:57] [dmp]: has joined #RubyOnRails
[06:32:01] tetraktys: has joined #RubyOnRails
[06:32:03] baweaver: in some ways yes, in others no
[06:32:31] baweaver: the gist of it is that Rails has a lot of predefined notions about how things should be done and enforces them heavily
[06:32:40] baweaver: Sinatra, not so much.
[06:33:18] cliff: has joined #RubyOnRails
[06:33:26] baweaver: Sinatra is far more of a roll your own framework type of idea. Rails already has it.
[06:33:47] janebootydoe: has joined #RubyOnRails
[06:34:13] pLaToOn: has joined #RubyOnRails
[06:34:43] baweaver: So to that note:Rails is easier for larger projects only in that you don't have to make design decisions it's already made.
[06:35:11] baweaver: and Sinatra is appears easier for smaller projects because they rarely need that much design
[06:36:10] cliff: has left #RubyOnRails: ()
[06:36:17] cliff: has joined #RubyOnRails
[06:36:39] tildes: zacts: we have a custom data modeling tool built on sinatra with js frontend, data models stored as text files. to give an example of a sinatra-based project technically is a web-dev project, but where rails might be an overkill
[06:37:15] tildes: << sinatra-based project that technically is a web-dev project
[06:37:49] baweaver: I would tend to argue that Rails is only overkill when you have your own ideas for how the design architecture should go
[06:37:50] tildes: it's run locally only, no user authentication, no db
[06:38:10] tildes: baweaver: fair enough :)
[06:38:10] baweaver: which fits within that usecase
[06:38:22] zacts: I see, that's cool
[06:38:41] baweaver: I find that more often than not I end up with ad-hoc rails in sinatra
[06:39:01] baweaver: so unless I have a unique case I just skip the sinatra phase
[06:39:04] zacts: I do want to eventually learn both, but which would be better to start with, or can I just dive into Rails now?
[06:39:12] zacts: and how much ruby shall I know before doing Rails?
[06:39:14] baweaver: Cause I want it my way
[06:40:11] baweaver: Read through Eloquent Ruby or The Well Grounded Rubyist
[06:40:29] baweaver: zacts actually, how developed is your programming skill?
[06:40:55] tetraktys: has joined #RubyOnRails
[06:41:10] cliff: has left #RubyOnRails: ()
[06:41:15] baweaver: if you're fresh off the bus I'd tend to recommend different things than if you were well grounded in Python or Perl already.
[06:41:49] arup_r: I am still keep agreeing with baweaver and again +1 ..Thanks for asking such a good question to zacts :) '
[06:42:07] cliff: has joined #RubyOnRails
[06:42:23] cliff: has left #RubyOnRails: ()
[06:42:37] arup_r: because the same question I asked myself many times, and couldn't convince myself. But now I am getting some logical thought.. so thanks every one
[06:42:50] pawnbox: has joined #RubyOnRails
[06:43:26] zacts: baweaver: I'm still much of a newbie in terms of programming skill, but I own both the well grounded rubyist (latest edition), and eloquent ruby
[06:43:35] zacts: let me explain where I'm at currently
[06:44:38] baweaver: I'd read through both of those, and consider Practical Object Oriented Development in Ruby
[06:44:44] zacts: I've been using Linux and FreeBSD for like 10 years, and I use vim. I'm wanting to learn programming and web devel more seriously now. I'm starting with UNIXy cli apps with Ruby for now, via the corresponding books on cli and txt from pragprog.
[06:45:00] zacts: next on my list is Eloquent and Black book, and then Metaprogramming and poodr
[06:45:14] zacts: so I'm not a complete newbie, but I need to bump up my skill set a bit
[06:45:15] baweaver: I would avoid Metaprogramming for a bit
[06:45:28] zacts: baweaver: but for rails knowing ruby is indeed useful?
[06:45:39] baweaver: Rails is written in Ruby after all
[06:45:46] baweaver: As far as rails...
[06:45:49] helpa: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[06:46:00] scepticulous: has joined #RubyOnRails
[06:46:01] sevenseacat: thats like asking if you can read an English literature novel without knowing englush
[06:46:01] zacts: baweaver: so what about the Rails 5 edition of that above book?
[06:46:07] zacts: I see sevenseacat
[06:46:11] sevenseacat: worry about Rails 5 when it comes out.
[06:46:12] baweaver: Rails 5 isn't out yet
[06:46:13] tildes: zacts: when I started with rails, my colleagues said that first you need a bit of ruby, then you need quite a bit of rails, and then you need a lot more ruby, and then you come back to rails
[06:46:19] zacts: I just had heard rumors of people trying for Rails first
[06:46:19] baweaver: kinda hard to write a book about it ;)
[06:46:24] sevenseacat: tildes: sounds fair.
[06:46:28] tildes: something along those lines. you need both, and you keep building both skills at the same time
[06:46:30] zacts: tildes: ah nice
[06:46:41] zacts: baweaver: so for now stick with the rails 4 book?
[06:46:50] ravi_sun66: has joined #RubyOnRails
[06:46:53] zacts: (once I get through ruby, unless rails 5 is out by then stable)
[06:47:05] zacts: cool, thanks! =)
[06:47:17] baweaver: even then, the changes from 4 -> 5 aren't major breaking for the most part
[06:47:26] baweaver: the concepts will be very similar
[06:47:34] zacts: baweaver: at what point will I know when I'm ready for metaprogramming? (and do you recommend poodr before metaprogramming)?
[06:47:48] sevenseacat: zacts: one thing at a time.
[06:47:52] baweaver: Give yourself a solid year of Ruby
[06:47:54] sevenseacat: no point planning out the entire roadmap now.
[06:47:59] tildes: ACTION googles poodr
[06:48:00] baweaver: focus on getting to know it first
[06:48:11] zacts: I'll do this!
[06:48:35] tildes: zacts: I like that book, definitely would recommend before metaprogramming
[06:48:46] baweaver: Metaprogramming tends to make very difficult to test code
[06:49:17] baweaver: and 9/10 you don't actually need it
[06:49:25] tildes: some say metaprogramming may be acceptable in libraries, and indeed rails uses it a lot internally, but oftentimes it's not something you want in your application code
[06:49:45] tildes: acceptable => useful, best way forward with particular issue
[06:50:00] pipework: tildes Unless your application is a library for someone else, of course. :D
[06:50:01] baweaver: Metaprogramming is effectively programs that write programs in a way
[06:50:29] tildes: pipework you got a point there :D
[06:50:38] zacts: sounds like sometimes it can get out of control, if you aren't careful
[06:50:57] baweaver: consider metaprogramming to be a grenade launcher
[06:51:06] zacts: anyway, thanks for the tips thus far, and I'll idle for now, and I'll be chatting on #ruby until I'm ready for rails
[06:51:27] baweaver: once you get through one of the Ruby books, jump in on Rails
[06:51:36] baweaver: just focus on getting one thing at a time done
[06:51:49] baweaver: otherwise you end up with 20 partially finished books on your table
[06:51:50] zacts: I'll do this
[06:52:06] zacts: heh, indeed
[06:52:46] tildes: zacts: make sure to try out the examples and write some code from day 1
[06:53:00] zacts: tildes: is this in regards to the rails book?
[06:53:02] sameerynho: has joined #RubyOnRails
[06:53:24] tildes: zacts: pretty much everything you want to use later
[06:53:30] sevenseacat: now that we've established ruby comes first, can the 'how to learn ruby' chatter go over there?
[06:54:31] artto: has joined #RubyOnRails
[06:54:41] zacts: ACTION transfers this conversation to #ruby
[06:55:29] scepticulous: has joined #RubyOnRails
[06:59:31] lubekpl: has joined #RubyOnRails
[07:00:12] AzaToth: has joined #RubyOnRails
[07:00:42] kareeoleez: has joined #RubyOnRails
[07:05:21] arup_r: has joined #RubyOnRails
[07:05:50] sp1rs: has joined #RubyOnRails
[07:08:09] lessless: has joined #RubyOnRails
[07:11:02] xcesariox: has joined #RubyOnRails
[07:16:33] cd83x: has joined #RubyOnRails
[07:17:47] morfin: has joined #RubyOnRails
[07:18:10] morfin: what do you usually use for administrator panel in your application?
[07:18:47] morfin: just asking because getting really annoyed by ActiveAdmin :)
[07:20:51] mytrile: has joined #RubyOnRails
[07:22:23] artto: has joined #RubyOnRails
[07:25:30] maletor1: has joined #RubyOnRails
[07:30:47] tildes: morfin: what's wrong with active_admin?
[07:31:34] tildes: ^activeadmin (I have just read about it, and would be interesting to hear some experiences)
[07:32:04] tagaulap: has joined #RubyOnRails
[07:33:43] TvL2386: has joined #RubyOnRails
[07:34:49] piotrj: has joined #RubyOnRails
[07:36:51] ariejan: has joined #RubyOnRails
[07:39:14] artto: has joined #RubyOnRails
[07:44:56] ravi_sun66: has joined #RubyOnRails
[07:45:22] ravi_sun66: has joined #RubyOnRails
[07:46:02] Devalo: has joined #RubyOnRails
[07:47:27] qejk: has joined #RubyOnRails
[07:47:53] petor: has joined #RubyOnRails
[07:53:10] dikaio: has joined #RubyOnRails
[08:00:06] podman: has joined #RubyOnRails
[08:00:21] vedu: tildes: it's not suited for production I'd say
[08:00:26] daxroc1: has joined #RubyOnRails
[08:00:42] darutoko: has joined #RubyOnRails
[08:00:56] tildes: vedu: why is that?
[08:01:11] vedu: tildes: Its just a GUI over your models- rarely that's what you want from an admin panel
[08:02:32] vedu: tildes: I use rails_admin and I face the same problem. I know I will have to move to a proper, self-made admin panel soon
[08:02:54] vedu: I am using it since my core app is not the admin panel and I just use it internally
[08:03:17] kgrz: I haven't tried this, but was pretty interested when it launched: https://github.com/thoughtbot/administrate
[08:03:39] artto: has joined #RubyOnRails
[08:03:50] adre: has joined #RubyOnRails
[08:05:18] Radar: !activeadmin
[08:05:18] helpa: *makes a cross with fingers and says a prayer*
[08:05:21] helpa: Please do not use active_admin, rails_admin or any other gems to build your admin interfaces. Instead, build it yourself. This will lead you to a safe path of understanding of the code, rather than to the Hell that is those gems.
[08:05:31] Radar: That is what is wrong with activeadmin.
[08:05:42] artto_: has joined #RubyOnRails
[08:05:44] Radar: It might seem like a good idea _now_ but it's a pain in the ass to customise later on.
[08:05:44] pawnbox: has joined #RubyOnRails
[08:05:51] Radar: and then you'll be stuck with it forever
[08:06:34] roshanavand: has joined #RubyOnRails
[08:10:13] jsrn_: has joined #RubyOnRails
[08:11:32] Pazician: has joined #RubyOnRails
[08:13:25] marr: has joined #RubyOnRails
[08:15:57] mikecmpbll: has joined #RubyOnRails
[08:20:00] htmldrum: has joined #RubyOnRails
[08:21:03] DoubleMalt: has joined #RubyOnRails
[08:23:06] SteenJobs: i’ve been happy with administrate so far, really lets you have complete flexibility
[08:23:20] bruno-: has joined #RubyOnRails
[08:24:52] mark_66: has joined #RubyOnRails
[08:26:16] maletor1: has joined #RubyOnRails
[08:29:37] jstransky: has joined #RubyOnRails
[08:31:21] artto: has joined #RubyOnRails
[08:32:35] edwinvdgraaf: has joined #RubyOnRails
[08:33:10] b|ackwolf: has joined #RubyOnRails
[08:33:46] bronson: has joined #RubyOnRails
[08:36:09] blackhuey: has joined #RubyOnRails
[08:36:48] neanderslob_: has joined #RubyOnRails
[08:39:01] snowy: has joined #RubyOnRails
[08:40:26] emachnic: has joined #RubyOnRails
[08:40:50] tetraktys: has joined #RubyOnRails
[08:41:13] zeel_: has joined #RubyOnRails
[08:42:44] arBmind: has joined #RubyOnRails
[08:45:01] tildes: SteenJobs: I suppose at thoughtbot they use their gems themselves, so they would cover at least some range of use cases
[08:45:17] SteenJobs: yea i think that’s fair
[08:45:48] SteenJobs: it’s written in a way that’s pretty barebones, so it just saves you the time of building it from scratch while allowing you to override and customize at will
[08:46:19] tildes: SteenJobs: sounds interesting
[08:47:13] tildes: perhaps a nice thing to look at even if you want to build your own
[08:47:33] Devalo: has joined #RubyOnRails
[08:49:13] habitullence: has joined #RubyOnRails
[08:51:36] ravi_sun66: has joined #RubyOnRails
[08:53:42] scepticulous: is there a way to access the implicit id of a 'parent' source in case of nested resource within the route. I have something like this: a resource parents and a nested resource children
[08:54:21] scepticulous: and I want to do resources :children, mycustom_parameter: "%{parent_id}-some stuff"
[08:55:04] scepticulous: actually the concreate case would be: resources :children, q: { parent_id: "%{parent_id}" }
[08:55:17] scepticulous: so that i can map a nested resource onto a ransack search
[08:55:22] yfeldblum: has joined #RubyOnRails
[08:56:16] scepticulous: however the %{} does not seem to work in this case
[08:56:56] chipotle: has joined #RubyOnRails
[08:59:06] edwinvdgraaf: has joined #RubyOnRails
[08:59:47] Ducky-: has joined #RubyOnRails
[09:00:15] pawnbox: has joined #RubyOnRails
[09:00:42] edwinvdg_: has joined #RubyOnRails
[09:01:31] ariejan_: has joined #RubyOnRails
[09:01:54] workmad3: has joined #RubyOnRails
[09:02:33] ravi_sun66: has joined #RubyOnRails
[09:06:41] sp1rs: has joined #RubyOnRails
[09:06:41] ariejan: has joined #RubyOnRails
[09:06:43] artto: has joined #RubyOnRails
[09:08:17] ftj: has joined #RubyOnRails
[09:09:46] orangey: has joined #RubyOnRails
[09:12:09] ravi_sun66: has joined #RubyOnRails
[09:12:28] FooMunki: has joined #RubyOnRails
[09:12:40] njero: has joined #RubyOnRails
[09:16:42] defsdoor_: has joined #RubyOnRails
[09:17:51] roamingdog: has joined #RubyOnRails
[09:19:55] ur5us: has joined #RubyOnRails
[09:20:13] xall: has joined #RubyOnRails
[09:20:24] suffice: has joined #RubyOnRails
[09:24:09] bruno-: has joined #RubyOnRails
[09:27:06] maletor1: has joined #RubyOnRails
[09:31:40] lessless: has joined #RubyOnRails
[09:38:52] PaulePanter: Hi. What’s the correct term for sum(&:column) and s(:column)?
[09:38:59] PaulePanter: *sum(:column)?
[09:39:12] PaulePanter: http://api.rubyonrails.org/classes/ActiveRecord/Calculations.html#method-i-sum
[09:39:26] PaulePanter: In database calculation?
[09:39:56] blackmes1: has joined #RubyOnRails
[09:40:13] ravi_sun66: has joined #RubyOnRails
[09:40:23] PaulePanter: Ruby in proc calculation?
[09:44:36] PaulePanter: http://api.rubyonrails.org/classes/Enumerable.html#method-i-sum
[09:44:55] ariejan: has joined #RubyOnRails
[09:48:52] der-landgraf: has joined #RubyOnRails
[09:57:05] ariejan: has joined #RubyOnRails
[10:01:14] morfin: has joined #RubyOnRails
[10:01:56] sp1rs: has joined #RubyOnRails
[10:04:30] nickenchuggets: has joined #RubyOnRails
[10:04:40] chipotle: has joined #RubyOnRails
[10:05:18] astronaute: has joined #RubyOnRails
[10:05:30] apofis: has joined #RubyOnRails
[10:06:03] morfin: customization of ActiveAdmin require rewriting all stuff anyway)
[10:06:07] astronaute: has left #RubyOnRails: ()
[10:07:47] sp1rs: has joined #RubyOnRails
[10:11:08] sp1rs: has joined #RubyOnRails
[10:17:44] artto: has joined #RubyOnRails
[10:24:45] artto: has joined #RubyOnRails
[10:25:44] bruno-: has joined #RubyOnRails
[10:26:50] finnnnnnnnnnn: has joined #RubyOnRails
[10:27:52] maletor1: has joined #RubyOnRails
[10:28:42] ferr: has joined #RubyOnRails
[10:29:13] ferr: Hey guys, I use capistrano to deploy, and nginx + passenger as web servers, however, after deployment my app is serving code from old release, could anyone help me regarding this?
[10:30:23] sp1rs: has joined #RubyOnRails
[10:30:26] finnnnnnnnnnn: I’m trying to create a simple method that accepts a block, but it’s not being recognised. ArgumentError at / wrong number of arguments (given 0, expected 1)
[10:30:27] finnnnnnnnnnn: https://gist.github.com/fionnbharra/86d809a513999e8103b401156c1e7c44
[10:30:30] roamingdog: has joined #RubyOnRails
[10:31:02] finnnnnnnnnnn: is my syntax wrong?
[10:31:22] Ergo: has joined #RubyOnRails
[10:34:21] Axilla: has joined #RubyOnRails
[10:34:34] Axilla: anyone here managed to get bootstrap-react-rails working in a 4.2+ rails project?
[10:35:40] bronson: has joined #RubyOnRails
[10:35:44] Axilla: sorry react-bootstrap-rails
[10:35:49] tbuehlmann: finnnnnnnnnnn: yeah, that's not right. try this: https://gist.github.com/tbuehlmann/2912baef8e3ea8c224eb6fbc0338f983
[10:37:25] morfin: i think better to add condition if block_given?
[10:42:49] finnnnnnnnnnn: tbuehlmann: oh, I’m not in rails - capture is not defined (guess I’m in the wrong room, sorry)
[10:43:02] tbuehlmann: not in rails but using erb then?
[10:44:43] sameerynho: has joined #RubyOnRails
[10:44:48] pawnbox: has joined #RubyOnRails
[10:47:10] finnnnnnnnnnn: tbuehlmann: yeah, sintra partials
[10:47:34] finnnnnnnnnnn: trying to do this https://github.com/yb66/Sinatra-Partial/pull/12
[10:47:39] finnnnnnnnnnn: with his fork of the gem
[10:48:11] finnnnnnnnnnn: I should really just give up and use rails, same thing happens everytime. start sinatra app, miss some rails fucniotality, change to rails app
[10:49:52] cd83x: has joined #RubyOnRails
[10:50:08] rodfersou: has joined #RubyOnRails
[10:51:35] mdw: has joined #RubyOnRails
[10:53:08] ravi_sun66: has joined #RubyOnRails
[10:53:20] Axilla: i'm working on a rails/react project for a client
[10:53:28] Axilla: they insisted we use react because its the new buzzword
[10:53:34] Axilla: its pretty amazing but it feels weird in a rails app
[10:54:06] Axilla: its hard to get out of the habbit of wanting to do unobtrusive javascript and just "the rails way"
[10:54:23] Tichodroma: has joined #RubyOnRails
[10:54:45] Axilla: right now the only way i can get bootstrap to work too is to run jquery
[10:54:51] Axilla: and do it that way.. which seems so wrong to me
[10:55:07] Axilla: but bootstrap-react just flat doesn't work.. i require it, do everything and the namespace method doesn't exist
[10:55:33] Axilla: its just a webpack of bootstrap-react for rails
[10:56:19] Megamos: has joined #RubyOnRails
[10:56:53] TheMonster: For using the russian doll caching, if the model table didn't contain an updated_at column and it was just added lately so all values in it are nil, would things work correctly or I need to set updated_at for all rows to be Time.now or someting so that it works?
[10:57:33] DaniG2k: has joined #RubyOnRails
[10:59:14] n008f4g_: has joined #RubyOnRails
[10:59:47] Pazician: has joined #RubyOnRails
[11:00:12] netzfisch: has joined #RubyOnRails
[11:00:18] blackmes1: has joined #RubyOnRails
[11:00:39] arup_r: has joined #RubyOnRails
[11:01:54] artto: has joined #RubyOnRails
[11:03:34] nettoweb: has joined #RubyOnRails
[11:05:21] srinidhi: has joined #RubyOnRails
[11:09:01] daveomcd: has joined #RubyOnRails
[11:10:14] daveomcd: I was looking for a gem for autosaving forms. I found both sisyphus-rails and garlicjs-rails; however, there hasn't been any commits to them in years. Should I be nervous about using them since they haven't been updated in so long?
[11:10:48] Axilla: yea you shouldn't
[11:10:57] Axilla: they most likely don't work anyway
[11:11:01] Axilla: they were probably made for rails 3
[11:11:22] Axilla: or even rails 2 if tis been "years" since rails is on a 5 year release cycle i think for major versions
[11:11:22] DaniG2k: autosaving forms?
[11:11:39] DaniG2k: isnt' that something Reactjs or Angular might do?
[11:11:42] Axilla: forms that save as you type maybe? dunno
[11:11:54] Axilla: React over Angular all day
[11:12:12] Axilla: i only have a smidge of react experience but its like night and day difference
[11:12:28] Axilla: being able to render react components into a rails frontend is freaking cool
[11:12:41] Axilla: i dunno if i'm doing it right or what, but i'm trying to make the best of both worlds
[11:12:53] Axilla: keeping the base layout and stuff to rails and the components of the page in React
[11:13:10] Detch: has joined #RubyOnRails
[11:13:10] DaniG2k: tbh React and Angular seem a bit hyped up to me
[11:13:15] DaniG2k: but maybe I haven't used them enough
[11:13:19] Axilla: kids and their buzzwords
[11:13:27] Axilla: react is pretty freaking cool though
[11:13:43] Axilla: i think it has potential to be the first js library that hangs around
[11:13:49] Axilla: even node is starting to get lots of hate
[11:13:59] Axilla: the rest of them will die off eventually
[11:14:01] sevenseacat: jquery says hello.
[11:14:10] Axilla: yea but they're completely different
[11:14:23] DaniG2k: yeah if I can I stick to pure jQuery
[11:14:24] Axilla: jquery is great for small things, but highly complex apps even the jquery developer uses react now
[11:14:49] DaniG2k: basically Rails pwns them all
[11:15:03] DaniG2k: and will outlive them all
[11:15:04] Axilla: i love rails
[11:15:23] ravi_sun66: has joined #RubyOnRails
[11:15:45] tens0r: has joined #RubyOnRails
[11:15:53] Axilla: but the virtual dom is pretty amazing speed wise
[11:16:31] tetraktys: has joined #RubyOnRails
[11:17:04] Axilla: its interesting to build a rails app with react frontend that's for sure
[11:17:07] Axilla: definatley different.
[11:17:08] TheMonster: Reasking: For using the russian doll caching, if the model table didn't contain an updated_at column and it was just added lately so all values in it are nil, would things work correctly or I need to set updated_at for all rows to be Time.now or someting so that it works?
[11:17:35] Axilla: and like i said doesn't feel completely sane in a rails app because of "The Rails Way" and i'm sure DHH would lose his shit over it.
[11:17:43] DaniG2k: axilla have you come across a good react + rails tutorial? I have only dabbled with it but don't know how to do testing etc
[11:17:54] Axilla: i'm pretty much doing it myself
[11:17:59] Axilla: just figuring it out..
[11:18:22] Axilla: and like i said, i'm having issues w/ some gems that i need.. just flat out don't seem to work and not a single person has asked a question on it
[11:18:27] Axilla: and the dev isn't responding to much
[11:18:37] Axilla: there's been a pull request from bootstrap-react folks for 2 weeks for a version upgrade
[11:18:41] Axilla: and dude still hasn't merged it..
[11:18:53] Axilla: kind of annoying
[11:18:59] DaniG2k: probably on vacay
[11:19:35] jeanlinux: has joined #RubyOnRails
[11:19:37] DaniG2k: axilla: seems you can integrate it all quite nicely with Coffeescript
[11:19:43] DaniG2k: axilla: https://www.airpair.com/reactjs/posts/reactjs-a-guide-for-rails-developers
[11:20:37] Axilla: coffee :(
[11:20:47] Axilla: the only lang preprocess i like is Sass
[11:20:53] Axilla: anything else can just die an evil death
[11:20:58] Axilla: haml, coffee, eck
[11:21:03] DaniG2k: Coffee is nice :S
[11:21:09] DaniG2k: haml can die
[11:21:09] Axilla: no thanks
[11:21:36] ravi_sun66: I use coffee just for rails
[11:21:41] Axilla: had to many experiences where i write something in coffee/haml and it doesn't look/act the same if i recreate it exactly in HTML or JS
[11:22:11] Axilla: just adds another layer for me to worry about in troubleshooting
[11:22:27] Axilla: i prefer good ol fashioned HTML and JS/JQuery if i have
[11:22:29] ravi_sun66: maybe you're not doing it wright way
[11:22:35] Axilla: probably?
[11:22:42] Axilla: its just not as readable to me
[11:22:51] Axilla: to many -> type things
[11:22:58] Axilla: this that and the other.. just not for me
[11:23:16] DaniG2k: I'd like to get a job as a dev (even junior would be ok since I only have sys-admin experience). Do any of you know of what projects I should work on to showcase that I can get the job done?
[11:23:21] Axilla: DaniG2k: i have react working just fine
[11:23:27] Dysp: has joined #RubyOnRails
[11:23:28] Axilla: without coffee its pretty easy to setup
[11:23:32] Dysp: Hi there. Why doesn't this work? https://gist.github.com/Dysp/bda88f62941a4db5c6febba4353a2e7a
[11:23:41] Dysp: I forgot and end in the end. It's there.
[11:24:14] DaniG2k: Dysp: this is wrong validates :phone, format: { with: /\d/, message: "allows only numbers" }
[11:24:43] DaniG2k: it needs a +
[11:24:55] Axilla: DaniG2k: take some jobs on Upwork(oDesk)
[11:25:05] Axilla: i've been freelancing through oDesk for a few years now off and on
[11:25:06] DaniG2k: well, not wrong but just inaccurate
[11:25:13] Axilla: and i have no problems getting work at $65+/hr
[11:25:21] DaniG2k: axilla: hmmm interesting I'll have a look. Thanks
[11:25:23] Dysp: Well, okay. Hehe, but wasn't that part I was asking about ^^
[11:25:23] Axilla: in fact i am turning work down left and right because i have to much
[11:25:28] Axilla: just start lower
[11:25:35] Axilla: a few years ago i started at $25/hr
[11:25:40] sevenseacat: Dysp: you didnt ask about anything
[11:25:45] Axilla: did small jobs and everytime i completed one added $10/hr
[11:25:47] DaniG2k: I have actually hired several writers from upwork
[11:25:50] DaniG2k: back in the day
[11:25:51] Axilla: and just kept working my way up
[11:25:55] ravi_sun66: axilla: how to start ?
[11:25:58] Dysp: Oh okay. Well. It doesn't ignore the validation.
[11:26:07] Dysp: When updating
[11:26:14] bruno-: has joined #RubyOnRails
[11:26:19] ravi_sun66: I mean any tips on getting the first work?
[11:26:35] Dysp: Cannot update because it checks for uniqueness.
[11:26:43] sevenseacat: Dysp: whats in `subject_params` ?
[11:26:45] Axilla: i can say with a certainty people are getting tired of paying devs cheap prices from india and packistan.. they're tired of the language barriers and poor quality code so they're paying higher prices for english native speaking devs to work with
[11:26:46] artto: has joined #RubyOnRails
[11:26:52] Axilla: pakistan*
[11:27:04] Dysp: params.require(:subject).permit(:name, :sex, :initial, :email, :phone, :born_on, :scale_weight, :scale_height, :medicine, :known_disease, :family_disposition, :other)
[11:27:09] Axilla: i've noticed a clear increase lately in the freelance sites
[11:27:11] thorgi: anyone using delayed_job and knows why a single worker would lock all jobs (instead of them running in parallel)?
[11:27:25] DaniG2k: "Who we are looking for; track record must haves3+ years’ experience in a scripting language such as Rails, Python or PHP, familiarity with concepts such as MVC and an understanding of web frameworks."
[11:27:29] DaniG2k: budget $100
[11:27:32] DaniG2k: are they nuts?
[11:27:41] ravi_sun66: axilla: I'm trying to get one since last 2 months
[11:27:46] Axilla: i literally only look at jobs in the "expert" category
[11:27:58] Axilla: ravi_sun66 what does your profile look like?
[11:28:00] sevenseacat: Dysp: can we see some logs or something, to see the code in action?
[11:28:14] TheMonster: For using the russian doll caching, if the model table didn't contain an updated_at column and it was just added lately so all values in it are nil, would things work correctly or I need to set updated_at for all rows to be Time.now or someting so that it works?
[11:28:18] FailBit: has joined #RubyOnRails
[11:28:21] pawnbox: has joined #RubyOnRails
[11:28:28] ravi_sun66: I have 1 year of exprnc. in RoR
[11:28:30] Axilla: DaniG2k: you have to look at their hiring history to find the best ones.. find ones with jobs where they've paid $35-50/hr already and you're good to go ;)
[11:28:33] sevenseacat: TheMonster: it would have been easier for you to try it by now, the amount of time you've been sitting here asking the same questions
[11:28:38] maletor1: has joined #RubyOnRails
[11:28:52] Axilla: i sent out 15 proposals in one day, and got 4 jobs offers all of $55+/hr
[11:28:57] FailBit: ravi_sun66: but how much experience not using abbreviations when you talk
[11:29:03] Axilla: i pick the job i want and do it again when i'm done =/
[11:29:08] TheMonster: sevenseacat: sorry. Thought no one saw it and actually when I saw you writing thought you might know and haven't seen it. Sorry :(
[11:29:16] Dysp: sevenseacat: What would you like?
[11:29:17] DaniG2k: axilla: thanks
[11:29:26] sevenseacat: Dysp: the logs of you hitting this update action
[11:29:31] sevenseacat: with what happens in the response
[11:30:06] morfin: ActionMailer::Base class is strange - you can't directly instatinate it because new is private(wtf?)
[11:30:33] Dysp: sevenseacat
[11:30:34] Dysp: https://gist.github.com/Dysp/b3785ae83d4e7ede0fa77e079cacf5f6
[11:30:35] Dysp: Like this?
[11:30:39] sevenseacat: morfin: you definitely should not instantiate it.
[11:31:00] sevenseacat: Dysp: thats the create action, not update.
[11:31:15] Dysp: That could indeed be the issue.
[11:31:18] Dysp: Looking into it
[11:31:25] Dysp: (Im a newb, in case you haven't figured that out)
[11:31:56] morfin: but what if i wanted to test that from cnsole created with rails c?
[11:32:04] sevenseacat: morfin: test what?
[11:32:52] morfin: class and members
[11:33:10] sevenseacat: morfin: I don't know what you're trying to do, sorry.
[11:35:35] pawnbox: has joined #RubyOnRails
[11:39:08] artto: has joined #RubyOnRails
[11:39:43] sp1rs: has joined #RubyOnRails
[11:40:50] flashpoint9: has joined #RubyOnRails
[11:41:25] FooMunki: has joined #RubyOnRails
[11:42:08] adac: has joined #RubyOnRails
[11:42:09] htmldrum: has joined #RubyOnRails
[11:43:13] adac: has joined #RubyOnRails
[11:44:01] adac: Is it possible to set only one single directory for testing in rspec_helper.rb? If yes, how?
[11:44:46] ldnunes: has joined #RubyOnRails
[11:45:24] Dysp: sevenseacat
[11:45:28] Dysp: Started PATCH "/subjects" for ::1 at 2016-05-06 13:43:36 +0200
[11:45:28] Dysp: ActionController::RoutingError (No route matches [PATCH] "/subjects"):
[11:45:32] Dysp: What am I looking for here?
[11:46:01] TheMonster: Just for the record. It seems that fragment caching works correctly when updated_at = nil, since I'm seeing lots of READ /views/fragments in the logs.
[11:46:04] Axilla: you need to set your method to a POST
[11:46:10] Axilla: unless you're trying to do a update
[11:46:13] Axilla: then you do a PUT or PATCH
[11:46:15] TheMonster: fragment --> Russian doll *
[11:46:27] Axilla: or if you're trying to do a PATCH/PUT you don't have a route for update
[11:46:47] Dysp: I am trying to do an update
[11:47:01] Dysp: Where is this to be defined?
[11:47:14] Axilla: then you need to add a update resource to your routes.rb in config for your controller
[11:47:42] netzfisch: has joined #RubyOnRails
[11:48:02] FailBit: I'm having some trouble with sequences and my schema
[11:48:15] Dysp: The guide I follow don't do this. I have only resources :subjects and that is all in routes.rb
[11:48:15] Axilla: something like resources :subjects, :only => [:index, :update, :create, :edit, :show]
[11:48:19] Axilla: or whatever resources you want
[11:48:33] Axilla: you can also do a block and include collections and members
[11:48:41] Axilla: you should read the tutorial on "Rails routing from the inside out"
[11:48:45] Dysp: Man this programming shiet is hard
[11:48:46] Axilla: or whatever its called on the rails website
[11:48:47] FailBit: I first tried the pg_sequencer gem and it got the new sequence but it wouldn't install the sequence in the test env
[11:48:53] Axilla: its easy if you read docs
[11:49:04] Axilla: and learn it, instead of relying on other people to tell you what to do
[11:49:09] Axilla: you gotta commit it to memory
[11:49:15] Axilla: if you don't commit it to memory you'll never learn it
[11:49:29] FailBit: then I tried using structure.sql and that also did not seem to work correctly
[11:49:46] Dysp: Trust me, it is hard when I have no prior knowledge on programming whatsoever.
[11:49:57] Dysp: I am doing everything I can to learn, but it is just so steep a learning curve.
[11:50:35] FailBit: as in, I loaded the structure in the test env, then pg_dump'd it out again and the sequence I had defined was missing
[11:51:06] Axilla: well, if it were easy everyone would do it :)
[11:51:17] Axilla: because best job market to be in, hands down
[11:51:20] Axilla: everything runs on code these days
[11:51:31] Axilla: and when we're all working for robot overlords
[11:51:36] roamingdog: has joined #RubyOnRails
[11:51:38] Axilla: we can at least be their mechanics
[11:51:42] xall: has joined #RubyOnRails
[11:51:56] Axilla: its the job least likely to be automated out of existance
[11:54:04] artto_: has joined #RubyOnRails
[11:55:28] Dysp: HEhe, yeah, problem is - I am not doing this to be in the job market
[11:55:31] Dysp: I'm a doctor ^^
[11:55:56] sameerynho: has joined #RubyOnRails
[11:56:45] Devalo: has joined #RubyOnRails
[11:59:08] Axilla: then you should have no problems learning :D
[11:59:19] tildes: Dysp: learning coding just for fun?
[11:59:29] Dysp: Yes and no
[11:59:33] Axilla: you have to think logically about your programming problems
[11:59:45] Dysp: I don't understand the whole picture - that is the problem.
[11:59:50] Axilla: so when you have a problem break it down in to many small problems
[11:59:58] Axilla: and solve each small problem until the sum of the parts = the whole
[12:00:07] Dysp: I am learning how to code for two reasons - I like to learn new stuff and I always have some ideas that can be solved with coding.
[12:00:17] Axilla: so, rails works on Model, View, Controller architechture
[12:00:25] tildes: Dysp: well both are great reasons
[12:00:32] Axilla: research that and it will help you understand the big picture
[12:00:44] jeanlinux: has joined #RubyOnRails
[12:00:57] Axilla: Model = Data, Controller controls the flow of data from the model to the view
[12:01:08] Axilla: the view handles input responses and rendering
[12:01:15] tildes: Dysp: have you already been pointed to well-grounded rubyist and rails 4 in action? if not, may I have the honour :)
[12:01:18] Axilla: and passes that back to the controller which does what it needs to do w/ it
[12:01:25] Axilla: that's the simple way to put it.
[12:01:32] tildes: Dysp: personally I like learn ruby the hard way too
[12:01:41] Axilla: also start w/ ruby before rails
[12:01:48] Axilla: the more ruby you know, the better you'll be at rails
[12:01:51] Dysp: And at the moment I have one really good idea that could potentially land me some succes in entrepenourship, however I don't have the money to just pay off programmers. And even if I did, I don't like that approach. I would like to be the connecting link between software-engineers and the medical profession.
[12:01:51] tildes: (which assumes you know nothing, but with enough drilling and brain picking will make you learn)
[12:02:25] Dysp: I do know nothing. And I did start with Ruby. I made a script in Ruby which works. Awfully. But it works.
[12:02:38] Axilla: i recommend the codeschool ruby series
[12:02:49] Axilla: i used it a few years ago to get up to speed and it did just fine
[12:02:51] Dysp: tildes: What do you mean to point me towards x?
[12:03:06] Dysp: Did you have prior knowledge in programming?
[12:03:19] Axilla: i've been programming since i was about 12 years old
[12:03:23] Axilla: i'm 34 now..
[12:03:31] Axilla: i know about 20 languages.
[12:03:44] tildes: Dysp: these are useful resources in case you haven't yet heard about them
[12:03:51] Axilla: once you learn the basics of programming you can apply it to any language then it becomes about syntax
[12:04:26] Dysp: Yes.. I am following a lecture series on programming from Stanford on Youtube
[12:04:27] Axilla: Dysp: have you gone through this yet? http://guides.rubyonrails.org/getting_started.html
[12:04:50] Dysp: It actually helps me getting into the whole idea of programming which seems natural and logical to you, but is really hard for a beginner.
[12:04:55] Dysp: Yes, that is what I had problems with :)
[12:05:15] Axilla: http://railsforzombies.org/
[12:05:15] Dysp: And I actually managed to fix my problem, however I don't understand what I did and why it didnt work, which annoys me.
[12:05:36] tildes: Dysp: sounds like you need more ruby :)
[12:05:40] Dysp: But allow me to make you cringe.
[12:05:53] Axilla: Dysp: its because you didn't have a route setup for "PUT/PATCH"
[12:06:03] Axilla: routing makes URL's have an endpoint
[12:06:11] GodFather: has joined #RubyOnRails
[12:06:12] Axilla: that you hit, without it it goes nowhere
[12:06:32] Dysp: Well, yes.-
[12:06:41] Axilla: you can do requests in various types depending what you want to accomplish.. a "GET" request is exactly what it sounds like its to GET data and display
[12:06:52] Axilla: a POST/PUT/PATCH are used to CREATE data or UPDATE data
[12:06:52] Dysp: Well, allow me to make you cringe about the ineffiency at the place I work.
[12:06:58] Dysp: At the moment I work in research.
[12:07:05] VeryBewitching: has joined #RubyOnRails
[12:07:05] Axilla: in a rails app you have a basic CRUD setup(Create, Read, Update, Destroy)
[12:07:15] Axilla: those are the actions you can take against data
[12:07:37] Axilla: everything is about putting data into a database and using that data to make your users lives easier by displaying it in a sane way
[12:07:43] blackmes1: has joined #RubyOnRails
[12:07:57] Axilla: the backend is the easy part.. coming up with good UI/UX is where the big wins come in.. its all about execution of your idea.
[12:08:07] Axilla: at least thats how i see it :)
[12:08:11] Dysp: Basicly it is University funded research where everybody are either medically educated or educated in sport science.
[12:08:21] Axilla: hmmm interesting
[12:08:22] Dysp: Thank you for your explaination. It helps.
[12:08:41] VeryBewitching: Well... if the server-side code is ineffective and slow, your UI could be the bomb and your app will still be terrible :D
[12:08:46] Axilla: the most important thing to remember is ideas aren't worth anything.. don't be affraid to talk about your idea.
[12:08:48] Dysp: And they have been going on for yeeeears; like 15-20 years by now with the current way of working.
[12:09:07] tetraktys: has joined #RubyOnRails
[12:09:10] Dysp: Basicly we do a lot of testing which are the exact same; scans, blood samples and so on.
[12:09:18] Dysp: How do you think all this data is stored?
[12:09:31] Axilla: in a excell spreadsheet of course
[12:09:48] Dysp: Exactly.
[12:09:54] Axilla: when i worked for DHS
[12:10:00] Axilla: we had spreadsheets inside of spreadsheets
[12:10:02] Axilla: crazyness
[12:10:12] Dysp: And not ONE excel spreadsheet, but SEVERAL.. Actually one for each research project of which there may be 50-100.
[12:10:26] Axilla: yea sounds like you're onto something mate ;)
[12:10:29] VeryBewitching: Ya, definitely build an app for that.
[12:10:33] Dysp: All same tests, different research projects and different test subjects.
[12:10:41] Axilla: sounds like its ripe for disruption
[12:10:58] DaniG2k: has joined #RubyOnRails
[12:11:12] Dysp: Now.. If you wanna compare lets say Subject 2 from Research project 20 with Subject 4 from research prject 50, then you gotta get your Excel on.
[12:11:17] VeryBewitching: I just converted a process managed weekly by several spreadsheets into a web-based system, they were managing 300 employees in a market research call center with Excel.
[12:11:26] Dysp: And.. and.. The possibilities here are endless as to what you can use this data for.
[12:11:29] Dysp: Right now its just sitting there.
[12:12:14] Dysp: I introduced Trello to my superiors
[12:12:24] Dysp: And now we use that to actually organize test subjects.
[12:12:28] Dysp: Before it was done in.. Excel.
[12:12:31] Dysp: Which no one updated
[12:12:41] Dysp: So it was basicly in the minds of the people who did it.
[12:12:54] VeryBewitching: It could be worse Dysp, they could have been doing all of this in Access.
[12:12:58] Dysp: And this is just one department.
[12:13:08] Dysp: Imagine the entire scale of the university
[12:13:42] Dysp: And problem is - these scientists are fricking brilliant. They only just know whats in their field.
[12:14:06] FailBit: scientists are well known for their inability to use anything other than python
[12:14:09] Dysp: Building something like this wouldn't just make a successful company, but help scientists.. alot.
[12:14:23] Dysp: But again - why should they?
[12:14:24] VeryBewitching: Have beaker, will Django
[12:14:40] Dysp: They are not programmers. They are medical professionals.
[12:15:23] Dysp: If you wanna help me start this shit up, let me know
[12:16:21] FooMunki: has joined #RubyOnRails
[12:17:48] jeanlinux: has joined #RubyOnRails
[12:19:48] FailBit: also applicable: matlab code
[12:20:07] chouhoulis: has joined #RubyOnRails
[12:20:14] helpa: http://i.imgur.com/tyViD.gif
[12:21:05] srinidhi: has joined #RubyOnRails
[12:22:00] ornerymoose: has joined #RubyOnRails
[12:24:02] artto: has joined #RubyOnRails
[12:24:25] camilasan: has joined #RubyOnRails
[12:26:11] Pazician: has joined #RubyOnRails
[12:27:14] chouhoulis: has joined #RubyOnRails
[12:27:29] bruno-: has joined #RubyOnRails
[12:27:44] King_Rex: has joined #RubyOnRails
[12:28:22] context: arup_r: that popcorn is sexist
[12:29:05] finnnnnnnnnnn: has joined #RubyOnRails
[12:29:13] GodFather: has joined #RubyOnRails
[12:29:25] maletor1: has joined #RubyOnRails
[12:30:46] artto_: has joined #RubyOnRails
[12:31:59] mikecmpbll: has joined #RubyOnRails
[12:37:03] ariejan: has joined #RubyOnRails
[12:37:35] bronson: has joined #RubyOnRails
[12:42:08] tetraktys: has joined #RubyOnRails
[12:44:15] Craigimus: has joined #RubyOnRails
[12:46:05] FailBit: >being this reactionary
[12:49:22] Tichodroma: is https://rvm.io/ a recommended way to install Ruby and RoR these days?
[12:49:38] ferr: Tichodroma: it helps you a lot
[12:50:07] Tichodroma: ok, I'll use it. It's been some years since I've worked with RoR :)
[12:50:11] dionysus69: has joined #RubyOnRails
[12:50:18] ravi_sun66: has joined #RubyOnRails
[12:53:16] Tichodroma: http://mongomapper.com/ or Mongoid for using MongoDB with RoR?
[12:53:57] ferr1: has joined #RubyOnRails
[12:54:44] artto: has joined #RubyOnRails
[12:55:00] fmcgeough: has joined #RubyOnRails
[12:56:05] arup_r: Tichodroma: that depends on projects if you want document based db or relational db
[12:56:09] ramortegui: has joined #RubyOnRails
[12:57:10] AnoHito_: has joined #RubyOnRails
[12:57:32] Tichodroma: I will use both a document DB (MongoDB) and a relational DB, probably PostgreSQL. Which gem is currently recommended to be used inside RoR?
[12:58:35] Quintasan: Hi, anyone has any idea why Devise wouldn't send confirmation instructions after a successful registration? I can send the email manually using User.last.send_confirmation_instructions but that's hardly an option
[12:58:35] hypersymmetry: has joined #RubyOnRails
[12:59:27] arup_r: Quintasan: show your devise model..
[12:59:50] arup_r: Tichodroma: pg gem for PostgreSql
[13:00:03] arup_r: don't know about MongoDb
[13:00:22] Quintasan: arup_r: https://gist.github.com/Quintasan/34eb065467042c43f02f12717ea4f045
[13:00:56] flashpoint9: has joined #RubyOnRails
[13:01:16] arup_r: ok. that side is ok
[13:01:30] roamingdog: has joined #RubyOnRails
[13:01:37] DaniG2k: has joined #RubyOnRails
[13:01:43] arup_r: why do you think it is not sending email? How are you testing it?
[13:02:00] Quintasan: mailcatcher
[13:02:09] Quintasan: no mail arrives
[13:02:14] SteenJobs: has joined #RubyOnRails
[13:02:18] Quintasan: after I do User.last.send_confirmation_instruction it does.
[13:02:42] wolfravenous: has joined #RubyOnRails
[13:03:47] arup_r: did you override the registration controller create action?
[13:06:21] bonswouar: has joined #RubyOnRails
[13:07:03] tknz: has joined #RubyOnRails
[13:07:04] roamingdog: has joined #RubyOnRails
[13:07:12] Pazician: has joined #RubyOnRails
[13:08:19] arup_r: after creating a User, can you check the DB from rails console what is value of the column `confirmed_at` for that recent user?
[13:08:22] arup_r: Quintasan: ^
[13:09:10] Symbiosisz: has joined #RubyOnRails
[13:09:11] Quintasan: arup_r: nil
[13:09:28] Quintasan: confirmation_sent_at: Fri, 06 May 2016 13:08:46 UTC +00:00, though
[13:09:33] ravi_sun66: has joined #RubyOnRails
[13:10:22] Quintasan: in rails console I can't see the email contents as you can see when invoking User.last.send_confirmation_instructions
[13:10:24] arup_r: hm.. everything looks ok.. haha as per my skill
[13:10:26] blackmes1: has joined #RubyOnRails
[13:10:43] FailBit: Tichodroma: don't use mongo
[13:10:46] FailBit: just don't
[13:10:50] FailBit: don't do it
[13:11:09] arup_r: Quintasan: you need a second eye to debug it.. :)
[13:11:21] Quintasan: The more I use the less I want to.
[13:11:23] arup_r: something seems messed up
[13:11:50] MarcoGL: has joined #RubyOnRails
[13:12:02] macsteps: has joined #RubyOnRails
[13:15:41] tetraktys: has joined #RubyOnRails
[13:17:19] finnnnnnnnnnn_: has joined #RubyOnRails
[13:18:10] artto: has joined #RubyOnRails
[13:19:32] tens0r: has joined #RubyOnRails
[13:20:22] Megamos: has joined #RubyOnRails
[13:24:32] ricsdeol: has joined #RubyOnRails
[13:26:33] VeryBewitching: MongoDB is OK for transient data
[13:26:44] n1lo: has joined #RubyOnRails
[13:27:55] bruno-: has joined #RubyOnRails
[13:28:05] nurey: has joined #RubyOnRails
[13:29:28] tetraktys: has joined #RubyOnRails
[13:30:10] maletor1: has joined #RubyOnRails
[13:31:04] tens0r: has joined #RubyOnRails
[13:32:56] crystal77: has joined #RubyOnRails
[13:33:52] ishamo: has joined #RubyOnRails
[13:34:49] tkiel: has joined #RubyOnRails
[13:37:40] tcopeland: has joined #RubyOnRails
[13:37:58] adlerdias: has joined #RubyOnRails
[13:40:04] jxs_: has joined #RubyOnRails
[13:40:10] stannard: has joined #RubyOnRails
[13:40:20] roamingdog: has joined #RubyOnRails
[13:40:47] pawnbox: has joined #RubyOnRails
[13:40:59] jxs_: has joined #RubyOnRails
[13:41:59] jxs_: has joined #RubyOnRails
[13:42:37] mdw: has joined #RubyOnRails
[13:43:31] banister: has joined #RubyOnRails
[13:45:44] crystal77: has joined #RubyOnRails
[13:45:46] GnuYawk: has joined #RubyOnRails
[13:45:50] GnuYawk: has joined #RubyOnRails
[13:45:57] Craigimus: has joined #RubyOnRails
[13:46:34] FailBit: don't do it
[13:47:56] tildes: has joined #RubyOnRails
[13:48:29] cd83x: has joined #RubyOnRails
[13:50:26] VeryBewitching: ACTION gives FailBit a cookie
[13:50:45] FailBit: ACTION gives VeryBewitching a user agent
[13:51:02] VeryBewitching: Blech, Edge, really?
[13:51:43] VeryBewitching: Quinten Tarantino meets HTML
[13:52:04] VeryBewitching: The browsers shoot themselves in the end, and only Lynx is left standing
[13:52:20] FailBit: time to start over again
[13:53:13] crystal77: has joined #RubyOnRails
[13:55:07] walidvb: has joined #RubyOnRails
[13:55:49] Craigimus: has joined #RubyOnRails
[13:56:57] SteenJobs: has joined #RubyOnRails
[13:57:41] crystal77: has joined #RubyOnRails
[13:58:03] tens0r: has joined #RubyOnRails
[13:59:25] smathy: has joined #RubyOnRails
[14:00:42] walidvb: i'm running into issues with delayed_job in my test environment that i can't figure out. it's working in production/development, but in test i get a DeserializationError.
[14:01:29] walidvb: if i stop the execution to debug it, i can YAML.parse(dj.handler), and also running Delayed::Worker.new.work_off does run the job(and pass the test)
[14:01:30] idefine: has joined #RubyOnRails
[14:01:46] walidvb: https://gist.github.com/walidvb/8f279d1a6acb119467c4d382f15e7d6b
[14:02:09] idefine: has joined #RubyOnRails
[14:03:10] Moeh: has joined #RubyOnRails
[14:04:29] mrgreenfur: has joined #RubyOnRails
[14:05:49] crystal77: has joined #RubyOnRails
[14:05:50] wviana: has joined #RubyOnRails
[14:07:45] artto: has joined #RubyOnRails
[14:09:10] srinidhi: has joined #RubyOnRails
[14:09:48] crystal77: has joined #RubyOnRails
[14:12:26] netzfisch: has joined #RubyOnRails
[14:13:48] cd83x: has joined #RubyOnRails
[14:14:31] ravi_sun66: has joined #RubyOnRails
[14:16:04] blackhuey: has joined #RubyOnRails
[14:18:06] Denommus: has joined #RubyOnRails
[14:18:18] Denommus: anyone using rspec_api_documentation?
[14:18:29] netzfisch: has joined #RubyOnRails
[14:18:42] Denommus: I want to know how I can describe that my route accepts an object in which the only attribute is an array
[14:19:20] macsteps: has joined #RubyOnRails
[14:19:35] Denommus: that is, something like { "results": [{"foo": "bar", "baz": "blah"}, {"foo": "bleh", "baz": "blih"}] }
[14:19:45] jhack: has joined #RubyOnRails
[14:19:58] Craigimus: has joined #RubyOnRails
[14:22:25] dopamean_: has joined #RubyOnRails
[14:23:13] eljimmy: has joined #RubyOnRails
[14:25:56] bruno-: has joined #RubyOnRails
[14:29:00] wolfravenous: has joined #RubyOnRails
[14:30:03] Ispira: has joined #RubyOnRails
[14:30:57] maletor1: has joined #RubyOnRails
[14:32:26] shaman42: has joined #RubyOnRails
[14:33:08] jeanlinux: has joined #RubyOnRails
[14:33:32] ornerymoose: has joined #RubyOnRails
[14:33:45] banister: has joined #RubyOnRails
[14:33:46] someish: has joined #RubyOnRails
[14:34:35] jeanlinux: has joined #RubyOnRails
[14:35:13] Axilla: finally come up with a somewhat decent way to display flash messages after ajax/asynchronous calls.. halleluah
[14:36:57] jeanlinux: has joined #RubyOnRails
[14:37:44] cd83x_: has joined #RubyOnRails
[14:38:02] jeanlinux: has joined #RubyOnRails
[14:38:57] jds: has joined #RubyOnRails
[14:39:07] jeanlinux: has joined #RubyOnRails
[14:39:34] AntiSpamMeta: has joined #RubyOnRails
[14:41:09] kgrz: has joined #RubyOnRails
[14:43:47] ravi_sun66: has joined #RubyOnRails
[14:43:53] GriffinHeart: has joined #RubyOnRails
[14:47:56] thejoecarroll: has joined #RubyOnRails
[14:47:56] chipotle: has joined #RubyOnRails
[14:51:00] Ropeney: has joined #RubyOnRails
[14:54:17] ravi_sun66: has joined #RubyOnRails
[14:54:43] Ergo: has joined #RubyOnRails
[14:56:26] banister: has joined #RubyOnRails
[14:57:35] camilasan: has joined #RubyOnRails
[14:59:45] roamingdog: has joined #RubyOnRails
[14:59:52] morenoh149: has joined #RubyOnRails
[15:00:22] Devalo: has joined #RubyOnRails
[15:00:31] ravi_sun66: has joined #RubyOnRails
[15:00:31] zave: has joined #RubyOnRails
[15:00:53] RegulationD: has joined #RubyOnRails
[15:01:36] camilasan: has joined #RubyOnRails
[15:03:59] idefine_: has joined #RubyOnRails
[15:04:01] macsteps: has joined #RubyOnRails
[15:07:47] sameerynho: has joined #RubyOnRails
[15:07:59] GriffinH_: has joined #RubyOnRails
[15:10:53] polishdub: has joined #RubyOnRails
[15:13:45] disgrntld: has joined #RubyOnRails
[15:14:58] suchness: has joined #RubyOnRails
[15:15:01] flashpoint9: has joined #RubyOnRails
[15:15:23] ravi_sun66: has joined #RubyOnRails
[15:15:58] suchness: Anyone know how to query jsonb for an array containing all values? Right now I can do this: TransportRequest.where("metadata -> 'events' ? '2005'") and get all records where the array of events contains 2005, but what if I want 2005 and some other id(s)?
[15:18:03] emachnic: has joined #RubyOnRails
[15:20:13] Oliphaunte: has joined #RubyOnRails
[15:20:15] davidw: has joined #RubyOnRails
[15:21:29] FooMunki: has joined #RubyOnRails
[15:22:08] Malgorath: has joined #RubyOnRails
[15:22:27] Malgorath: Okay, the more I dig into rails engines, the more I just say... Wow!
[15:26:29] mdw: has joined #RubyOnRails
[15:27:34] jxs_: has joined #RubyOnRails
[15:28:54] artto: has joined #RubyOnRails
[15:29:12] dikaio: has joined #RubyOnRails
[15:29:20] hobodave: has joined #RubyOnRails
[15:29:38] crystal77: has joined #RubyOnRails
[15:30:22] hobodave: has joined #RubyOnRails
[15:31:46] maletor1: has joined #RubyOnRails
[15:34:55] sameerynho: has joined #RubyOnRails
[15:36:42] nurey: has joined #RubyOnRails
[15:37:52] akshat: has joined #RubyOnRails
[15:38:05] lessless: has joined #RubyOnRails
[15:38:30] wolfravenous: has joined #RubyOnRails
[15:39:00] quazimodo: has joined #RubyOnRails
[15:40:04] [Butch]: has joined #RubyOnRails
[15:40:25] bronson: has joined #RubyOnRails
[15:41:14] adlerdias_: has joined #RubyOnRails
[15:42:14] flashpoint9: has joined #RubyOnRails
[15:42:33] adlerdias__: has joined #RubyOnRails
[15:43:05] dopamean_: has joined #RubyOnRails
[15:43:32] lubekpl: has joined #RubyOnRails
[15:48:15] mwlang: nice regular expression (Rails 1.2 app): map.backend_main ':manage', :controller => 'manage/users', :requirements => { :manage => /([M|m][A|a][N|n][A|a][G|g][E|e]\/?$)/}
[15:48:25] duderonomy: has joined #RubyOnRails
[15:48:45] FailBit: has left #RubyOnRails: ("WeeChat 0.4.2")
[15:49:11] adac: has joined #RubyOnRails
[15:50:31] Coldblackice: has joined #RubyOnRails
[15:52:17] tubbo: mwlang: someone didn't know about the /i flag
[15:52:33] tubbo: and was VERY proud of themselves after committing that
[15:52:57] arup_r: has joined #RubyOnRails
[15:54:06] mwlang: A lot of code like that in this app…it’s very first thing that works, commit it and move on.
[15:54:19] arup_r: hm.. nice
[15:54:30] mwlang: lots of WTF moments
[15:54:55] kgrz: has joined #RubyOnRails
[15:54:57] Cohedrin: has joined #RubyOnRails
[15:55:31] gopz: has joined #RubyOnRails
[15:56:10] tildes_: has joined #RubyOnRails
[15:57:18] lycaonian: has joined #RubyOnRails
[15:57:53] RegulationD: has joined #RubyOnRails
[15:58:10] lycaonian: has joined #RubyOnRails
[16:01:29] safetypin: has joined #RubyOnRails
[16:01:42] camilasan: has joined #RubyOnRails
[16:02:02] safetypin: does anyone know why i wouldn't be able to find the session cookie in my browser's cookies for a rails app?
[16:05:37] machuga: has joined #RubyOnRails
[16:07:13] camilasan: has joined #RubyOnRails
[16:09:41] speakingcode: has joined #RubyOnRails
[16:09:57] hcnewsom: has joined #RubyOnRails
[16:12:34] ferr1: has joined #RubyOnRails
[16:13:44] idefine: has joined #RubyOnRails
[16:13:52] Oliphaunte: has joined #RubyOnRails
[16:15:07] w0rd-driven: has joined #RubyOnRails
[16:16:15] arup_r: you should by encrypted..
[16:19:00] Oliphaunte: has joined #RubyOnRails
[16:22:28] Pazician_: has joined #RubyOnRails
[16:22:34] akshat: has joined #RubyOnRails
[16:22:39] hypersymmetry: has joined #RubyOnRails
[16:22:41] Cache_Money: has joined #RubyOnRails
[16:24:17] Brother_Emmett: has joined #RubyOnRails
[16:25:02] Craigimus: has joined #RubyOnRails
[16:25:20] tcopeland: has joined #RubyOnRails
[16:25:37] xcesariox: has joined #RubyOnRails
[16:26:18] ewilliam: has joined #RubyOnRails
[16:27:10] macsteps: has joined #RubyOnRails
[16:27:11] finnnnnnnnnnn: has joined #RubyOnRails
[16:27:15] rtl: has joined #RubyOnRails
[16:27:22] maletor1: has joined #RubyOnRails
[16:28:11] hjdivad: has joined #RubyOnRails
[16:28:54] suchness: How can a do a has many through with active record and not create a model for the join table, just have it know to go through that table?
[16:28:59] akshat_: has joined #RubyOnRails
[16:29:11] matt_d: has joined #RubyOnRails
[16:29:54] Wingar: has joined #RubyOnRails
[16:30:13] tubbo: suchness: has_and_belongs_to_many?
[16:30:27] targaf: has joined #RubyOnRails
[16:30:29] suchness: Yeah I suppose
[16:30:43] martinbjeldbak: has joined #RubyOnRails
[16:30:52] tubbo: suchness: i mean, there's no other way :P
[16:30:53] lord4163: has joined #RubyOnRails
[16:31:02] Meow-J: has joined #RubyOnRails
[16:31:11] tubbo: what's the reason for not wanting the model class?
[16:31:14] suchness: I have something like this:
[16:31:26] Ratler: has joined #RubyOnRails
[16:31:27] arup_r: has joined #RubyOnRails
[16:31:30] suchness: http://pastie.org/private/njkcy5wbti625axxesxqrq
[16:31:45] suchness: Just seems pointless to create a model for the join
[16:31:52] suchness: At this stage at leas
[16:32:11] adaedra: has joined #RubyOnRails
[16:32:11] tubbo: it kinda depends on whether you know that you won't need a model class for that join
[16:32:28] null__: has joined #RubyOnRails
[16:32:34] suchness: Right, but when I do I just pop it in no problem. More of a code clutter thing really.
[16:32:36] tubbo: in some cases that's true, but IMHO most of the time that is not true. you don't know whether you will need to add validations or logic to that relationship
[16:32:38] diegoviola: has joined #RubyOnRails
[16:33:01] suchness: Fair enough, one oddly named join model coming up!
[16:33:12] tubbo: suchness: and herein lies the problem. when you're using HABTM, you can't just cleanly migrate to HMT. you'd have to rename the table, which can be costly/impossible in the future.
[16:33:35] suchness: Yeah that's true
[16:33:41] tubbo: so while i agree with you, it does reduce clutter...the real question is whether that will be "migrateable" to a HMT in the future, in case you need it.
[16:33:57] D9: has joined #RubyOnRails
[16:34:31] strongcode: has joined #RubyOnRails
[16:34:41] Vircung: has joined #RubyOnRails
[16:35:04] suchness: Well... I do prefer HMT 100% of the time...
[16:35:18] jeanlinux: has joined #RubyOnRails
[16:35:34] segy: has joined #RubyOnRails
[16:36:27] flashpoint9: has joined #RubyOnRails
[16:38:20] ferr: has joined #RubyOnRails
[16:38:29] rakm: has joined #RubyOnRails
[16:39:30] clamstar: has joined #RubyOnRails
[16:39:41] mikecmpbll: has joined #RubyOnRails
[16:40:08] hypersymmetry: has joined #RubyOnRails
[16:40:25] robbyoconnor: has joined #RubyOnRails
[16:41:25] gambl0re: has joined #RubyOnRails
[16:41:25] gambl0re: has joined #RubyOnRails
[16:43:33] mostlybadfly: has joined #RubyOnRails
[16:43:58] ruid: has joined #RubyOnRails
[16:43:58] ruid: has joined #RubyOnRails
[16:44:33] idefine: has joined #RubyOnRails
[16:45:36] azor: has joined #RubyOnRails
[16:45:41] manfrin: has joined #RubyOnRails
[16:45:43] djbkd: has joined #RubyOnRails
[16:46:00] cnk: has joined #RubyOnRails
[16:47:49] benlieb: has joined #RubyOnRails
[16:48:38] GriffinHeart: has joined #RubyOnRails
[16:49:42] desnudopenguino: has joined #RubyOnRails
[16:50:29] edwinvdgraaf: has joined #RubyOnRails
[16:53:36] DoubleMalt: has joined #RubyOnRails
[16:54:31] Malgorath: ANyone know a good method to access parent app models from inside an engine? I know that the belongs_to :parentmodel links them but what I am trying to do is also inside the engine do a getall on parentmodel
[16:55:46] squiercaster: has joined #RubyOnRails
[16:56:41] wolfravenous: has joined #RubyOnRails
[16:58:38] macsteps: has joined #RubyOnRails
[16:58:55] draig: has joined #RubyOnRails
[17:00:13] blackmes1: has joined #RubyOnRails
[17:00:51] desnudopenguino: Malgorath: <currentmodel>.<parentmodel>.all? just a guess, I'm actually just getting started with RoR again looking for some install help
[17:01:20] Malgorath: desnudopenguino: for engines that has not worked so far, what install probs you having?
[17:01:55] desnudopenguino: I've done windows install with the railsinstaller before, and installed in Ubuntu, but now I'm moving over to OpenBSD, and it is being a butt
[17:03:00] desnudopenguino: it has been a few years since I did an install
[17:03:12] Malgorath: So many parts of that made me cringe :D I have not tried BSD of any flavor in years cause I remember in 2004ish I setup a few servers on it and it was not fun.
[17:03:21] maletor2: has joined #RubyOnRails
[17:03:29] Malgorath: What about OpenBSD caught your fancy?
[17:03:56] desnudopenguino: simplicity and security
[17:04:18] tubbo: desnudopenguino: what are you using to install Ruby?
[17:04:20] desnudopenguino: i used FreeBSD for a while as well, and had rails on that
[17:05:06] desnudopenguino: tubbo: i used pkg_add
[17:05:22] tubbo: desnudopenguino: this is the 3rd time you've installed Rails and Ruby, correct?
[17:05:35] tubbo: desnudopenguino: and did you use the OS package manager the last two times?
[17:05:49] wolfravenous: desnudopenuino: As you go along you should write a tutorial, I would love to follow along :)
[17:05:59] desnudopenguino: probably the 4th or 5th, the last time was in 2013
[17:06:11] tubbo: desnudopenguino: well things have not changed. installing Ruby with the OS package manager is a bad idea
[17:06:40] tubbo: 1.) you can't update it easily when security patches are released, 2.) it's a little harder to run multiple rubies on the same machine if that's your thing
[17:07:00] n008f4g_: has joined #RubyOnRails
[17:07:08] tubbo: try using something like ruby-install or ruby-build/rbenv to manage your ruby version, even on a box that's supposed to have 1 ruby installed. makes things a lot easier in my experience, no matter what OS you run on.
[17:07:27] tubbo: since you're installing from source, and these are just shell scripts helping you get the right package versions and running the 3-command salute
[17:08:19] desnudopenguino: wolfravenous: i'll doc the install, because I haven't found a good one online yet
[17:08:19] tubbo: personally, i've found that no matter what OS i install on, the process is the same if i'm using chruby and ruby-install. they're just bash scripts. typing `which chruby` shows its entire 41-line source
[17:08:40] tubbo: just stream it on twitch ;)
[17:09:43] Malgorath: Do you guys know any good videos or tutorials on models between parent app and engines? I keep getting generic information that doesn't really get to deep into the topic
[17:09:58] wolfravenous: desnudopenguino: Sweet! please pass me a link after, I am usually here daily.
[17:12:06] spectra: has joined #RubyOnRails
[17:12:14] desnudopenguino: tubbo: thanks! for the info!
[17:13:38] ornerymoose: has joined #RubyOnRails
[17:15:34] desnudopenguino: wolfravenous: you use OpenBSD?
[17:17:51] wolfravenous: desnudopenguino: I currently host using Ubuntu Server, but I really enjoyed the blowfish about a decade ago and if someone doc’d a nice tutorial on setting up rails on it, I would love to play around with rails and OpenBSD over the next couple of months :)
[17:19:18] wolfravenous: desnudopenguino: so many servers, so little time, heehe.
[17:19:24] desnudopenguino: you're telling me
[17:20:51] Megamos: has joined #RubyOnRails
[17:21:04] triptec_: has joined #RubyOnRails
[17:21:09] tubbo: desnudopenguino: no problem man
[17:21:15] tubbo: i can't tell from your nick haha
[17:21:33] idefine: has joined #RubyOnRails
[17:21:34] desnudopenguino: lol, man. i did the same thing to a guy in #openbsd the other day.
[17:22:03] tubbo: so what about OpenBSD is more secure than Ubuntu or whatever?
[17:22:39] polishdub: has joined #RubyOnRails
[17:27:53] desnudopenguino: it is super secure as a base os
[17:28:13] desnudopenguino: a lot of people say it doesn't matter when you start throwing other programs into the mix
[17:29:16] desnudopenguino: it doesn't sacrifice backwards compatibility or anything for security, so it is a bit more work to maintain over time, but it keeps the crazies out
[17:31:52] tubbo: if it's so secure, why isn't it called ClosedBSD? ;)
[17:32:54] desnudopenguino: i like it because it works without any bloat
[17:33:03] tubbo: yeah like it comes with mail servers, a web server, etc.
[17:33:22] desnudopenguino: it has the in-system "mail" program
[17:33:26] yellow5: has joined #RubyOnRails
[17:33:41] desnudopenguino: but yeah, other than that you get a base unix-like system
[17:33:42] tubbo: i'm reading the wikipedia page on it right now
[17:34:16] tubbo: the idea that everything comes pre-compiled against LibreSSL is kinda neat, too
[17:35:15] roelof: has joined #RubyOnRails
[17:35:29] phantummm: has joined #RubyOnRails
[17:36:02] roelof: why do I see this message : Unable to find css "h2" where there is a <h2> tag in the html ?
[17:37:13] tubbo: roelof: for one reason or another, capybara can't see that <h2> tag.
[17:37:31] flashpoint9: has joined #RubyOnRails
[17:37:33] tubbo: either you're not looking in the right location, JS is hiding it, or the element isn't visible (or covered by another element)
[17:37:48] roelof: tubbo: oke, and is there a way to debug or solve this ?
[17:37:50] tubbo: roelof: save_and_open_page to see what the page kinda looks like (sans CSS)
[17:37:57] tubbo: roelof: there's always a way to debug or solve any problem.
[17:38:36] tubbo: the only "unsolvable" problems are solutions blocked by other people for one reason or another.
[17:38:50] roelof: oke, so I have to add save_and_open before the <% within "h2" do %> part ? tubbo
[17:39:53] polyidus: has joined #RubyOnRails
[17:39:57] beingjohnm: Anybody use brakeman through codeclimate? I believe I followed this (https://github.com/codeclimate/codeclimate) perfectly but get this error when I run codeclimate analyze: error: (CC::Analyzer::Engine::EngineFailure) engine brakeman failed with status 1 and stderr
[17:40:01] beingjohnm: time="2016-05-06T17:38:40Z" level=fatal msg="Error response from daemon: Container command '/usr/src/app/bin/codeclimate-brakeman' could not be invoked."
[17:40:24] davidw: has joined #RubyOnRails
[17:40:25] ravi_sun66: has joined #RubyOnRails
[17:40:28] tubbo: roelof: save_and_open_page will just show you what the page looks like at the point at which you called it.
[17:41:14] mosez: has joined #RubyOnRails
[17:41:17] brent__: has joined #RubyOnRails
[17:41:19] IceBear: has joined #RubyOnRails
[17:41:32] roelof: tubbo: problem on my cloud development : xprop: unable to open display ''
[17:41:49] roelof: and then : Unable to find a browser command.
[17:41:58] bronson: has joined #RubyOnRails
[17:42:04] gopz: has joined #RubyOnRails
[17:42:44] tubbo: roelof: oh, so you're not running capybara on your local machine
[17:42:45] roelof: oke, I use it wrong
[17:43:01] tubbo: hmm, i've never used capybara on anything other than locally (and saucelabs)
[17:43:04] DevastatingDave: has joined #RubyOnRails
[17:43:26] roelof: nope, I work on a Windows 10 machine and I have no clue if development on Windows 10 could work
[17:43:35] d0nn1e: has joined #RubyOnRails
[17:44:23] tubbo: roelof: it does, you just need to do your work within a VM. i think railsinstaller works for windows but you might have issues
[17:44:44] tubbo: that said, it seems like ruby support on windows is improving, so i wouldn't be surprised if these issues went away in a few years.
[17:45:32] roelof: oke, I can use a linux image on a hyper-v box. But then I have to find a nice ide or something so I can work with ruby code
[17:46:24] roelof: tubbo: Can it be that it looks for a <h2> tag where I use a <h2 class = "classname" > tag ?
[17:46:31] tubbo: probably not
[17:46:36] tubbo: it will still know that's an h2 element
[17:47:04] tubbo: roelof: unless you're testing it like expect(page.html).to match('<h2>')
[17:47:11] tubbo: that is just silly when you have expect(page).to have_css('h2')
[17:48:25] desnudopenguino: roelof: what do you currently use to code?
[17:48:35] roelof: oke, when I look at the source code with FF I see this : <h2 class="blog-info__title"> <a href="blog-post.html" >#1 - <a href="/projects/1/tickets/1">test-ticket</a> </a></h2>
[17:48:50] roelof: desnudopenguino: you mean the erb code ?
[17:50:24] roelof: desnudopenguino: <h2 class="blog-info__title" > <a href="blog-post.html" >#<%= ticket.id %> - <%= link_to ticket.name, [@project, ticket] %> </a></h2>
[17:50:55] ftj: has joined #RubyOnRails
[17:52:00] Megamos: has joined #RubyOnRails
[17:52:13] desnudopenguino: i was asking what program are you using to code, lol
[17:52:24] King_Rex: has joined #RubyOnRails
[17:52:27] roelof: oke, I deleted the <a href part> so it looks now like this :<h2 class="blog-info__title" id="ticket"> #<%= ticket.id %> - <%= link_to ticket.name, [@project, ticket] %> </h2>
[17:52:42] roelof: but still the same error on a rspec test
[17:52:47] desnudopenguino: running into libiconv not found for nokogiri when trying to install the rails gem
[17:53:19] roelof: desnudopenguino: I use now c9.io to develop in ruby and rails
[17:53:38] tubbo: desnudopenguino: you need libxml installed
[17:53:40] tildes_: has joined #RubyOnRails
[17:54:20] tubbo: libxml2 and libxslt, actually.
[17:54:22] roelof: which free ide can I use the best for rails development then ?
[17:55:06] chopin: has joined #RubyOnRails
[17:55:27] tubbo: IDEs suck
[17:55:34] tubbo: the best IDE is UNIX ;)
[17:55:53] yos7ph: has joined #RubyOnRails
[17:56:23] roelof: oke, I have to use something to type my code and indent it the right way
[17:56:27] tubbo: roelof: try using something like Sublime Text or Atom. they're feature-rich editors, but they don't do everything.
[17:56:47] tubbo: alternatively, if you like the shell environment..there's always Vim or Emacs.
[17:57:02] tubbo: desnudopenguino: baby steps haha
[17:57:17] tubbo: ACTION feels that you can only really appreciate Vim if you use other editors that make you appreciate how much work you save with it
[17:57:42] desnudopenguino: i used it because it was what came with freebsd back in the day
[17:57:47] Megamos: has joined #RubyOnRails
[17:57:48] desnudopenguino: and got used to it
[17:57:54] mikecmpbll: has joined #RubyOnRails
[17:58:08] desnudopenguino: tubbo: i have libxml installed, but not libxml2
[17:58:23] gopz: I switched from Rubymine to mvim and it's been one of the best productivity enhancing decisions I've made. To figure out how I could optimize my workflow in Rubymine usually took a long time of looking through docs and SO posts. With vim/mvim it takes some start up time, but now I can routinely improve my workflow very quickly.
[17:59:16] Shidash: has joined #RubyOnRails
[17:59:28] qejk: has joined #RubyOnRails
[17:59:38] tubbo: desnudopenguino: hmm, i'm not sure what the name of the pkg is on OpenBSD but there's no way you're the first person to try and install nokogiri on openbsd :)
[17:59:51] tubbo: gopz: you drank the kool-aid huh? ;)
[17:59:59] tubbo: gopz: also check out VimR for a less crashy MacVim :P
[18:00:41] gopz: tubbo: i'll check it out thanks
[18:00:41] roelof: oke, I will try to setup a linux enviroment with Sublinme Text and these plugins
[18:01:01] roelof: next "problem" . which distro schould I use
[18:01:53] tubbo: roelof: if you use ubuntu, we have a guide that seems to work for most people
[18:01:55] tubbo: roelof: !ubuntu
[18:01:55] helpa: roelof: 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!
[18:01:59] desnudopenguino: roelof: ubuntu or debian
[18:02:36] macsteps: has joined #RubyOnRails
[18:02:44] desnudopenguino: tubbo: yeah, looking into it. there is no libxml2 package (there is libxml, which is already installed)
[18:03:28] tubbo: desnudopenguino: there's a --use-system-libraries install flag and i think as a last resort option, you can always provide the path to the .so you want nokogiri built against.
[18:03:29] blackmes1: has joined #RubyOnRails
[18:03:46] desnudopenguino: what does nokogiri do anyway?
[18:03:55] tubbo: desnudopenguino: since you're probably using bundler, you need to configure that in ~/.bundle/config. nokogiri parses XML and HTML documents.
[18:04:05] Megamos: has joined #RubyOnRails
[18:04:06] triptec: has joined #RubyOnRails
[18:04:11] roelof: oke, then I will download the lastest ubuntu and try that tutorial
[18:04:40] desnudopenguino: tubbo: i just got ruby, installed gems, and used gem install rails, i really have no idea what i'm doing lol
[18:06:23] polishdub: has joined #RubyOnRails
[18:07:04] desnudopenguino: tubbo: guess i'm building it from source
[18:07:13] Azz_B: has joined #RubyOnRails
[18:07:27] tubbo: desnudopenguino: building what from source?
[18:07:50] Azz_B: just test
[18:08:01] tubbo: Azz_B: why should i?
[18:08:02] roelof: installing Ubuntu 16.04 now
[18:10:32] joaumg: has joined #RubyOnRails
[18:10:54] hobodave: has joined #RubyOnRails
[18:10:55] desnudopenguino: so in openbsd, libxml2 is part of libxml
[18:13:41] pawnbox: has joined #RubyOnRails
[18:15:26] roelof: tubbo : When I look at the source code on FF I see that I have made some errors. Can that be the problem ?
[18:16:17] DoctorMonocular: has joined #RubyOnRails
[18:16:50] polyidus: has joined #RubyOnRails
[18:17:33] chipotle: has joined #RubyOnRails
[18:17:36] ravi_sun66: has joined #RubyOnRails
[18:19:05] desnudopenguino: the issue is it can't find iconv.h
[18:20:10] ravi_sun66: has joined #RubyOnRails
[18:21:02] hypersymmetry: has joined #RubyOnRails
[18:21:47] djbkd: has joined #RubyOnRails
[18:23:16] roamingdog: has joined #RubyOnRails
[18:23:21] flashpoint9: has joined #RubyOnRails
[18:24:20] yfeldblum: has joined #RubyOnRails
[18:25:00] Vircung: has joined #RubyOnRails
[18:29:53] triptec: has joined #RubyOnRails
[18:30:29] ravi_sun66: has joined #RubyOnRails
[18:31:23] snowy: has joined #RubyOnRails
[18:31:33] pawnbox: has joined #RubyOnRails
[18:32:11] lubekpl: has joined #RubyOnRails
[18:32:59] arup_r: has joined #RubyOnRails
[18:34:09] scepticulous: has joined #RubyOnRails
[18:35:33] desnudopenguino: okay, so i pointed it to the libiconv.so file, but now it says i need libxml2 v 2.6.2 i have libxml 2.9.3
[18:35:46] Malgorath: Do you guys know any good videos or tutorials on models between parent app and engines? I keep getting generic information that doesn't really get to deep into the topic
[18:36:34] dionysus69: has joined #RubyOnRails
[18:36:49] wolfravenous: denudopenguino: someone feel free to correct me if I am wrong, but if I remember correctly the libxml2 and openssl2 both came out of that heartbleed issue.
[18:37:01] tildes_: has joined #RubyOnRails
[18:38:07] adre: has joined #RubyOnRails
[18:40:59] hahuang65: has joined #RubyOnRails
[18:41:08] desnudopenguino: libxml2 is part of libxml according to the libxml site.
[18:41:14] desnudopenguino: for openbsd at least
[18:41:33] jstransky: has joined #RubyOnRails
[18:42:58] wolfravenous: has joined #RubyOnRails
[18:45:37] bronson: has joined #RubyOnRails
[18:48:15] idefine: has joined #RubyOnRails
[18:52:31] futilegames: has joined #RubyOnRails
[18:52:40] desnudopenguino: can't find libxml/xmlversion.h
[18:53:45] rafaelfranca: has joined #RubyOnRails
[18:53:58] rafaelfranca: has joined #RubyOnRails
[18:56:24] ravi_sun66: has joined #RubyOnRails
[19:00:48] snowy: has joined #RubyOnRails
[19:01:16] mrgreenfur: has joined #RubyOnRails
[19:02:48] flashpoint9: has joined #RubyOnRails
[19:04:54] Oliphaunte: has joined #RubyOnRails
[19:07:53] ravi_sun66: has joined #RubyOnRails
[19:08:14] ravi_sun66: has joined #RubyOnRails
[19:09:07] idefine: has joined #RubyOnRails
[19:11:53] triptec: has joined #RubyOnRails
[19:12:48] choke: has joined #RubyOnRails
[19:13:13] chouhoulis: has joined #RubyOnRails
[19:14:52] xall: has joined #RubyOnRails
[19:16:09] ur5us: has joined #RubyOnRails
[19:16:20] flashpoint9: has joined #RubyOnRails
[19:16:28] yellow5: has joined #RubyOnRails
[19:18:35] banister: has joined #RubyOnRails
[19:20:12] crystal77: has joined #RubyOnRails
[19:20:39] The_Phoenix: has joined #RubyOnRails
[19:21:15] ravi_sun66: has joined #RubyOnRails
[19:22:36] The_Phoenix: has joined #RubyOnRails
[19:24:32] The_Phoenix: has joined #RubyOnRails
[19:25:27] The_Phoenix: has joined #RubyOnRails
[19:25:49] mosez: has joined #RubyOnRails
[19:26:34] zave: has joined #RubyOnRails
[19:26:41] triptec: has joined #RubyOnRails
[19:27:12] The_Phoenix: has joined #RubyOnRails
[19:28:11] roamingdog: has joined #RubyOnRails
[19:28:48] The_Phoenix: has joined #RubyOnRails
[19:29:35] idefine: has joined #RubyOnRails
[19:29:54] The_Phoenix: has joined #RubyOnRails
[19:30:05] ornerymoose: has joined #RubyOnRails
[19:31:31] maletor2: has joined #RubyOnRails
[19:32:35] sergey_makagon: has joined #RubyOnRails
[19:35:15] snowy: has joined #RubyOnRails
[19:36:59] jutah: has joined #RubyOnRails
[19:37:25] ruid: has joined #RubyOnRails
[19:37:25] ruid: has joined #RubyOnRails
[19:37:48] DoctorMonocular: has joined #RubyOnRails
[19:39:00] jenrzzz: has joined #RubyOnRails
[19:39:47] Oliphaunte: has joined #RubyOnRails
[19:42:36] idefine: has joined #RubyOnRails
[19:42:55] hahuang65: has joined #RubyOnRails
[19:45:20] jcp_: has joined #RubyOnRails
[19:48:08] mordof: has joined #RubyOnRails
[19:48:58] mordof: trying to raise an ActiveRecord::RecordNotDestroyed, "mymessage" but RecordNotDestroyed doesn't show the message (contrast to RecordNotFound for example, which will show my message). does anyone know why this is?
[19:48:58] mwlang: has joined #RubyOnRails
[19:49:52] DukeDave: has joined #RubyOnRails
[19:50:10] mordof: nevermind.. i tried just running that raise in a pry session and it shows the message.... so something indirectly is causing the issue
[19:50:25] tubbo: mordof: it's possible that exception gets rescued somewhere
[19:51:05] yellow5: has joined #RubyOnRails
[19:51:41] mordof: tubbo: oooh, and then it reraises itself without the message
[19:51:55] mordof: that would make sense
[19:51:58] mordof: but man that sucks
[19:52:02] beingjohnm: finally got codecomplete to run for the first time: "Analysis complete! Found 14,008 issues." most are with css and js libraries but I still have some work to do :)
[19:52:18] tubbo: mordof: well frankly, there's probably a better way to do whatever it is that you're doing than rescuing exceptions.
[19:52:29] mordof: tubbo: i'm not rescuing exceptions
[19:52:31] mordof: i'm raising them
[19:52:45] tubbo: mordof: why are you raising AR exceptions?
[19:53:02] FooMunki: has joined #RubyOnRails
[19:53:19] mordof: tubbo: because in a model setter, it's a batch operation (it's yucky.. and right now that can't be reworked) which includes update/add/delete depending on the state of the object passed
[19:53:37] mordof: tubbo: but the operation shouldn't be allowed if there's a delete within that - and the item being deleted is in use somewhere else
[19:53:44] mordof: so i wanted to raise an ActiveRecord::RecordNotDestroyed
[19:53:47] mordof: since that makes sense
[19:54:28] tubbo: hah, i guess you're right. i've never actually encountered that exception before so i don't know where it's raised, but generally it's a good practice to raise your *own* exceptions, and not others'.
[19:54:34] tubbo: you never really know how they're handling those errors..
[19:55:10] mordof: fair enough. I suppose I'll switch to using custom errors. do i just extend off StandardError then? that seems weird
[19:56:05] hayden__: has joined #RubyOnRails
[19:56:08] mordof: ACTION hasn't done a whole lot of custom error stuff
[19:56:27] mordof: tubbo: does it matter what I extend my error off of in the normal list?
[19:57:01] tubbo: mordof: the convention/best practice is to inherit from StandardError, because that's the "base class" for all application-level errors.
[19:58:23] mordof: tubbo: thanks for the help :)
[19:58:27] mordof: i was super confused, lol
[20:01:11] hahuang65: has joined #RubyOnRails
[20:02:44] hobodave_: has joined #RubyOnRails
[20:03:04] DoctorMonocular: has joined #RubyOnRails
[20:03:12] SteenJobs: has joined #RubyOnRails
[20:03:14] benlieb: has joined #RubyOnRails
[20:04:17] blackmes1: has joined #RubyOnRails
[20:06:07] alfie_max15: has joined #RubyOnRails
[20:06:46] alfie_max15: i've got a question, which is the latest recommended way to use uniqueness validation ?
[20:07:01] alfie_max15: using `validates_uniqueness_of` of `validates` ?
[20:07:18] alfie_max15: hey there arup_r
[20:07:56] arup_r: yes,, but thinking what is the source of your thought that you just asked.. :)
[20:08:01] mordof: alfie_max15: one is just a shorthand for the other...?
[20:08:16] mordof: alfie_max15: whatever makes more sense reading in your situation i'd imagine
[20:08:45] smathy: alfie_max15, there's no recommendation for this.
[20:09:00] crameth: has joined #RubyOnRails
[20:09:05] alfie_max15: great, and were both available from the beginning? i would say like rails 2.x or so ?
[20:09:50] Axilla: anyone using React w/ Rails?
[20:09:59] Axilla: someone besides me has to be doing this ><
[20:10:13] tubbo: axilla: considering there's a gem, i would say that's a good bet
[20:10:21] Axilla: haha well..
[20:10:31] Axilla: how you been tubbo
[20:10:48] Axilla: i got laid off last friday :( picked up some freelance work building a rails app using react
[20:11:01] Axilla: its going pretty good, i just wanna talk about it.. i feel like i'm missing something
[20:11:30] tubbo: react can be a little daunting
[20:11:32] Axilla: it just seems so weird to be putting JS and HTML in the same file..
[20:11:38] Axilla: its messy as shit
[20:11:52] Axilla: and it doesn't seem to really do anything that i can't already do in rails
[20:12:02] alfie_max15: axilla, exactly, the mail reason why i'm still reluctant to try out
[20:12:04] Axilla: although i haven't done a lot of state based stuff
[20:13:06] Axilla: i like the idea of "component based view modules" but don't we already do that in rails with partials and shit? The virtual dom is really the big advantage.
[20:13:13] arup_r: axilla: there are cases where Jquery wouldn't help much.. or you need to take care of lot of fucntions .. etc
[20:13:14] Axilla: but that seems like a lot of work for just that
[20:13:19] arup_r: whcih React does out of the box
[20:13:23] fox_mulder_cp: two years ago i search c# jobs.. hhe
[20:13:32] Axilla: i just got into C# in the past 8 months
[20:13:34] Axilla: and i love it!
[20:14:13] arup_r: we are rails FOLKS!!!!
[20:14:24] Axilla: we're rubyists
[20:14:29] Axilla: who happen to use rails...
[20:14:44] Axilla: i'd use any framework that lets me build websites in Ruby :P
[20:14:52] fox_mulder_cp: reaaly, now i see, that rails - best for me under linux.
[20:14:52] Axilla: if it did the job better than rails.
[20:14:59] chouhoulis: has joined #RubyOnRails
[20:15:07] kristofferR: has joined #RubyOnRails
[20:15:09] fox_mulder_cp: not django, not perl with mojolicious
[20:15:21] Axilla: perl lol.. lets build websites in PERL! cause this is 1999
[20:15:29] Axilla: flash back fridays! hahaha
[20:16:08] fox_mulder_cp: axilla: i'm not a joke. now cgi and perl used in most 80% apps in soho routers such as dlink tplink linksys
[20:16:13] finnnnnnnnnnn: has joined #RubyOnRails
[20:16:48] bruce_lee: has joined #RubyOnRails
[20:16:57] theery: has joined #RubyOnRails
[20:18:12] mordof: alfie_max15: i have no idea - i started with rails late 3.x
[20:18:24] fox_mulder_cp: axilla: i try to use perl before learn rails. perl + mojolicious is a good, but orm based on plains sql - is a trash for me
[20:19:01] mordof: alfie_max15: apidock would probably show version compatibility of the two though
[20:19:22] alfie_max15: yeah, that's right. i'll check it. thanks.
[20:19:45] mordof: alfie_max15: http://apidock.com/rails/v4.2.1/ActiveRecord/Validations/ClassMethods/validates_uniqueness_of
[20:20:00] mordof: looks like it's been around for quite some time. you're probably safe to use whichever you like/fits better
[20:20:50] chopin: has joined #RubyOnRails
[20:22:04] idefine: has joined #RubyOnRails
[20:26:14] Chachi: has joined #RubyOnRails
[20:27:18] macsteps: has joined #RubyOnRails
[20:28:31] linoespinoza: has joined #RubyOnRails
[20:30:20] MarcoGL: has joined #RubyOnRails
[20:31:48] roamingdog: has joined #RubyOnRails
[20:32:10] apotry: has joined #RubyOnRails
[20:35:48] roamingdog: has joined #RubyOnRails
[20:40:02] roamingdog: has joined #RubyOnRails
[20:40:11] yos7ph: has joined #RubyOnRails
[20:40:21] taxen: has joined #RubyOnRails
[20:40:50] reber: has joined #RubyOnRails
[20:40:56] melbu: has joined #RubyOnRails
[20:41:22] taxen: Hey all. If I pass an empty array as an argument in my api call, rails interpret it as nil and causes my validation to fail. Any ideas on how to work around this?
[20:41:47] pawnbox: has joined #RubyOnRails
[20:42:37] mordof: taxen: i think the only option you have is to look at the raw. if you pass it as an array, the raw expands to key[]= afaik..
[20:43:00] mordof: taxen: alternatively you could treat nil and empty array as the same in your validation
[20:43:29] taxen: mordof: I'm using apipie and it's catching it before I get a chance to take a look at it myself..
[20:43:41] rafaelfranca: has joined #RubyOnRails
[20:43:41] rafaelfranca: has joined #RubyOnRails
[20:44:48] mordof: taxen: according to a ticket there's an option for rails as a whole to stop using this behavior (though anywhere else in your rails app that relies on it would break)
[20:44:58] mordof: https://github.com/Apipie/apipie-rails/issues/441
[20:45:06] taxen: mordof: however, I found that you can disable deep munging in rails
[20:45:22] taxen: but does that put me at risk, security wise?
[20:45:42] mordof: what is munging anyhow?
[20:45:45] mordof: i've not heard that term before
[20:45:51] taxen: no idea :)
[20:46:58] flashpoint9: has joined #RubyOnRails
[20:47:50] Chachi: has joined #RubyOnRails
[20:47:51] tubbo: taxen: https://github.com/rails/rails/issues/13766
[20:48:03] alfie_max15: taxen, https://github.com/imanel/rails/commit/060c91cd59ab86583a8f2f52142960d3433f62f5
[20:49:31] hayden__: has joined #RubyOnRails
[20:54:15] arup_r: I am having some issue, so I came to here https://rubygems.org/gems/autoprefixer-rails/versions/4.0.0 and see required ruby version is > 0 .. what does it means?
[20:54:44] arup_r: my app is ruby 1.9.3 so lastest version is not installing. so looking for a 1.9.3 compatible one
[20:54:54] arup_r: but those > 0 is confusing me
[20:55:03] djbkd: has joined #RubyOnRails
[20:55:04] cd83x_: has joined #RubyOnRails
[20:55:22] alfie_max15: that just means it should work with any version
[20:58:32] mwlang: has joined #RubyOnRails
[21:00:24] rafaelfranca: has joined #RubyOnRails
[21:00:24] rafaelfranca: has joined #RubyOnRails
[21:00:24] yfeldblum: has joined #RubyOnRails
[21:00:40] idefine: has joined #RubyOnRails
[21:01:43] hahuang65: has joined #RubyOnRails
[21:01:55] FooMunki: has joined #RubyOnRails
[21:02:33] sneakerhax: has joined #RubyOnRails
[21:05:00] djbkd: has joined #RubyOnRails
[21:05:06] arBmind: has joined #RubyOnRails
[21:08:44] beingjohnm: I think I might made a mistake creating my app. I need to find how many users where X is true (x being a column) on 12/31 and how many users where X is true on 3/31. Is there an easy way to track changes to columns?
[21:10:03] alfie_max15: beingjohnm, unless you were already tracking changes to your columns like by using something like https://github.com/airblade/paper_trail
[21:10:17] alfie_max15: i don't think you can get that info
[21:10:44] mwlang: has joined #RubyOnRails
[21:11:02] mustmodify: has joined #RubyOnRails
[21:11:25] mustmodify: This is so crazy. I can't figure out how to use nokogiri at all.
[21:11:26] mustmodify: https://gist.github.com/mustmodify/394834b8fe694fe7d799fce5db328380
[21:11:36] mustmodify: Can someone tell me how to turn this into an array of hashes?
[21:12:48] jenrzzz: has joined #RubyOnRails
[21:12:58] Axilla: that's XML
[21:13:07] mustmodify: Thanks for that.
[21:13:15] Axilla: it sound slike you want JSON
[21:13:23] mustmodify: That's how I get the data.
[21:13:31] Axilla: what's it coming from?
[21:13:47] mustmodify: a vendor who has no interest in making any changes for me.
[21:14:22] Axilla: whats your code look like?
[21:14:29] Axilla: to convert it?
[21:14:43] emachnic: has joined #RubyOnRails
[21:15:12] mustmodify: I can't figure out anything. I have that one line and can't figure out how to manipulate it beyond that.
[21:15:20] mustmodify: I have tried many things without success.
[21:16:46] Axilla: have you tried https://github.com/savonrb/nori?
[21:16:52] Axilla: converts XML to Hashes
[21:17:01] Axilla: should be super simple to put them into an array of hashes after that
[21:17:04] beingjohnm: I guess I'm looking for a reporting solution.
[21:17:24] wolfravenous: has joined #RubyOnRails
[21:17:25] mustmodify: I was hoping not to add another gem, but I guess I have to do what I have to do.
[21:17:33] Axilla: beingjohnm: it should be very simple
[21:17:55] Axilla: your records shoudl have an updated_at field
[21:17:58] Axilla: you can check the date there
[21:18:04] arup_r: I have mentioed the version in Gemfile as per the ruby version selection.. why still I am getting the error https://gist.github.com/aruprakshit/a276083f3f2d66b27f8d05002a5d5a37 while trying to install it
[21:18:19] mustmodify: axilla: I'll check it out, thanks.
[21:18:21] Axilla: user = User.where(x == true)
[21:18:34] Axilla: that's just sudo code
[21:18:50] smathy: mustmodify, .map {|e| e.text.split }
[21:19:27] arup_r: I don't need the gem, but bundle update shoing the error so, I mentioned it in gemfile
[21:19:31] beingjohnm: axilla: right but if column X is changed on 1/2 and column Y is changed on 4/2 then the udpated column shows 4/2. I need to track all of the individual changes I guess. Or move X and Y to their own tables and have a row for each change with the last row for each user being the current value.
[21:19:32] arup_r: but still the same error
[21:19:33] smathy: ...fiddle with that a bit, can't just split on // - need to split on \n or something.
[21:19:49] arup_r: it must be some dependency for other gem, duuno which is that
[21:20:05] beingjohnm: I very much should have thought this out nine months ago...
[21:20:24] Axilla: then you need to track all changes in a history
[21:20:29] blackmes1: has joined #RubyOnRails
[21:20:32] Axilla: and set an event of some sort
[21:20:36] Radar: beingjohnm: indeed you should've :)
[21:20:43] Radar: beingjohnm: Take a look at "event sourcing"
[21:20:58] beingjohnm: axilla: would you recommend papertrail for this?
[21:21:04] Axilla: never used it
[21:21:18] Axilla: you want some kind of event tracking
[21:21:26] Axilla: so you can record X time when Event Y happend
[21:21:32] Axilla: or X time when even Z happened
[21:21:40] Axilla: and then associate it with that object
[21:21:41] smathy: mustmodify, simpler: .map {|e| e.elements.map &:text }
[21:21:43] beingjohnm: Radar: that looks like a great keyword. Thanks.
[21:22:12] braincrash: has joined #RubyOnRails
[21:22:39] htmldrum: has joined #RubyOnRails
[21:23:05] supernov_a: has joined #RubyOnRails
[21:23:42] beingjohnm: Radar: at the beginning I knew that my clients needed to know if their employees had X. However it wasn't until later that I understood that the % increase in employees that have X is just as important.
[21:25:17] arup_r: ok that is for this https://rubygems.org/gems/bootstrap-sass/versions/3.3.5 gem.. hmm
[21:26:41] eljimmy: has joined #RubyOnRails
[21:27:17] smathy: beingjohnm, FWIW, I prefer audited to papertrail by a large margin.
[21:28:22] smathy: ...although I'm just reading up now and I don't think these are the right tools for what you're talking about.
[21:28:34] beingjohnm: smathy: it looks like there is a reporting gem for audited which might result in less work for me
[21:29:48] smathy: Could do, yes. Although it might just be better to actually snapshot just the data you're interested in when you're interested in it. Although audited could be a nice fallback in case requirements change in future.
[21:31:10] beingjohnm: smathy: I could probably do end of day snapshots each day and compare those but that seems like something that will bite me in the ass later
[21:32:06] beingjohnm: smathy: I guess the proper way to do it would be a transaction type of model for each. So only the last transaction is the current state but each change has an entry.
[21:32:25] htmldrum: has joined #RubyOnRails
[21:32:51] alfie_max15: has joined #RubyOnRails
[21:33:10] beingjohnm: ACTION cannot wait until he can afford to hire somebody else to do this
[21:33:17] smathy: Something like that.
[21:33:39] mwlang: has joined #RubyOnRails
[21:35:46] beingjohnm: smathy: any better way off the top of your head?
[21:36:26] mwlang: mustmodify: try nori gem. Less steep curve than learning nokogiri.
[21:37:52] beingjohnm: some of these event sourcing guides seem to need a lot of infrastructure to work
[21:37:55] smathy: beingjohnm, there are really only two options: 1: capture just the specific data you need when you need it (custom solution, not future proof), and/or 2: use something like audited to capture everything just in case (uses lots of space, slows all writes down, clunky API)
[21:39:25] alfie_max15: i was just trying to figure out a way to avoid dupes while using has_and_belongs_to_many and found this SO question http://stackoverflow.com/questions/1129781/has-and-belongs-to-many-avoiding-dupes-in-the-join-table
[21:40:19] beingjohnm: smathy: I'll do some more research on audited. Ideally everything will be reportable but in practice it might just be about ten to twenty things that end up being important to track.
[21:40:55] alfie_max15: it says to use it like `post.tags << tag unless post.tags.include?(tag)
[21:41:05] wolfravenous: has joined #RubyOnRails
[21:42:43] alfie_max15: which makes sense, but in the comments its said that it's not recommended to use it like that, with reference to - http://guides.rubyonrails.org/association_basics.html
[21:44:29] chopin: has joined #RubyOnRails
[21:44:33] beingjohnm: smathy: why do you prefer audited over papertrail?
[21:45:02] blackmes1: has joined #RubyOnRails
[21:46:13] beingjohnm: papertrails documentation seems more daunting...
[21:46:37] Palsson: has joined #RubyOnRails
[21:46:50] alfie_max15: anyway i can ensure duplicates won't be created when using has_and_belongs_to_many when creating like : `post.tags << tag`
[21:48:31] idefine: has joined #RubyOnRails
[21:50:51] jenrzzz: has joined #RubyOnRails
[21:51:23] SteenJobs: has joined #RubyOnRails
[21:55:04] mwlang: mustmodify: doc = Nokogiri::HTML(File.read('thing.xml')).xpath("///data") will get you all the “data” nodes.
[21:55:05] roamingdog: has joined #RubyOnRails
[21:55:08] smathy: beingjohnm, I don't remember and sorry, I don't have time to remember.
[21:55:26] smathy: mwlang, I already answered this btw, before he went dark.
[21:55:58] mwlang: weird, your answers don’t show up here. :-/
[21:56:35] mwlang: hmmm…looks like I went offline and back w/o realizing it.
[21:57:09] mikeiniowa: has joined #RubyOnRails
[21:58:02] smathy: mwlang, heh, I just told him to: .map {|e| e.elements.map &:text } (he already had the xpath...data in his code in the gist.
[21:59:35] HenriettaSalt: has joined #RubyOnRails
[22:01:03] supernov_a2: has joined #RubyOnRails
[22:04:13] smathy: ...I suppose that's _an_ announcement ;)
[22:05:04] havenwood: I just go around yelling that.
[22:05:37] smathy: At railsconf? Through the convention center?
[22:05:42] smathy: You must be popular :)
[22:06:49] mustmodify: mwlang: how would I get values from each node? It seems like no matter what I try, I get nothing.
[22:06:54] havenwood: https://twitter.com/rubygems/status/728706016834113536
[22:07:44] smathy: Wow, snubbed.
[22:08:11] beingjohnm: smathy: no problem. thanks for the info. Have a good weekend.
[22:08:38] smathy: beingjohnm, you too man, it's never a pleasant realization that you haven't been collecting enough data. Be well.
[22:09:54] roamingdog: has joined #RubyOnRails
[22:10:04] mwlang: smathy: 8-o
[22:10:22] mwlang: mustmodify: Nokogiri::HTML(File.read('thing.xml')).xpath("//data").map{|data| data.elements.map{|e| [e.name, e.text]}}
[22:11:01] smathy: OMG, why didn't *I* think of that.
[22:11:14] ur5us: has joined #RubyOnRails
[22:11:23] mwlang: ACTION stole it from smathy
[22:11:42] smathy: ACTION must be on ignore
[22:11:45] mwlang: mustmodify: and if you want as a Hash, append .map{|a| a.to_h} to the above.
[22:13:54] mwlang: I always wondered how ppl were getting gem release notices…never occurred to me to look for @rubygems on twitter.
[22:14:33] supernov_a: has joined #RubyOnRails
[22:15:40] sp1rs: has joined #RubyOnRails
[22:15:51] drptbl: has joined #RubyOnRails
[22:16:00] akshat: has joined #RubyOnRails
[22:16:59] macsteps: has joined #RubyOnRails
[22:18:21] crystal77: has joined #RubyOnRails
[22:18:53] akshat_: has joined #RubyOnRails
[22:19:40] workmad3: has joined #RubyOnRails
[22:21:49] SteenJobs: mwlang: whaaaat
[22:24:29] drptbl_: has joined #RubyOnRails
[22:25:33] macsteps: has joined #RubyOnRails
[22:28:02] SteenJobs: mwlang: i’ve never been a big twitter user, but now i’m thinking if i dedicate my twitter feed to all things tech, it might salvage it - any chance you have a list of some good accounts to follow?
[22:28:30] azor: has left #RubyOnRails: ("WeeChat 1.4")
[22:31:30] mwlang: SteenJobs: My follows are all over the place, but mostly just personal friends, many of who happen to be ruby devs themselves. I’m probably using Twitter a lot like you..just casual check ins on who’s saying what, but mostly it’s my social bookmarking place so I can find useful links again.
[22:32:54] SteenJobs: mwlang: it’s not bad - i’ve always been paranoid about missing important tech related (ruby/rails swift/iOS) updates or articles or links and have yet to find a good solution. there are good aggregators and good organizers. haven’t found something that does both yet (except facebook with their new saving option, but anyone i know on fb posts shit, and i don’t know enough devs)
[22:33:04] SteenJobs: *it’s not a bad idea
[22:33:48] diegoviola: has joined #RubyOnRails
[22:34:49] diegoviola: has joined #RubyOnRails
[22:38:05] meoblast001: has joined #RubyOnRails
[22:39:29] mwlang: Ruby Inside used to be good about keeping up with happenings in the Ruby community, but it’s really fallen off in recent years.
[22:39:37] adre: has joined #RubyOnRails
[22:40:25] mwlang: I just hit up rubytoolbox every so often and click through the categories or crack open other people’s Ruby gems and Rails projects to see how they built it and explore from there to find cool new stuff.
[22:40:45] mwlang: or somebody here answers my question with “why aren’t you using X?”
[22:41:13] mwlang: like dropzone.js yesterday. :-)
[22:44:24] quazimodo: has joined #RubyOnRails
[22:46:02] workmad3: has joined #RubyOnRails
[22:48:32] dikaio: has joined #RubyOnRails
[22:50:48] JoshGlzBrk: has joined #RubyOnRails
[22:51:30] Coldblackice: has joined #RubyOnRails
[22:52:10] SteenJobs: has joined #RubyOnRails
[22:53:15] jenrzzz: has joined #RubyOnRails
[22:55:19] edavis: has joined #RubyOnRails
[22:59:24] Axilla: has joined #RubyOnRails
[23:00:25] hello9: has joined #RubyOnRails
[23:01:19] hello9: is there a way to "stop propagation" of a Rails controller action? Basically on a long running ajax call to a rails action, I'd like to be able to send another JS event to prevent that event from firing. Is this even feasible? Thanks!
[23:02:00] cd83x: has joined #RubyOnRails
[23:02:47] flashpoint9: has joined #RubyOnRails
[23:02:58] mwlang: hello9: feasibility depends on a lot of factors…like how you’re handling the long-running AJAX call on the server side, whether you’re running more than one server instance, etc.
[23:03:46] hahuang65: has joined #RubyOnRails
[23:03:59] hello9: suppose its one instance
[23:04:16] |2701: has joined #RubyOnRails
[23:04:20] hello9: as far as the ajax its just a get request to a controller action that renders a template no redirects or anything
[23:05:51] mwlang: basically, do the work in a Thread and track a pool of running threads. When the abort request comes through, it references the thread you want to kill.
[23:06:22] mwlang: I’m actually not entirely sure it’s doable with MRI Ruby.
[23:07:20] chouhoulis: has joined #RubyOnRails
[23:08:22] jenrzzz: has joined #RubyOnRails
[23:08:22] jenrzzz: has joined #RubyOnRails
[23:08:59] mwlang: but it should be possible with redis tracking the threads since your abort request is necessarily going to come in on another process thread altogether and you have to basically reach over to the running process and smack it down. There’s probably a *clean* approach to this with the background job processors (e.g. sidekiq).
[23:09:58] mwlang: hello9: https://github.com/mperham/sidekiq/wiki/FAQ#how-do-i-cancel-a-sidekiq-job
[23:10:52] AntiSpamMeta: has joined #RubyOnRails
[23:11:34] benlieb: has joined #RubyOnRails
[23:14:35] diegoaguilar: has joined #RubyOnRails
[23:14:37] moeabdol: has joined #RubyOnRails
[23:15:29] FooMunki: has joined #RubyOnRails
[23:16:42] trinaldi: has joined #RubyOnRails
[23:17:38] idefine: has joined #RubyOnRails
[23:18:01] ftj: has joined #RubyOnRails
[23:19:17] ravi_sun66: has joined #RubyOnRails
[23:19:38] dalbuschat: has joined #RubyOnRails
[23:20:16] chouhoulis: has joined #RubyOnRails
[23:21:16] supernov_a2: has joined #RubyOnRails
[23:22:04] supernov_a: has joined #RubyOnRails
[23:23:44] lessless: has joined #RubyOnRails
[23:28:15] m1lt0n: has joined #RubyOnRails
[23:28:38] macsteps: has joined #RubyOnRails
[23:29:07] HenriettaSalt: has joined #RubyOnRails
[23:35:19] wldcordeiro: has joined #RubyOnRails
[23:39:00] duncannz: has joined #RubyOnRails
[23:48:14] roamingdog: has joined #RubyOnRails
[23:49:13] _Tariq: has joined #RubyOnRails
[23:51:46] polyidus: has joined #RubyOnRails
[23:55:01] macsteps: has joined #RubyOnRails
[23:55:32] diegoaguilar: has joined #RubyOnRails
[23:56:43] ornerymoose: has joined #RubyOnRails
[23:59:14] benlieb: has joined #RubyOnRails