« Back to channel list

#RubyOnRails - 09 June 2016

« Back 1 day Forward 1 day »
[00:02:15] chopin: has joined #RubyOnRails
[00:03:54] Chaterz: has joined #RubyOnRails
[00:04:09] wd40s: has joined #RubyOnRails
[00:07:45] wd40s_: has joined #RubyOnRails
[00:07:49] mikecmpbll: has joined #RubyOnRails
[00:08:06] quazimodo: has joined #RubyOnRails
[00:10:18] mwlang: ugh. Some days, I simply do not like MS-SQL Server and Windows. Been working on nothing but stylesheet changes when suddenly every page refresh is now taking 60+ seconds to render.
[00:10:33] mwlang: and all that time is on the DB query.
[00:10:59] Radar: just put an index on it
[00:11:12] wd40s: has joined #RubyOnRails
[00:11:22] roamingdog: has joined #RubyOnRails
[00:12:02] mwlang: Radar: it ain’t that. response times were < 0.5ms before this started….something’s going on in the background…downloading service packs or something…can’t quite find it.
[00:12:58] mwlang: the VM’s process inspection shows 0% CPU utilization, but the Mac’s Activity Monitor is showing a pegged at 100% CPU utilization.
[00:13:27] mwlang: I dunno about y’all, but I trust the mac’s CPU numbers better than windoze.
[00:15:06] mwlang: “I’m Cortana. Ask me anything” me: “what are you working so hard on without telling me?”
[00:15:16] noobsu: has joined #RubyOnRails
[00:15:33] mwlang: sorry, just had to rant while I’m effectively dead in the water…
[00:16:01] achamian: has joined #RubyOnRails
[00:17:51] d5sx43: has joined #RubyOnRails
[00:19:03] xall: has joined #RubyOnRails
[00:19:17] mwlang: alright! spike’s gone and we’re rolling again.
[00:21:24] jhass: was just the rootkit installing, no worries
[00:23:14] quazimodo: has joined #RubyOnRails
[00:24:00] Radar: jhass: shhh
[00:24:16] subsonik: has joined #RubyOnRails
[00:24:33] SteenJobs: has joined #RubyOnRails
[00:27:58] whathappens: has joined #RubyOnRails
[00:29:18] flashpoint9: has joined #RubyOnRails
[00:30:30] mwlang: jhass: haha. I found the problem….I had no frickin clue Windows 10 came with a Microsoft branded Skype.
[00:31:14] Technodrome: for a blog, should the posted by user be a user in the actual User table I'm using for devise? or should I go ahead and create a BlogUser model ?
[00:31:15] mwlang: but it was doing some CPU + Network killin’ tasks for whatever reason.
[00:31:55] mwlang: Technodrome: depends on your aim. One User table can hold users with varying roles.
[00:32:47] mwlang: but it’s not uncommon to have admin_users table and just regular ole users table, or in your case, blog_users table.
[00:33:18] mwlang: I prefer one users table and roles to manage what they have permission to do on the site.
[00:33:38] Technodrome: i think active_admin already created an admin_users table
[00:34:03] Technodrome: but I don't think any users will actually be logging in and submitting anything, will all be handled by one person
[00:36:13] lightt: has joined #RubyOnRails
[00:38:15] nickenchuggets: has joined #RubyOnRails
[00:38:32] dandaman: has joined #RubyOnRails
[00:39:02] kitsuneyo: has joined #RubyOnRails
[00:40:28] kitsuneyo: i want my users to be able to either select a place from a list, or save a new place by typing the name, in the same input using first_or_create. i thought you can do this with select2 but i can't see anything similar in the examples. what's the best way to do this?
[00:40:43] diegoaguilar: has joined #RubyOnRails
[00:40:59] hahuang65: has joined #RubyOnRails
[00:41:03] flashpoint9: has joined #RubyOnRails
[00:41:07] kitsuneyo: i guess it's called a combo box?
[00:41:27] Dios: has joined #RubyOnRails
[00:43:56] ElFerna: has joined #RubyOnRails
[00:44:03] kitsuneyo: ah i guess you do it with a text field with autocomplete??
[00:45:05] kitsuneyo: rails-jquery-autocomplete the way to go?
[00:46:21] DoctorMonocular: has joined #RubyOnRails
[00:46:48] dandaman: has joined #RubyOnRails
[00:52:25] dandaman: has joined #RubyOnRails
[00:53:32] owenjones: has joined #RubyOnRails
[00:57:24] kies: has joined #RubyOnRails
[00:57:27] Wolland: has joined #RubyOnRails
[00:58:22] xlegoman: has joined #RubyOnRails
[00:59:38] mwlang: kitsuneyo: http://stackoverflow.com/questions/14577014/select2-dropdown-but-allow-new-values-by-user/30021059#30021059
[01:00:32] kitsuneyo: thanks mwlang, sounds ok but doesn't work with newer versions of select2. i think autocomplete is the way to go
[01:00:54] mwlang: there’s a 4.0 answer there.
[01:01:22] xlegoman_: has joined #RubyOnRails
[01:01:25] mwlang: check Kevin Brown’s answer further down.
[01:02:25] Technodrome: has joined #RubyOnRails
[01:03:16] DoctorMonocular: has joined #RubyOnRails
[01:03:49] xlegoman_: has joined #RubyOnRails
[01:06:07] glasz_: has joined #RubyOnRails
[01:11:43] Dios: has joined #RubyOnRails
[01:11:49] bmorrison: has joined #RubyOnRails
[01:12:08] sevenseacat: has joined #RubyOnRails
[01:16:15] kitsuneyo: hmm ok mwlang
[01:19:06] Ropeney: has joined #RubyOnRails
[01:22:04] dopamean_: has joined #RubyOnRails
[01:25:12] rueben: has joined #RubyOnRails
[01:25:24] djj: has joined #RubyOnRails
[01:25:41] djj: hey guys
[01:25:51] Trynemjoel: has joined #RubyOnRails
[01:28:04] djj: okay can you guys read this?
[01:28:27] sevenseacat: I don't know if guys can, but i can.
[01:28:43] Radar: dj_: no it's not working please try again
[01:29:16] roamingdog: has joined #RubyOnRails
[01:30:02] djj: anyway I've got a question about the railstutorial...tutorial
[01:32:08] ensyde: has joined #RubyOnRails
[01:32:40] Radar: dj_: ask away
[01:33:20] blackmesa: has joined #RubyOnRails
[01:34:09] harai54: has joined #RubyOnRails
[01:35:18] dandaman: has joined #RubyOnRails
[01:38:49] pilne: has joined #RubyOnRails
[01:42:52] djj: so I'm on chapter 7 of the tutorial
[01:43:07] djj: at the point where I'm making a user for successful signups
[01:43:13] djj: so 7.4 to be exact
[01:43:25] djj: I just realized though that on my sign up form, the password fields are just textfields
[01:43:33] djj: show the password in plain text
[01:43:55] djj: I read in the chapter where you create the fields and it says like 'doing it *this* way makes them password fields'
[01:43:57] Radar: is it because you're using text_field and not password_field?
[01:43:58] djj: apparently not lol
[01:44:11] Radar: Hard to know really without seeing any code.
[01:44:18] djj: I think that could be it
[01:45:06] djj: haha yup you got it, I must've missed that's what it needs to be
[01:46:25] djj: thanks Radar :)
[01:46:42] djj: a second question, would you happen to have any good recommended reading on understanding MVC structure in general?
[01:46:55] djj: when the project was small in the chapter like 3-5 range
[01:47:27] djj: I didn't have much trouble, but as it's progressing I find myself asking a lot "wait where does this come from/whats responsible for that?"
[01:47:30] Radar: dj_: !r4ia
[01:47:30] helpa: dj_: 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
[01:47:38] Radar: Chapter 3 has a good explanation there
[01:47:46] Radar: That's the book that I wrote with sevenseacat.
[01:48:14] Radar: It explains things in a slower paced fashion than the Rails Tutorial, and a lot of people appreciate that slower pace as it leads to better understanding.
[01:48:34] kgrz: has joined #RubyOnRails
[01:48:48] dandaman: has joined #RubyOnRails
[01:49:51] Coldblackice: has joined #RubyOnRails
[01:50:23] djj: sweet I'll definitely check it out
[01:51:20] djj: after railstutorial do you think the next step is trying to make a project on your own?
[01:51:58] Radar: Yeah, building a hobby project is a great way to learn
[01:54:40] jenrzzz: has joined #RubyOnRails
[01:54:46] yfeldblum: has joined #RubyOnRails
[01:56:00] xall_: has joined #RubyOnRails
[02:04:16] whathappens: has joined #RubyOnRails
[02:10:09] Wolland: has joined #RubyOnRails
[02:12:18] Wolland: has joined #RubyOnRails
[02:17:15] noobsu: has joined #RubyOnRails
[02:18:04] blockchan: has joined #RubyOnRails
[02:24:55] SteenJobs: has joined #RubyOnRails
[02:27:04] tjbiddle: has joined #RubyOnRails
[02:29:00] Leepoff: has joined #RubyOnRails
[02:33:41] ksinkar: has joined #RubyOnRails
[02:34:18] jancel: has joined #RubyOnRails
[02:40:42] one_zero: has joined #RubyOnRails
[02:40:55] shortCircuit__: has joined #RubyOnRails
[02:41:18] roamingdog: has joined #RubyOnRails
[02:41:44] IFrank00: has joined #RubyOnRails
[02:45:46] bmorrison: has joined #RubyOnRails
[02:46:45] ensyde__: has joined #RubyOnRails
[02:47:32] cd83x: has joined #RubyOnRails
[02:53:23] ElFerna: has joined #RubyOnRails
[02:54:11] sypheren: has joined #RubyOnRails
[03:02:41] roamingdog: has joined #RubyOnRails
[03:04:11] chipotle: has joined #RubyOnRails
[03:07:06] SteenJobs: has joined #RubyOnRails
[03:13:24] sleungcy: has joined #RubyOnRails
[03:14:06] Technodrome: has joined #RubyOnRails
[03:16:52] codeshah: has joined #RubyOnRails
[03:17:51] braincrash: has joined #RubyOnRails
[03:19:09] Trynemjoel: has joined #RubyOnRails
[03:20:55] k3rn31: has joined #RubyOnRails
[03:25:52] jancel: has joined #RubyOnRails
[03:26:30] justrohu: has joined #RubyOnRails
[03:27:58] macsteps: has joined #RubyOnRails
[03:35:26] blackmesa: has joined #RubyOnRails
[03:40:48] k3rn31: has joined #RubyOnRails
[03:43:35] duncannz: has joined #RubyOnRails
[03:45:00] achamian: has joined #RubyOnRails
[03:47:26] espinet: has joined #RubyOnRails
[03:48:09] espinet: i have a user model and i want to have a has many belongs to many relationship on itself. i have the user model:
[03:48:11] espinet: has_many :user_followees, foreign_key: :followee_id, class_name: "UserUser"
[03:48:11] espinet: has_many :followees, through: :user_followees, source: :followee
[03:48:12] espinet: has_many :user_followers, foreign_key: :follower_id, class_name: "UserUser"
[03:48:13] espinet: has_many :followers, through: :user_followers, source: :follower
[03:48:18] espinet: and the join model:
[03:48:19] espinet: belongs_to :follower, class_name: "User"
[03:48:19] espinet: belongs_to :followee, class_name: "User"
[03:49:07] espinet: when i do User.first.followers << User.last the foreign key followee_id doesn’t get populated
[03:49:23] sevenseacat: whats a UserUser and why does it exist
[03:49:28] espinet: join table
[03:49:46] sevenseacat: can that model not have a more appropriate name?
[03:50:22] espinet: it can, but thats not my question
[03:50:59] bumao: has joined #RubyOnRails
[03:51:47] sevenseacat: espinet: okay, so put together a gist showing your code and what code you're running and what happens when you run it
[03:52:28] morfin: has joined #RubyOnRails
[03:53:00] morfin: what do you use for JS in Ruby - Node or rubyracer gem?
[03:53:16] espinet: https://gist.github.com/anonymous/d4f48b19b9723af3573caecc0fabc37b
[03:53:26] Ropeney: morfin, you mean JS runtime server side?
[03:53:48] Ropeney: pretty sure nodejs is standard atm
[03:54:02] morfin: i installed Node using nvm(for user only) and had and issue with executing current version
[03:54:45] morfin: basically .nvm do similar thing as .rbenv do - defines function nvm in your shell and that function do stuff
[03:55:03] Ropeney: I don't know what your asking now
[03:55:42] morfin: i am wondering how can i use Node installed via NVM from rails serve
[03:55:58] dandaman: has joined #RubyOnRails
[03:56:42] morfin: simpliest solution i've found was just symlinking node binary from current version of node into ~/.nvm/bin and adding that directory into PATH
[03:58:09] tildes_: has joined #RubyOnRails
[03:58:24] Ropeney: Are you deploying rails with the same server you installed node? other then that I've never used nvm sorry
[03:58:31] Ropeney: same user, not server
[04:00:23] lightt: has joined #RubyOnRails
[04:02:12] DoctorMonocular: has joined #RubyOnRails
[04:02:22] jancel: has joined #RubyOnRails
[04:02:58] Ropeney: morfin, https://github.com/sstephenson/execjs/blob/master/lib/execjs/runtimes.rb maybe your symlinking is the solution
[04:06:07] staticfox: has joined #RubyOnRails
[04:07:34] sleungcy: has joined #RubyOnRails
[04:07:54] morfin: i guess could use stuff like nvm exec node
[04:09:15] cd83x: has joined #RubyOnRails
[04:12:31] salexa: has joined #RubyOnRails
[04:15:41] chouhoulis: has joined #RubyOnRails
[04:17:50] duncannz: has joined #RubyOnRails
[04:18:14] Leepoff: has joined #RubyOnRails
[04:18:35] duncannz: has joined #RubyOnRails
[04:25:02] supernov_a: has joined #RubyOnRails
[04:25:40] IFrank00: has joined #RubyOnRails
[04:29:08] espinet: does anyone know why both forgein keys aren’t being populated? https://gist.github.com/anonymous/d4f48b19b9723af3573caecc0fabc37b
[04:29:09] bmorrison: has joined #RubyOnRails
[04:34:29] guardianJ: has joined #RubyOnRails
[04:37:00] SteenJobs: has joined #RubyOnRails
[04:37:06] s2013: has joined #RubyOnRails
[04:38:21] dandaman: has joined #RubyOnRails
[04:40:37] IFrank00: has joined #RubyOnRails
[04:43:32] blockchan: has joined #RubyOnRails
[04:45:05] chipotle_: has joined #RubyOnRails
[04:46:54] chipotle: has joined #RubyOnRails
[04:48:57] owenjones: has joined #RubyOnRails
[04:53:30] macsteps: has joined #RubyOnRails
[04:53:42] der-landgraf: has joined #RubyOnRails
[04:53:58] der-landgraf: has joined #RubyOnRails
[04:57:27] truenito: has joined #RubyOnRails
[04:57:43] alfiemax: has joined #RubyOnRails
[04:58:44] lightt: has joined #RubyOnRails
[05:08:54] chopin: has joined #RubyOnRails
[05:11:03] pawnbox: has joined #RubyOnRails
[05:12:16] chopin: has joined #RubyOnRails
[05:14:24] Wolland: has joined #RubyOnRails
[05:14:52] jenrzzz: has joined #RubyOnRails
[05:15:16] dman_: has joined #RubyOnRails
[05:18:06] Macaveli: has joined #RubyOnRails
[05:18:11] harai54: has joined #RubyOnRails
[05:18:42] Macaveli: has joined #RubyOnRails
[05:18:44] alfiemax: has joined #RubyOnRails
[05:18:47] dman_2: has joined #RubyOnRails
[05:19:52] JesseH: has joined #RubyOnRails
[05:21:59] justrohu: has joined #RubyOnRails
[05:24:11] hayden__: has joined #RubyOnRails
[05:24:55] pawnbox: has joined #RubyOnRails
[05:26:05] djbkd: has joined #RubyOnRails
[05:26:49] Doddlin: has joined #RubyOnRails
[05:26:54] dman2: has joined #RubyOnRails
[05:26:55] daxroc: has joined #RubyOnRails
[05:27:08] daemonwrangler: has joined #RubyOnRails
[05:27:16] adamf: has joined #RubyOnRails
[05:27:18] DoctorMonocular: has joined #RubyOnRails
[05:27:23] SuppliedRelic: has joined #RubyOnRails
[05:27:25] mattwithoos: has joined #RubyOnRails
[05:27:34] Lloyd: has joined #RubyOnRails
[05:27:47] robbkidd: has joined #RubyOnRails
[05:28:21] Obi_obi___: has joined #RubyOnRails
[05:28:57] tfitts: has joined #RubyOnRails
[05:29:10] alxndr: has joined #RubyOnRails
[05:29:25] meinside: has joined #RubyOnRails
[05:29:26] jxf: has joined #RubyOnRails
[05:29:47] dmcc: has joined #RubyOnRails
[05:30:05] barttenbrinke: has joined #RubyOnRails
[05:30:05] upgrayeddd: has joined #RubyOnRails
[05:30:13] Hates_: has joined #RubyOnRails
[05:30:19] sdn90: has joined #RubyOnRails
[05:30:48] jlpeters: has joined #RubyOnRails
[05:30:55] Travis-42: has joined #RubyOnRails
[05:31:03] kumavis: has joined #RubyOnRails
[05:31:16] machty: has joined #RubyOnRails
[05:31:19] podman: has joined #RubyOnRails
[05:31:34] nyandoge: has joined #RubyOnRails
[05:31:36] kdisneur: has joined #RubyOnRails
[05:31:37] ELCALOR: has joined #RubyOnRails
[05:31:44] RubyNewbey_____: has joined #RubyOnRails
[05:32:10] krainboltgreene: has joined #RubyOnRails
[05:32:11] jord: has joined #RubyOnRails
[05:32:24] deeprave: has joined #RubyOnRails
[05:32:25] grvgr: has joined #RubyOnRails
[05:32:29] digitalfiz: has joined #RubyOnRails
[05:32:32] chorgi: has joined #RubyOnRails
[05:32:32] swgillespie: has joined #RubyOnRails
[05:32:36] DukeDave: has joined #RubyOnRails
[05:32:48] gmci: has joined #RubyOnRails
[05:33:05] shwoodard_: has joined #RubyOnRails
[05:33:29] codepete: has joined #RubyOnRails
[05:33:54] jcugno__: has joined #RubyOnRails
[05:34:01] lipoqil: has joined #RubyOnRails
[05:34:01] acalewin: has joined #RubyOnRails
[05:34:10] CornishPasty: has joined #RubyOnRails
[05:34:14] joaomdmoura__: has joined #RubyOnRails
[05:34:23] alethea: has joined #RubyOnRails
[05:34:36] bedouin: has joined #RubyOnRails
[05:34:41] ewilliam: has joined #RubyOnRails
[05:34:43] Guest4184_______: has joined #RubyOnRails
[05:34:50] JackMc: has joined #RubyOnRails
[05:34:51] hjdivad: has joined #RubyOnRails
[05:35:10] spastorino: has joined #RubyOnRails
[05:36:06] zrl_: has joined #RubyOnRails
[05:36:33] BBHoss: has joined #RubyOnRails
[05:36:58] jlyndon: has joined #RubyOnRails
[05:37:35] Meow-J: has joined #RubyOnRails
[05:37:58] blackmesa: has joined #RubyOnRails
[05:42:15] bmorrison: has joined #RubyOnRails
[05:49:57] apotry: has joined #RubyOnRails
[05:55:49] sleungcy: has joined #RubyOnRails
[05:57:24] jas02: has joined #RubyOnRails
[06:00:51] neanderslob: has joined #RubyOnRails
[06:02:04] emilkarl: has joined #RubyOnRails
[06:10:07] Wolland: has joined #RubyOnRails
[06:10:41] Meow-J: has joined #RubyOnRails
[06:11:09] jlyndon: has joined #RubyOnRails
[06:14:53] Wolland: has joined #RubyOnRails
[06:25:00] djbkd: has joined #RubyOnRails
[06:26:23] eGGshke: has joined #RubyOnRails
[06:30:51] lxsameer: has joined #RubyOnRails
[06:32:00] comrad: has joined #RubyOnRails
[06:35:20] davidklsn: has joined #RubyOnRails
[06:36:02] soroot: has joined #RubyOnRails
[06:38:46] Pazician: has joined #RubyOnRails
[06:38:54] Pazician: has joined #RubyOnRails
[06:41:55] dionysus69: has joined #RubyOnRails
[06:42:07] reggaereggin: has joined #RubyOnRails
[06:42:38] reggaereggin: python backend vs ruby backend which one should someone who doesn't want to use javascript because of math errors in javascript
[06:42:38] rhett: has joined #RubyOnRails
[06:42:51] rhett: how do people do deployment these days?
[06:42:55] rhett: capistrano, passenger?
[06:43:02] reggaereggin: i'd like to program a web app
[06:43:08] rhett: i tried dokku, it was pretty nice
[06:43:39] darkxploit: has joined #RubyOnRails
[06:44:09] Ropeney: rhett, I use custom build scripts, reggaereggin what's the question in the above?
[06:44:23] reggaereggin: basically i want to build an app
[06:44:31] reggaereggin: but javascript is math error prone
[06:44:42] reggaereggin: i don't want to overcharge or undercharge my customers
[06:44:58] Ropeney: I still don't get the question, but I'm intrigued why javascript is math error prone
[06:46:03] reggaereggin: http://stackoverflow.com/questions/588004/is-floating-point-math-broken
[06:46:08] reggaereggin: there are a bunch of others
[06:46:21] solars: has joined #RubyOnRails
[06:46:53] Ropeney: where is that related to javascript?
[06:46:54] reggaereggin: http://www.webdeveloper.com/forum/showthread.php?92612-Basic-(-)-Javascript-math-precision-problem
[06:48:23] Ropeney: Thats in most languages, but do you need that much precission?
[06:48:54] Ropeney: its to do with how fractions are represented in binary
[06:50:07] sleungcy: has joined #RubyOnRails
[06:51:40] sameerynho: has joined #RubyOnRails
[06:51:57] snoobydoo: has joined #RubyOnRails
[06:51:59] Ropeney: reggaereggin, in IRB or Python interactive mode, type `0.1 + 0.2` and see the ouput `0.30000000000000004`
[06:52:20] reggaereggin: why is it that?
[06:52:30] Ropeney: because of the binary representation of the numbers
[06:53:12] jstransky: has joined #RubyOnRails
[06:55:19] agit0: has joined #RubyOnRails
[06:55:24] universa1: Ropeney: it is not because of the binary represenation!
[06:55:24] Ropeney: reggaereggin, its why you never use floats for money
[06:55:36] universa1: Ropeney: it is because of the float representation ;)
[06:55:56] Ropeney: universa1, I abstracted
[06:56:18] universa1: well, in that case 1 + 2 would also be 3.00000004 ;)
[06:56:21] universa1: which it is not
[06:56:47] Ropeney: I said above its due to how fractions are represented in binary
[06:57:54] Ropeney: reggaereggin, https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html if you want more then a simplified explanation
[06:58:21] chipotle_: has joined #RubyOnRails
[07:02:47] emilkarl: has joined #RubyOnRails
[07:03:20] gingray: has joined #RubyOnRails
[07:03:42] noobsu: has joined #RubyOnRails
[07:04:37] darutoko: has joined #RubyOnRails
[07:04:38] chipotle: has joined #RubyOnRails
[07:05:20] Wolland: has joined #RubyOnRails
[07:05:28] harai54: has joined #RubyOnRails
[07:08:51] edward__: has joined #RubyOnRails
[07:09:23] bmorrison: has joined #RubyOnRails
[07:10:25] ur5us: has joined #RubyOnRails
[07:10:27] yfeldblum: has joined #RubyOnRails
[07:14:08] yfeldblum: has joined #RubyOnRails
[07:15:19] moei: has joined #RubyOnRails
[07:16:52] Pazician: has joined #RubyOnRails
[07:17:31] arBmind: has joined #RubyOnRails
[07:18:04] aganov: has joined #RubyOnRails
[07:28:28] pierrehoudyer: has joined #RubyOnRails
[07:31:06] chipotle: has joined #RubyOnRails
[07:32:24] artto: has joined #RubyOnRails
[07:33:39] artto: has joined #RubyOnRails
[07:37:37] mikecmpbll: has joined #RubyOnRails
[07:38:43] blackmesa: has joined #RubyOnRails
[07:44:11] sleungcy: has joined #RubyOnRails
[07:46:29] spyder55: has joined #RubyOnRails
[07:47:09] spyder55: has joined #RubyOnRails
[07:47:29] antgel: has joined #RubyOnRails
[07:49:39] Ergo: has joined #RubyOnRails
[07:52:01] alfiemax: has joined #RubyOnRails
[07:52:28] jsrn: has joined #RubyOnRails
[07:53:11] gingray: has joined #RubyOnRails
[07:54:40] DoctorMonocular: has joined #RubyOnRails
[07:54:44] mr-spoon: has joined #RubyOnRails
[07:55:21] alaing: has joined #RubyOnRails
[07:55:30] alaing: has joined #RubyOnRails
[07:56:51] alaing: Hi I need some help with an error I'm getting with nested attributes and fields_for, undefined method `merge' for :code:Symbol. https://gist.github.com/aliuk2012/b329cd92ab115ee3874e18c28eafbf7a This has a copy of my form partial, controller, model and development.log
[07:57:17] artto: has joined #RubyOnRails
[07:57:31] agent_white: has joined #RubyOnRails
[07:58:25] tbuehlmann: alaing, what is this? `= :attachment_file_name`
[07:58:26] alaing: once i get this to work I'll look at moving the fields_for content out into a partial as i'm hoping to use some js to dynamically add more entries
[07:59:06] phrozen77: has joined #RubyOnRails
[07:59:28] alaing: tbuehlmann: its suppose to be the file name of the file the user uploaded but thats isn't working at the moment. it just output :attachment_file_name
[07:59:29] mikecmpbll: has joined #RubyOnRails
[07:59:30] tbuehlmann: the error most likely is at `= builder.text_field :code, :code`, the second :code is supposed to be a hash
[07:59:44] tbuehlmann: okay, I was just interested :)
[08:00:29] alaing: although i need to fix that to
[08:00:40] alaing: let me try builder.object.code
[08:00:48] alaing: instead of the second :code
[08:01:02] tbuehlmann: just remove the second argument
[08:02:30] alaing: ok, thats throwing a different error now.
[08:02:31] alaing: undefined method `code' for #<DocAttachment::ActiveRecord_Associations_CollectionProxy:0x007fedf9a08310>
[08:03:01] alaing: = builder.text_field :code
[08:03:41] achamian: has joined #RubyOnRails
[08:05:40] tbuehlmann: I guess the object in the fields_for is wrong
[08:05:56] tbuehlmann: can you try `f.fields_for :doc_attachments do |builder|`?
[08:06:23] alaing: is there maybe a better way of doing it? I'm still a rails noob
[08:06:29] alaing: tbuehlmann: sure i'll try that
[08:07:40] alaing: oh thats looking better
[08:07:58] alaing: it complained about the :title i fixed that and now its working :-)
[08:08:59] alaing: tbuehlmann: thank you :-) is there a better way of getting the language_id?
[08:09:00] alaing: = builder.collection_select :language_id, @languages, :id, :name, { selected: builder.object.language_id || 5}, { class: 'form-control'}
[08:09:55] blockchan: has joined #RubyOnRails
[08:10:05] alaing: builder.object.language_id just seems dirty hack
[08:11:05] tbuehlmann: what about assigning a default on the model level, so you don't have to set a default in the view?
[08:11:46] alaing: tbuehlmann: good idea :-)
[08:15:07] alaing: but what about builder.object.language_id?
[08:15:23] alaing: is there a better way to set the value?
[08:17:03] marr: has joined #RubyOnRails
[08:17:15] adre: has joined #RubyOnRails
[08:18:01] tbuehlmann: you should be able to do this: f.fields_for @upload.doc_attachments, doc_attachment do |builder|
[08:18:11] tbuehlmann: `doc_attachment` will be the instance then
[08:19:15] tbuehlmann: oh wait, that's BS of course :)
[08:19:52] tbuehlmann: I think builder.object is the only way
[08:20:21] kitsuneyo: has joined #RubyOnRails
[08:21:09] WilfredTheGreat: has joined #RubyOnRails
[08:25:05] mdw: has joined #RubyOnRails
[08:25:16] zeitue: has joined #RubyOnRails
[08:25:43] alaing: tbuehlmann: thank you so much for your help this morning. I really appreciated it.
[08:25:52] tbuehlmann: very welcome
[08:29:41] yatish27: has joined #RubyOnRails
[08:30:07] ur5us: has joined #RubyOnRails
[08:31:10] blackmesa: has joined #RubyOnRails
[08:35:54] diegoaguilar: has joined #RubyOnRails
[08:37:28] ksinkar`: has joined #RubyOnRails
[08:38:16] sleungcy: has joined #RubyOnRails
[08:39:08] spyder55: has joined #RubyOnRails
[08:43:08] edwinvdgraaf: has joined #RubyOnRails
[08:44:10] GorillaApe: has joined #RubyOnRails
[08:44:16] GorillaApe: ACTION is a lamer
[08:44:47] moep: has joined #RubyOnRails
[08:44:48] srinidhi: has joined #RubyOnRails
[08:46:36] ksinkar``: has joined #RubyOnRails
[08:54:19] moeabdol: has joined #RubyOnRails
[08:55:09] arBmind: has joined #RubyOnRails
[08:58:07] edwinvdgraaf: has joined #RubyOnRails
[08:58:29] soroot: has joined #RubyOnRails
[08:59:04] bruce_lee: has joined #RubyOnRails
[08:59:30] lightt: has joined #RubyOnRails
[09:00:30] kitsuneyo: has joined #RubyOnRails
[09:02:34] dionysus69: has joined #RubyOnRails
[09:02:39] salexa: has joined #RubyOnRails
[09:02:48] mark_66: has joined #RubyOnRails
[09:06:31] edwinvdgraaf: has joined #RubyOnRails
[09:08:36] salexa: has joined #RubyOnRails
[09:08:54] salexa: has joined #RubyOnRails
[09:11:18] mdw7: has joined #RubyOnRails
[09:11:37] andywww: has joined #RubyOnRails
[09:11:52] andywww: can i get this number of queries down any further?
[09:11:52] andywww: https://gist.github.com/anonymous/1bc66380159ec61f52b1c555462e400e
[09:12:18] andywww: the associations are (i hope) obvious from the includes
[09:13:16] vasilakisFiL: has joined #RubyOnRails
[09:17:47] chipotle: has joined #RubyOnRails
[09:17:47] emilkarl_: has joined #RubyOnRails
[09:18:51] soroot: has joined #RubyOnRails
[09:19:15] soroot: has joined #RubyOnRails
[09:22:31] c355E3B: has joined #RubyOnRails
[09:22:44] AzaToth: has joined #RubyOnRails
[09:22:53] edwinvdg_: has joined #RubyOnRails
[09:22:53] andywww: has left #RubyOnRails: ()
[09:25:38] diegoaguilar: has joined #RubyOnRails
[09:26:30] SteenJobs: has joined #RubyOnRails
[09:28:33] workmad3: has joined #RubyOnRails
[09:30:51] srinidhi: has joined #RubyOnRails
[09:31:49] triangles2: has joined #RubyOnRails
[09:32:24] sleungcy: has joined #RubyOnRails
[09:33:49] snoobydoo: has joined #RubyOnRails
[09:37:13] snowy: has joined #RubyOnRails
[09:43:25] alfiemax: has joined #RubyOnRails
[09:46:28] Mia: has joined #RubyOnRails
[09:46:28] Mia: has joined #RubyOnRails
[09:46:38] vedu: has joined #RubyOnRails
[09:47:26] vedu: Hello. I am running a query as Photo.where(id: photo_ids) but I get an error if all the ids are not valid. How can get the valid items ignoring the ones that are invalid?
[09:49:20] tbuehlmann: what error do you get?
[09:51:20] artto: has joined #RubyOnRails
[09:51:27] tjbiddle: has joined #RubyOnRails
[09:59:11] vedu: tbuehlmann: Cannot find all records for "Photo". Found 11 expected 12
[10:00:05] tbuehlmann: what's the name of the exception you get?
[10:01:37] achamian_: has joined #RubyOnRails
[10:02:41] zeitue: has joined #RubyOnRails
[10:03:08] Macaveli: has joined #RubyOnRails
[10:04:22] pawnbox_: has joined #RubyOnRails
[10:05:22] vedu: tbuehlmann: I am not getting it again :( but it was a an ActiveRecord::RecordNotFound
[10:05:23] SDEagle: has joined #RubyOnRails
[10:05:30] tvw: has joined #RubyOnRails
[10:05:36] vedu: But anyway, it seems its working now :D
[10:06:30] blockchan: has joined #RubyOnRails
[10:08:30] thorgi: has joined #RubyOnRails
[10:12:00] ferr1: has joined #RubyOnRails
[10:12:13] dionysus69: has joined #RubyOnRails
[10:14:39] kitsuneyo: has joined #RubyOnRails
[10:15:38] edwinvdgraaf: has joined #RubyOnRails
[10:16:04] axxyhtrx: has joined #RubyOnRails
[10:17:31] edwinvdg_: has joined #RubyOnRails
[10:18:38] achamian: has joined #RubyOnRails
[10:18:43] pawnbox: has joined #RubyOnRails
[10:19:40] agit0: has joined #RubyOnRails
[10:22:25] mdw: has joined #RubyOnRails
[10:26:46] sleungcy: has joined #RubyOnRails
[10:28:41] Circuit8: has joined #RubyOnRails
[10:31:02] Kedare: has joined #RubyOnRails
[10:32:11] Ergo: has joined #RubyOnRails
[10:32:31] mostlybadfly: has joined #RubyOnRails
[10:32:37] artto: has joined #RubyOnRails
[10:35:50] salexa: has joined #RubyOnRails
[10:36:44] salexa: has joined #RubyOnRails
[10:36:46] emilkarl: has joined #RubyOnRails
[10:38:26] FooBarWidget: has joined #RubyOnRails
[10:38:37] Guest1917: has joined #RubyOnRails
[10:40:48] moeabdol: has joined #RubyOnRails
[10:46:40] mikecmpbll: were performance tests removed from Rails?
[10:47:17] mikecmpbll: nvm found https://github.com/rails/rails-perftest . since rails 4
[10:47:39] rany: has joined #RubyOnRails
[10:47:53] rany: pastie: hi!
[10:48:40] rany: has left #RubyOnRails: ("Leaving")
[10:49:40] blackmesa: has joined #RubyOnRails
[10:51:13] edwinvdgraaf: has joined #RubyOnRails
[10:56:43] moeabdol: has joined #RubyOnRails
[10:57:24] dannyguk: has joined #RubyOnRails
[10:57:57] lxsameer: is there any solution to get the route name of an action ?
[10:59:48] FooBarWidget: has joined #RubyOnRails
[11:01:19] mdw: has joined #RubyOnRails
[11:02:40] elaptics: lxsameer: If I understand what you're asking, then nope. Not as far as I know
[11:02:53] lxsameer: elaptics: thanks
[11:04:28] moeabdol: has joined #RubyOnRails
[11:05:53] walidvb: has joined #RubyOnRails
[11:06:15] walidvb: hello friends
[11:06:39] Xentil: has joined #RubyOnRails
[11:08:20] walidvb: scenario is as follows: a form allows you to sign up, along credit card details to create the purchase. If the purchase fails, the user shouldn't be created. When processing the payment, i'd like to send along the user_id. Therefore, i need to persists the user to db to do so. How would one deal with this?
[11:08:45] jancel: has joined #RubyOnRails
[11:09:47] kitsuneyo: has joined #RubyOnRails
[11:10:21] walidvb: has joined #RubyOnRails
[11:10:24] walidvb: Is there any pattern to handle this? what i think is: do all the flow as if everything would go successfully, and `else` @user.delete.
[11:11:37] walidvb_: has joined #RubyOnRails
[11:11:56] walidvb_: hm crappy connection it seems, did i miss anything? ^^
[11:13:14] jmignault: has joined #RubyOnRails
[11:13:16] dannyguk: Could you build a form with multiple validation steps to build your user, then validate a successful transaction and save to the DB.
[11:13:46] walidvb_: dannyguk: you could do all of that front-end?
[11:14:21] rodfersou: has joined #RubyOnRails
[11:14:34] dannyguk: walidvb: possibly, but it would probably make sense to have rails perform the validation and use remote forms
[11:15:11] walidvb_: hm.. and you'd want to use the normal Modal.valid? method i presume
[11:15:56] universa1: walidvb_: wizard forms / multi-step forms ... ...you should find plenty of examples on google / railscasts ;)
[11:16:00] dannyguk: There's some nice context validation coming in Rails 5 that would be useful for this I think http://blog.bigbinary.com/2016/04/08/validate-multiple-contexts-in-rails-5.html
[11:16:02] srinidhi: has joined #RubyOnRails
[11:16:08] soroot: has joined #RubyOnRails
[11:16:13] walidvb_: dannyguk: ^
[11:16:19] walidvb_: what universa1 said
[11:16:25] pawnbox: has joined #RubyOnRails
[11:17:01] artto: has joined #RubyOnRails
[11:17:12] dannyguk: Yeah that's probably what I'd look into myself. I've not had to solve that exact problem before myself though...
[11:19:54] axxyhtrx: has joined #RubyOnRails
[11:20:35] phredus: has joined #RubyOnRails
[11:20:59] moep: has joined #RubyOnRails
[11:21:23] k3rn31: has joined #RubyOnRails
[11:22:37] walidvb_: hm i see i should probably use ActiveRecord.transaction
[11:22:45] walidvb_: interestinfg post: http://markdaggett.com/blog/2011/12/01/transactions-in-rails/
[11:24:31] lupine: walidvb_: do not hold open a database transaction around a third-party call
[11:24:37] lupine: it's almost always a terrible idea
[11:24:57] walidvb_: yeah ready further in the article it seems your right
[11:25:01] walidvb_: running code in general
[11:25:09] lupine: you probably want a variant of 2-phase commit
[11:25:34] lupine: i.e., you write the user to the DB with committed = false or so, then when the other call comes back successful, you can set that to true
[11:25:35] lightt: has joined #RubyOnRails
[11:25:56] walidvb_: commited being a custom column?
[11:26:20] lupine: although I'm not 100% sure what you mean by custom
[11:26:39] lupine: you could also store committal state somewhere transient
[11:26:41] walidvb_: and in that case, i'd simply begin;rescue, and have things such as sending an email at the end of my block? (hence called only if call to third party service will have succeeded)
[11:27:14] lupine: you don't really want that third-party call happening inside the http request/response cycle of your user
[11:27:32] lupine: punt it to a background job of some sort and return to the user asap
[11:27:34] walidvb_: agree, but i need to process the payment
[11:27:51] walidvb_: and we don't really have the resources for a background
[11:27:54] lupine: you also need your code to be sensible in the event of the third party being slow or unavailable
[11:28:04] lupine: sure you do
[11:28:25] Macaveli: has joined #RubyOnRails
[11:28:39] walidvb_: well, they cost smth on heroku, which is what we use. and it's a really tiny business
[11:29:30] walidvb_: also, this payment is smth a user does once per year, so we can bear with the request being slow
[11:29:34] walidvb_: not ideal, i know, still
[11:30:34] ldnunes: has joined #RubyOnRails
[11:30:43] walidvb_: and i'd rather have the request being slow, than sending an email 'your payment has failed'. not the case for all businesses, but for this one i believe it is.
[11:30:54] walidvb_: lupine: thoughts welcome, still
[11:31:46] lupine: obviously, you *can* run the code synchronously
[11:31:58] lupine: you'll suffer for it, though
[11:32:00] walidvb_: *my bad, background workers are free on a free plan on heroku
[11:32:08] Spami: has joined #RubyOnRails
[11:32:10] walidvb_: lupine: well, the UX is different isn't it?
[11:32:15] lupine: yep, and better
[11:32:19] walidvb_: what about my point above?
[11:32:30] lupine: "thank! we're processing your payment. please wait...."
[11:32:38] lupine: "OK, succeeded" or "sorry, it failed!"
[11:32:58] walidvb_: right of course. fairly more work on the front-end though
[11:32:59] lupine: rather than hitting submit on the form and having the TCP connection spin for for an indeterminate time
[11:33:06] Spami: So I have the following ccde: https://gist.github.com/theonegri/16b3eaa75dfed8716238fb1b46dd36f6
[11:33:23] walidvb_: i hear you. i'll need to evaluate if the budget allows for the extra work though
[11:33:29] walidvb_: super tight budget :/
[11:33:31] lupine: doing things right is often slightly harder than doing them the quickest possible way
[11:33:33] Spami: but I'm getting "syntax error, unexpected tCONSTANT, expecting ')'
[11:33:33] Spami: ...user_roles.role = ?, " UserRole.roles[:owner]) }, class_name..." when I run Client.find(2).owner
[11:33:37] Spami: Any idea why ?
[11:33:46] lupine: but this is not difficult
[11:34:32] walidvb_: Spami: your comma is in the where clause
[11:35:07] walidvb_: it's not difficult, but requires a front-end component that updates, hence, a backend controller that returns that etc
[11:35:15] walidvb_: not much work, agree actually.
[11:35:42] Spami: walidvb_, correct but then I get this: syntax error, unexpected ',', expecting =>
[11:35:42] Spami: ...? ", UserRole.roles[:owner]) }, class_name: 'User'
[11:36:16] walidvb_: more design though, etc. i'll think about it, you might have convinced me. wondering if using DJ would require a custom job or if it would fit in a model
[11:36:22] walidvb_: will get to it, thx lupine!
[11:37:04] walidvb_: has_one :owner, -> { where("user_roles.role = ?", UserRole.roles[:owner]) }, through: :roles, class_name: 'User'
[11:38:01] walidvb_: oh, just noticed the user_roles.role. not sure how joins work in a through relation sry
[11:38:08] wd40s: has joined #RubyOnRails
[11:41:11] walidvb_: lupine: basically the controller would simply verify that the Charge has been created or that the @user still exists or smth, right?
[11:43:37] lupine: yeah, however you want to do it
[11:43:55] lupine: I'd suggest ensuring the user and the charge objects remain for all time, for auditability and debugging reasons
[11:44:08] AimlessRAven: has joined #RubyOnRails
[11:44:21] norc: has joined #RubyOnRails
[11:44:38] lupine: create a user and charge (or ChargeAttempt), poll or websocket the result of the charge attempt back to the user
[11:44:43] JoshL: has joined #RubyOnRails
[11:44:44] AimlessRAven: &#104;&#105;&#064;&#119;&#105;&#103;&#105;&#046;&#110;&#102;
[11:44:50] AimlessRAven: how to set this code, to mail_to link
[11:46:49] universa1: AimlessRaven: what?!
[11:47:54] rbr: has joined #RubyOnRails
[11:51:35] AimlessRAven: universa1: i understand, this is encode email. i just add it to html, and its work
[11:52:03] universa1: whoa... waht did he do there?! ;)
[11:52:12] norc: Apart from confusing the living hell out of everyone you mean?
[11:54:03] soroot: has joined #RubyOnRails
[11:55:30] AlexJakeGreen: has joined #RubyOnRails
[11:56:12] soroot: has joined #RubyOnRails
[11:57:13] soroot: has joined #RubyOnRails
[11:57:30] rodferso1: has joined #RubyOnRails
[11:58:27] soroot: has joined #RubyOnRails
[11:59:23] LBRapid: has joined #RubyOnRails
[12:02:11] kitsuneyo: has joined #RubyOnRails
[12:03:53] emilkarl: has joined #RubyOnRails
[12:03:54] ElFerna: has joined #RubyOnRails
[12:04:29] kitsuneyo: i borrowed the following select2 from a stackexchange answer: https://gist.github.com/kitsuneyo/533d1670330b45bf76232d666c5cf37a --- how do i access the 'text' and 'id' outputs in my controller params?
[12:05:41] triangles: has joined #RubyOnRails
[12:05:59] kitsuneyo: it's from here btw: http://stackoverflow.com/questions/14577014/select2-dropdown-but-allow-new-values-by-user/30021059#30021059
[12:06:20] walidvb: has joined #RubyOnRails
[12:06:33] ElFerna: has joined #RubyOnRails
[12:06:34] kitsuneyo: at the moment i can only get id or text, but not both
[12:06:53] triangles: has joined #RubyOnRails
[12:07:04] kitsuneyo: and not the newOption output at all
[12:07:23] davidklsn: has joined #RubyOnRails
[12:07:35] norc: kitsuneyo: That seems to be a question specific to a JavaScript library, not Rails in any way.
[12:07:54] kitsuneyo: i guess so norc
[12:09:22] jmignault: has joined #RubyOnRails
[12:09:38] subsonik: has joined #RubyOnRails
[12:09:56] davidklsn: has joined #RubyOnRails
[12:13:56] kitsuneyo: norc, i think select2 is ouputting json so i guess my real question is how to access json in the controller?
[12:14:13] blackmesa: has joined #RubyOnRails
[12:14:16] sleungcy: has joined #RubyOnRails
[12:14:35] universa1: kitsuneyo: you don't have to think/guess -- look at the request log.
[12:14:49] norc: kitsuneyo: JavaScript is executed in your browser.
[12:15:02] kitsuneyo: ok thanks universa1
[12:15:13] norc: kitsuneyo: In order to pass things from your browser to a controller, you need to make a HTTP request and pass it along somehow (URL or Form data)
[12:15:43] universa1: and also, select2 is a fancy replacement for select tags, and it only returns the value attribute of option tags.
[12:16:42] elomatreb: I didn't read the backstory, but please don't replace select elements with some JS library. Terrible accessiblity
[12:17:28] universa1: elomatreb: replace select tags with select2 tags if js is available, look & feel of the rest of the page, "searchability", etc...
[12:17:44] norc: elomatreb: read it then?
[12:19:05] norc: elomatreb: And things like select2 or selectize are extremely useful, unless you happen to have the free time to re-implement all these features by yourself.
[12:19:53] davidklsn: has joined #RubyOnRails
[12:20:13] kitsuneyo: let me explain the scenario then. i have a select2 :city_id input which autopopulates with city options based on the state selected. i borrowed the code above to allow users to enter a new option, which i hope to save with first_or_create. the problem is, when the user enters a new city name, the name is passed as city_id. i want to pass it as a different param
[12:21:31] kitsuneyo: i need some way to differentiate between existing and new values
[12:21:37] norc: (Searchable select lists is a must these days, as the browser select lists are just horrible)
[12:23:49] srinidhi: has joined #RubyOnRails
[12:23:53] srinidhi: has joined #RubyOnRails
[12:24:05] elomatreb: My problem with custom select lists is that they seldom are designed in a way that makes them work with screenreaders or accessibility tools
[12:24:14] triangles2: has joined #RubyOnRails
[12:24:48] allcentury: has joined #RubyOnRails
[12:25:20] Technodrome: has joined #RubyOnRails
[12:25:23] truenito: has joined #RubyOnRails
[12:25:24] universa1: elomatreb: that is why the base should be a default select tag, which is then getting transformed with js.
[12:27:48] kitsuneyo: is it possible to send more than one value from a select box, based on a js condition? say, with a hidden field?
[12:28:09] salexa: has joined #RubyOnRails
[12:28:35] kitsuneyo: forget the js condition actually, is it possible to send more than one param from a single select input?
[12:28:56] DataDyne: has joined #RubyOnRails
[12:29:06] rodfersou: has joined #RubyOnRails
[12:29:17] elomatreb: There is a "multiple" attribute for the select element
[12:30:40] kitsuneyo: i think i got it, i can do something like this -- $('input[name=\'my_other_param\']').val my_other_param_value
[12:31:07] kitsuneyo: to send that value to a hidden field. or is that unsafe?
[12:31:59] artto: has joined #RubyOnRails
[12:34:54] Wolland: has joined #RubyOnRails
[12:35:06] emilkarl: has joined #RubyOnRails
[12:35:11] antgel: has joined #RubyOnRails
[12:38:14] workmad3_: has joined #RubyOnRails
[12:38:19] emilkarl: has joined #RubyOnRails
[12:38:25] edwinvdgraaf: has joined #RubyOnRails
[12:40:05] arBmind: has left #RubyOnRails: ()
[12:41:38] edwinvdg_: has joined #RubyOnRails
[12:42:54] srinidhi: has joined #RubyOnRails
[12:43:07] chouhoulis: has joined #RubyOnRails
[12:43:21] svankmajer: has joined #RubyOnRails
[12:43:33] dstarh: has joined #RubyOnRails
[12:44:33] allcentury: has joined #RubyOnRails
[12:46:18] mikecmpbll: has joined #RubyOnRails
[12:46:26] soroot: has joined #RubyOnRails
[12:47:59] myntcake: has joined #RubyOnRails
[12:49:18] Ropeney: has joined #RubyOnRails
[12:51:13] axxyhtrx: has joined #RubyOnRails
[12:51:14] dannyguk: has joined #RubyOnRails
[12:51:18] Niham: has joined #RubyOnRails
[12:51:21] IFrank00: has joined #RubyOnRails
[12:52:55] sevenseacat: has joined #RubyOnRails
[12:54:58] VeryBewitching: has joined #RubyOnRails
[12:55:54] pramsky: has joined #RubyOnRails
[12:55:58] flashpoint9: has joined #RubyOnRails
[12:56:20] edwinvdgraaf: has joined #RubyOnRails
[12:57:38] DataDyne: Does anyone know if nokogiri can return just a number from a parse?
[12:58:00] gingray: has joined #RubyOnRails
[12:58:40] norc: datadyne: What is the problem, and what is your goal?
[13:01:12] artto: has joined #RubyOnRails
[13:01:57] ramortegui: has joined #RubyOnRails
[13:03:15] Malgorath: has joined #RubyOnRails
[13:04:23] Malgorath: Is it possible to generate a bin/rails file in a blank directory? bundle binstubs doesn't seem to work in Rails 4.x
[13:04:24] artto: has joined #RubyOnRails
[13:04:34] dannyguk: has joined #RubyOnRails
[13:06:07] triangles: has joined #RubyOnRails
[13:07:22] tknz: has joined #RubyOnRails
[13:07:40] k3rn31: has joined #RubyOnRails
[13:08:54] sleungcy: has joined #RubyOnRails
[13:10:15] edwinvdgraaf: has joined #RubyOnRails
[13:10:55] edwinvdg_: has joined #RubyOnRails
[13:11:26] DataDyne: Norc, I'm getting a value that is something like "10 Available", but I just need the number 10 and not the remaining word(s). So if I use value.text it outputs 10 Available. However I can't attach a .scan( /\d+$/ ) onto it, so I was curious if there was something other than .text I could use
[13:12:07] artto: has joined #RubyOnRails
[13:12:58] lightt: has joined #RubyOnRails
[13:13:22] norc: datadyne: why cant you use scan?
[13:14:05] aegis3121: has joined #RubyOnRails
[13:14:43] VeryBewitching: datadyne: If you know it's going to be a numerical value followed by a space and a string, you could split the string.
[13:14:55] context: because it will give you 0
[13:15:10] context: becaue /\d+$/ only matches a number at the very end of the string
[13:15:40] context: if he removes the $ he will get what he wants
[13:15:47] adaedra: end of any line*
[13:16:02] context: either way "10 available" doesnt end with a number
[13:16:13] context: adaedra: thnx ;)
[13:17:03] artto: has joined #RubyOnRails
[13:17:05] VeryBewitching: datadyne: match_data = '10 Available'.scan /(\d+)/
[13:18:35] context: this is why regex isnt the answer ;)
[13:19:27] macsteps: has joined #RubyOnRails
[13:20:02] Technodrome: has joined #RubyOnRails
[13:20:09] avelldiroll: has joined #RubyOnRails
[13:20:30] workmaster2n: has joined #RubyOnRails
[13:22:08] dcluna: has joined #RubyOnRails
[13:23:08] gremly: has joined #RubyOnRails
[13:23:13] artto: has joined #RubyOnRails
[13:23:27] diegoaguilar: has joined #RubyOnRails
[13:27:26] blockchan: has joined #RubyOnRails
[13:28:43] maesitos: has joined #RubyOnRails
[13:29:02] DataDyne: Using scan gets me NoMethodError: undefined method `scan' for #<Nokogiri::XML::NodeSet:0x000000046f6d10>
[13:29:21] DataDyne: That's why I wasn't sure if nokogiri had any other methods besides .text
[13:30:30] Pazician_: has joined #RubyOnRails
[13:30:30] Pazician_: has joined #RubyOnRails
[13:33:35] artto: has joined #RubyOnRails
[13:37:01] Wolland: has joined #RubyOnRails
[13:39:33] rvanlieshout: datadyne: on a nodeset
[13:39:55] Niham: has joined #RubyOnRails
[13:40:46] s2013: has joined #RubyOnRails
[13:41:22] Niham: has joined #RubyOnRails
[13:41:27] eljimbo: has joined #RubyOnRails
[13:46:23] yellow5: has joined #RubyOnRails
[13:47:18] quazimodo: has joined #RubyOnRails
[13:48:45] macsteps: has joined #RubyOnRails
[13:51:31] edwinvdg_: has joined #RubyOnRails
[13:52:44] defsdoor_: has joined #RubyOnRails
[13:53:04] Macaveli: has joined #RubyOnRails
[13:54:05] theunraveler: has joined #RubyOnRails
[13:56:32] antgel: has joined #RubyOnRails
[13:57:38] kgrz: has joined #RubyOnRails
[14:00:22] salexa: has joined #RubyOnRails
[14:00:35] edwinvdgraaf: has joined #RubyOnRails
[14:01:23] ekinmur: has joined #RubyOnRails
[14:02:00] Ch4rAss: has joined #RubyOnRails
[14:02:06] mdw: has joined #RubyOnRails
[14:02:48] sleungcy: has joined #RubyOnRails
[14:02:54] kgrz: has joined #RubyOnRails
[14:03:42] chipotle: has joined #RubyOnRails
[14:04:10] blackmesa: has joined #RubyOnRails
[14:09:22] kies: has joined #RubyOnRails
[14:10:24] theunrav_: has joined #RubyOnRails
[14:10:38] chipotle: has joined #RubyOnRails
[14:10:42] edwinvdg_: has joined #RubyOnRails
[14:11:06] JesseH: has joined #RubyOnRails
[14:12:41] chipotle: has joined #RubyOnRails
[14:13:49] Fernando-Basso: has joined #RubyOnRails
[14:14:11] Technodrome: has joined #RubyOnRails
[14:15:07] soroot: has joined #RubyOnRails
[14:18:21] myntcake: has joined #RubyOnRails
[14:22:11] s2013: has joined #RubyOnRails
[14:22:46] ngr: has joined #RubyOnRails
[14:29:12] kitsuneyo: is there an alternative to "@person = Person.create(person_params)" in the create method, that would allow me to run a method on person before it creates? would before_create work here?
[14:30:10] espinet: has joined #RubyOnRails
[14:31:31] sevenseacat: kitsuneyo: don't call create? call new, then your method, then save ?
[14:31:41] chopin: has joined #RubyOnRails
[14:32:01] workmad3_: ^ and you could even encapsulate that in a class method on `Person` to keep your controller neat
[14:32:30] kitsuneyo: can i use @person = Person.new(person_params) ??
[14:32:42] kitsuneyo: ok thanks sevenseacat
[14:33:30] kitsuneyo: then just a plain old @person.save after my method??
[14:35:07] kitsuneyo: it works, thanks sevenseacat
[14:35:29] achamian: has joined #RubyOnRails
[14:35:56] kitsuneyo: what is the best way to filter a search by multiple parameters? i guess i could chain where methods but is there a smarter way?
[14:36:36] pawnbox: has joined #RubyOnRails
[14:38:00] Wolland: has joined #RubyOnRails
[14:39:58] polishdub: has joined #RubyOnRails
[14:41:00] kitsuneyo: right now i have @new_city = Place::City.where(country_id: params[:person][:country_id]).where(subdivision_id: params[:person][:subdivision_id]).where(name: params[:new_city_name]).first_or_create
[14:41:12] bbrowning: has joined #RubyOnRails
[14:42:12] spyder55: has joined #RubyOnRails
[14:43:50] chopin_: has joined #RubyOnRails
[14:44:58] hobodave: has joined #RubyOnRails
[14:45:32] maxx88: has joined #RubyOnRails
[14:46:01] sevenseacat: if params[:person] is ever nil you're going to have a bad time
[14:46:32] dhoelzer_: has joined #RubyOnRails
[14:47:47] clandry94: Looking for a good resource or some tips: I have an admin panel in my Rails app. The admin panel was only available to the super admin, but now there is a new normal admin role. The normal admin will need access to an admin panel as well. What is the best practice: a) new view just for the new admin, or b) render different things on the existing view depending on which type of admin is accessing the page?
[14:49:24] blockchan: has joined #RubyOnRails
[14:49:41] dhoelzer_: Someone kick me... My brain has frozen and I can't figure out how to create this route properly... I have a Books model that tracks chapters and pages... Chapters and pages are just integers. I'm creating a view to allow you to see all of the pages from a particular chapter.. I can get that with Page.where(:book_id => @book.id).order(:id).pluck(:chapter).uniq How can I create a route/path to allow me to create li
[14:49:42] dhoelzer_: nks that will call into Page.. Something like link_to(:pages, pages_chapters_path()....
[14:50:15] mwlang: clandry94: b)
[14:50:27] clandry94: Thanks, that was where I was leaning
[14:50:49] clandry94: I suppose that follows DRY
[14:50:58] mwlang: clandry94: with a) you end up maintaining two copies of nearly identical code.
[14:51:42] SteenJobs: has joined #RubyOnRails
[14:51:44] mwlang: clandry94: I try to factor out parts of the views that may be conditionally included into it’s own partials, though.
[14:53:44] dopamean_: has joined #RubyOnRails
[14:54:08] artto: has joined #RubyOnRails
[14:54:59] cd83x: has joined #RubyOnRails
[14:56:55] sleungcy: has joined #RubyOnRails
[14:57:01] dhoelzer_: Never mind... It's just a nested resource in the routes.
[14:57:22] gfvcastro: has joined #RubyOnRails
[14:58:53] dhoelzer_: Can I create an alias in a nested resource so that the nested resource is an alias for the parent model?
[14:59:26] dhoelzer_: For instance... resources :books do resources :chapters end
[14:59:31] edwinvdg_: has joined #RubyOnRails
[14:59:32] kitsuneyo: sevenseacat, this is in the people controller and the line directly follows the @person = Person.new(person_params) you suggested, so i guess it should be ok
[14:59:42] dhoelzer_: Where :chapters is an alias for :books ?
[15:01:13] dhoelzer_: In the end the URL would be "/books/1/chapters/5"
[15:02:07] mdw: has joined #RubyOnRails
[15:02:45] cabinB: has joined #RubyOnRails
[15:03:29] kgrz: has joined #RubyOnRails
[15:03:45] mdw7: has joined #RubyOnRails
[15:05:54] sn1ff3r: has joined #RubyOnRails
[15:06:23] artto: has joined #RubyOnRails
[15:06:33] alfiemax: has joined #RubyOnRails
[15:07:46] tjohnson: has joined #RubyOnRails
[15:09:11] adavia: has joined #RubyOnRails
[15:09:51] mdw: has joined #RubyOnRails
[15:10:01] sandelius: has joined #RubyOnRails
[15:12:02] mdw7_: has joined #RubyOnRails
[15:14:17] disgrntld: has joined #RubyOnRails
[15:14:45] frem_: has joined #RubyOnRails
[15:15:14] artto: has joined #RubyOnRails
[15:16:26] terrabl: has joined #RubyOnRails
[15:18:16] mdw: has joined #RubyOnRails
[15:20:41] sandelius: has joined #RubyOnRails
[15:21:28] terrabl: How do I include a javascript file that only one html.erb file can utilize?
[15:25:43] artto: has joined #RubyOnRails
[15:27:21] AntiSpamMeta: has joined #RubyOnRails
[15:28:04] bbrowning: has joined #RubyOnRails
[15:28:34] spyder55: has joined #RubyOnRails
[15:29:32] Kedare: has left #RubyOnRails: ("Leaving")
[15:31:15] truenito: has joined #RubyOnRails
[15:32:10] petor: has joined #RubyOnRails
[15:35:14] s2013: has joined #RubyOnRails
[15:35:37] mwlang: terrabl: are you utilizing the sprockets assets pipeline?
[15:36:52] davidklsn: has joined #RubyOnRails
[15:38:01] mwlang: terrabl: if so, the need to separate things out is largely removed as it’s better to package it all up and deliver in one punch and let browser cache do it’s thing. However, you can still do individual javascripts per view if you really want to with the following technique: http://stackoverflow.com/questions/602147/javascript-file-per-view-in-rails
[15:38:21] espinet: does anyone know why both forgein keys aren’t being populated? https://gist.github.com/anonymous/d4f48b19b9723af3573caecc0fabc37b
[15:38:29] lightt: has joined #RubyOnRails
[15:38:44] haraigo: has joined #RubyOnRails
[15:39:01] lightt: has joined #RubyOnRails
[15:39:49] terrabl: I am using sprockets and I understand the preformance bonuses, but for the scale of the project that I am working on, it is just more of a hinderance than anything. I would rather just have each page have its own individual JS/CSS
[15:40:45] drale2k: i wonder when you switch channels in Slack, if it does a db query every time you switch to another channel to grab the messages. I can not see anything in localstorage nor a xhr request made to grab messages
[15:40:50] edwinvdgraaf: has joined #RubyOnRails
[15:44:45] gfvcastro: has joined #RubyOnRails
[15:45:40] xlegoman: has joined #RubyOnRails
[15:45:54] achamian: has joined #RubyOnRails
[15:47:28] Guest_84756: has joined #RubyOnRails
[15:47:36] SteenJobs: has joined #RubyOnRails
[15:49:21] WilfredTheGreat: has joined #RubyOnRails
[15:50:57] sleungcy: has joined #RubyOnRails
[15:51:43] helpa: has joined #RubyOnRails
[15:52:46] norc: has joined #RubyOnRails
[15:53:18] davidw: has joined #RubyOnRails
[15:53:28] exadeci: has joined #RubyOnRails
[15:53:37] roamingdog: has joined #RubyOnRails
[15:54:01] salexa: has left #RubyOnRails: ("PART #fsf :PART #wordpress :PART #wikipedia :PART #gnu :PART #diaspora :PONG :wilhelm.freenode.net")
[15:59:20] noobsu: has joined #RubyOnRails
[15:59:30] macsteps: has joined #RubyOnRails
[16:00:20] chopin: has joined #RubyOnRails
[16:02:10] sandelius: has joined #RubyOnRails
[16:02:30] phredus: has joined #RubyOnRails
[16:03:29] banister: has joined #RubyOnRails
[16:04:45] belongs_to_rails: has joined #RubyOnRails
[16:04:50] belongs_to_rails: Hello guys, how can I find a collection of records on a two levels "belongs_to"? example: I have models structure like this one, https://gist.github.com/anonymous/1132a582ad3834620d19257464be7800 . Let's say I have a collection of @modelC = ModelC.all and I need to find all the ModelC records with ModelA.name = "test". How can I do?
[16:05:17] xlegoman: has joined #RubyOnRails
[16:05:34] kgrz: has joined #RubyOnRails
[16:05:36] noodle: has joined #RubyOnRails
[16:05:37] pontiki: has joined #RubyOnRails
[16:07:07] artto: has joined #RubyOnRails
[16:08:11] Jasaka: has joined #RubyOnRails
[16:11:42] idefine: has joined #RubyOnRails
[16:12:26] noobsu: has joined #RubyOnRails
[16:14:08] jhack: has joined #RubyOnRails
[16:15:42] shortCircuit__: has joined #RubyOnRails
[16:16:54] zave: has joined #RubyOnRails
[16:17:41] prithaj: has joined #RubyOnRails
[16:19:10] alfiemax: has joined #RubyOnRails
[16:20:15] dblessing: has joined #RubyOnRails
[16:21:06] allcentury: has joined #RubyOnRails
[16:21:41] roamingdog: belongs_to_rails: modelC.modelBs.each{|modelB| modelB.pariahs}
[16:22:14] tubbo: belongs_to_rails: look up joins
[16:22:16] roamingdog: but there's got to be a better way
[16:22:49] moeabdol: has joined #RubyOnRails
[16:23:12] tubbo: there's also the nested hash syntax: where(model_a: { name: 'test' })
[16:24:56] roamingdog: belongs_to_rails: if you're wondering how to get modelA given your modelC, modelC.modelB.modelA...
[16:25:11] sneakers: has joined #RubyOnRails
[16:25:34] jhack: has joined #RubyOnRails
[16:28:25] blockchan: has joined #RubyOnRails
[16:32:49] moeabdol1: has joined #RubyOnRails
[16:33:35] roamingdog: belongs_to_rails: also, consider using has_many through, then it's just ModelA.where(name: 'test').modelbs
[16:34:41] kitsuneyo: has joined #RubyOnRails
[16:35:13] diegoaguilar: has joined #RubyOnRails
[16:37:27] jhack: has joined #RubyOnRails
[16:37:38] tgeeky: can someone point out my error here: https://gist.github.com/technogeeky/2d093dab87f3a3dcf6a4a74d373e8be3
[16:37:45] tgeeky: autoload is not finding a file, I think I followed naming conventions
[16:37:47] daveomcd: has joined #RubyOnRails
[16:38:39] roamingdog: tgeeky: could it be SourceQBCustomers should be SourceQbCustomers? but then you'd get an error i think...
[16:38:42] Rafcio_: has joined #RubyOnRails
[16:38:52] tgeeky: roamingdog: will try
[16:39:28] Rafcio_: hey guys, i’m looking for a gem where a person can create custom user groups and assign users to those groups, as well as specify what each user group can do on a site.. do you know of good gems to accomplish this?
[16:39:47] Wolland: has joined #RubyOnRails
[16:39:57] Rafcio_: roamingdog: yes roles
[16:40:05] tgeeky: roamingdog: no difference. thanks for the suggestion
[16:40:07] roamingdog: Rafcio_: like rolify? i haven't used it myself, but it's popular
[16:40:10] Rafcio_: and the admin should be able to set what each role can do on a site
[16:41:09] roamingdog: Rafcio_: could be a gem, but more and more i find myself recommending people create things from scratch
[16:41:11] tgeeky: roamingdog: renaming it to Qbcustomers (one word) allows me to load it in console...
[16:41:29] manfrin: has joined #RubyOnRails
[16:41:40] Rafcio_: roamingdog: ya i was thinking of creating a custom thing from scratch, but would like to avoid it if possible
[16:42:35] norc_: has joined #RubyOnRails
[16:42:47] roamingdog: tgeeky: you mean naming it 'SourceQBCustomers' doesn't let you load it in console either?
[16:43:00] tgeeky: roamingdog: yep.
[16:43:15] roamingdog: tgeeky: same for 'SourceQbCustomers'?
[16:43:37] tgeeky: so, Qbcustomers worked, but when I tried QBCustomers, it said "unable to autoload constant Qbcustomers, expected ../qbcustomers.rb to define it"
[16:43:40] tgeeky: roamingdog: trying
[16:43:56] tgeeky: roamingdog: nope!
[16:45:05] sleungcy: has joined #RubyOnRails
[16:45:42] tubbo: tgeeky: don't fight the framework.
[16:45:49] blockchan: has joined #RubyOnRails
[16:45:53] tgeeky: tubbo: I'm not trying to fight it, I need to know what I should name this thing
[16:46:02] tubbo: rename the class to something that works better with rails. what does "QB CUstomers" mean?
[16:46:09] tgeeky: tubbo: QuickBooks Customers
[16:47:33] tubbo: tgeeky: why not call it QuickbooksCustomers?
[16:47:35] tgeeky: according to the autoloading guide, the actual thing it does is "ClassName".underscore.
[16:47:41] tgeeky: tubbo: that could work. trying!
[16:47:46] tubbo: sorta, yeah
[16:48:30] tubbo: that seems better from an understandability perspective. the fact that i had to ask you what "QB" meant means the name isn't good enough
[16:48:32] tgeeky: i also notice, using AS::Deps.autoload_paths that my autoload path is a #<Pathname:...> object, whereas all of the rails default ones are strings.
[16:48:37] tgeeky: tubbo: understood
[16:48:50] tgeeky: tubbo: and that works! Thanks!
[16:49:04] tubbo: usually Pathname and String are interchangeable, but if you really care you can always .to_s those Pathname objects..
[16:49:24] tgeeky: tubbo: yes, I expected as such: especially because some of these autoload reuqests worked
[16:49:30] tgeeky: now all I have to do is change my path name
[16:51:25] snowy: has joined #RubyOnRails
[16:51:59] tgeeky: they need to make a much less significant version of 'Eureka!' for the small victories.
[16:52:34] moeabdol2: has joined #RubyOnRails
[16:52:34] tgeeky: tubbo: roamingdog: it works! thanks for the help!
[16:53:30] mikecmpbll: has joined #RubyOnRails
[16:53:43] terrabl: has joined #RubyOnRails
[16:53:45] spyder55: has joined #RubyOnRails
[16:54:12] yellow5: has joined #RubyOnRails
[16:54:24] terrabl: So I created a scaffold in ruby on rails, and whenever I hit edit it shoes the form, but none of the text boxes are auto generated with the data that is already in the database, is there a way to do this easily without just doing some jquery stuff
[16:54:42] snoobydoo: has joined #RubyOnRails
[16:54:49] emptyflask: has joined #RubyOnRails
[16:55:28] hahuang61: has joined #RubyOnRails
[16:57:01] Coldblackice: has joined #RubyOnRails
[16:57:30] jhack: has joined #RubyOnRails
[16:58:29] svankmajer: has joined #RubyOnRails
[16:58:31] emilkarl: has joined #RubyOnRails
[17:00:10] tubbo: terrabl: are you using form_for?
[17:00:34] flashpoint9: has joined #RubyOnRails
[17:00:55] nettoweb: has joined #RubyOnRails
[17:03:07] rbr: has joined #RubyOnRails
[17:03:15] cnk: has joined #RubyOnRails
[17:05:30] adre: has joined #RubyOnRails
[17:05:47] hackeron: has joined #RubyOnRails
[17:06:09] jenrzzz: has joined #RubyOnRails
[17:06:16] kgrz: has joined #RubyOnRails
[17:07:36] moeabdol2: has joined #RubyOnRails
[17:08:11] whathappens: has joined #RubyOnRails
[17:09:55] hahuang61: has joined #RubyOnRails
[17:09:57] gfvcastro: has joined #RubyOnRails
[17:10:52] aegis3121: has joined #RubyOnRails
[17:12:03] jayc0b0: has joined #RubyOnRails
[17:13:14] Leepoff: has joined #RubyOnRails
[17:13:38] davidw: has joined #RubyOnRails
[17:13:57] adgtl: has joined #RubyOnRails
[17:17:35] bbrowning: has joined #RubyOnRails
[17:18:44] diegoviola: has joined #RubyOnRails
[17:18:59] theslow1: has joined #RubyOnRails
[17:20:01] cschneid: has joined #RubyOnRails
[17:20:08] theslow1: Hey everyone, when I say `gem list`, I see the following: `spree (3.0.9, 3.0.8, 3.0.4)`
[17:20:23] theslow1: how do I know which version is spree is used by my application?
[17:21:17] theslow1: Does ruby always use the most recent version of all the installed gems?
[17:21:34] workmad3_: theslow1: bundler will lock you to a specific version inside `Gemfile.lock`
[17:21:42] jayc0b0: It can depend on your gemfile.
[17:21:53] jayc0b0: You can specify which version to use.
[17:22:09] theslow1: ok, this makes sense
[17:22:12] whathapp_: has joined #RubyOnRails
[17:22:28] theslow1: thanks guys
[17:23:01] workmad3: theslow1: if you don't specify a version in your Gemfile, bundler will use the most recently available version when you do the first `bundle install` to generate Gemfile.lock, and thereafter use the same version until you explicitly update
[17:23:02] whathapp_: has joined #RubyOnRails
[17:23:31] allcentury: has joined #RubyOnRails
[17:23:59] workmad3: theslow1: you can also see which version you're using by doing `bundle exec gem list spree` btw (that's a nice workaround I discovered a while back)
[17:25:26] drale2k: is the ActionCable equivalent for "connected" on the frontend the "subscribed" on the backend?
[17:25:38] SteenJobs: has joined #RubyOnRails
[17:25:47] theslow1: bundle exec must take a look at my Gemfile.lock, if I run `bundle exec gem list spree` in my home dir, I still so all the versions
[17:26:03] theslow1: but when I run it in my project dir, I see spree (3.0.9)
[17:27:34] djbkd: has joined #RubyOnRails
[17:27:54] tubbo: yeah, `bundle` itself takes a look at Gemfile.lock
[17:28:01] tubbo: the lockfile is what's really used to determine dependencies
[17:28:11] tubbo: the Gemfile is just a DSL to build the lockfile
[17:29:55] codeshah: has joined #RubyOnRails
[17:30:13] jenrzzz: has joined #RubyOnRails
[17:30:13] jenrzzz: has joined #RubyOnRails
[17:32:39] Guest4184_______: has joined #RubyOnRails
[17:33:10] SteenJobs: has joined #RubyOnRails
[17:34:18] adre: has joined #RubyOnRails
[17:34:54] IFrank00: has joined #RubyOnRails
[17:37:39] sameerynho: has joined #RubyOnRails
[17:39:15] sleungcy: has joined #RubyOnRails
[17:40:32] Wolland: has joined #RubyOnRails
[17:42:03] mikecmpbll: has joined #RubyOnRails
[17:42:04] FCser: has joined #RubyOnRails
[17:43:13] sergey_makagon: has joined #RubyOnRails
[17:43:22] sleungcy_: has joined #RubyOnRails
[17:45:19] macsteps: has joined #RubyOnRails
[17:47:04] sypheren: has joined #RubyOnRails
[17:47:21] mdw: has joined #RubyOnRails
[17:48:39] FCser: has joined #RubyOnRails
[17:48:50] rueben_: has joined #RubyOnRails
[17:49:18] gfvcastro: has joined #RubyOnRails
[17:49:43] rogue_koder: has joined #RubyOnRails
[17:52:51] yfeldblum: has joined #RubyOnRails
[17:54:14] hahuang61: has joined #RubyOnRails
[17:55:31] terrabl: tubbo: yes im using form_for sorry for the late reply
[17:56:34] dionysus70: has joined #RubyOnRails
[17:57:04] svankmajer: has joined #RubyOnRails
[17:57:04] tubbo: terrabl: no worries. i feel like the form should be pre-setting the values then?
[17:57:22] tubbo: like if you have form_for @some_model and @some_model is not a new_record?, then i think it should auto-populate the field values
[17:57:34] flashpoint9: has joined #RubyOnRails
[18:00:47] tubbo: capybara doe http://i.imgur.com/jE8dAwc.gifv
[18:01:19] c355E3B: has joined #RubyOnRails
[18:01:40] zrl_: has joined #RubyOnRails
[18:02:13] shinnya: has joined #RubyOnRails
[18:02:58] exadeci: has joined #RubyOnRails
[18:03:24] terrabl: hmm. It doesnt seem to be populating the form with the results from when I first filled it out
[18:03:34] theslow1: has joined #RubyOnRails
[18:03:38] DoctorMonocular: has joined #RubyOnRails
[18:03:45] terrabl: edit.html.erb literally just calls render form
[18:04:07] Terens: has joined #RubyOnRails
[18:04:45] hjdivad: has joined #RubyOnRails
[18:05:26] webdestroya: has joined #RubyOnRails
[18:05:41] moresilenter: has joined #RubyOnRails
[18:05:48] terrabl: Oh I think I know why
[18:06:01] terrabl: I changed the ruby stuff to html stuff
[18:06:21] hobodave_: has joined #RubyOnRails
[18:07:05] gingray: has joined #RubyOnRails
[18:07:43] jancel: has joined #RubyOnRails
[18:07:54] acalewin: has joined #RubyOnRails
[18:08:25] digitalfiz: has joined #RubyOnRails
[18:09:14] nekomune: has joined #RubyOnRails
[18:10:52] alfiemax: has joined #RubyOnRails
[18:16:37] jenrzzz: has joined #RubyOnRails
[18:16:38] humd1ng3r: has joined #RubyOnRails
[18:17:07] sergey_makagon: has joined #RubyOnRails
[18:17:27] terrabl: Do you know how to add classes to the <%= f.textfield %>
[18:17:51] sergey_makagon: has joined #RubyOnRails
[18:17:57] digitalfiz: has joined #RubyOnRails
[18:20:32] Darmani: has joined #RubyOnRails
[18:23:44] norc_: has joined #RubyOnRails
[18:24:18] allcentury: has joined #RubyOnRails
[18:24:56] digitalfiz: has joined #RubyOnRails
[18:25:24] smathy: has joined #RubyOnRails
[18:25:40] tbuehlmann: terrabl: yes, http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-text_field
[18:26:02] terrabl: easier than i though
[18:26:31] zrl_: has joined #RubyOnRails
[18:26:36] ksoze: has joined #RubyOnRails
[18:27:39] der-landgraf: has joined #RubyOnRails
[18:28:14] TinkerTyper: has joined #RubyOnRails
[18:31:24] swgillespie: has joined #RubyOnRails
[18:31:58] alfiemax: has joined #RubyOnRails
[18:32:35] dangerousdave: has joined #RubyOnRails
[18:35:20] ezebe: has joined #RubyOnRails
[18:37:37] dangerousdave: has joined #RubyOnRails
[18:37:59] iamdevnul: has joined #RubyOnRails
[18:38:42] whathappens: has joined #RubyOnRails
[18:38:43] adre: has joined #RubyOnRails
[18:39:29] dangerousdave: has joined #RubyOnRails
[18:40:17] lupine: has joined #RubyOnRails
[18:40:30] dangerousdave: has joined #RubyOnRails
[18:41:17] Wolland: has joined #RubyOnRails
[18:42:24] agit0: has joined #RubyOnRails
[18:44:59] moeabdol: has joined #RubyOnRails
[18:45:31] dangerousdave: has joined #RubyOnRails
[18:46:51] iamdevnul: has joined #RubyOnRails
[18:47:01] adre: has joined #RubyOnRails
[18:49:28] chouhoulis: has joined #RubyOnRails
[18:50:46] DukeDave: has joined #RubyOnRails
[18:52:03] whathappens: has joined #RubyOnRails
[18:53:45] chridal: has joined #RubyOnRails
[18:53:59] chridal: has joined #RubyOnRails
[18:56:01] gmci: has joined #RubyOnRails
[18:58:11] Aherin: has joined #RubyOnRails
[18:58:52] ezebe: hi all! Can someone please clarify the principles behind routes for me please? I'm not sure whether it's possible to have two different routes/URLs for patch requests for the one model, which have very different levels of restriction and very different UI's
[18:59:17] Dimik: has joined #RubyOnRails
[19:00:17] Fernando-Basso: I will include certain css files depending on the domain a certain rails app is accessed. Is there any appropriate type of helper should use or just plain if request.host == 'foo.com' ?
[19:00:55] cnk: Fernando-Basso: I would probably just put the include in a if block
[19:01:07] Fernando-Basso: cnk: All right. Thanks.
[19:01:20] ezebe: essentially my user#create starts off with just email and a professional registration number, which is then used to autofill some user data from the national professional register, I want the user to confirm this data before email authentication etc happens after which they will be able to edit their whole profile
[19:01:45] cnk: ezebe: If you want different access control, you may have to have 2 controller methods, not just 2 routes. Unless you can attach the access control to the route
[19:01:53] tycoon177: has joined #RubyOnRails
[19:02:27] cnk: ezebe: for that case, I would just make 2 controller actions (and 2 urls)
[19:02:42] ezebe: i'm comfortable writing the controller methods, but how do make them "patch" rather than get
[19:02:59] ezebe: if you use "redirect_to" is it always get?
[19:03:36] digitalfiz: has joined #RubyOnRails
[19:03:38] tycoon177: How would I go about lazily loading a partial? Right now, I have a partial that takes quite a while to load, and it causes the rest of the view to take too long to load. It's in a tabbed display using foundation data tabs if that makes a difference
[19:03:39] KevinSjoberg: has joined #RubyOnRails
[19:04:03] kallisti5: has joined #RubyOnRails
[19:04:04] jstransky: has joined #RubyOnRails
[19:04:13] smathy: ezebe, yes.
[19:04:27] DarkBushido: has joined #RubyOnRails
[19:04:27] DarkBushido: has joined #RubyOnRails
[19:04:33] smathy: tycoon177, you sure you don't want to cache it?
[19:04:35] cnk: ezebe: the method that will get to a controller method is controlled in the routes
[19:04:36] tubbo: tycoon177: consider caching it
[19:05:09] gmci: has joined #RubyOnRails
[19:06:00] cnk: http://guides.rubyonrails.org/routing.html#adding-more-restful-actions - but just use 'put' where that shows 'get'
[19:06:43] ezebe: thanks, cnk - i had read that guide, and thought it would be something like that
[19:07:31] cnk: Generally I edit routes.rb and keep running 'rake routes' til I get what I want
[19:07:34] alethea: has joined #RubyOnRails
[19:07:39] cnk: not pretty, but effective
[19:09:04] tycoon177: I can't really cache it. It's photos that change per record and they are not repeatedly accessed for the most part
[19:09:28] cold_zero: has joined #RubyOnRails
[19:09:39] ezebe: i'll have a fiddle - i think my main problem is that i have a fairly shaky understanding of the whole stateless html thing - i'm pretty newbie, and the different methods called by different verbs with the same url confuses me
[19:09:42] k3rn31: has joined #RubyOnRails
[19:09:46] hahuang61: has joined #RubyOnRails
[19:10:37] cold_zero: Hello there. I try extract class method form ActiveRecord model to separate class. Is it possible to somehow delegate class messages received by acitve record model to this new class ?
[19:11:00] cnk: Ya that can be hairy. I generally use the stock scaffold stuff for controller and routes and than make up a url pattern if I want something non-standard
[19:11:13] pipework: cold_zero: self.class.my_method_name?
[19:11:23] diegoviola: has joined #RubyOnRails
[19:11:33] speakingcode: has joined #RubyOnRails
[19:11:41] smathy: tycoon177, ok, well no, you can't just flick a switch to lazy load something like that. You'll need to pull the partial out of your template, and trigger it's loading via ajax either when the tab is selected, or when the page is loaded so it's ready for when the tab is selected.
[19:12:29] tycoon177: Alright, thanks smathy
[19:12:46] tycoon177: I was thinking ajax would be the way to go, but my boss seemed to think I could do it in rails
[19:14:07] claudeva1dort: has joined #RubyOnRails
[19:14:19] jenrzzz: has joined #RubyOnRails
[19:15:04] nettoweb: has joined #RubyOnRails
[19:16:14] macsteps: has joined #RubyOnRails
[19:16:16] cold_zero: pipework: take a look here, this is what I want to achieve https://gist.github.com/SuperManEver/22f60d4688f865c616a8cc3fb7e5d4a2
[19:16:26] cold_zero: but I don't know how to do this
[19:17:41] definiv: has joined #RubyOnRails
[19:18:13] sameerynho: has joined #RubyOnRails
[19:21:14] cnk: cold_zero: check if delegate delegates instance methods or class methods
[19:21:24] cnk: my guess is the former - while you need the later
[19:21:58] cold_zero: I think you right, but I'd like to have similar thing for class methods
[19:22:04] cold_zero: is it possible ?
[19:22:24] cnk: http://www.timbabwe.com/2014/12/forwarding-class-methods-in-ruby/
[19:22:32] Synthead: I got a migration (for postgresql) that seems to be ignoring the "after" option. Here's what it looks like: "add_column :resources, :started_at, :datetime, after: :data"
[19:22:35] Synthead: does this look right?
[19:22:53] cnk: I don't think PG has an after
[19:22:57] cnk: check the postgres docs
[19:23:51] Synthead: cnk: you are right, sir! https://wiki.postgresql.org/wiki/Alter_column_position "Many people new to postgresql often ask if it has support for altering column positions within a table. Currently it does not; if you want to change column positions, you must either recreate the table, or add new columns and move data."
[19:24:54] sandelius: has joined #RubyOnRails
[19:25:02] allcentury: has joined #RubyOnRails
[19:25:26] cold_zero: cnk: thank you :)
[19:25:56] cnk: Synthead: really it's mysql that is odd in having 'after' - but since that is most people's reference point for dbs.....
[19:25:56] kgrz: has joined #RubyOnRails
[19:26:13] Synthead: oh interesting!
[19:26:19] Synthead: yeah that's my situation for sure
[19:27:12] gchristensen: has joined #RubyOnRails
[19:28:15] agent_white: has joined #RubyOnRails
[19:29:41] gchristensen: Hi, I have a temporary file I'd like to have a client download. Right now I'm using send_file, but the temp file is unlinked at the end of the controller's run, causing the file to not be there when Passenger interprets the X-Sendfile header. Is there a way to have the controller handle the reading / streaming of the response? (the file is also quite large, so I don't want to do read it all in to memory
[19:29:43] gchristensen: with file.read and then send_data.)
[19:31:18] eljimbo: has joined #RubyOnRails
[19:32:34] DataDyne: has joined #RubyOnRails
[19:32:50] eljimmy: has joined #RubyOnRails
[19:34:34] Aherin: has joined #RubyOnRails
[19:35:25] yellow5: has joined #RubyOnRails
[19:35:35] DataDyne: I'm using nokogiri to scrape a webpage for data, example would be avgh = doc.xpath('//div[4]/div/table/tbody/tr[7]/td[2]').first.text.to_s.gsub(/,/, '').to_i , which works fine. However, I found out the page doesn't load the same for every user. Is there a way to use nokogiri to search for text inside a html table, and return the column after the search text?
[19:35:36] cnk: gchristensen: you might need to make a not temp file - and then clean up via cron later
[19:35:55] tubbo: gchristensen: you can use ActionController::Live to stream-read the file with HLS.
[19:36:06] cnk: interesting
[19:36:51] gchristensen: I see. by chance is there a way to simply disable the header implementation of send_file for the entire application?
[19:36:52] tubbo: but that would require reading it into memory
[19:37:07] tubbo: you probably don't want to do that.
[19:37:17] tubbo: (disabling the header implementation for the entire app)
[19:37:24] tubbo: which i don't even think is your problem
[19:37:48] tubbo: i think your problem is that you're trying to `send_file` with a Tmpfile or something, a file that isn't actually guaranteed to be there.
[19:37:52] syndikate: has joined #RubyOnRails
[19:38:09] tubbo: so instead of that, could you read a file out of $your-app-dir/tmp?
[19:38:18] gchristensen: under what circumstances would I definitely not want to do that? currently static assets are served already by the webserver, and the only other time we're serving something from the filesystem is yes as I described using a Tempfile
[19:40:19] tubbo: gchristensen: (btw ruby has its own class called "Tempfile", that's what i refer to when i say "Tempfile"...vs "tmp file" or "temporary file")
[19:40:40] gchristensen: tubbo: yeah, we are indeed using Tempfile, the class
[19:40:59] tubbo: gchristensen: well send_file is a method provided by rails and could be used elsewhere in your application. it seems like there's a better solution than overriding a framework-derived method that can be used globally.
[19:41:05] gchristensen: I'm pretty sure actually this is what is happening in production, since we're using apache + passenger but without mod_xsendfile, but we're being exposed to a bug in dev with rack which seems to be using the header based method of sendfile
[19:41:07] d1rewolf: has joined #RubyOnRails
[19:41:13] tubbo: it's just dangerous, hence why i said "probably" :)
[19:42:00] Wolland: has joined #RubyOnRails
[19:42:35] tubbo: gchristensen: i think this caveat here in the Tempfile docs is somewhat related to your issue http://ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html#class-Tempfile-label-Minor+notes
[19:43:25] tubbo: Tempfile has its advantages, but in this case it seems like you might need to actually write to disk in order for send_file to work correctly.
[19:43:41] tubbo: Tempfile _is_ a file on disk but it has another layer of abstraction built on top of it..
[19:43:44] gchristensen: yeah so this is writing to disk
[19:43:47] gchristensen: how so? other than the race condition being added by the fake sendfile implementation (the race to get an open handle on the file before it is unlinked)
[19:44:11] tubbo: gchristensen: how do you know that it's being unlinked?
[19:44:44] aegis3121: has joined #RubyOnRails
[19:45:04] gchristensen: it happens automatically when it is garbage collected: "If you don’t explicitly unlink the temporary file, the removal will be delayed until the object is finalized."
[19:45:09] tubbo: ahhh yeah ok
[19:45:16] tubbo: so you _definitely_ can't use a Tempfile
[19:45:20] tubbo: you have NO idea when ruby is gonna gC
[19:45:33] tubbo: just use a regular File and store it in Rails.root.join('tmp') :)
[19:45:45] gchristensen: well ok, but I do know for sure it isn't going to GC the in-scope object, which is why I want sendfile to actually sendfile, and not do the header trick
[19:46:16] gchristensen: I didn't mean GC, I meant finalized :)
[19:47:03] tubbo: the main reason i've used Tempfile in the past is so i don'
[19:47:11] tubbo: don't* have to think about where it's located and what it's called
[19:47:16] tubbo: i just need to store some shit for a second :)
[19:47:19] smathy: gchristensen, are you sure you want a whole ruby process hung up just sending a file?
[19:48:26] tubbo: http://api.rubyonrails.org/classes/ActionController/Live.html
[19:52:50] srinidhi: has joined #RubyOnRails
[19:53:48] truenito: has joined #RubyOnRails
[19:55:05] gchristensen: thank you, tubbo!
[19:55:45] Spami: has joined #RubyOnRails
[19:57:02] gchristensen: has left #RubyOnRails: ("WeeChat 0.4.2")
[19:58:10] Pumukel: has joined #RubyOnRails
[19:58:36] DTZUBDUB: has joined #RubyOnRails
[19:59:58] jstransky: has joined #RubyOnRails
[20:00:31] solars: has joined #RubyOnRails
[20:02:03] mdw: has joined #RubyOnRails
[20:04:23] kitsuneyo: has joined #RubyOnRails
[20:05:37] tildes_: has joined #RubyOnRails
[20:10:55] adavia: has joined #RubyOnRails
[20:11:13] workmad3: has joined #RubyOnRails
[20:12:08] kitsuneyo: has joined #RubyOnRails
[20:14:49] roamingdog: has joined #RubyOnRails
[20:14:56] APhilp: has joined #RubyOnRails
[20:15:42] AnoHito_: has joined #RubyOnRails
[20:15:57] achamian: has joined #RubyOnRails
[20:17:57] KevinSjoberg: has joined #RubyOnRails
[20:18:30] APhilp: has joined #RubyOnRails
[20:20:31] hahuang61: has joined #RubyOnRails
[20:23:14] whathappens: has joined #RubyOnRails
[20:25:00] yfeldblum: has joined #RubyOnRails
[20:25:47] allcentury: has joined #RubyOnRails
[20:26:43] kgrz: has joined #RubyOnRails
[20:30:02] definiv: has left #RubyOnRails: ("ERC (IRC client for Emacs 24.5.1)")
[20:31:34] s2013: has joined #RubyOnRails
[20:32:43] roamingdog: has joined #RubyOnRails
[20:32:50] dionysus69: has joined #RubyOnRails
[20:33:33] macsteps: has joined #RubyOnRails
[20:35:35] whathappens: has joined #RubyOnRails
[20:39:01] qejk: has joined #RubyOnRails
[20:42:48] Wolland: has joined #RubyOnRails
[20:43:33] Leepoff: has joined #RubyOnRails
[20:50:19] guacamole: has joined #RubyOnRails
[20:50:38] ur5us: has joined #RubyOnRails
[20:52:05] workmaster2n: has joined #RubyOnRails
[20:54:49] sandelius: has joined #RubyOnRails
[20:54:59] DigitalDarwin: has joined #RubyOnRails
[20:59:23] diegoviola: has joined #RubyOnRails
[21:04:22] Jenzo: has joined #RubyOnRails
[21:07:02] rueben_: has joined #RubyOnRails
[21:16:03] roamingdog: has joined #RubyOnRails
[21:19:01] sleungcy: has joined #RubyOnRails
[21:22:59] Jasaka: has joined #RubyOnRails
[21:23:33] whathappens: has joined #RubyOnRails
[21:26:21] DoctorMonocular: has joined #RubyOnRails
[21:26:35] allcentury: has joined #RubyOnRails
[21:27:37] kgrz: has joined #RubyOnRails
[21:28:03] graft: okay, so the priority order of scss styles should be: the last attribute in the css file that matches will get priority
[21:28:26] graft: and the class="blah blah2" order doesn't matter
[21:29:40] bruce_lee: has joined #RubyOnRails
[21:31:05] graft: this damn thing doesn't work at all
[21:31:31] ashleyw: has joined #RubyOnRails
[21:35:01] truenito: has joined #RubyOnRails
[21:37:20] sleungcy: has joined #RubyOnRails
[21:37:49] svankmajer: has joined #RubyOnRails
[21:37:49] svankmajer: has joined #RubyOnRails
[21:38:57] workmad3: graft: if you're only using classes, then yes, the order that matters is in the compiled CSS file, not the list in the class attribute
[21:39:14] smathy: graft, no, google css specificity
[21:39:30] workmad3: graft: if you've got nested selectors, or pseudoclasses, or anything like that, then you need the css specificity rules as smathy just said
[21:40:00] KevinSjoberg: has joined #RubyOnRails
[21:43:31] Wolland: has joined #RubyOnRails
[21:45:00] SteenJobs: has joined #RubyOnRails
[21:48:02] Darmani: Could someone explain this code to me?
[21:48:02] Darmani: https://gist.github.com/mfifth/670b7392ad52716d2e2709597e2f414d
[21:48:18] Darmani: I know what it does but I don't get the syntax.
[21:48:30] macsteps: has joined #RubyOnRails
[21:48:57] cnk: which part?
[21:49:16] Darmani: cnk: The scope.
[21:49:44] cnk: the scope is a lambda - a way to create code at execute time, not load time
[21:50:19] cnk: if it were not a lambda, then sender_id, and recipient_id would have to be defined in the file - not dynamically whenever you call the scope
[21:50:35] cnk: and the rest of it is just the where clause to build the SQL statement
[21:50:57] Darmani: cnk: That where clause is how I get mixed up >.<
[21:51:35] Darmani: I'm still working on that messaging system in case you couldn't tell lol
[21:52:15] __royal: has joined #RubyOnRails
[21:52:16] cnk: OK and that scope looks for messages from A to B OR messages from B to A
[21:52:43] flashpoint9: has joined #RubyOnRails
[21:53:15] cnk: and you know that the args at the end get put in where ever there is a '?', right?
[21:53:23] Darmani: cnk: https://medium.com/@danamulder/tutorial-create-a-simple-messaging-system-on-rails-d9b94b0fbca1#.3qo9dv5uj
[21:53:30] cnk: (always hard to tell what people do and do not know over IRC)
[21:53:33] Darmani: that's the tutorial I'm following.
[21:54:11] Darmani: cnk: No I didn't know that.
[21:54:30] pilne: has joined #RubyOnRails
[21:54:36] cnk: OK the ? are placeholders
[21:54:57] nettoweb: has joined #RubyOnRails
[21:55:31] cnk: Darmani: read the warning at http://guides.rubyonrails.org/active_record_querying.html#conditions
[21:55:50] cnk: why you use ? instead of #{mything} in queries
[21:57:24] Leepoff: has joined #RubyOnRails
[21:57:57] Darmani: cnk: that's interesting. I'm still reading it.
[21:58:01] KevinSjoberg: has joined #RubyOnRails
[22:00:11] Darmani: cnk: So within that particular scope, what's being passed to the placeholder are the recipient and sender id's right?
[22:01:07] jancel: has joined #RubyOnRails
[22:01:28] Darmani: cnk: But why is this particular code "(conversations.sender_id = ? AND conversations.recipient_id =?)" repeated twice?
[22:01:45] crova: has joined #RubyOnRails
[22:01:48] cnk: look at the order of the args
[22:02:10] cnk: first one gets sender, recipient and the second gets recipient, sender
[22:02:55] yfeldblum: has joined #RubyOnRails
[22:03:02] Darmani: cnk: ohh it's so the scope looks in both directions?
[22:03:34] crova: greetings! I'm trying to create a loop to update records if necessary or create ones if no match in the database. It seems to work for the first record it finds, but once it moves to the next one, it halts. https://gist.github.com/crova/c0540ed2925d4f8e45e422aada0157ec
[22:03:38] Darmani: cnk: it all makes sense now.
[22:04:15] Darmani: cnk: Thanks mann. I appreciate the help ^.^
[22:04:22] kitsuneyo: has joined #RubyOnRails
[22:04:29] dblessing: has joined #RubyOnRails
[22:05:59] Darmani: cnk: One more thing, do you think that tutorial is a good way to implement a messaging system?
[22:08:26] Leepoff: has joined #RubyOnRails
[22:10:18] jenrzzz: has joined #RubyOnRails
[22:10:18] jenrzzz: has joined #RubyOnRails
[22:10:35] randalmeister: has joined #RubyOnRails
[22:10:42] joelwallis: has joined #RubyOnRails
[22:12:37] Technodrome: has joined #RubyOnRails
[22:15:31] jenrzzz: has joined #RubyOnRails
[22:17:54] kgrz: has joined #RubyOnRails
[22:18:03] achamian: has joined #RubyOnRails
[22:24:27] sonofdirt: has joined #RubyOnRails
[22:25:02] FailBit: has joined #RubyOnRails
[22:25:30] FailBit: how do I post form data using js fetch() to a rails post endpoint
[22:26:12] darkxploit: has joined #RubyOnRails
[22:27:19] allcentury: has joined #RubyOnRails
[22:31:04] roamingdog: has joined #RubyOnRails
[22:31:19] darkxploit: has joined #RubyOnRails
[22:32:09] andywww: has joined #RubyOnRails
[22:37:16] lightt: has joined #RubyOnRails
[22:37:17] soroot: has joined #RubyOnRails
[22:37:32] soroot: has joined #RubyOnRails
[22:37:56] svankmajer: has joined #RubyOnRails
[22:39:08] crova: greetings! how can I skip existing records from create loop? I got something that works for the first record, but halts right after https://gist.github.com/crova/c0540ed2925d4f8e45e422aada0157ec
[22:39:30] jancel: has joined #RubyOnRails
[22:43:50] macsteps: has joined #RubyOnRails
[22:44:16] Wolland: has joined #RubyOnRails
[22:44:53] blackmesa: has joined #RubyOnRails
[22:45:24] andywww: drop the case on your variable Shoot first
[22:46:57] crova: flawless, much oblige
[22:47:54] crova: and why was that? if you don't mind
[22:48:22] nac: has joined #RubyOnRails
[22:48:26] andywww: you’re overwriting Shoot
[22:48:31] andywww: Shoot is your model
[22:48:44] crova: while shoot is just a local variable?
[22:49:06] crova: thanks for the input
[22:49:25] macsteps: has joined #RubyOnRails
[22:49:53] alfiemax: has joined #RubyOnRails
[22:50:26] moeabdol: has joined #RubyOnRails
[22:53:36] whathappens: has joined #RubyOnRails
[22:54:57] iceden: has joined #RubyOnRails
[22:58:59] bmorrison: has joined #RubyOnRails
[23:00:26] tildes_: has joined #RubyOnRails
[23:04:21] guacamole: has joined #RubyOnRails
[23:06:06] yfeldblum: has joined #RubyOnRails
[23:08:12] replay: has joined #RubyOnRails
[23:08:18] jancel: has joined #RubyOnRails
[23:11:34] ^rene_: has joined #RubyOnRails
[23:19:02] rueben_: has joined #RubyOnRails
[23:19:29] andywww: has left #RubyOnRails: ()
[23:19:52] djbkd: has joined #RubyOnRails
[23:21:08] rueben_: has joined #RubyOnRails
[23:27:42] sumobob: has joined #RubyOnRails
[23:27:43] macsteps: has joined #RubyOnRails
[23:28:01] allcentury: has joined #RubyOnRails
[23:28:28] sameerynho: has joined #RubyOnRails
[23:31:48] JesseH: has joined #RubyOnRails
[23:32:24] Leepoff: has joined #RubyOnRails
[23:32:55] smathy: has joined #RubyOnRails
[23:33:31] ElFerna: has joined #RubyOnRails
[23:33:55] emptyflask: has joined #RubyOnRails
[23:36:51] s2013: has joined #RubyOnRails
[23:37:25] sonofdirt: has joined #RubyOnRails
[23:40:37] dalbusch1t: has joined #RubyOnRails
[23:42:43] sonofdirt: has joined #RubyOnRails
[23:45:16] Wolland: has joined #RubyOnRails
[23:45:43] jancel: has joined #RubyOnRails
[23:50:33] whathappens: has joined #RubyOnRails
[23:55:47] __royal: has joined #RubyOnRails
[23:55:57] banister: has joined #RubyOnRails
[23:57:31] k3rn31: has joined #RubyOnRails
[23:57:59] Ropeney: has joined #RubyOnRails
[23:59:11] kies: has joined #RubyOnRails
[23:59:16] Emily: has joined #RubyOnRails