« Back to channel list

#RubyOnRails - 06 February 2016

« Back 1 day Forward 1 day »
[00:02:08] pawnbox: has joined #RubyOnRails
[00:08:54] sandstrom: has joined #RubyOnRails
[00:10:09] baweaver: has joined #RubyOnRails
[00:11:22] rhizome: it looks like you might be mixing controller and integration testing together
[00:12:45] jgt4: has joined #RubyOnRails
[00:14:37] dopie: i thought so
[00:14:48] dopie: so in the controller what would I be testing?
[00:17:00] lexiMon: has joined #RubyOnRails
[00:17:03] dopamean_: has joined #RubyOnRails
[00:17:05] Limix: has joined #RubyOnRails
[00:17:05] Oliphaunte: has joined #RubyOnRails
[00:18:28] lewis: has joined #RubyOnRails
[00:18:30] coderMe: has joined #RubyOnRails
[00:19:18] dopie: rhizome: so in my controller https://gist.github.com/staycreativedesign/b8ec894dcbda2a0cfdc3 what would I be testing?!
[00:19:20] smathy: dopie, I added a comment to your spec showing how I'd lay it out using implicit subject for the response and late bindings for all the context: https://gist.github.com/staycreativedesign/b8ec894dcbda2a0cfdc3#gistcomment-1690629
[00:19:48] lexiMon: has joined #RubyOnRails
[00:19:53] dopie: intersting
[00:20:05] lexiMon: has joined #RubyOnRails
[00:20:23] lexiMon: has joined #RubyOnRails
[00:20:38] silverdust: m:n or n:n which is really many-to-many association
[00:20:41] DLSteve: has joined #RubyOnRails
[00:20:49] silverdust: I've seen both used
[00:20:51] lexiMon: has joined #RubyOnRails
[00:21:03] Devalo: has joined #RubyOnRails
[00:21:07] lexiMon: has joined #RubyOnRails
[00:21:24] smathy: m:n unless they're both the same number.
[00:21:25] lexiMon: has joined #RubyOnRails
[00:21:40] lexileo: has joined #RubyOnRails
[00:22:04] macsteps: has joined #RubyOnRails
[00:23:03] silverdust: the same number how?
[00:23:03] yereby: has joined #RubyOnRails
[00:23:49] griffindy: has joined #RubyOnRails
[00:23:56] dopie: smathy: mind blown at youre awesomeness
[00:24:11] smathy: dopie, I became the rspec whisperer in my previous role.
[00:24:21] smathy: silverdust, exactly, very unusual.
[00:25:02] yereby: has joined #RubyOnRails
[00:25:16] silverdust: nice that I'd always just used m:n then
[00:26:08] sandstrom: has joined #RubyOnRails
[00:26:47] mickey_mouse_3: has joined #RubyOnRails
[00:26:57] smathy: (not saying that what I just said is what people usually mean by n:n - but that *is* really what it means)
[00:27:03] RubyRev_: has joined #RubyOnRails
[00:27:35] dcunit3d: has joined #RubyOnRails
[00:27:52] silverdust: yes I get you
[00:28:40] dopie: smathy: thanks for showing me how to use subject correctly !
[00:29:50] Macaveli: has joined #RubyOnRails
[00:30:18] rubyonrailed: has joined #RubyOnRails
[00:30:42] barhum2013: has joined #RubyOnRails
[00:31:03] jottr: has joined #RubyOnRails
[00:31:25] blackmesa: has joined #RubyOnRails
[00:32:02] pawnbox: has joined #RubyOnRails
[00:33:17] JonasRothmann: has joined #RubyOnRails
[00:34:14] JonasRothmann: My URLs become http://localhost:3000/?%2F%5Bsort%5D=1&commit=Search. How do I make em more clean? So they become http://localhost:3000/?sort=1
[00:34:45] yereby: has joined #RubyOnRails
[00:36:58] Emanon`_: has joined #RubyOnRails
[00:37:13] bronson: JonasRothmann: figure out where in your app you set a /[sort]=1 param and eradicate it?
[00:37:24] jonasrothmann_: has joined #RubyOnRails
[00:37:40] jonasrothmann_: Sry, lagged out
[00:38:13] bronson: JonasRothmann_: figure out where in your app you set a /[sort]=1 param and eradicate it?
[00:38:47] jonasrothmann_: I haven't added anything in controller yet. I just made my view
[00:38:54] jonasrothmann_: I can gist 1 sec
[00:39:05] bronson: something set that bizarre param.
[00:39:23] jonasrothmann_: https://gist.github.com/jonasrh/91e52f26118332ec87a4
[00:39:32] jonasrothmann_: Yeah it's not user friendly at all
[00:41:40] lost_soul_: hey bronson, so about the collect method from earlier. I'm not passing that into a select and trying to submit it to a form, but I'm lost as how to give the form the proper indication of passing the results from the form select to the db http://pastie.org/10710596
[00:42:33] kirillzh: has joined #RubyOnRails
[00:43:43] sandstrom: has joined #RubyOnRails
[00:43:46] srruby: has joined #RubyOnRails
[00:44:50] srruby: San Francisco, Ruby on Rails contract. If I ask $75/hr (W2) will they think I don't know my stuff ?
[00:48:26] lost_soul_: In San Fran? You should be asking upwards of $100/hr
[00:49:23] lost_soul_: It also depends wildly on your level of experience
[00:49:24] srruby: lost_soul: Its a 2 month contract and I'm desperate
[00:49:54] lost_soul_: How many years have you been developing with ruby for?
[00:50:07] jgpawletko: has joined #RubyOnRails
[00:50:59] workmad3: has joined #RubyOnRails
[00:51:00] srruby: lost_soul: Been doing Rails since 2006 and in IT since 1994. I've been working part time doing Rails apps.
[00:51:59] lost_soul_: is this contract on the side, or your primary form of income for that period of time?
[00:52:20] pawnbox: has joined #RubyOnRails
[00:53:11] srruby: I'd like to give them a $ amount that is on the low end, but not so low they thnk I don't know what I'm doing
[00:54:00] srruby: I'll take Ruby work while I look for a Clojure position.
[00:54:11] lost_soul_: is this a start up, company, staffing agency?
[00:55:36] srruby: lost_soul: company. I got an email from one of the engineers.
[00:57:25] Pazician: has joined #RubyOnRails
[00:57:37] lewiz: has joined #RubyOnRails
[00:58:33] lost_soul_: I'd reckon $75 is on the low side for the experience you have
[00:59:07] lost_soul_: Asking between $80-90 seems more reasonable, and you're not low-balling yourself.
[00:59:33] srruby: lost_soul: Thank you.
[01:00:58] sandstrom: has joined #RubyOnRails
[01:02:02] arashb: has joined #RubyOnRails
[01:02:03] ql6wlld: has joined #RubyOnRails
[01:04:19] mostlybadfly: has joined #RubyOnRails
[01:07:00] tetraktys: has joined #RubyOnRails
[01:08:58] codedmart: has joined #RubyOnRails
[01:14:10] rubyonrails656: has joined #RubyOnRails
[01:18:06] sandstrom: has joined #RubyOnRails
[01:18:22] starfox_sf: has joined #RubyOnRails
[01:18:55] starfox_sf: Hi guys, I essentially have a big database of academic papers (which includes information such as field of paper, author, date etc). I wanted to do a rails app that would allow me to easily browse thru this database and do things like get all the papers from from a certain author. I was thinking of using active_admin. Is there any other engine I should check out? this is for use in my research group, so it doesn't need to look
[01:22:29] Devalo: has joined #RubyOnRails
[01:22:53] srruby: has joined #RubyOnRails
[01:25:33] DmitryBochkarev: has joined #RubyOnRails
[01:26:39] DLSteve: has joined #RubyOnRails
[01:27:50] peeja: has joined #RubyOnRails
[01:28:22] ElSif: has joined #RubyOnRails
[01:29:47] Emanon`_: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[01:32:32] rubyonrailed: has joined #RubyOnRails
[01:35:17] sandstrom: has joined #RubyOnRails
[01:38:18] barhum2013: has joined #RubyOnRails
[01:41:50] blackmesa: has joined #RubyOnRails
[01:42:00] pawnbox: has joined #RubyOnRails
[01:43:09] barhum2013: I am looking for a good solution to keep track of unique serial number for products. Anyone has come up with a great solution for this? I am using Spree for this. Right now I am thinking an Invoice has many LineItems (lineitems has a qty field) and a LineItem has_many serial numbers.
[01:45:58] baweaver: has joined #RubyOnRails
[01:45:59] jorrin: has joined #RubyOnRails
[01:46:53] RubyRev: has joined #RubyOnRails
[01:47:58] kirillzh: has joined #RubyOnRails
[01:48:55] neanderslob: has joined #RubyOnRails
[01:49:42] baak: has joined #RubyOnRails
[01:52:12] sandstrom: has joined #RubyOnRails
[01:52:26] srruby: has joined #RubyOnRails
[01:52:38] lost_soul_: I might be missing something out of the blue here, but how does a for_form know how to pass what fields to which db attributes?
[01:52:44] stardiviner: has joined #RubyOnRails
[01:52:53] griffindy: has joined #RubyOnRails
[01:53:39] lost_soul_: I'm replacing an f.number_field with an f.select and are having a hard time understanding how to pass the f.select as the attribute value.
[01:54:10] lost_soul_: http://pastie.org/10710596
[01:56:46] Limix: has joined #RubyOnRails
[02:07:21] baak: has joined #RubyOnRails
[02:08:07] Tekneek: has joined #RubyOnRails
[02:09:16] sandstrom: has joined #RubyOnRails
[02:18:46] SwiftFox: has joined #RubyOnRails
[02:24:04] qejk: has joined #RubyOnRails
[02:26:25] benlieb: has joined #RubyOnRails
[02:26:28] sandstrom: has joined #RubyOnRails
[02:29:51] nodejunkie: has joined #RubyOnRails
[02:30:55] deweysdecimal: has joined #RubyOnRails
[02:33:24] rubyonrailed: has joined #RubyOnRails
[02:35:41] jottr: has joined #RubyOnRails
[02:41:20] rickmasta: has joined #RubyOnRails
[02:43:23] B1n4r10: has joined #RubyOnRails
[02:43:40] sandstrom: has joined #RubyOnRails
[02:47:56] techandy1: has joined #RubyOnRails
[02:49:04] B1n4r10: has joined #RubyOnRails
[02:51:52] rickmasta: has joined #RubyOnRails
[02:55:19] s2013: has joined #RubyOnRails
[02:56:12] baweaver: has joined #RubyOnRails
[02:56:13] s2013: whats up yall
[02:58:34] Pazician: has joined #RubyOnRails
[02:58:43] s2013: tubbo you around?
[02:59:54] rickmasta: has joined #RubyOnRails
[03:00:51] sandstrom: has joined #RubyOnRails
[03:02:55] pawnbox: has joined #RubyOnRails
[03:05:44] arashb: has joined #RubyOnRails
[03:18:07] sandstrom: has joined #RubyOnRails
[03:19:11] dcunit3d: has joined #RubyOnRails
[03:19:19] SteenJobs: has joined #RubyOnRails
[03:22:16] B1n4r10: has joined #RubyOnRails
[03:22:56] wethu: has joined #RubyOnRails
[03:24:00] rickmasta: has joined #RubyOnRails
[03:24:47] baweaver: has joined #RubyOnRails
[03:32:42] pawnbox: has joined #RubyOnRails
[03:34:11] rubyonrailed: has joined #RubyOnRails
[03:34:20] yfeldblum: has joined #RubyOnRails
[03:35:19] sandstrom: has joined #RubyOnRails
[03:36:35] jottr: has joined #RubyOnRails
[03:39:12] rubyonrailed: has joined #RubyOnRails
[03:41:41] Oliphaunte: has joined #RubyOnRails
[03:43:21] Sadin: has joined #RubyOnRails
[03:46:10] rickmasta: has joined #RubyOnRails
[03:48:43] yfeldblum: has joined #RubyOnRails
[03:52:47] emachnic: has joined #RubyOnRails
[03:53:51] peeja: has joined #RubyOnRails
[03:54:40] rogue_koder: has joined #RubyOnRails
[03:55:15] lessless: has joined #RubyOnRails
[04:02:48] rickmasta: has joined #RubyOnRails
[04:04:31] rickmasta: has joined #RubyOnRails
[04:05:27] stardiviner: has joined #RubyOnRails
[04:12:56] pawnbox: has joined #RubyOnRails
[04:13:00] rickmasta: has joined #RubyOnRails
[04:13:30] chouhoulis: has joined #RubyOnRails
[04:14:59] fryguy: has joined #RubyOnRails
[04:15:18] AntiSpamMeta: has joined #RubyOnRails
[04:15:18] treaki: has joined #RubyOnRails
[04:17:24] peeja: has joined #RubyOnRails
[04:18:35] chouhoul_: has joined #RubyOnRails
[04:18:40] braincrash: has joined #RubyOnRails
[04:18:46] robbyoconnor: has joined #RubyOnRails
[04:21:40] peeja_: has joined #RubyOnRails
[04:23:42] rickmasta: has joined #RubyOnRails
[04:23:57] peeja: has joined #RubyOnRails
[04:25:51] RegulationD: has joined #RubyOnRails
[04:30:42] kirillzh: has joined #RubyOnRails
[04:31:43] Demerzel: has left #RubyOnRails: ()
[04:33:02] sandstrom: has joined #RubyOnRails
[04:34:40] rickmasta: has joined #RubyOnRails
[04:36:25] rickmasta: has joined #RubyOnRails
[04:37:19] jottr: has joined #RubyOnRails
[04:37:51] Devalo: has joined #RubyOnRails
[04:38:05] arashb: has joined #RubyOnRails
[04:39:37] seaworthy: can someone recommend a good vanity url gem that will let me convert /users/1 to a /:slug
[04:40:41] braincra-: has joined #RubyOnRails
[04:40:51] baweaver: ....your routes file?
[04:41:25] baweaver: /users/:id is how show works
[04:41:52] baweaver: If it's not an int, assume it's a name search
[04:41:55] baweaver: easy as that
[04:42:08] baweaver: just make sure the name is unique
[04:43:27] baweaver: you don't need a gem for that
[04:43:43] jtdowney: has joined #RubyOnRails
[04:43:43] jtdowney: has joined #RubyOnRails
[04:44:10] TheShaun: has joined #RubyOnRails
[04:45:07] DmitryBochkarev: has joined #RubyOnRails
[04:45:11] techandy1: has joined #RubyOnRails
[04:45:38] arup_r: has joined #RubyOnRails
[04:45:40] seaworthy: what do you think about this http://luwes.co/articles/vanity-urls-for-multiple-controllers-in-rails/
[04:46:23] n00bDev: has joined #RubyOnRails
[04:46:32] rickmasta: has joined #RubyOnRails
[04:47:39] techandy1: hi everybody I need alittle bit of help. I have recently installed ruby and rails but when I type rails -v i don't get the version number I get this: The program 'rails' can be found in the following packages: * ruby-railties-3.2 * ruby-railties-4.0 Try: sudo apt-get install <selected package>. I have rvm sourced and I can get the ruby version number but not rails what did i do wrong or not do.
[04:47:44] rubyonrailed: has joined #RubyOnRails
[04:48:42] speakingcode: has joined #RubyOnRails
[04:49:06] arooni: has joined #RubyOnRails
[04:49:42] havenwood: techandy1: How are you installing rails? Are you a non-root user?
[04:49:50] sandstrom: has joined #RubyOnRails
[04:50:04] havenwood: techandy1: If you're not root, try: gem install rails
[04:50:16] techandy1: @havenwood: yes I am not root
[04:50:38] techandy1: when I run gem install rails i get a long error message
[04:50:46] havenwood: techandy1: gist it?
[04:51:42] wave2: has joined #RubyOnRails
[04:51:46] peeja: has joined #RubyOnRails
[04:52:46] techandy1: @havenwood: https://gist.github.com/anonymous/9d13673d8233daddd1fe
[04:52:46] pawnbox: has joined #RubyOnRails
[04:54:47] havenwood: techandy1: maybe try `rvm autolibs packages` then `rvm requirements`?
[04:54:54] havenwood: techandy1: It seems you're missing deps.
[04:55:03] techandy1: ok I will try that
[04:56:20] havenwood: techandy1: Here's an alternative to RVM if you get stuck (rvm implode): http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you//
[04:57:17] techandy1: @havenwood: how do you usually install ruby on rails?
[04:57:22] havenwood: techandy1: Or brightbox ships Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
[04:57:53] havenwood: techandy1: I usually build a Ruby with ruby-install then switch to it with chruby (or use the package manager Ruby).
[04:58:31] rickmasta: has joined #RubyOnRails
[04:58:39] techandy1: @havenwood: is it easier to do it and manage it that?
[04:58:44] havenwood: techandy1: TIMTOWTDI
[04:59:01] Pazician: has joined #RubyOnRails
[05:00:41] havenwood: techandy1: ruby-install and chruby are lightweight and simple. feel free to visit #rvm for help getting that setup. the brightbox package is nice particularly if you only need one ruby and don't mind sudo.
[05:01:49] havenwood: techandy1: pick your poison
[05:02:40] techandy1: @havenwood: I will try rvm again and if I have no luck I will try one of the others. THank you for your time and help.
[05:02:53] havenwood: techandy1: No prob, good luck! Yell if you get stuck.
[05:04:59] barhum2013: has joined #RubyOnRails
[05:06:59] sandstrom: has joined #RubyOnRails
[05:12:05] rickmasta: has joined #RubyOnRails
[05:12:16] AnoHito_: has joined #RubyOnRails
[05:14:41] crystal77: has joined #RubyOnRails
[05:17:44] sevenseacat: has joined #RubyOnRails
[05:22:50] pawnbox: has joined #RubyOnRails
[05:24:13] sandstrom: has joined #RubyOnRails
[05:28:20] sleungcy: has joined #RubyOnRails
[05:29:28] arup_r: I can handle any exceptions inside the background job like http://edgeguides.rubyonrails.org/active_job_basics.html#exceptions . But how would I ensure that the job will not retry it again? I want to cancel it on exception
[05:31:27] PlasmaStar: has joined #RubyOnRails
[05:35:42] benlieb: has joined #RubyOnRails
[05:38:34] nerium: has joined #RubyOnRails
[05:38:37] djbkd: has joined #RubyOnRails
[05:39:22] jottr: has joined #RubyOnRails
[05:39:46] chouhoulis: has joined #RubyOnRails
[05:41:44] sandstrom: has joined #RubyOnRails
[05:44:23] konsolebox: has joined #RubyOnRails
[05:45:34] yfeldblum: has joined #RubyOnRails
[05:48:05] emachnic: has joined #RubyOnRails
[05:56:40] seaworthy: how do i make helper urls available with this resources :members, as: :users, controller: 'users', param: :slug
[05:56:45] seaworthy: resources :members, as: :users, controller: 'users', param: :slug
[05:58:56] sandstrom: has joined #RubyOnRails
[05:58:57] sevenseacat: as in, routing methods? those routes will produce some
[05:59:04] sevenseacat: use `rake routes` to check out what they are
[05:59:28] seaworthy: it has none
[05:59:53] seaworthy: thats why i am asking
[06:00:27] seaworthy: i need something like member_path
[06:00:36] pawnbox: has joined #RubyOnRails
[06:00:39] blackhuey: has joined #RubyOnRails
[06:01:34] arashb: has joined #RubyOnRails
[06:01:50] seaworthy: https://s3.amazonaws.com/nebulon/tGuJ0.png
[06:01:52] seaworthy: no it doesnt
[06:03:48] sevenseacat: you've done something weird then, because that code works perfectly here
[06:03:56] sevenseacat: gist your routes file?
[06:04:40] sevenseacat: possibly you already have user paths so it wont overwrite them
[06:04:44] seaworthy: https://bpaste.net/show/592afc2dbf7b
[06:05:23] sevenseacat: yeah you do already have resources :users which will generate user paths
[06:05:33] sevenseacat: and you can't have two routes with the same name
[06:06:09] seaworthy: okay so how do i merge these
[06:06:42] sevenseacat: you probably dont, because giving the param option to your existing resources :users will break those controllers
[06:07:04] sevenseacat: why do you want another set of user routes?
[06:07:16] seaworthy: because 1) i want to use slugs
[06:07:27] seaworthy: 2) i want it to say member instead of users
[06:07:33] Seich: has joined #RubyOnRails
[06:07:44] sevenseacat: okay, so why do you want to name it users then?
[06:07:56] seaworthy: i want to name it members
[06:08:06] sevenseacat: then why did you specify as: :users
[06:08:09] sevenseacat: that names it users
[06:08:09] seaworthy: my domain is http://stwaffer.club
[06:08:17] benlieb: has joined #RubyOnRails
[06:08:18] seaworthy: http://staffer.club
[06:08:24] seaworthy: i think itd be bettter with members
[06:08:34] seaworthy: what do you mean?
[06:09:03] sevenseacat: http://guides.rubyonrails.org/routing.html#naming-routes
[06:09:34] arup_r: seaworthy: she is telling when you want them as member, why used `as: :user` option ?
[06:09:53] seaworthy: i dont understand the question
[06:10:17] seaworthy: because when i started developing i show user as the model
[06:10:22] seaworthy: now i need member as the model
[06:10:28] arup_r: what is the point of use `as: :user` here --> resources :members, as: :users, controller: 'users', param: :slug
[06:11:18] seaworthy: this lets me do http://staffer.club/members/arup_r
[06:11:33] seaworthy: before i had users/arup_r
[06:11:55] seaworthy: that lines lets me route it
[06:12:03] arup_r: seaworthy: show the routes.rb file.
[06:12:18] seaworthy: https://bpaste.net/show/592afc2dbf7b
[06:12:23] dionysus69: has joined #RubyOnRails
[06:12:52] seaworthy: he is right about me calling users prior
[06:16:08] sandstrom: has joined #RubyOnRails
[06:20:13] Eswar: has joined #RubyOnRails
[06:21:41] Eswar: has left #RubyOnRails: ()
[06:26:23] arBmind: has joined #RubyOnRails
[06:30:33] fedexo_: has joined #RubyOnRails
[06:30:34] fedexo: has joined #RubyOnRails
[06:30:34] Oliphaunte: has joined #RubyOnRails
[06:33:18] sandstrom: has joined #RubyOnRails
[06:34:02] arup_r: has left #RubyOnRails: ()
[06:36:46] PedramT: has joined #RubyOnRails
[06:38:49] Devalo: has joined #RubyOnRails
[06:40:06] jottr: has joined #RubyOnRails
[06:41:17] maxx88: has joined #RubyOnRails
[06:42:10] nodejunkie: has joined #RubyOnRails
[06:42:41] robbyoconnor: has joined #RubyOnRails
[06:43:20] SteenJobs: has joined #RubyOnRails
[06:44:40] s2013: has joined #RubyOnRails
[06:46:13] rickmasta: has joined #RubyOnRails
[06:47:44] n00bDev: has joined #RubyOnRails
[06:47:48] arup_r: has joined #RubyOnRails
[06:50:42] sandstrom: has joined #RubyOnRails
[06:51:36] Coldblackice: has joined #RubyOnRails
[07:07:02] ziyadb: has joined #RubyOnRails
[07:07:52] sandstrom: has joined #RubyOnRails
[07:09:20] Cervajz: has joined #RubyOnRails
[07:12:23] Devalo: has joined #RubyOnRails
[07:13:34] dionysus69: has joined #RubyOnRails
[07:18:21] Mia: has joined #RubyOnRails
[07:18:21] Mia: has joined #RubyOnRails
[07:22:50] DmitryBochkarev: has joined #RubyOnRails
[07:25:03] sandstrom: has joined #RubyOnRails
[07:25:55] wldcordeiro: has joined #RubyOnRails
[07:29:00] Tempesta: has joined #RubyOnRails
[07:30:16] srinidhi: has joined #RubyOnRails
[07:36:17] robbyoconnor: has joined #RubyOnRails
[07:38:40] celly: has joined #RubyOnRails
[07:40:55] jottr: has joined #RubyOnRails
[07:41:45] sandstrom: has joined #RubyOnRails
[07:42:20] barhum2013: has joined #RubyOnRails
[07:47:45] chouhoulis: has joined #RubyOnRails
[07:50:26] Andr3as: morning everyone
[07:51:33] Andr3as: a quick design question.. when you have different kind of "objects" who share most but not all attributes, would you create different models for that? or would you somehow create one model and try to seperate the different attributes?
[07:54:42] shiffles: has joined #RubyOnRails
[07:54:46] sevenseacat: depends on what they are
[07:56:41] Andr3as: imagine an engine and a transmission
[07:56:52] Andr3as: and you want to "test" them on teststands
[07:58:01] Andr3as: there's a lot of similarity here, but not everything is the same.. a transmission does not have a "power"
[07:58:31] Andr3as: or the engine doesnt have gears
[07:58:52] sandstrom: has joined #RubyOnRails
[07:58:58] Andr3as: but they all have common delivery dates or that they're going to be tested on a test stand
[07:59:39] Andr3as: so, maybe 50% are the same in this case
[08:00:14] Andr3as: and then there's different kind of engines, where there are maybe 90% common attributes
[08:01:07] pawnbox: has joined #RubyOnRails
[08:03:51] arashb: has joined #RubyOnRails
[08:12:57] darutoko: has joined #RubyOnRails
[08:18:13] Ropeney: has joined #RubyOnRails
[08:18:43] ur5us: has joined #RubyOnRails
[08:21:39] quazimodo: has joined #RubyOnRails
[08:21:40] quazimod1: has joined #RubyOnRails
[08:27:24] RegulationD: has joined #RubyOnRails
[08:30:48] pawnbox: has joined #RubyOnRails
[08:35:49] KanKava: has joined #RubyOnRails
[08:35:56] moeabdol: has joined #RubyOnRails
[08:39:58] stardiviner: has joined #RubyOnRails
[08:41:40] jottr: has joined #RubyOnRails
[08:43:51] sleungcy: has joined #RubyOnRails
[08:45:20] dexter-tzu: has joined #RubyOnRails
[08:53:52] mhoungbo: has joined #RubyOnRails
[08:54:10] ferr: has joined #RubyOnRails
[08:54:51] barhum2013: has joined #RubyOnRails
[08:57:00] tildes: has joined #RubyOnRails
[08:58:00] lubekpl: has joined #RubyOnRails
[08:59:03] Guest_: has joined #RubyOnRails
[09:00:44] moeabdol1: has joined #RubyOnRails
[09:01:40] benlieb: has joined #RubyOnRails
[09:02:10] pawnbox: has joined #RubyOnRails
[09:05:00] patientj: has joined #RubyOnRails
[09:05:57] pawnbox: has joined #RubyOnRails
[09:14:51] tetraktys: has joined #RubyOnRails
[09:17:09] nfk: has joined #RubyOnRails
[09:21:38] gingray: has joined #RubyOnRails
[09:23:46] jottr: has joined #RubyOnRails
[09:24:39] mhoungbo: has joined #RubyOnRails
[09:25:28] barhum2013: has joined #RubyOnRails
[09:25:33] zworks: has joined #RubyOnRails
[09:27:18] zworks: I have an app with the following structure, A user (Devise) has one CV, one cv has many projects, now if i am given the project id how to get the owner of the project?
[09:28:31] Radar: zworks: project.cv.user
[09:29:29] yfeldblum: has joined #RubyOnRails
[09:30:21] zworks: well, the terms cv and project will be dynamic , means not known until runtime, i am only given with the record
[09:30:41] Radar: ACTION must've missed that in the original question.
[09:30:56] Radar: zworks: a proper example, please.
[09:31:25] zworks: the structure i mentioned in the initial question is real, and
[09:31:54] zworks: a cv has many sub records like project, experience, education etc..
[09:32:24] sevenseacat: how is that dynamic?
[09:32:34] zworks: a record of one of these types is given, i want to get the owner of it
[09:32:44] sandstrom: has joined #RubyOnRails
[09:32:45] Radar: zworks: Real code please.
[09:32:47] sevenseacat: how does that change what Radar said?
[09:32:53] zworks: the record type will be sent from the front end
[09:33:04] Radar: show us the associations exactly and what it is exactly that you're trying to accomplish and we'll show you how todo it.
[09:33:04] sevenseacat: get the CV, then get the user
[09:33:08] helpa: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[09:33:32] gingray: has joined #RubyOnRails
[09:34:24] Radar: sevenseacat: go to bed
[09:34:33] sevenseacat: Radar: it's 5:30pm
[09:34:35] Radar: (oh it's only 5:30pm there)
[09:34:36] zworks: well, i don't know the object's parent is a cv until runtime :)
[09:34:50] sevenseacat: Radar: timezones, dear
[09:34:50] Radar: zworks: Please follow all lighted signs and crew member instructions.
[09:34:55] Radar: sevenseacat: how do they even
[09:35:01] sevenseacat: not all of us are off on Italian holidays
[09:35:30] zworks: code is not ready yet, first i need to know how to do it before code
[09:35:41] sevenseacat: zworks: it seems we have a problem then
[09:35:43] Radar: zworks: Ok. Please come to us when you have a real problem.
[09:35:56] Radar: zworks: It's really hard to help you when we can't see things happening for ourselves.
[09:36:29] sevenseacat: so far, I can understand "I have a record that belongs to a CV, but I don't know that the object's parent is a CV"
[09:38:09] zworks: the type of record is sent from the front end with javascript, in the backend there will be a common function to process it instead having separate actions for various record types
[09:38:14] kitsuneyo: has joined #RubyOnRails
[09:39:11] Radar: zworks: For the 3rd and final time: show me some code or else I cannot help you.
[09:39:38] Radar: That still is not code.
[09:40:17] wethu: has joined #RubyOnRails
[09:41:52] krzkrz: has joined #RubyOnRails
[09:42:04] zworks: ok, i said that, that part of the app i didn't start yet
[09:42:18] Radar: [10:35:43] <Radar> zworks: Ok. Please come to us when you have a real problem.
[09:42:19] Radar: bye for now
[09:43:03] lacrymology: has joined #RubyOnRails
[09:43:15] zworks: not started code doesn't mean there is not a real problem
[09:43:44] sevenseacat: zworks: then you need to do a better job of explaining what that problem is
[09:43:58] sevenseacat: because it might be clear in your head, but you are not expressing it clearly to us
[09:44:14] zworks: I explanied as i can :) thanks for ur time and sorry for the inconvenience :)
[09:44:24] sevenseacat: k. good luck.
[09:44:37] moeabdol2: has joined #RubyOnRails
[09:45:04] sleungcy: has joined #RubyOnRails
[09:45:27] zworks: I just decided to add another column 'user_id' to all record types, so it's easy, what ever the record it may be, i just have to call 'record.user_id' to check if the current user is the owner
[09:48:53] Radar: zworks: I ask for real code because then we can all be talking about the same thing. What you're asking for now is like "please draw me a dragon" and I might draw one that's green with purple spikes and you actually want one that is red and no spikes.
[09:49:05] mhoungbo: has joined #RubyOnRails
[09:49:07] Radar: zworks: Code helps me to understand the problem because it is a common language that we can all speak.
[09:49:19] Radar: Code describes itself much better than text about code ever can.
[09:49:41] sandstrom: has joined #RubyOnRails
[09:50:38] zworks: I understand it 100%, but the situation here is i am still figuring out a way how can i do that, means i am just about to code it
[09:51:26] sevenseacat: Radar: safe travels :)
[09:51:33] marr: has joined #RubyOnRails
[09:54:47] rickmasta: has joined #RubyOnRails
[09:56:52] rickmasta: has joined #RubyOnRails
[10:02:50] jgt4: has joined #RubyOnRails
[10:03:35] Radar: waiting in hotel lobby to pass the time for now. Not travelling just yet.
[10:03:50] Radar: Only another day and change until we're in our Brisbane accommodation.
[10:04:19] Pazician: has joined #RubyOnRails
[10:04:40] ramfjord: has joined #RubyOnRails
[10:05:32] Tekneek: has joined #RubyOnRails
[10:06:02] arashb: has joined #RubyOnRails
[10:06:49] sevenseacat: bringing Shaz to rubyconf? awesome
[10:06:57] sandstrom: has joined #RubyOnRails
[10:07:05] Radar: Yes, she'll be around for it... but not attending the conf itself.
[10:07:23] Cohedrin: has joined #RubyOnRails
[10:08:36] sevenseacat: cool. i'm flying into brisbane on tuesday afternoon
[10:10:36] FernandoBasso: has joined #RubyOnRails
[10:13:52] baweaver: has joined #RubyOnRails
[10:17:32] rickmasta: has joined #RubyOnRails
[10:18:00] Radar: Is there a fancy syntax to specify the default of a boolean field during "rails g migration"?
[10:18:04] Radar: something like: rails g migration add_admin_to_users admin:boolean:false
[10:18:32] sevenseacat: not that i know of.
[10:18:37] sevenseacat: just have to edit the migration
[10:19:23] rickmasta: has joined #RubyOnRails
[10:23:56] sandstrom: has joined #RubyOnRails
[10:25:44] arup_r: has joined #RubyOnRails
[10:26:05] tvw: has joined #RubyOnRails
[10:27:28] moeabdol3: has joined #RubyOnRails
[10:28:24] RegulationD: has joined #RubyOnRails
[10:33:10] LudicrousMango: has joined #RubyOnRails
[10:33:29] rickmasta: has joined #RubyOnRails
[10:34:35] Cervajz_: has joined #RubyOnRails
[10:34:54] wethu: has joined #RubyOnRails
[10:43:56] srinidhi: has joined #RubyOnRails
[10:45:43] sleungcy: has joined #RubyOnRails
[10:45:47] blackmesa: has joined #RubyOnRails
[10:45:50] AzaToth: has joined #RubyOnRails
[10:46:57] worknick: has joined #RubyOnRails
[10:47:09] rickmasta: has joined #RubyOnRails
[10:47:43] worknick: in my follower table i have user and pet id . how can i get all record from pet for all those pet whom user is followig
[10:47:53] worknick: from pet table*
[10:49:20] arup_r: worknick: bi
[10:49:43] arup_r: can you tell the relationship between involved models
[10:50:07] arup_r: mainly between Pet, User and Follower
[10:50:36] theod: has joined #RubyOnRails
[10:51:13] worknick: whats "bi"?
[10:51:24] arup_r: it is typo
[10:51:55] worknick: user has many pets. pet belongs to user. follower belongs to pet. follower has many users.
[10:52:19] worknick: pet has many followers.
[10:52:29] worknick: arup_r: and hi!
[10:53:48] tetraktys: has joined #RubyOnRails
[10:54:20] arup_r: worknick: you need a through relationship now. Do you have that already ? through is the direct answer it seems
[10:54:58] arup_r: Like User has many pets through follower
[10:55:15] worknick: no i dont. will get one now. thanks.
[10:55:38] rickmasta: has joined #RubyOnRails
[10:56:35] Ropeney: has joined #RubyOnRails
[10:57:43] lubekpl: has joined #RubyOnRails
[10:59:20] arup_r: worknick: what you are building? pet selling sites ? :)
[11:01:12] Oliphaunte: has joined #RubyOnRails
[11:02:12] worknick: pet selling is not ethical!
[11:02:38] rickmasta: has joined #RubyOnRails
[11:07:33] FooMunki: has joined #RubyOnRails
[11:09:24] JohnBat26: has joined #RubyOnRails
[11:11:46] moeabdol4: has joined #RubyOnRails
[11:11:57] srinidhi: has joined #RubyOnRails
[11:14:49] aloneintheworld: has joined #RubyOnRails
[11:18:11] tildes: has joined #RubyOnRails
[11:19:09] worknick: arup_r: this fails when dealing with users own pet.
[11:21:05] ql6wlld: has joined #RubyOnRails
[11:27:06] rickmasta: has joined #RubyOnRails
[11:27:10] shibly: has joined #RubyOnRails
[11:27:16] kitsuneyo: has joined #RubyOnRails
[11:27:19] shibly: has left #RubyOnRails: ()
[11:33:10] dionysus69: has joined #RubyOnRails
[11:35:54] shibly: has joined #RubyOnRails
[11:38:04] kitsuneyo: question about carrierwave. suppose i have a seed record for a Person record. in the dev environment, i then upload a picture with carrierwave and save it to the Person record. i then add the saved filename to the seed data and reset the db. the uploaded picture is still in my app file system. why does it no longer show in the dev version of my app?
[11:39:57] shibly: has left #RubyOnRails: ()
[11:39:59] kitsuneyo: anyone know?
[11:41:35] rickmasta: has joined #RubyOnRails
[11:43:09] rickmasta: has joined #RubyOnRails
[11:46:24] sleungcy: has joined #RubyOnRails
[11:50:08] mhoungbo: has joined #RubyOnRails
[11:50:50] xnuck: has joined #RubyOnRails
[11:51:35] OSIRIS: has joined #RubyOnRails
[11:55:40] Oliphaunte: has joined #RubyOnRails
[12:00:54] kitsuneyo: has joined #RubyOnRails
[12:05:04] tknz: has joined #RubyOnRails
[12:06:51] Cervajz: has joined #RubyOnRails
[12:08:02] arashb: has joined #RubyOnRails
[12:08:07] krzkrz: has joined #RubyOnRails
[12:14:33] Felix444: has joined #RubyOnRails
[12:19:29] Psy-Q: has joined #RubyOnRails
[12:20:35] tetraktys: has joined #RubyOnRails
[12:23:25] konsolebox: has joined #RubyOnRails
[12:23:53] netzfisch: has joined #RubyOnRails
[12:29:58] arup_r: kitallis: because the `id` of the record has changed. carreirwave creates a file system under public/ dir like public/images/users/<id>
[12:30:13] arup_r: you need to re upload the image..
[12:30:46] arup_r: if `id` doesn't match it will not be able to find it
[12:34:50] krzkrz: has joined #RubyOnRails
[12:38:03] user083: has joined #RubyOnRails
[12:40:29] qejk: has joined #RubyOnRails
[12:45:54] akshat: has joined #RubyOnRails
[12:48:06] arup_r: has left #RubyOnRails: ()
[12:49:17] blackmesa: has joined #RubyOnRails
[12:49:55] Oliphaunte: has joined #RubyOnRails
[12:50:55] pawnbox: has joined #RubyOnRails
[12:54:44] workmad3: has joined #RubyOnRails
[12:55:56] yereby: has joined #RubyOnRails
[13:00:48] Nucky: has joined #RubyOnRails
[13:02:04] JDL: has joined #RubyOnRails
[13:08:18] johnflux: has joined #RubyOnRails
[13:08:18] johnflux: has joined #RubyOnRails
[13:09:04] Sadin: has joined #RubyOnRails
[13:16:45] JDL: has left #RubyOnRails: ()
[13:17:25] crystal77: has joined #RubyOnRails
[13:20:10] w0bni: has joined #RubyOnRails
[13:21:06] moeabdol: has joined #RubyOnRails
[13:21:11] zworks: has joined #RubyOnRails
[13:21:50] zworks: Is there a way i can access current_user (Devise) from a model?
[13:22:26] Deck`: has joined #RubyOnRails
[13:25:17] JDL: has joined #RubyOnRails
[13:26:36] coderMe: has joined #RubyOnRails
[13:27:58] soule: has joined #RubyOnRails
[13:34:17] rickmasta: has joined #RubyOnRails
[13:36:17] lipoqil: has joined #RubyOnRails
[13:40:30] sevenseacat: well, yes, but don't.
[13:41:57] arup_r: has joined #RubyOnRails
[13:43:27] DEA7TH: has joined #RubyOnRails
[13:44:35] DEA7TH: Is this code DRY enough or is there a way to make it better? https://gist.github.com/VelizarHristov/9dca15d33fe491811e88
[13:45:48] arup_r: DEA7TH: reasonable code. I don't see anything bad
[13:45:53] zworks: ok, i solved it
[13:46:37] arup_r: too much DRYed code kills the readability ..
[13:46:48] worknick: has joined #RubyOnRails
[13:46:52] worknick: arup_r: ping. you there?
[13:47:28] Papierkorb: DEA7TH: Looks fine to me too. I think I wouldn't even have used an each for it, as in your case, 1) you even waste a line 2) it's test code and IMO as such should always be sequential if possible
[13:48:06] worknick: arup_r: this is how i have created it https://gist.github.com/wrknck/ec290f7238475b96f6df and it gives error Could not find the association :followers in model User
[13:48:50] sleungcy: has joined #RubyOnRails
[13:49:49] arup_r: add has_many :followers in the User model also
[13:50:17] worknick: its in the User model as of now!
[13:50:29] worknick: oh you mean without through
[13:51:00] arup_r: you added through means, that also has to be present in the User model
[13:51:06] worknick: arup_r: yeah. that works. what am I mising here? why was that needed?
[13:51:22] arup_r: that's how has_many through works
[13:53:00] worknick: arup_r: now, if i do current_user.pets.count it shouws count of pets i am followin. how can i get count of pets i own? shall i just follow each of my own pet on itns creation?
[13:55:08] arup_r: has_many :owned_pets, -> (user) { where(pets: {user_id: user.if}) }, dependent: :destroy, class_name 'Pet'
[13:55:11] arup_r: worknick: ^^
[13:55:44] arup_r: ok, no need the scope
[13:56:09] arup_r: has_many :owned_pets, dependent: :destroy, class_name 'Pet'
[13:56:25] worknick: and then do current_user.owned_pets?
[13:57:10] worknick: class_name: or :class_name
[13:57:24] arup_r: class_name: 'Pet' :)
[13:57:30] arup_r: typo will be with me always
[13:57:45] Cervajz: has joined #RubyOnRails
[13:58:09] worknick: arup_r: thatns great. it works. how does it know to get all records from pet class belonging to current user? we ddint specificed any condition?
[13:58:34] arup_r: Look at the query it is doing in the console..
[13:58:56] arup_r: DHH or its team wrote the magic for us.. :D
[13:59:20] worknick: SELECT COUNT(*) FROM "pets" WHERE "pets"."user_id" = $1 [["user_id", 1]]
[13:59:27] yunus: has joined #RubyOnRails
[13:59:37] worknick: but "how" does it know this?
[13:59:53] arup_r: Shhhhhh!!!
[14:00:02] Papierkorb: worknick: You told it through the has_many relation how to access it
[14:00:10] arup_r: worknick: ^^
[14:00:45] arup_r: worknick: say who is "DHH".. not 'what' .. :(
[14:00:47] worknick: i told it to has_many that it has pets, through followers. but when we do :owned_pet we are bypassing that?
[14:00:51] Papierkorb: worknick: DHH is the inventer of Rails, and quite a prominent figure in the scene: https://twitter.com/DHH
[14:00:57] worknick: Who is Mr. DHH?
[14:01:09] worknick: oh i think i know !
[14:01:16] worknick: cant recognize the short form.
[14:01:35] arup_r: worknick: Rails figures it out by the association declaration we have in the model
[14:01:36] braian: has joined #RubyOnRails
[14:01:55] braian: Hi guys, where can I ask about a problem with my code? :D
[14:02:16] worknick: arup_r: ok.
[14:02:17] Papierkorb: braian: Exactly here. Please !gist your code, don't paste it in here if it's more than 2 lines
[14:02:31] arup_r: worknick: that's why I changed the name to `owned_pets` .. if you again write `pets`.. then the first one will be overriden
[14:02:39] Papierkorb: Meh. Did Radar pull my exclamation mark rights?
[14:02:44] defsdoor: has joined #RubyOnRails
[14:02:48] aloneintheworld: has joined #RubyOnRails
[14:03:05] braian: Ok, Thanks!
[14:03:31] braian: sorry.. I'm new here... "!gist" its a command?
[14:03:49] Papierkorb: braian: Yes, but it didn't work. It was supposed to direct you to https://gist.github.com
[14:04:47] _3by8: has joined #RubyOnRails
[14:05:47] arBmind: has joined #RubyOnRails
[14:06:31] _3by8: If you run bundle install as root, can you run it again as the user it should be run as and will that "overwrite" the previous bundle install, so to speak?
[14:06:50] Papierkorb: _3by8: Please don't run bundle install as root. There's no reason to.
[14:07:02] _3by8: Papierkorb: it was a mistake.
[14:07:17] _3by8: Papierkorb: that's why I'm asking if it's a simple fix.
[14:07:31] worknick: Papierkorb: i only have root user on my vps? shall i create normal user just for rails?
[14:07:51] Papierkorb: _3by8: Fix: your-rails-app/ $ sudo chown $USER:$USER -R vendor
[14:07:54] rickmasta: has joined #RubyOnRails
[14:08:13] braian: My code: !gist https://gist.github.com/anonymous/4d0653435744e811d65d . My "returned-ajax" doen't work. The form create the product but I can't show the result in the table
[14:08:17] sevenseacat: Papierkorb: it has to be at the start of the line, not in the middle of a sentence
[14:08:22] Papierkorb: worknick: Yes please! It's a really really bad idea to run any service as root
[14:08:24] nerium: has joined #RubyOnRails
[14:08:39] braian: Sorry, I don't know how to use !gist xD
[14:08:56] Papierkorb: braian: It's for telling people to use gists, not for people posting their link :)
[14:09:04] s2013: has joined #RubyOnRails
[14:09:09] srinidhi: has joined #RubyOnRails
[14:09:42] Papierkorb: braian: One of the benefits of gists is that you can paste multiple files and have it readable.
[14:10:56] braian: Ok, I'll upload the files then... And how can ask you guys for help next? private msg or how?
[14:11:18] worknick: Papierkorb: ok
[14:11:21] kirillzh: has joined #RubyOnRails
[14:11:39] Papierkorb: braian: When you did that and it's actually readable with that, post the link and tell us any issue you're having. "Doesn't work" is no error description.
[14:12:00] moring: has joined #RubyOnRails
[14:13:49] Papierkorb: worknick: Think of it this way: root can do anything. If it would be a real computer, root would be able to even reflash the BIOS (or UEFI). Do you want an attacker to be able to not only steal and manipulate any data, but also brick your HW?
[14:15:23] codedmart: has joined #RubyOnRails
[14:15:33] worknick: Papierkorb: yeah. i was just checking if its really required. was anyhow going to do that once developement done.
[14:15:40] barhum2013: has joined #RubyOnRails
[14:15:59] Papierkorb: worknick: Are you new to Linux?
[14:15:59] wethu: has joined #RubyOnRails
[14:16:05] braian: Here is my code: https://gist.github.com/anonymous/e02b185c65bc2ec297a9 I can create products with the modal window but I can't make the ajax view respond adding them to the view. I think my coffescript it's wrong... :(
[14:17:13] tvw: has joined #RubyOnRails
[14:17:19] Yeomra: has joined #RubyOnRails
[14:17:47] worknick: Papierkorb: no.
[14:18:36] chouhoulis: has joined #RubyOnRails
[14:18:36] roshanavand: has joined #RubyOnRails
[14:21:02] Papierkorb: braian: https://gist.github.com/anonymous/e02b185c65bc2ec297a9#file-create-js-erb-L3 you're rendering 'row', but in your index you're rendering the partial 'product'
[14:21:31] rickmasta: has joined #RubyOnRails
[14:22:13] braian: Ohh I'll check it!
[14:22:41] Papierkorb: braian: also check your logs.
[14:23:22] Yeomra_: has joined #RubyOnRails
[14:24:22] worknick: any idea, how can I specify link colors for specific id AND class both?
[14:24:26] worknick: combination.
[14:24:38] worknick: #id .class a:link do not work.
[14:25:36] sevenseacat: that selector selects .class inside #id.
[14:25:51] Papierkorb: worknick: #id.class
[14:25:55] sevenseacat: multiple selectors are separated by commas.
[14:26:04] sevenseacat: Papierkorb: no.
[14:26:06] IrishGringo: has joined #RubyOnRails
[14:26:13] braian: Papierkorb still not render the ajax response :/
[14:26:14] Papierkorb: sevenseacat: that's how I interpreted his question
[14:26:23] worknick: #id.class without space also do not wokr.
[14:26:46] worknick: sevenseacat: yes i want to set this link color to that class only if its in that specific id.
[14:27:03] Papierkorb: braian: check your logs for errors. Also check your browsers console output for errors
[14:27:06] devdazed: has joined #RubyOnRails
[14:27:08] sevenseacat: then your original selector was correct.
[14:27:13] braian: Papierkorb: the console doen't say nothing, just the log with the result of the created item on the db
[14:27:23] worknick: ok. then something else might be interfering. i will check.
[14:27:31] sevenseacat: if you want to select links inside #id .class
[14:27:52] fgo: has joined #RubyOnRails
[14:28:20] Papierkorb: worknick: Manually run the append() with some dummy data and check if it works for that. Then, check that you're not appending an empty string (as in 'nothing')
[14:28:29] sevenseacat: worknick: however, #css is that-a-way
[14:29:19] worknick: replacing link_To with button_to solved it!
[14:29:23] arup_r: worknick: CSS is much harder than Math :(
[14:29:46] sevenseacat: thats a hell of an xy problem
[14:29:50] sevenseacat: solution, rather
[14:29:58] RegulationD: has joined #RubyOnRails
[14:30:03] fgo: sevenseacat :)
[14:30:35] fgo: sevenseacat: Congrats on the book! Will you be writing Rails 5 in Action?
[14:30:46] sevenseacat: fgo: thanks :) no, i will not be
[14:32:48] coderMe: has joined #RubyOnRails
[14:33:09] ych: has joined #RubyOnRails
[14:37:57] srinidhi: has joined #RubyOnRails
[14:38:34] rickmasta: has joined #RubyOnRails
[14:39:41] arup_r: has joined #RubyOnRails
[14:40:47] braian: Papierkorb: Sorry, man. My console or chrome's console don't show me nothing, no errors... just doen't print the item on the view... :/
[14:41:26] Papierkorb: braian: tried a manual append() call?
[14:41:35] Papierkorb: braian: if that prints nothing, the call is bogus
[14:41:45] braian: ok! I'll try!
[14:42:05] msyvich: has joined #RubyOnRails
[14:42:33] peeja: has joined #RubyOnRails
[14:47:25] dionysus69: has joined #RubyOnRails
[14:47:38] enkristoffer: has joined #RubyOnRails
[14:47:40] blackmesa: has joined #RubyOnRails
[14:47:48] Spami: has joined #RubyOnRails
[14:49:53] sleungcy: has joined #RubyOnRails
[14:52:37] livcd_: has joined #RubyOnRails
[14:55:16] pwnd_nsfw: I don't much like prax
[14:55:32] pwnd_nsfw: Or I don't like it's documentation, one or the othr
[14:58:16] speakingcode: has joined #RubyOnRails
[15:02:12] adavia: has joined #RubyOnRails
[15:03:27] macsteps: has joined #RubyOnRails
[15:06:54] PedramT: has joined #RubyOnRails
[15:07:44] pawnbox: has joined #RubyOnRails
[15:08:09] rickmasta: has joined #RubyOnRails
[15:09:43] worknick: arup_r: i have petactivity class and user class. user has many petactivities. petactivity belongs to user. here while doing current_user.petactivities.each how can i print it according to order desc of petactivity? currently it print all activity of first pet, then second and so on.
[15:09:47] rickmasta: has joined #RubyOnRails
[15:10:46] arup_r: order by what ?
[15:11:32] arup_r: again need the model association, and name of the order by column of what table..
[15:11:43] worknick: order desc of petactivity
[15:11:54] TheNet: has joined #RubyOnRails
[15:12:31] worknick: i gave the model association above.
[15:12:55] arup_r: current_user.petactivities.order("petactivities.updated_at desc").each
[15:14:44] chouhoulis: has joined #RubyOnRails
[15:16:36] TheNet: has joined #RubyOnRails
[15:18:14] worknick: arup_r: thanks.
[15:18:28] arup_r: worknick: np. :)
[15:21:02] TheNet: has joined #RubyOnRails
[15:22:16] PedramT: has joined #RubyOnRails
[15:22:32] TheNet: where do CSRF tokens fit into a public api?
[15:22:44] _Tariq: has joined #RubyOnRails
[15:24:13] mhoungbo: has joined #RubyOnRails
[15:24:17] TheNet: just disable them?
[15:25:04] moeabdol: has joined #RubyOnRails
[15:25:30] DoubleMalt: has joined #RubyOnRails
[15:25:36] arup_r: TheNet: I did it like that.. by skipping CSRF
[15:25:40] braian: Guys, my code: https://gist.github.com/anonymous/24541040f11ffe9b1156 I have a problema with the template's render I think. Doen't show me the result in the table after create a item. Thanks!
[15:26:32] barhum2013: has joined #RubyOnRails
[15:26:40] srinidhi: has joined #RubyOnRails
[15:27:09] macsteps: has joined #RubyOnRails
[15:27:31] arup_r: braian: you need to pass the product local var from here .. $('#products').append("<%= j render(:partial => 'product') %>");
[15:27:35] arup_r: you didn't
[15:27:49] arup_r: you just rendered the partial..
[15:28:03] arup_r: $('#products').append("<%= j render(:partial => 'product', product: @product) %>");
[15:28:05] arup_r: will fix it
[15:28:15] braian: I'll try that! thanks a lot!! <3 <3
[15:28:33] arup_r: I need too much <3 <3 ,,, thanks for that
[15:28:46] braian: hehehe :)
[15:29:29] TheNet: has joined #RubyOnRails
[15:29:33] ferr: has joined #RubyOnRails
[15:30:34] braian: arup_r: Sorry, the error is the same: ActionView::Template::Error (undefined local variable or method `product' for...
[15:31:01] braian: I can create products but the problem is on the view, doesn't refresh it
[15:31:08] arup_r: ok one min
[15:31:33] braian: just tell me if you need more files
[15:31:54] arup_r: $('#products').append("<%= j render(:partial => 'product', locals: { product: @product} ) %>");
[15:31:59] arup_r: try now :)
[15:32:38] PedramT: has joined #RubyOnRails
[15:32:50] TheNet: has joined #RubyOnRails
[15:33:58] braian: arup_r: Ok! No errors now... but still doesn't refresh the view
[15:34:09] arup_r: that is your JS issue.. :p
[15:34:17] arup_r: probably wrong thing..
[15:34:33] braian: Yes, I think that...
[15:34:34] arup_r: where is #products ?
[15:34:50] braian: Is the tbody
[15:35:00] arup_r: ok I can see
[15:35:01] braian: <tbody id="products">
[15:35:14] PedramT: has joined #RubyOnRails
[15:35:30] solars: has joined #RubyOnRails
[15:36:38] morfin: i thought not everyone write <table ...><thead>...</thead><tbody><!-- table contents --></tbody></table>
[15:36:50] arup_r: braian: this is wired.. then
[15:37:37] arup_r: braian: do you have the dom <tbody> in the view if you inspect.. just asking. You should have :p
[15:37:58] arup_r: I mean if you inspect browser..
[15:38:15] morfin: modern browsers create it in table automatically but without id
[15:38:34] arup_r: braian: you can see the id there?
[15:38:48] morfin: maybe you somewhere tried to use duplicated id?
[15:38:50] arup_r: seems like morfin is correct,, please double check
[15:39:14] arup_r: that is the only possibility for not being able to see the dom
[15:39:21] jottr: has joined #RubyOnRails
[15:39:26] braian: I have 2 tbody
[15:39:37] braian: for the title of the columns
[15:39:39] arup_r: but the `ID` ?
[15:40:10] braian: No, just 2 tags, only the second with the id="products"
[15:40:14] rickmasta: has joined #RubyOnRails
[15:40:40] braian: the first has the title of the columns, and the other the info about the product
[15:41:17] gingray: has joined #RubyOnRails
[15:42:00] Cervajz: has joined #RubyOnRails
[15:42:21] intrigue_: has joined #RubyOnRails
[15:42:34] jottr: has joined #RubyOnRails
[15:43:01] duderono_: has joined #RubyOnRails
[15:43:22] arup_r: in your create.js.erb add console.log($("#products").length); and see in your browser dev tool console what it is printing..
[15:43:27] arup_r: and report back :p
[15:43:34] northfurr: has joined #RubyOnRails
[15:43:36] northfurr: has joined #RubyOnRails
[15:43:58] quacker: has joined #RubyOnRails
[15:44:07] The_Phoenix: has joined #RubyOnRails
[15:45:07] YankNYC: has joined #RubyOnRails
[15:45:37] braian: Ok, nothing happend...
[15:45:46] northfurr: trying to implement ajax for the first time and failing: https://gist.github.com/anonymous/d9b9c2165cb87c66c024
[15:45:50] arup_r: it should print at least 0
[15:45:56] braian: I think the create.js.erb never executed
[15:46:02] arup_r: nothing happened is impossible
[15:46:07] Cervajz_: has joined #RubyOnRails
[15:46:28] arup_r: it was executing. otherwise you wouldn't get server error
[15:46:29] northfurr: Trying to make this button, which targets some methods i???ve set up for the acts_as_votable_gem, to toggle between favoriting/unfavoriting
[15:47:05] braian: The product was created but no logs in the chrome's console. Just "XHR finished loading: POST "http://localhost:3000/products"."
[15:47:07] arup_r: braian: check your rails log.. when you are creating... what is happening
[15:47:20] arup_r: add the rails sever log then
[15:47:33] arup_r: i am here 5 mins more.. need to go for dinner.. :)
[15:47:34] tetraktys: has joined #RubyOnRails
[15:48:33] arup_r: braian: only format.js is enough.. why this https://gist.github.com/anonymous/24541040f11ffe9b1156#file-products_controller-rb-L24
[15:48:51] arup_r: what are you trying to ?
[15:48:58] braian: the console says: commit transaccion and "Rendered products/_product.html.erb (0.4ms)"
[15:49:11] braian: and "Rendered products/create.js.erb (2.8ms)"
[15:49:11] arup_r: just remove it... and do only format.js
[15:49:13] ql6wlld_: has joined #RubyOnRails
[15:49:14] ych: has joined #RubyOnRails
[15:49:27] _3by8: So what's typically considered to be the best method of deploying? Do you guys just clone a git repo to a remote VM or what?
[15:49:35] arup_r: do what i said. I don't what the code is doing rthere..
[15:50:04] arup_r: ACTION getting ready for dinner
[15:50:05] braian: so... only format.js on create method?
[15:50:42] sleungcy: has joined #RubyOnRails
[15:50:52] rickmasta: has joined #RubyOnRails
[15:51:08] TheNet: what parameters does rails expect for a new record POST?
[15:51:38] luizpv: has joined #RubyOnRails
[15:51:44] braian: the same result, no refresh the view
[15:51:53] arup_r: TheNet: all the model attrubtes,, that you want to capture
[15:52:19] arup_r: nothing console too ?
[15:52:42] benhuda: has joined #RubyOnRails
[15:52:56] braian: no errors on server console or chrome's console
[15:53:01] arup_r: braian: take a break and then work again. some silly thing is going on
[15:53:12] braian: haaha yes, I ll do that
[15:53:17] intrigue_: has left #RubyOnRails: ()
[15:53:19] dragonkh: has joined #RubyOnRails
[15:53:28] braian: Ill back on few hours! Thanks a lot guys :D
[15:53:37] arup_r: braian: cool.
[15:53:44] braian: See you later!
[15:54:11] TheNet: arup_r: I get "ActionController::ParameterMissing (param is missing or the value is empty: user):"
[15:54:39] arup_r: TheNet: yes, those params has to comes inside the user as a root
[15:54:44] workmad3: has joined #RubyOnRails
[15:54:56] arup_r: like params { ... , user: { attr1, attr2,.. }}
[15:55:15] TheNet: ah right, I understand
[15:55:51] arup_r: because you have strong param declaration .. were you probably wrote params.require(:user).permit(..) but in your actual post request that user is absent.
[15:55:58] arup_r: TheNet: ^^ that is why the error
[15:56:27] TheNet: arup_r: yeah, I was passing the parameters in the root
[15:56:33] TheNet: rather than in a user object
[15:56:36] NBarnes: has joined #RubyOnRails
[15:57:09] TheNet: arup_r that worked, thank you
[15:57:33] zeros0623: has joined #RubyOnRails
[15:57:36] intrigueD: has joined #RubyOnRails
[15:57:42] arup_r: northfurr: what you meant by failing ?
[15:57:57] intrigueD: _3by8: check out Capistrano https://github.com/capistrano/capistrano
[15:58:08] intrigueD: _3by8: I quite liked mina too. It's super simple to use: https://github.com/mina-deploy/mina
[15:58:18] arup_r: TheNet: wc
[15:58:44] arup_r: yeah, if you teach Capistrano about your server it does all for you..
[15:58:52] _3by8: intrigueD: thanks for the tip
[15:58:55] arup_r: but painful set up for first time..
[15:59:02] arup_r: for me actually :D
[15:59:16] rickmasta: has joined #RubyOnRails
[15:59:17] intrigueD: I agree with that, but wonderful once it's ready :)
[15:59:42] intrigueD: arup_r: Are you a GitHub user?
[15:59:42] northfurr: arup_r: I think my href rewrite is messing up???if I load the page and click a ???.favorited??? item a few times I???ll get favorite -> unfavorite -> ununfavorite
[16:00:01] arup_r: intrigueD: https://github.com/aruprakshit
[16:00:07] duffman728: has joined #RubyOnRails
[16:00:33] arup_r: northfurr: Are you getting any server error or client side error ?
[16:00:36] blackmes1: has joined #RubyOnRails
[16:00:51] intrigueD: Do you know how to find the history of a line in a particular file, via the GitHub web interface? I can use blame to determine the last commit that affected the line, but I want to look back further :|
[16:01:08] jottr_: has joined #RubyOnRails
[16:01:16] arup_r: for each file there is a history button..
[16:01:24] arup_r: click it will show the history
[16:01:30] arup_r: for that specific file..
[16:01:38] arup_r: you can do blame also
[16:02:04] arup_r: intrigueD: why someone screwed your code? :D and I want to fins out "Who" :p
[16:02:05] intrigueD: I want to isolate the line though, it's a big file with a lot of churn
[16:02:25] intrigueD: No, I want to find out when a change was introduced to that line
[16:02:51] intrigueD: But it wasn't in the last commit, unfortunately
[16:03:00] arup_r: intrigueD: ok, then you use git locally.. I don't think GitHub that fine feature yet..
[16:03:03] intrigueD: I imagine it's possible via git on the command line actually
[16:03:13] srinidhi: has joined #RubyOnRails
[16:03:25] arup_r: but some times blam and history from GitHub UI is useful and helpful too
[16:03:53] duffman728: has joined #RubyOnRails
[16:05:47] northfurr: arup_r: I don???t think it???s refreshing the DOM
[16:06:27] arup_r: northfurr: you might be correct, debug with Ajax/JS stuff needs real code to see
[16:06:52] northfurr: like when I click a ???.favorite??? item its class changes to ???.favorited???, but when I click it again it still runs through the ???.favorite??? block
[16:07:26] arup_r: ok.. then you are not changing the link or something like that
[16:08:09] ferr: has joined #RubyOnRails
[16:08:29] arup_r: northfurr: make two links in the view one for following and the other for unfollow.. and do a condition check and show either one when page loading.. and when doing Ajax.. just add the correct dom and delete the old
[16:08:42] arup_r: This is one way of many to solve this
[16:09:37] northfurr: is there a way to add a link_to item in jQuery?
[16:09:55] arup_r: yes, .. but what item ?
[16:11:15] intrigueD: ah I found the commit. Git is awesome :D
[16:11:26] northfurr: something like: <%= link_to fa_icon("heart"), favorite_school_path(school), method: :put, remote: true, class: "favorite" %>
[16:11:29] arup_r: northfurr: with jquery, you can not get link_to .. but rendered HTML <anchor>
[16:12:34] arup_r: northfurr: only link change is not sufficient, I think link_to store some hiddent attributes to make Ajax call, like put or patch or post etc..
[16:12:43] _3by8: Okay so my app is up and running on a VM in New York but in Rails' console, whenever I try to create a model object, it errors out, telling me that I haven't supplied a password... supposedly the password is supplied in an environment variable but running printenv doesn't show it. I can see it in /etc/default/unicorn but I have no clue what I'm doing. I thought starting Unicorn would have been enough.
[16:13:09] arup_r: intrigueD: better is you create to seprate dom and replace it as you need instead of editing the anchor attributes
[16:15:53] chouhoulis: has joined #RubyOnRails
[16:16:41] pawnbox: has joined #RubyOnRails
[16:17:45] baweaver: has joined #RubyOnRails
[16:21:28] pawnbox: has joined #RubyOnRails
[16:24:03] worknick: ACTION blames arup_r
[16:24:16] worknick: oh. much time has passed.
[16:24:30] worknick: nothing. just a wrong joke at wrong time.
[16:24:35] dionysus69: has joined #RubyOnRails
[16:24:36] arup_r: what I broke in your code?
[16:24:40] arup_r: ohh... :p
[16:25:01] worknick: no. i was reading your previoun discussion. and my weechat window was there only. i thought thats latest. then i pressed down to come here.
[16:27:20] netzfisch: has joined #RubyOnRails
[16:27:41] FernandoBasso: has joined #RubyOnRails
[16:29:21] Limix: has joined #RubyOnRails
[16:31:10] djbkd: has joined #RubyOnRails
[16:34:48] greengriminal: has joined #RubyOnRails
[16:35:03] zeros0623: has joined #RubyOnRails
[16:35:37] ftj: has joined #RubyOnRails
[16:42:14] arup_r: has left #RubyOnRails: ()
[16:44:46] macsteps: has joined #RubyOnRails
[16:46:04] Deck`: has joined #RubyOnRails
[16:46:05] Limix: has joined #RubyOnRails
[16:47:06] ilhami: has joined #RubyOnRails
[16:47:06] smathy: has joined #RubyOnRails
[16:49:03] msyvich: has joined #RubyOnRails
[16:50:26] ElFerna: has joined #RubyOnRails
[16:51:28] sleungcy: has joined #RubyOnRails
[16:52:00] r0bby_: has joined #RubyOnRails
[16:52:12] ilhami: Can I use Ruby on Rails without knowing Ruby? I mean, can I start learning Ruby by learning its framework first?
[16:52:15] ilhami: is it possible?
[16:52:33] intrigueD: You want to learn to write web apps in Ruby on Rails?
[16:52:51] intrigueD: You need to know Ruby, but you can learn both at the same time
[16:53:08] ilhami: intrigueD, yeah that was what I was asking. :)
[16:53:13] ilhami: and yeah that's what I want.
[16:53:26] ilhami: I need to write some big applications. I hope I can learn it fast.
[16:53:27] intrigueD: go here: https://www.railstutorial.org/book
[16:54:12] intrigueD: excerpt: If you are new to the subject, the Ruby on Rails Tutorial will give you a thorough introduction to web application development, including a basic grounding in Ruby, Rails, HTML & CSS, databases, version control, testing, and deployment
[16:54:21] ilhami: I have two huge projects coming up. :)
[16:54:28] ilhami: that I want to make.
[16:54:31] blackmesa: has joined #RubyOnRails
[16:54:33] ilhami: I am a bit tired of PHP.
[16:55:12] intrigueD: Maybe that tute would be too simple for you if you have a grounding in web dev
[16:55:58] fwaokda: when running the code at the following link I get an empty association when doing an ActiveRecord query for "measurables", but when I check the size my 16 initialized measurables are there. What's the proper way of accessing those in this loop? ... https://gist.github.com/daveomcd/e4e7d4b0b4ecacfa5d69
[16:56:26] Megamos: has joined #RubyOnRails
[16:57:52] ilhami: intrigueD, should I just watch Derek Banas' videos?
[16:58:43] intrigueD: fwaokda: So your Workout model has an association 'has_many :measurables'?
[16:58:52] fwaokda: intrigueD, yes
[16:59:07] ftj: has joined #RubyOnRails
[16:59:11] intrigueD: and the measurables are all persisted in the DB?
[17:00:06] lele: has joined #RubyOnRails
[17:00:06] fwaokda: the measurables dont exists in the database I've just initialized them. So for instance if I do a .count on the association i get 0, but if i do .size i get 16
[17:00:44] arup_r: has joined #RubyOnRails
[17:00:48] dionysus69: has joined #RubyOnRails
[17:00:57] intrigueD: '@all_star_game.workouts.where(all_star_game_id: @all_star_game.id, player_id: participant.player.id).first.try(:measurables)' here you are querying the DB, it will return the items persisted in the DB
[17:05:00] fwaokda: intrigueD, so if i do this,, I get my 16 size -- @all_star_game.workouts.first.measurables.size
[17:05:09] ElFerna: has joined #RubyOnRails
[17:05:24] fwaokda: how can I get only the workout I want with a specified player.id if I don't use where?
[17:05:55] Timberwo|f: has joined #RubyOnRails
[17:10:47] Bloomer: has joined #RubyOnRails
[17:16:07] blackmes1: has joined #RubyOnRails
[17:16:39] chouhoulis: has joined #RubyOnRails
[17:18:16] yereby: has joined #RubyOnRails
[17:20:58] Limix: has joined #RubyOnRails
[17:23:10] jottr: has joined #RubyOnRails
[17:25:52] mistraal: has joined #RubyOnRails
[17:27:47] _3by8: Is it possible to pass the database password through the command line to 'rails console'?
[17:30:30] peeja: has joined #RubyOnRails
[17:30:36] fedexo: has joined #RubyOnRails
[17:33:31] tbuehlmann: _3by8, you could use an environment variable in your database.yml and provide that when starting the rails console
[17:33:45] tbuehlmann: though I'd advise against this. why do you need to do so?
[17:34:45] kies^: has joined #RubyOnRails
[17:35:07] _3by8: tbuehlmann: because whenever I try to start rails console as the rails user on this VM I'm greeted by this error: /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:252:in `mkdir': Permission denied @ dir_s_mkdir - /run/user/0/spring-1000 (Errno::EACCES)
[17:35:31] _3by8: tbuehlmann: I can at least launch rails console as root but the database password environment variable is only set for the rails user
[17:35:56] Scripore: has joined #RubyOnRails
[17:36:24] Cervajz_: has joined #RubyOnRails
[17:37:11] tbuehlmann: sounds like your setup isn't that great
[17:37:57] _3by8: tbuehlmann: it's awful.
[17:38:53] nickjj: _3by8, are you open to drastic changes to make it less awful?
[17:39:08] netzfisch: has joined #RubyOnRails
[17:39:45] _3by8: nickjj: yeah but I don't want to spend a lot of time on the command line. I think I'll just go with someone like Heroku next time.
[17:39:54] _3by8: nickjj: what was your suggestion?
[17:40:28] nickjj: _3by8, i was going to say look into using docker. this blog post covers getting it all working in development https://semaphoreci.com/community/tutorials/dockerizing-a-ruby-on-rails-application
[17:40:58] sandstrom: has joined #RubyOnRails
[17:41:14] _3by8: Thanks for the link nickjj I'll add that to my reading list
[17:43:15] arup_r1: has joined #RubyOnRails
[17:43:25] northfurr: has joined #RubyOnRails
[17:43:53] DmitryBochkarev: has joined #RubyOnRails
[17:45:43] Minscie: has joined #RubyOnRails
[17:46:42] luizpv: has joined #RubyOnRails
[17:48:07] Deck`: has joined #RubyOnRails
[17:50:27] luizpv: Hey guys, a question. How can I pass bind variables to an ActiveRecord select? For example: Group.select('(EXTRACT(epoch FROM created_at) / $1)::int AS interval')
[17:52:13] sleungcy: has joined #RubyOnRails
[17:52:15] baweaver: has joined #RubyOnRails
[17:53:05] jottr_: has joined #RubyOnRails
[17:53:39] northfurr: has joined #RubyOnRails
[17:54:15] Timberwo|f: has joined #RubyOnRails
[17:55:05] s2013: has joined #RubyOnRails
[17:57:38] barhum2013: has joined #RubyOnRails
[17:58:21] sandstrom: has joined #RubyOnRails
[17:59:17] DonOtreply: has joined #RubyOnRails
[18:00:18] fox_mulder_cp: lilvim: u can use plain sql :)
[18:00:30] intrigueD: has joined #RubyOnRails
[18:04:15] srinidhi: has joined #RubyOnRails
[18:05:59] iamse7en: has joined #RubyOnRails
[18:09:16] radar[air]: has joined #RubyOnRails
[18:09:26] radar[air]: Good evening.
[18:15:11] ur5us: has joined #RubyOnRails
[18:15:58] sandstrom: has joined #RubyOnRails
[18:16:07] intrigueD: has joined #RubyOnRails
[18:17:25] chouhoulis: has joined #RubyOnRails
[18:21:36] marcdel: has joined #RubyOnRails
[18:21:56] ur5us: has joined #RubyOnRails
[18:22:33] kies^: has joined #RubyOnRails
[18:22:55] quinguu: has joined #RubyOnRails
[18:23:02] quinguu: has left #RubyOnRails: ()
[18:23:48] StaticVoid: radar[air]: evening.
[18:24:10] northfurr: has joined #RubyOnRails
[18:25:13] quinguu: has joined #RubyOnRails
[18:25:14] quinguu: has left #RubyOnRails: ()
[18:25:14] quinguu: has joined #RubyOnRails
[18:25:14] centrx: has joined #RubyOnRails
[18:25:15] quinguu: has left #RubyOnRails: ()
[18:25:15] quinguu: has joined #RubyOnRails
[18:25:15] quinguu: has left #RubyOnRails: ()
[18:25:15] quinguu: has joined #RubyOnRails
[18:25:17] quinguu: has left #RubyOnRails: ()
[18:25:17] quinguu: has joined #RubyOnRails
[18:25:17] quinguu: has left #RubyOnRails: ()
[18:27:48] macsteps: has joined #RubyOnRails
[18:28:22] Nucky: has joined #RubyOnRails
[18:29:16] arup_r: has joined #RubyOnRails
[18:31:22] djbkd: has joined #RubyOnRails
[18:33:11] sandstrom: has joined #RubyOnRails
[18:34:05] ElFerna: has joined #RubyOnRails
[18:34:25] Coldblackice: has joined #RubyOnRails
[18:34:25] DaniG2k: has joined #RubyOnRails
[18:36:15] joshkovach: has joined #RubyOnRails
[18:41:05] rogue_koder: has joined #RubyOnRails
[18:41:35] s2013: any idea where to find reliable rails freelancers?
[18:41:39] chouhoulis: has joined #RubyOnRails
[18:46:34] mocco: has joined #RubyOnRails
[18:46:58] mocco: has joined #RubyOnRails
[18:47:11] arup_r: s2013: reliable means ?
[18:47:38] Graphettion: has joined #RubyOnRails
[18:47:58] marcdel: has joined #RubyOnRails
[18:48:03] intrigueD: has joined #RubyOnRails
[18:48:12] Limix: has joined #RubyOnRails
[18:49:08] Deck`: has joined #RubyOnRails
[18:49:09] Spami: has joined #RubyOnRails
[18:49:16] mhoungbo: has joined #RubyOnRails
[18:49:31] marcdel_: has joined #RubyOnRails
[18:50:05] devdazed: has joined #RubyOnRails
[18:50:39] sandstrom: has joined #RubyOnRails
[18:51:05] arBmind1: has joined #RubyOnRails
[18:51:28] s2013: if you have to ask
[18:51:59] radar[air]: @s2013 depends on how much you're paying. I know some people who fit that description, but they're not cheap.
[18:52:00] barhum2013: has joined #RubyOnRails
[18:52:07] radar[air]: Ugh did I just @ on IRC
[18:52:10] s2013: haha slack?
[18:52:15] s2013: i started doing the same too
[18:52:27] s2013: depends on what you mean by not cheap
[18:52:29] radar[air]: Yeah, I think that's why. I'm on IRCCloud atm because this airport blocks my ZNC port.
[18:52:36] s2013: which airport are you on?
[18:52:36] radar[air]: s2013: $200/hr.
[18:52:47] s2013: how much do YOU charge?
[18:52:48] Oliphaunte: has joined #RubyOnRails
[18:52:50] radar[air]: FCO, flying to DXB, flying to BNE, then taxi to hotel and sleep, precious sleep.
[18:53:01] sleungcy: has joined #RubyOnRails
[18:53:02] radar[air]: s2013: I charge that much too, but I am not for hire atm because I have a full time job.
[18:53:03] s2013: you were in rome?
[18:53:11] s2013: no i dont wanna hire you but just curious what you charged
[18:53:18] radar[air]: Yeah, I've been on holiday. Visited Rome, Florence and Venice.
[18:53:23] s2013: oh nice. how was it?
[18:54:52] tego101: has joined #RubyOnRails
[18:55:04] Oliphaunte: has joined #RubyOnRails
[18:56:27] radar[air]: It was very nice :D All 3 cities are beautiful places to visit
[18:56:42] greenhat|: has joined #RubyOnRails
[18:56:56] s2013: very cool. im going to beijing/hong kong next month.. and then brazil in june
[18:57:08] s2013: which company are you with now?
[18:57:49] tetraktys: has joined #RubyOnRails
[18:58:37] radar[air]: I'm with Marketplacer now
[18:58:59] radar[air]: Best description of current job is "Co Team Lead"
[18:59:04] Pazician: has joined #RubyOnRails
[19:00:09] s2013: oh ok i remember you told me about them. very cool. just update the (c) 2015 :P
[19:00:49] robbyoconnor: has joined #RubyOnRails
[19:02:25] kies^: has joined #RubyOnRails
[19:07:51] sandstrom: has joined #RubyOnRails
[19:11:35] s2013: also radar[air] if you know anyone you can vouch for let me know.. as long as they are worth it and are interested in few hour gig i am game
[19:13:57] robbyoconnor: has joined #RubyOnRails
[19:15:32] arashb: has joined #RubyOnRails
[19:17:53] Oliphaunte: has joined #RubyOnRails
[19:18:08] yereby: has joined #RubyOnRails
[19:23:07] sankaber: has joined #RubyOnRails
[19:24:08] netzfisch: has joined #RubyOnRails
[19:24:32] Cervajz_: has joined #RubyOnRails
[19:24:36] robbyoconnor: has joined #RubyOnRails
[19:25:08] sandstrom: has joined #RubyOnRails
[19:26:45] Nucky: has joined #RubyOnRails
[19:26:55] msyvich: has joined #RubyOnRails
[19:27:08] arashb: has joined #RubyOnRails
[19:27:11] ramfjord: has joined #RubyOnRails
[19:30:10] Devalo: has joined #RubyOnRails
[19:32:56] n1lo: has joined #RubyOnRails
[19:35:53] arup_r: has left #RubyOnRails: ()
[19:36:09] PedramT: has joined #RubyOnRails
[19:36:16] FooMunki: has joined #RubyOnRails
[19:41:29] coderMe: has joined #RubyOnRails
[19:42:39] sandstrom: has joined #RubyOnRails
[19:43:20] pawnbox: has joined #RubyOnRails
[19:43:53] xlegoman: has joined #RubyOnRails
[19:45:04] Devalo_: has joined #RubyOnRails
[19:46:19] FiredBall-0x71: has joined #RubyOnRails
[19:46:30] Oliphaunte: has joined #RubyOnRails
[19:47:39] rafaelfranca: has joined #RubyOnRails
[19:49:17] FiredBall-0x71: ACTION http://www.pearltrees.com/pvpeliter/laptop-disini-bought-governor/id15409744#item167481741, , xWindow 10 ENTERPRISE , FREE CLASSIFIED OS FROM THE MOST HIGH HAS BEEN RELEASED , CLICK ON THE LINK THAT POP UP AND CLICK DOWNLOAD ... . DON'T FORGET TO JOIN ##Astara ... .
[19:49:20] kies^: has joined #RubyOnRails
[19:49:52] Deck`: has joined #RubyOnRails
[19:52:03] FiredBall-0x71: join ##astara prince
[19:52:05] FiredBall-0x71: http://www.pearltrees.com/pvpeliter/laptop-disini-bought-governor/id15409744#item167481741, , xWindow 10 ENTERPRISE , FREE CLASSIFIED OS FROM THE MOST HIGH HAS BEEN RELEASED , CLICK ON THE LINK THAT POP UP AND CLICK DOWNLOAD ... . DON'T FORGET TO JOIN ##Astara ... .
[19:52:41] guest1239: has joined #RubyOnRails
[19:53:10] baweaver: has joined #RubyOnRails
[19:53:18] akshat: Anybody have a Software Development Process written down?
[19:57:52] Zerh: has joined #RubyOnRails
[19:58:44] mhoungbo: has joined #RubyOnRails
[19:59:24] greengriminal: has joined #RubyOnRails
[19:59:54] sandstrom: has joined #RubyOnRails
[20:01:03] hi5green: has joined #RubyOnRails
[20:02:32] robbyoconnor: has joined #RubyOnRails
[20:03:37] hi5green: Hi all can i get another set of eyes on this gist: https://gist.github.com/anonymous/0d2a0bf90caad568b3fd would like to ensure that the way I have set up my params inside my controller corresponds with how my models are defined.
[20:03:56] Zerh: Can someone help me with my stackoverflow question ? It seems no one found the answer http://stackoverflow.com/questions/35242081/rails-how-to-set-persistent-randomized-cookies
[20:04:15] Zerh: it seems easy, not sure what's missing
[20:10:39] doublemalt_: has joined #RubyOnRails
[20:12:18] djbkd: has joined #RubyOnRails
[20:14:25] rickmasta: has joined #RubyOnRails
[20:14:27] roshanavand: has joined #RubyOnRails
[20:17:04] sandstrom: has joined #RubyOnRails
[20:18:42] codedmart: has joined #RubyOnRails
[20:20:48] codedmart: has joined #RubyOnRails
[20:21:50] macsteps: has joined #RubyOnRails
[20:24:47] rhizome: where does it break?
[20:27:45] ferr: has joined #RubyOnRails
[20:29:07] rubyonrailed: has joined #RubyOnRails
[20:29:44] aloneintheworld: has joined #RubyOnRails
[20:30:25] chouhoulis: has joined #RubyOnRails
[20:30:59] barhum2013: has joined #RubyOnRails
[20:31:44] roshanavand: has joined #RubyOnRails
[20:31:57] RegulationD: has joined #RubyOnRails
[20:34:16] sandstrom: has joined #RubyOnRails
[20:36:07] TDJACR: has joined #RubyOnRails
[20:38:20] Oliphaunte: has joined #RubyOnRails
[20:38:41] Contigi: has joined #RubyOnRails
[20:42:32] Sceko: has joined #RubyOnRails
[20:42:38] rickmasta: has joined #RubyOnRails
[20:42:58] ElFerna: has joined #RubyOnRails
[20:45:11] ElFerna: has joined #RubyOnRails
[20:48:51] JohnBat26: has joined #RubyOnRails
[20:50:36] Deck`: has joined #RubyOnRails
[20:50:53] jmfurlott: has joined #RubyOnRails
[20:51:00] Pazician: has joined #RubyOnRails
[20:51:44] sandstrom: has joined #RubyOnRails
[20:54:16] sleungcy: has joined #RubyOnRails
[20:55:01] luckyruby: has joined #RubyOnRails
[20:56:04] smathy: has joined #RubyOnRails
[20:56:44] dionysus69: has joined #RubyOnRails
[20:59:09] rickmasta: has joined #RubyOnRails
[21:02:30] mostlybadfly: has joined #RubyOnRails
[21:02:46] baweaver: has joined #RubyOnRails
[21:06:02] iamse7en: has joined #RubyOnRails
[21:06:16] Oliphaunte: has joined #RubyOnRails
[21:07:03] tego101: has joined #RubyOnRails
[21:09:02] sandstrom: has joined #RubyOnRails
[21:13:35] IrishGringo: has joined #RubyOnRails
[21:13:38] FooMunki: has joined #RubyOnRails
[21:18:00] Cohedrin: has joined #RubyOnRails
[21:18:45] superlou: has joined #RubyOnRails
[21:20:03] xardion_: has joined #RubyOnRails
[21:21:35] rickmasta: has joined #RubyOnRails
[21:24:17] roamingdog: has joined #RubyOnRails
[21:24:54] rubyonrailed: has joined #RubyOnRails
[21:26:13] sandstrom: has joined #RubyOnRails
[21:27:08] msyvich: has joined #RubyOnRails
[21:29:07] intrigueD: has joined #RubyOnRails
[21:34:46] ur5us: has joined #RubyOnRails
[21:39:13] Scripore: has joined #RubyOnRails
[21:43:44] sandstrom: has joined #RubyOnRails
[21:43:50] chouhoulis: has joined #RubyOnRails
[21:43:55] codedmart: has joined #RubyOnRails
[21:44:17] Aherin: has joined #RubyOnRails
[21:45:39] jxpx777: has joined #RubyOnRails
[21:46:06] rickmasta: has joined #RubyOnRails
[21:47:51] rickmasta: has joined #RubyOnRails
[21:48:32] DonOtreply: has joined #RubyOnRails
[21:49:12] duderonomy: has joined #RubyOnRails
[21:51:26] Deck`: has joined #RubyOnRails
[21:51:39] _Tariq: has joined #RubyOnRails
[21:55:18] sleungcy: has joined #RubyOnRails
[21:58:18] rogue_koder: has joined #RubyOnRails
[21:59:02] Oliphaunte: has joined #RubyOnRails
[22:00:51] sandstrom: has joined #RubyOnRails
[22:04:28] yfeldblum: has joined #RubyOnRails
[22:06:50] Cervajz_: has joined #RubyOnRails
[22:09:27] rubyonrailed: has joined #RubyOnRails
[22:09:36] ElFerna: has joined #RubyOnRails
[22:13:19] netzfisch: has joined #RubyOnRails
[22:14:45] rickmasta: has joined #RubyOnRails
[22:16:02] rickmasta: has joined #RubyOnRails
[22:17:36] ElFerna: has joined #RubyOnRails
[22:18:04] sandstrom: has joined #RubyOnRails
[22:19:26] Oliphaunte: has joined #RubyOnRails
[22:19:44] mhoungbo: has joined #RubyOnRails
[22:23:29] rickmasta: has joined #RubyOnRails
[22:23:57] rogue_koder: has joined #RubyOnRails
[22:24:08] northfurr: has joined #RubyOnRails
[22:26:09] mickey_mouse: has joined #RubyOnRails
[22:30:50] kies^: has joined #RubyOnRails
[22:31:15] roshanavand: what would be the best way to store configurations in database?
[22:31:44] roshanavand: Is the 'parameter, value' a good approach?
[22:32:26] smathy: roshanavand, serialize a YAML structure?
[22:32:29] blackhuey: has joined #RubyOnRails
[22:32:54] roshanavand: @smathy I want to provide an interface where the admin can change configurations values
[22:33:06] ur5us: has joined #RubyOnRails
[22:33:26] smathy: Doesn't change my answer.
[22:33:42] barhum2013: has joined #RubyOnRails
[22:34:59] roshanavand: @smathy I don't clearly understand it, could you please provide a link where can I read more info? not sure if I get the right answer when I google it
[22:35:19] sandstrom: has joined #RubyOnRails
[22:36:53] intrigueD: If you know the fields that you need to store, why not have a settings model?
[22:36:57] moeabdol: has joined #RubyOnRails
[22:37:09] intrigueD: Or are you talking about app configuration?
[22:37:41] kies^: has joined #RubyOnRails
[22:38:06] rickmasta: has joined #RubyOnRails
[22:38:08] intrigueD: Actually, more like a settings table
[22:39:07] Spami: has joined #RubyOnRails
[22:41:04] arooni-mobile: has joined #RubyOnRails
[22:42:09] roshanavand: intrigueD: more like a settings table, I was going to use ActiveRecord::Store (http://api.rubyonrails.org/classes/ActiveRecord/Store.html)
[22:42:38] northfurr: has joined #RubyOnRails
[22:42:55] intrigueD: Cool, didn't know about that!
[22:43:05] sardaukar: has joined #RubyOnRails
[22:43:15] quazimodo: has joined #RubyOnRails
[22:43:20] quazimod1: has joined #RubyOnRails
[22:48:23] RegulationD: has joined #RubyOnRails
[22:48:37] kies^: has joined #RubyOnRails
[22:49:01] northfurr: is there a way to make the compiled application.css available to error pages?
[22:51:32] fox_mulder_cp: i have a User.article.count, i want select top5 authors, but can't write active record query. User.where(article.count != 0) with desc order...
[22:52:01] sandstrom: has joined #RubyOnRails
[22:52:11] Deck`: has joined #RubyOnRails
[22:54:09] synthemesk: has joined #RubyOnRails
[22:54:38] codedmart: has joined #RubyOnRails
[22:54:42] synthemesk: has anyone gotten any session storage other than cookie store to work on rails5? activerecord-session_store does not seem ready
[22:55:48] synthemesk: It seems odd that activerecord-session_store does not even seem to have an alpha considering its under the Rails github organization
[22:56:01] sleungcy: has joined #RubyOnRails
[22:57:55] kies^: has joined #RubyOnRails
[22:58:48] pwnd_nsfw: fox_mulder_cp, where article count is > 0 maybe..?
[22:59:34] fox_mulder_cp: pwnd_nsfw: yes. i want top 5 user by count of articles
[23:00:03] Limix: has joined #RubyOnRails
[23:01:47] wethu: has joined #RubyOnRails
[23:01:52] pwnd_nsfw: User.joins(:articles).group("user.id".having("count(articles.id) > 0").order("count(articles.id) DESC")
[23:01:54] pwnd_nsfw: maybe fox_mulder_cp
[23:01:58] wethu: has joined #RubyOnRails
[23:05:36] intrigueD: Article.group(:user_id).count
[23:07:46] pawnbox: has joined #RubyOnRails
[23:09:14] sandstrom: has joined #RubyOnRails
[23:12:59] timanema: has joined #RubyOnRails
[23:13:38] timanema: hey everyone I want your opinion and or horror reactions to this gem I made :D https://github.com/tanema/ghost_in_the_post
[23:16:35] rickmasta: has joined #RubyOnRails
[23:16:38] Papierkorb: timanema: is that a pun on ghost in the shell?
[23:17:03] timanema: yeah pretty much :P
[23:17:04] kies^: has joined #RubyOnRails
[23:17:44] Papierkorb: Maybe I should publish the Haml Instrumentality Project gem just for the lulz at some point then
[23:18:38] timanema: gems for lulz are best gems
[23:18:51] _Tariq: has joined #RubyOnRails
[23:20:56] fox_mulder_cp: intrigueD: hm. i think about includes and etc activerecord api, but now think about gp to sleep. thanks al;
[23:23:02] braian: has joined #RubyOnRails
[23:26:17] Sadin: has joined #RubyOnRails
[23:26:22] sandstrom: has joined #RubyOnRails
[23:28:47] meoblast001: has joined #RubyOnRails
[23:31:15] baweaver: has joined #RubyOnRails
[23:36:33] kies^: has joined #RubyOnRails
[23:38:10] Zerh: has left #RubyOnRails: ()
[23:39:17] Travis-42: has joined #RubyOnRails
[23:39:37] rickmasta: has joined #RubyOnRails
[23:39:49] Pazician: has joined #RubyOnRails
[23:39:54] Thouren: has joined #RubyOnRails
[23:42:54] kies^: has joined #RubyOnRails
[23:43:14] northfurr: has joined #RubyOnRails
[23:43:39] sandstrom: has joined #RubyOnRails
[23:46:14] Nucky: has joined #RubyOnRails
[23:46:46] StaticVoid: Hi all, I create a local variable in a method in my class: sh = SpinHeader.new(file_store_id: file.id, notes: file.description, stage: row[0])
[23:46:50] rickmasta: has joined #RubyOnRails
[23:47:00] StaticVoid: this is inside an .each loop parsing a csv file
[23:47:16] StaticVoid: full code here: https://gist.github.com/RobvanB/20b7a165a521e03cad39#file-process_files_controller-rb
[23:47:29] Nucky: has joined #RubyOnRails
[23:47:37] StaticVoid: the 'sh' variable gets initialized 'inside' the 'each' loop
[23:47:51] Pazician: has joined #RubyOnRails
[23:48:03] StaticVoid: when it goes to the loop again, the variable is nil.
[23:48:33] StaticVoid: Is this because the scope is limited to the current 'each' block? (Not sure how to explain)
[23:48:50] rickmasta: has joined #RubyOnRails
[23:48:50] StaticVoid: Should I just make it a class variable ?
[23:52:55] Deck`: has joined #RubyOnRails
[23:55:08] Cervajz_: has joined #RubyOnRails
[23:55:26] braian: StaticVoid: Hi! Sorry, I'm really new with Ruby and RoR... Maybe you shoul try to post your problema on #ruby :) The ppl here are a bit busy i think xD
[23:55:30] macsteps: has joined #RubyOnRails
[23:56:58] sleungcy: has joined #RubyOnRails
[23:57:02] rickmasta: has joined #RubyOnRails
[23:57:20] StaticVoid: braian: np :)
[23:57:39] n00bDev: has joined #RubyOnRails
[23:59:03] n00bDev: hi does anyone here use react and webpack here?