« Back to channel list

#RubyOnRails - 02 August 2015

« Back 1 day Forward 1 day »
[00:01:58] HoppingMadMan: has joined #RubyOnRails
[00:05:45] HoppingMadMan: has joined #RubyOnRails
[00:09:24] crdpink2: has joined #RubyOnRails
[00:09:58] lampd1: it's not normal for a dev to write migrations; and then write migrations that drop tables he wrote in a previous migration all in one feature push is it?
[00:10:20] lampd1: wouldn't it be cleaner to... write a migration... decide you need to fix it... rake db:rollback; correct the migration; and re-migrate?
[00:11:35] centrx: It would, as long as the migration has not already been committed/used by others
[00:11:39] centrx: s/committed/pushed
[00:11:43] fryguy: if the migration isn't public then you can change it, otherwise you can't/shouldn't
[00:12:09] idd2d: has joined #RubyOnRails
[00:12:22] lampd1: its in a feature branch that hasn't been merged to anything for stage/production
[00:12:40] lampd1: i might be a little ocd about this stuff but...
[00:13:20] lampd1: now i just need to figure out how to bring it up... person who wrote it happens to be my mgr :P
[00:14:02] NoidedSuper: So I'm trying to remove ActiveRecord from an existing rails project (in favor of Sequel), and every time I try to run Rspec it's trying to use ActiveRecord
[00:14:28] centrx: lampd1, If the migration has been pushed to the source repository, creating a second migration is the right way
[00:14:35] imkj: lampd1: If the code is not local anymore, I'd recommend creating a second migration.
[00:14:35] NoidedSuper: I already changed my application config to not use AR and done everything I could find on Stack Overflow. I feel like I'm going insane
[00:14:51] lampd1: weird; i'd just change my original but okay
[00:14:56] lampd1: (he's the only dev working on the branch)
[00:15:20] centrx: lampd1, Right, that can make it theoretically unnecessary, but it is best practice
[00:15:33] lampd1: word; thanks guys
[00:15:43] NoidedSuper: Anybody have any idea why that might be? It's attempting to access ActiveRecord::Base, and the trace says its inactive_record/fixtures.rb
[00:15:49] lampd1: ACTION goes all ocd on smallest things
[00:15:56] lampd1: empty whitespace included
[00:16:13] centrx: lampd1, How many times did you wash your hands today?
[00:16:27] lampd1: only have computer ocd :P
[00:16:33] lampd1: maybe like two?
[00:16:48] centrx: ok keep up the good work
[00:17:17] hahuang61: has joined #RubyOnRails
[00:17:37] imkj: lampd1: Computer OCD can be an asset, especially when trying to write good and consistent code. :p
[00:18:24] lampd1: I need an augmented reality setup that makes the dirty spots of my apartment look like empty whitespace
[00:18:42] lampd1: would have the cleanest house ever
[00:19:11] centrx: robots are the true OCD...must...execute...code
[00:19:57] imkj: centrx: Is it technically OCD if they can't really feel bad about not doing it? I think part of what makes OCD, well, OCD, is the irresistible itch to do something. :P
[00:20:38] nahtnam: I have a model setup like this: https://gist.github.com/nahtnam/63670c08fba57667b410 But its giving me the error: `undefined local variable or method `this' `. If I remove this, it will say: undefined local variable or method `username'
[00:20:54] nahtnam: So how do you define methods in the model?
[00:21:07] centrx: It's OCD if you can't see the forest for the trees, so much that you burn the whole forest down
[00:21:17] Matadoer_: has left #RubyOnRails: ()
[00:21:34] hashrocket: has joined #RubyOnRails
[00:21:37] centrx: nahtnam, What is 'this', you mean 'self'?
[00:22:48] nahtnam: centrx: Ohhh, its self... I thought it was this. Thanks
[00:23:21] NoidedSuper: Does anybody know if rspec-rails loads ActiveRecord?
[00:23:31] NoidedSuper: Because I have no idea where this is getting loaded
[00:24:24] hahuang61: has joined #RubyOnRails
[00:25:37] eggoez: has joined #RubyOnRails
[00:25:38] Casty: has joined #RubyOnRails
[00:27:02] simplyianm: has joined #RubyOnRails
[00:33:25] diegoviola: has joined #RubyOnRails
[00:33:31] christiandsg: has joined #RubyOnRails
[00:33:32] renews: has joined #RubyOnRails
[00:33:48] diegoviola: are has_field/fill_field activerecord methods or has they ever been (deprecated)?
[00:36:21] centrx: diegoviola, Looks like those are RSpec methods
[00:37:01] blackhuey: has joined #RubyOnRails
[00:40:44] cntrx: has joined #RubyOnRails
[00:41:17] centrx: has joined #RubyOnRails
[00:43:06] diegoviola: I tried googling but I can't find those methods anywhere
[00:44:31] diegoviola: capybara seems to have a have_field
[00:45:15] hahuang61: has joined #RubyOnRails
[00:45:49] lethjakman: has joined #RubyOnRails
[00:46:14] diegoviola: and has_field?
[00:46:51] Limix: has joined #RubyOnRails
[00:46:59] rhizome: what exactly is the issue, are you reverse engineering or trying to figure out how to do something specific?
[00:48:32] diegoviola: rhizome: I have some cucumber specs but the specs is pretty vague, I need to implement the code to make it work
[00:48:39] diegoviola: or to make it pass, rather
[00:51:10] diegoviola: https://gist.github.com/diegoviola/4d78888b62845026f08b
[00:51:25] diegoviola: wtf is label/verb/noun supposed to mean?
[00:51:31] diegoviola: fields inside a model?
[00:54:00] RegulationD: has joined #RubyOnRails
[00:54:53] rhizome: sounds like maybe there's code to figure out what part of speech a word is?
[00:56:53] diegoviola: "We'd like you to create an application that takes in a mad-lib definition, parses it, and then allows users to fill it in. The required syntax for a mad-lib is fairly simple, parts of speech that should be requested are surrounded by curly braces ('{' and '}')."
[00:58:37] rhizome: yeah, but what is the method for determining a part of speech? i dunno, maybe they just want you to make sure whatever word is put in a form winds up on the next page. you could also ask them clarifying questions.
[00:59:19] rhizome: "the form works" is probably the most SRP way of interpreting the spec
[01:00:49] rhizome: single responsibility principle. "test one thing"
[01:01:54] rickmasta: has joined #RubyOnRails
[01:04:49] diegoviola: there isn't code for that I'm afraid
[01:05:21] hahuang61: has joined #RubyOnRails
[01:06:01] diegoviola: heck, are they expecting me to parse strings and determine what every word is, if it's noun, verb, etc?
[01:07:57] irctc411: has joined #RubyOnRails
[01:08:56] irctc411: hello can anyone help me with my rails issue im having?
[01:09:02] rhizome: that's what i'm saying: maybe they aren't
[01:09:42] irctc411: i posted my issue earlier on stack, heres the link.
[01:09:45] rhizome: diegoviola: ask them, because it exponentially complicates things if you don't already have code for it
[01:10:15] rhizome: as in, something i would charge healthy amounts to implement
[01:10:24] Limix: has joined #RubyOnRails
[01:11:29] djbkd: has joined #RubyOnRails
[01:12:45] diegoviola: rhizome: I asked them
[01:13:37] allcentury: has joined #RubyOnRails
[01:15:47] irctc411: heres my issue: http://stackoverflow.com/questions/31766477/trying-to-do-a-query-session-for-parse/
[01:16:28] arooni: has joined #RubyOnRails
[01:16:30] nya: has joined #RubyOnRails
[01:17:19] weaksauce: diegoviola i would interpret that as a way to display the type of speech to the user and not do any validation on it
[01:17:46] diegoviola: weaksauce: what do you mean the type of speech?
[01:17:52] weaksauce: just like madlibs it just says "verb" after the input area
[01:18:04] weaksauce: it doesn't do validation on it.
[01:18:28] weaksauce: parts of speech?
[01:18:34] weaksauce: whatever it's called.
[01:18:39] diegoviola: weaksauce: you mean just taking random words from inputs and making up a madlib?
[01:19:58] weaksauce: no the model you pasted had certain parts of speech related to each of the inputs. you would parse that string, create form inputs for each of the parts between a {} and then display it as a form with some kind of hint.
[01:20:18] weaksauce: after they submit the form it would simply just display the concatenated result
[01:20:25] hahuang61: has joined #RubyOnRails
[01:21:12] lwu_: has joined #RubyOnRails
[01:21:27] FrankD: is there a way to call a method belonging to controller A from controller B?
[01:21:39] lampd1: how many of you guys use rubymine?
[01:21:42] FrankD: ie in B A.is_visible_to_user?(user.id)
[01:21:58] lampd1: vim is great for smaller ruby apps... but working w/ spree is kind of making me want an IDE
[01:22:05] rhizome: FrankD: whatever you're trying to do, you're likely doing it wrong
[01:22:13] diegoviola: lampd1: I use vim
[01:22:24] FrankD: rhizome, some type of basic authorization
[01:22:24] lampd1: maybe i just need a bigger screen ;)
[01:22:27] rhizome: what about spree is outgrowing vim for you?
[01:23:05] diegoviola: weaksauce: oh so I would insert the things with {} in inputs and I would allow the user to enter the values for those, when the form is submitted it would display the text with the values
[01:23:08] Denarii: I use vim for quite large rails app.
[01:23:17] rhizome: FrankD: i think typically you'd use a helper there
[01:23:19] diegoviola: weaksauce: s/things/words/
[01:23:31] weaksauce: diegoviola yes. of course they might want magic but i'd assume simple first
[01:23:34] lampd1: well; i think just what i'm digging into right now is overwhelming me :P
[01:23:41] lampd1: IDE probably wouldn't help much
[01:23:45] lampd1: just have lots of tabs and panes atm lol
[01:23:48] diegoviola: weaksauce: makes sense, thanks
[01:24:20] weaksauce: lampd1 I use sublime text 3 for browsing and vim for actual editing.
[01:24:25] FrankD: rhizome, probably some really bad practices in there (ie theres logic in the view) but: https://gist.github.com/fdimitri/d537893fed9a8bb41405
[01:24:52] lampd1: maybe i should give that a whirl weaksauce
[01:25:18] weaksauce: lampd1 also if you know the file name use ctrl-p, nerdtree is useful, and there is a great buffer list to show you buffers that are open
[01:25:24] FrankD: and i have the method defined in the ProjectController.. def is_visible_to_user?(userId) .. yet pu_assoc.respond_to?('is_visible_to_user?') = false
[01:25:38] lampd1: yeah i use nerdtree + tmux
[01:25:45] diegoviola: they sent me this code (cucumber), I'm not familiar with it: https://gist.github.com/diegoviola/26198f142961a2e56ef4
[01:25:48] diegoviola: and it's confusing
[01:25:58] FrankD: so where would I put the auth code?
[01:26:02] lampd1: just... digging into things like engines and their dependencies in correlation to spree app
[01:26:11] diegoviola: well the only thing that confuses me is this has_field?, I'm not sure if this is some method I should be implementing
[01:26:14] lampd1: specifically activeshipping
[01:26:19] lampd1: end up with lots open at once
[01:26:35] rhizome: FrankD: why would not-visible items even be included in what's being looped?
[01:26:54] rhizome: plus, those association names are heinous
[01:27:36] bruno-: has joined #RubyOnRails
[01:27:39] renews: has joined #RubyOnRails
[01:28:03] rhizome: basically, @project_users should be queried in the context of the current user and the project
[01:28:03] FrankD: rhizome, ok well how would I exclude them? loop through @projects_users under 'index' and remove ones that they have no view access to?
[01:28:40] rhizome: ask yourself why users they're not supposed to see are there in the first place
[01:30:23] FrankD: in that case -- since I can't call pu_assoc.Project.is_visible_to_user?(current_user.id) where do put the function so its accessible to ProjectsUser (intermediary model, ie Projects has_many :Users through :ProjectsUser and Users has_many :Projects through :ProjectsUser)
[01:30:42] rhizome: you're killing me with those capitalized associations
[01:31:15] hahuang61: has joined #RubyOnRails
[01:31:26] rhizome: FrankD: you create a visible_projects scope under user
[01:31:34] rhizome: or method. scope. whatever.
[01:31:46] FrankD: sorry, but the logic is the same no matter the capitlization :P
[01:33:57] FrankD: doesnt the auth logic belong in Project? since we're querying if a Project is visible to a User
[01:35:14] FrankD: i just wanted something that could also be done in another controller/view (in this case ProjectsUser, which ties Projects and Users together)
[01:36:00] christiandsg: has joined #RubyOnRails
[01:36:37] drale2k: has joined #RubyOnRails
[01:36:49] craysiii: has joined #RubyOnRails
[01:37:05] hahuang61: has joined #RubyOnRails
[01:37:22] rhizome: it should be done via a model
[01:39:45] vedu: has joined #RubyOnRails
[01:42:27] gambl0re: has joined #RubyOnRails
[01:43:44] dcope: if i have a has many, with AR how can i query a count?
[01:43:54] dcope: ie a book that has mnay pages. how can i query books that have 50 pages?
[01:44:10] drale2k: has joined #RubyOnRails
[01:44:20] rhizome: use counter_cache and make it easy on yourself
[01:45:37] lwu_: has joined #RubyOnRails
[01:45:40] TheMonster: has joined #RubyOnRails
[01:46:45] dcope: rhizome: then i have to change the schema :(
[01:47:03] arooni: has joined #RubyOnRails
[01:47:25] drale2k_: has joined #RubyOnRails
[01:47:41] j_mcnally: has joined #RubyOnRails
[01:49:27] erich: has joined #RubyOnRails
[01:50:31] hahuang61: has joined #RubyOnRails
[01:51:49] HoppingMadMan: has joined #RubyOnRails
[01:51:51] centrx: has joined #RubyOnRails
[01:52:16] Guest21448: has joined #RubyOnRails
[01:56:36] FrankD: rhizome, thanks
[01:57:01] tenderlove: has joined #RubyOnRails
[01:58:07] NoidedSuper: books.joins(:pages).references(:pages).group("books.id").having("COUNT(pages) = 50")
[01:58:08] NoidedSuper: I think that should work
[02:04:26] lethjakman: has joined #RubyOnRails
[02:06:03] hahuang61: has joined #RubyOnRails
[02:06:19] DelDotB: has joined #RubyOnRails
[02:07:42] DelDotB: has left #RubyOnRails: ()
[02:07:59] n1lo: has joined #RubyOnRails
[02:08:23] cntrx: has joined #RubyOnRails
[02:09:13] Contigi: has joined #RubyOnRails
[02:09:19] cntrx: has left #RubyOnRails: ()
[02:09:36] centrx: has joined #RubyOnRails
[02:16:04] dideler: has joined #RubyOnRails
[02:16:58] wethu: has joined #RubyOnRails
[02:17:18] hahuang61: has joined #RubyOnRails
[02:18:52] theery: has joined #RubyOnRails
[02:20:15] dcope: NoidedSuper: awesome, thanks. i'll play around with that.
[02:21:45] renews: has joined #RubyOnRails
[02:21:50] bustrarm: has joined #RubyOnRails
[02:22:43] simplyianm: has joined #RubyOnRails
[02:24:28] s2013: has joined #RubyOnRails
[02:26:14] vere: has joined #RubyOnRails
[02:27:44] hahuang61: has joined #RubyOnRails
[02:31:48] lwu: has joined #RubyOnRails
[02:32:30] dcope: nomadicoder: this is strange, it works if the count is > 0
[02:32:36] dcope: but not if the count is 0
[02:34:28] Scripore: has joined #RubyOnRails
[02:36:12] prestorium: has joined #RubyOnRails
[02:36:43] christiandsg: has joined #RubyOnRails
[02:42:41] hive-mind: has joined #RubyOnRails
[02:42:47] simplyianm: has joined #RubyOnRails
[02:44:21] arooni-mobile: has joined #RubyOnRails
[02:44:26] hahuang61: has joined #RubyOnRails
[02:57:53] NoidedSuper: has left #RubyOnRails: ()
[02:59:01] SteenJobs: has joined #RubyOnRails
[03:00:15] hahuang61: has joined #RubyOnRails
[03:02:52] s2013: has joined #RubyOnRails
[03:03:05] Scripore: has joined #RubyOnRails
[03:08:22] sevenseacat: has joined #RubyOnRails
[03:08:53] cornerma1: has joined #RubyOnRails
[03:10:57] diegoviola: @madlib.has_field?(field[:label]).should be true <-- is that #has_field? something I should implement inside that model/class or it's a rspec/capybara method?
[03:11:50] diegoviola: because I keep getting this when I run the spec: undefined method `has_field?' for #<MadLib:0x00556dfa5536c0> (NoMethodError)
[03:12:11] diegoviola: I know what that undefined method means, I'm just confused
[03:13:51] braincrash: has joined #RubyOnRails
[03:15:22] djbkd: has joined #RubyOnRails
[03:15:55] renews: has joined #RubyOnRails
[03:17:04] rubynuby: has joined #RubyOnRails
[03:17:35] rubynuby: has left #RubyOnRails: ()
[03:19:31] rubynuby: has joined #RubyOnRails
[03:22:15] l0oky: has joined #RubyOnRails
[03:24:01] dcope: how is this possible? http://pastie.org/private/s0y9u3xeheejx8i8zrqpg
[03:24:11] dcope: am i going crazy or am i missing something right under my nose..?
[03:25:22] rickmasta: has joined #RubyOnRails
[03:25:51] MAQ: has joined #RubyOnRails
[03:28:15] dcope: d'oh, it's timezone weirdness
[03:28:35] MAQ: has joined #RubyOnRails
[03:32:20] eggoez: has joined #RubyOnRails
[03:32:37] ivanskie: has joined #RubyOnRails
[03:34:03] charliesome: has joined #RubyOnRails
[03:34:59] Creeves: has joined #RubyOnRails
[03:35:56] Guest6: has joined #RubyOnRails
[03:37:26] sevenseacat: diegoviola: what?
[03:37:45] sevenseacat: diegoviola: http://www.rubydoc.info/github/jnicklas/capybara/Capybara%2FNode%2FMatchers%3Ahas_field%3F
[03:37:59] gambl0re: has joined #RubyOnRails
[03:38:03] sevenseacat: googling `has_field` proves useful in answering that question.
[03:38:26] sevenseacat: I really hope you didn't sit there for 15 min waiting for someone to google it for you.
[03:38:27] diegoviola: sevenseacat: right, I've seen that
[03:38:52] sevenseacat: then did you have another question that you forgot to type?
[03:41:34] diegoviola: well, I'm confused about why I'm getting a no method error on this code
[03:42:16] sevenseacat: because you're calling it on something that isnt a capybara node
[03:42:26] diegoviola: https://gist.github.com/diegoviola/509c1618ededad6054c4#file-foo-rb-L7
[03:42:51] sevenseacat: right, on a MadLib, whatever that is.
[03:43:18] diegoviola: so that's wrong, isn't it?
[03:43:31] sevenseacat: the error would imply that, yes.
[03:43:35] diegoviola: why the hell are people telling me this is fine then and I should just fill in the code
[03:47:46] diegoviola: sevenseacat: part of my work is to make this spec pass and they mentioned the specs are fine, that I should just make the spec pass, but the spec is not making much sense
[03:48:01] sevenseacat: then 'they' are wrong
[03:48:43] lethjakman: has joined #RubyOnRails
[03:49:02] diegoviola: yeah thanks for your help
[03:49:04] sevenseacat: or you've broken something. I dunno.
[03:51:22] erich: has joined #RubyOnRails
[03:56:44] ivanskie: has joined #RubyOnRails
[03:59:39] jgt: has joined #RubyOnRails
[04:02:27] Jester13: has joined #RubyOnRails
[04:05:58] lwu: has joined #RubyOnRails
[04:10:08] renews: has joined #RubyOnRails
[04:15:40] dcunit3d: has joined #RubyOnRails
[04:20:05] theery: has joined #RubyOnRails
[04:22:01] ayonkhan: has joined #RubyOnRails
[04:23:49] fighella: has joined #RubyOnRails
[04:25:20] bin_005_x: has joined #RubyOnRails
[04:27:03] pieeye: has joined #RubyOnRails
[04:28:17] htmldrum: has joined #RubyOnRails
[04:30:06] jonee: has joined #RubyOnRails
[04:37:28] yfeldblum: has joined #RubyOnRails
[04:39:55] lwu: has joined #RubyOnRails
[04:40:06] yfeldblum: has joined #RubyOnRails
[04:41:08] charliesome: has joined #RubyOnRails
[04:41:26] lwu_: has joined #RubyOnRails
[04:42:19] konsolebox: has joined #RubyOnRails
[04:44:05] Tempesta: has joined #RubyOnRails
[04:46:26] ivanskie: has joined #RubyOnRails
[04:48:29] arup_r: has joined #RubyOnRails
[04:48:57] bronson: has joined #RubyOnRails
[04:51:04] arooni-mobile: has joined #RubyOnRails
[04:55:29] RegulationD: has joined #RubyOnRails
[04:57:02] theery: has joined #RubyOnRails
[05:01:14] jaimessi: has joined #RubyOnRails
[05:04:18] renews: has joined #RubyOnRails
[05:04:52] lethjakman: has joined #RubyOnRails
[05:05:39] riotjones: has joined #RubyOnRails
[05:05:57] niiamon: has joined #RubyOnRails
[05:05:59] domgetter: has joined #RubyOnRails
[05:13:33] diegoviola: has joined #RubyOnRails
[05:13:44] srinidhi: has joined #RubyOnRails
[05:20:35] speakingcode: has joined #RubyOnRails
[05:26:15] imkj: has joined #RubyOnRails
[05:27:37] zorak8: has joined #RubyOnRails
[05:27:38] rhizome: capybara is request-oriented, like: get :foo; page.has_bar?('baz')
[05:28:50] jonee: has joined #RubyOnRails
[05:32:24] lxsameer: has joined #RubyOnRails
[05:33:44] Scripore: has joined #RubyOnRails
[05:35:29] rickmasta: has joined #RubyOnRails
[05:37:42] diegoviola: https://gist.github.com/diegoviola/7a9eab81775f114f1ab1 <-- does this spec makes sense to any of you?
[05:38:10] yardenbar: has joined #RubyOnRails
[05:40:22] fedexo: has joined #RubyOnRails
[05:41:33] diegoviola: @madlib.has_field? and @solution.fill_field doesn't make any sense
[05:43:41] rickmasta: has joined #RubyOnRails
[05:50:28] theery: has joined #RubyOnRails
[05:51:09] Scripore: has joined #RubyOnRails
[05:52:06] diego1: has joined #RubyOnRails
[05:52:09] diego1: has joined #RubyOnRails
[05:53:05] volsus: has joined #RubyOnRails
[05:54:39] nahtnam: Quick question about devise. In my controller, if I have access to current_user, can I do `current_user.update(:authentication_token => "")`, or do I have to do user = User.find_by_uid(current_user.uid)?
[05:54:51] FrankD: is there an easy way in the validator to check uniqueness of two fields ie field1 is unique AND field2 is unique?
[05:55:26] rhizome: FrankD: use unique on both, one with a scope of the other
[05:56:33] FrankD: so validates :field1, uniqueness: { scope: :field2 } validates :field2, uniqueness: { scope: :field1 } is equivalent to a double uniqueness check?
[05:57:08] rhizome: just one scope i think should be fine, but that might work, too. write tests
[05:57:21] FrankD: mmk thanks again
[05:58:25] renews: has joined #RubyOnRails
[06:04:32] rhizome: nahtnam: what are you trying to do?
[06:04:46] nahtnam: rhizome: Nvm, it works. You can do current_user.update!
[06:04:52] nahtnam: I am trying to delete the auth_token
[06:04:57] lwu: has joined #RubyOnRails
[06:05:00] nahtnam: once the user logs out
[06:05:10] rhizome: doesn't devise automatically do that?
[06:06:02] lethjakman: has joined #RubyOnRails
[06:06:24] riotjones: has joined #RubyOnRails
[06:07:22] nahtnam: rhizome: Im writing my custom wrapper for devise for emberjs
[06:07:36] rhizome: good times
[06:07:52] nahtnam: You have used ember before?
[06:10:14] diego1: has joined #RubyOnRails
[06:10:32] diego1: has joined #RubyOnRails
[06:10:49] Oog_: has joined #RubyOnRails
[06:12:25] Creeves: has joined #RubyOnRails
[06:12:36] michael_mbp: has joined #RubyOnRails
[06:13:54] lwu: has joined #RubyOnRails
[06:15:31] imkj: rhizome: Look up Ember simple auth. It includes a module for Devise.
[06:15:35] jonee: has joined #RubyOnRails
[06:16:06] imkj: Uh, I mean nahtnam, sorry.
[06:16:53] nahtnam: imkj: Thats what im doing :P
[06:17:03] nahtnam: Was just making a custom authenticator for handling
[06:18:27] imkj: nahtnam: Aaah, okay. What's the problem exactly then?
[06:18:35] nahtnam: imkj: No problem any more
[06:19:21] imkj: nahtnam: Okay then. Good. :)
[06:20:04] Mia: has joined #RubyOnRails
[06:20:45] nahtnam: Lol thanks
[06:22:39] nahtnam: imkj: Have you used ember-simple-auth before?
[06:23:25] imkj: nahtnam: Yeah, I have.
[06:23:35] JDeen: has joined #RubyOnRails
[06:24:18] nahtnam: imkj: Do you know how I can set it up to get extra info like email, name, etc after they have signed in with omniauth? I have omniauth fully functioning, now I just need to get their info and send a confirmation email
[06:25:41] JDeen: Hope you guys are having a lovely sunday. I am working on a server that uses Unicorn as a service (than installing it as a gem) to host a Rails application in an Ubuntu server using Capistrano for development. So that some thing like `service unicorn-production restart` will restart it. Is this norm? Any advantages of this versus using it as a gem and configuring a Rials app?
[06:27:16] imkj: nahtnam: Look at this example on the ember-simple-auth Github: https://github.com/simplabs/ember-simple-auth/blob/master/examples/4-authenticated-account.html
[06:27:29] imkj: nahtnam: In particular, note that it uses an Account model and a custom session.
[06:27:43] one_zero: has joined #RubyOnRails
[06:28:18] nahtnam: imkj: Thanks. Ill look it over
[06:29:30] imkj: nahtnam: No worries. :)
[06:35:33] darutoko: has joined #RubyOnRails
[06:36:24] sdwrage: has joined #RubyOnRails
[06:37:17] djbkd: has joined #RubyOnRails
[06:38:54] ten27pm: has joined #RubyOnRails
[06:46:00] GreatDanton: has joined #RubyOnRails
[06:49:08] dvb_ua: has joined #RubyOnRails
[06:52:39] renews: has joined #RubyOnRails
[06:54:37] diego1: has joined #RubyOnRails
[06:55:11] diego1: has joined #RubyOnRails
[06:55:52] wethu: has joined #RubyOnRails
[06:56:51] diegoviola: I'm trying to write a madlib app, so I have a text field where I'm submitting a string like this: I {verb, past-tense} the {noun}. It was {adjective}. I want to parse the string and turn {verb}, {noun} and {adjective} into input elements, how do I go into doing that?
[06:57:05] diegoviola: or how would you do that?
[06:57:13] volsus: has joined #RubyOnRails
[06:57:41] diegoviola: I just don't want to add some regex in my code and then echo out some <input> from the server
[06:58:02] diegoviola: that would be horrible
[07:04:05] lemur: has joined #RubyOnRails
[07:06:34] chinmay_dd: has joined #RubyOnRails
[07:06:47] diegoviola: there should be a better way to do this
[07:06:55] drale2k: has joined #RubyOnRails
[07:08:07] diego1: has joined #RubyOnRails
[07:08:11] diego1: has joined #RubyOnRails
[07:09:18] GarethAdams: has joined #RubyOnRails
[07:09:58] rhizome: they should be separate parameters
[07:11:44] diegoviola: rhizome: was that for me? what do you mean with separate parameters?
[07:14:35] rhizome: i'm not sure where your difficulty lies
[07:15:24] niiamon: has joined #RubyOnRails
[07:16:20] user1138: has joined #RubyOnRails
[07:17:08] rhizome: maybe you're thinking it'll be submitted as a complete string and I'm thinking fields
[07:21:10] diego1: has joined #RubyOnRails
[07:21:24] diego1: has joined #RubyOnRails
[07:24:11] dcunit3d: has joined #RubyOnRails
[07:29:30] bruno-: has joined #RubyOnRails
[07:29:56] hakunin_: has joined #RubyOnRails
[07:29:59] GreatDanton: heya, I am having a little problem with using Ajax for updating comments(_comment.html.erb). I can update comments via redirecting, but I cannot update them via modal. https://gist.github.com/GreatDanton/146f70a04369a8575f5b
[07:33:36] Guest_: has joined #RubyOnRails
[07:39:25] qejk: has joined #RubyOnRails
[07:44:06] Trynemjoel: has joined #RubyOnRails
[07:46:29] JDeen: Hi guys. If I am to use docker, docker-compose what would be the best way to deploy code to production/staging servers. I guess using raw git deploy (with an after hook) would be suficinet? Does capistrano fit in the image?
[07:46:41] JDeen: Hi guys. If I am to use docker, docker-compose what would be the best way to deploy code to production/staging servers. I guess using raw git deploy (with an after hook) would be suficinet? Does capistrano fit in the image?
[07:46:47] renews: has joined #RubyOnRails
[07:47:05] JDeen: has joined #RubyOnRails
[07:48:27] JDeen: Hi guys, I am interested in migrating a capistrano based app to use Docker and docker-compose. I have the feeling a simple git-deploy (with an after hook will suffice). How ever I would like to know your throuhts on using Capistrano or other tool along with Docker and docker-compose.
[07:51:30] lemur: has joined #RubyOnRails
[07:54:46] lethjakman: has joined #RubyOnRails
[07:58:38] Trynemjoel: has joined #RubyOnRails
[07:59:12] lwu_: has joined #RubyOnRails
[08:07:51] lwu: has joined #RubyOnRails
[08:08:42] cac: has joined #RubyOnRails
[08:10:31] ur5us: has joined #RubyOnRails
[08:16:18] TomyLobo: has joined #RubyOnRails
[08:16:20] drale2k: has joined #RubyOnRails
[08:18:29] TomyLobo: i'm writing a rfusefs driver, so essentially i have '/'-delimited paths and i want to route them to certain handlers
[08:18:29] TomyLobo: . this sounds terribly like web stuff, is there some routing mechanism i can abuse?
[08:20:40] Dopagod: has joined #RubyOnRails
[08:24:33] hmnhf: has joined #RubyOnRails
[08:26:43] konsolebox: has joined #RubyOnRails
[08:29:09] Trynemjoel: has joined #RubyOnRails
[08:31:42] DEA7TH: has joined #RubyOnRails
[08:36:38] ruurd: has joined #RubyOnRails
[08:38:40] wethu: has joined #RubyOnRails
[08:40:15] Lightsword: has joined #RubyOnRails
[08:40:49] cac: has joined #RubyOnRails
[08:40:54] renews: has joined #RubyOnRails
[08:42:49] sameerynho: has joined #RubyOnRails
[08:43:06] Sylario: has joined #RubyOnRails
[08:44:41] Trynemjoel: has joined #RubyOnRails
[08:46:48] lxsameer_: has joined #RubyOnRails
[08:49:20] Mendenhall: has joined #RubyOnRails
[08:49:33] lxsameer: has joined #RubyOnRails
[08:50:24] bronson: has joined #RubyOnRails
[08:52:10] vigasdeep: has joined #RubyOnRails
[08:52:42] Trynemjoel: has joined #RubyOnRails
[08:53:57] lemur: has joined #RubyOnRails
[08:55:27] naftilos76: has joined #RubyOnRails
[08:56:01] doublemalt_: has joined #RubyOnRails
[08:56:18] naftilos76: Has anybody got any idea if geany editor in linux has a RoR debugger plugin?
[08:58:42] Trynemjoel: has joined #RubyOnRails
[08:58:45] jgt: has joined #RubyOnRails
[09:05:13] Trynemjoel: has joined #RubyOnRails
[09:05:39] htmldrum: has joined #RubyOnRails
[09:10:27] TomyLobo: http://guides.rubyonrails.org/routing.html can i use this kind of routing with other systems that get a '/'-delimited path?
[09:15:14] Trynemjoel: has joined #RubyOnRails
[09:18:04] jdeen_: has joined #RubyOnRails
[09:24:45] Trynemjoel: has joined #RubyOnRails
[09:24:58] quazimod1: has joined #RubyOnRails
[09:25:23] sameerynho: has joined #RubyOnRails
[09:26:52] Silox|: has joined #RubyOnRails
[09:29:45] krz: has joined #RubyOnRails
[09:30:05] TomyLobo: i'm writing an rfusefs filesystem. That has certain similarities to a RESTful API. you have the equivalents of GET (read_file), PUT/POST (write_to), DELETE (delete) and handling each url in a separate handler would make things easier here as well
[09:30:30] TomyLobo: so, is there a way to use rails' routing library with rfusefs?
[09:30:50] TomyLobo: for a start, does that library have a name so i can look it up myself? :)
[09:31:00] czerasz: has joined #RubyOnRails
[09:35:05] renews: has joined #RubyOnRails
[09:37:30] lxsameer_: has joined #RubyOnRails
[09:37:46] Trynemjoel: has joined #RubyOnRails
[09:43:16] sdwrage: has joined #RubyOnRails
[09:43:30] marr: has joined #RubyOnRails
[09:43:36] lethjakman: has joined #RubyOnRails
[09:43:58] stamina: has joined #RubyOnRails
[09:44:55] sameerynho: has joined #RubyOnRails
[09:46:47] Trynemjoel: has joined #RubyOnRails
[09:51:56] max: has joined #RubyOnRails
[09:52:06] bufferino: has joined #RubyOnRails
[09:52:17] Trynemjoel: has joined #RubyOnRails
[09:52:45] bufferino: has joined #RubyOnRails
[09:58:44] arBmind: has joined #RubyOnRails
[10:01:17] rakm: has joined #RubyOnRails
[10:01:56] yfeldblum: has joined #RubyOnRails
[10:03:19] zpe: has joined #RubyOnRails
[10:04:19] Trynemjoel: has joined #RubyOnRails
[10:04:34] drale2k: has joined #RubyOnRails
[10:07:36] niiamon: has joined #RubyOnRails
[10:12:57] ruurd: has joined #RubyOnRails
[10:19:20] Trynemjoel: has joined #RubyOnRails
[10:22:38] ruurd: has joined #RubyOnRails
[10:24:47] lxsameer_: has joined #RubyOnRails
[10:27:21] Trynemjoel: has joined #RubyOnRails
[10:28:25] sameerynho: has joined #RubyOnRails
[10:29:16] renews: has joined #RubyOnRails
[10:30:43] ur5us: has joined #RubyOnRails
[10:31:56] ur5us_: has joined #RubyOnRails
[10:31:57] eoy: has joined #RubyOnRails
[10:32:24] imkj: has joined #RubyOnRails
[10:35:25] beauby: has joined #RubyOnRails
[10:37:22] Trynemjoel: has joined #RubyOnRails
[10:39:27] eoy_: has joined #RubyOnRails
[10:43:27] bruno-: has joined #RubyOnRails
[10:44:33] lethjakman: has joined #RubyOnRails
[10:45:51] JDeen: has joined #RubyOnRails
[10:47:07] FernandoBasso: has joined #RubyOnRails
[10:48:53] Trynemjoel: has joined #RubyOnRails
[10:56:23] Trynemjoel: has joined #RubyOnRails
[10:58:11] RegulationD: has joined #RubyOnRails
[11:00:41] renews: has joined #RubyOnRails
[11:04:21] frzn: has joined #RubyOnRails
[11:04:22] frzn: has joined #RubyOnRails
[11:05:24] Trynemjoel: has joined #RubyOnRails
[11:08:05] drale2k: has joined #RubyOnRails
[11:08:43] bruno-: has joined #RubyOnRails
[11:14:00] bruno-: has joined #RubyOnRails
[11:15:01] charliesome: has joined #RubyOnRails
[11:16:13] nofxx: has joined #RubyOnRails
[11:18:55] The_Phoenix: has joined #RubyOnRails
[11:20:52] ruurd: has joined #RubyOnRails
[11:21:10] quazimodo: has joined #RubyOnRails
[11:25:47] learner: has joined #RubyOnRails
[11:33:26] Trynemjoel: has joined #RubyOnRails
[11:37:58] Papierkorb: has joined #RubyOnRails
[11:38:39] lxsameer_: has joined #RubyOnRails
[11:43:26] charliesome: has joined #RubyOnRails
[11:43:27] Trynemjoel: has joined #RubyOnRails
[11:44:11] bruno-: has joined #RubyOnRails
[11:47:39] mostlybadfly: has joined #RubyOnRails
[11:49:05] doodlehaus: has joined #RubyOnRails
[11:54:31] lethjakman: has joined #RubyOnRails
[11:54:54] renews: has joined #RubyOnRails
[11:58:28] Trynemjoel: has joined #RubyOnRails
[12:02:57] allcentury: has joined #RubyOnRails
[12:03:34] czerasz: has joined #RubyOnRails
[12:04:07] jtdowney: has joined #RubyOnRails
[12:07:29] Pupeno: has joined #RubyOnRails
[12:07:35] romdi`: has joined #RubyOnRails
[12:07:37] Papierkorb: has joined #RubyOnRails
[12:08:41] drale2k: has joined #RubyOnRails
[12:08:54] bruno-: has joined #RubyOnRails
[12:09:29] Trynemjoel: has joined #RubyOnRails
[12:12:14] wethu: has joined #RubyOnRails
[12:13:52] bruno-: has joined #RubyOnRails
[12:15:22] DylanJ: naftilos76: just use pry
[12:15:34] ishahnaz: has joined #RubyOnRails
[12:15:59] DylanJ: google "pry ruby"
[12:17:37] jonee: has joined #RubyOnRails
[12:20:29] Trynemjoel: has joined #RubyOnRails
[12:20:46] Lightsword: has joined #RubyOnRails
[12:22:26] calleerlandsson: has joined #RubyOnRails
[12:26:39] stick-shift: has joined #RubyOnRails
[12:29:19] AzaToth: has joined #RubyOnRails
[12:34:35] michael_mbp: has joined #RubyOnRails
[12:36:12] redmaverick: has joined #RubyOnRails
[12:39:33] schaerli: has joined #RubyOnRails
[12:40:05] redmaverick: Hey guys! Quick question. How many years of experience do you need to have before you can start freelancing?
[12:40:24] redmaverick: I mean. Work exclusively with Ruby/RoR apps
[12:41:16] GriffinHeart: has joined #RubyOnRails
[12:42:41] bruno-_: has joined #RubyOnRails
[12:43:40] lapide_viridi: has joined #RubyOnRails
[12:44:14] Papierkorb: The number of years don't say anything about experience
[12:47:44] redmaverick: For someone looking to increase their expertise, will working as a freelancer hinder their progress?
[12:48:04] redmaverick: Because there won't be senior developers to mentor them.
[12:49:00] renews: has joined #RubyOnRails
[12:51:10] davidheward_: has joined #RubyOnRails
[12:52:41] doodlehaus: has joined #RubyOnRails
[12:52:47] redmaverick: has left #RubyOnRails: ()
[12:55:08] pyemkey: has joined #RubyOnRails
[12:58:31] pyemkey: Hello RoR community. I hope to get here some conceptual help. I am curious how to build form object hitting 2 models. It's easy to build form object which is responsible for only one action like create. Difficulties starts when I try build form object for already existing records.
[12:58:54] RegulationD: has joined #RubyOnRails
[13:03:19] guest56: has joined #RubyOnRails
[13:03:20] tenderlove: has joined #RubyOnRails
[13:08:20] did: has joined #RubyOnRails
[13:09:46] j3r0: has joined #RubyOnRails
[13:10:22] jonee: has joined #RubyOnRails
[13:10:59] drale2k: has joined #RubyOnRails
[13:11:35] did: has joined #RubyOnRails
[13:12:33] Trynemjoel: has joined #RubyOnRails
[13:15:42] beauby_: has joined #RubyOnRails
[13:15:53] czerasz: has joined #RubyOnRails
[13:16:06] epistrephein: has joined #RubyOnRails
[13:17:51] didieruzan: has joined #RubyOnRails
[13:18:52] bruno-: has joined #RubyOnRails
[13:21:59] darrencauthon: has joined #RubyOnRails
[13:22:12] mrbubbles: has joined #RubyOnRails
[13:27:57] didu: has joined #RubyOnRails
[13:30:28] jonee: has joined #RubyOnRails
[13:30:39] darrencauthon: has joined #RubyOnRails
[13:33:05] bruno-: has joined #RubyOnRails
[13:36:05] Trynemjoel: has joined #RubyOnRails
[13:37:29] didu: has joined #RubyOnRails
[13:37:45] ishahnaz: has joined #RubyOnRails
[13:37:52] tenderlove: has joined #RubyOnRails
[13:39:23] didu: has joined #RubyOnRails
[13:39:44] The_Phoenix: has joined #RubyOnRails
[13:40:30] drale2k: has joined #RubyOnRails
[13:42:27] didu: has joined #RubyOnRails
[13:43:14] lethjakman: has joined #RubyOnRails
[13:43:15] renews: has joined #RubyOnRails
[13:43:30] didu: has joined #RubyOnRails
[13:46:04] did: has joined #RubyOnRails
[13:48:04] ivanskie: has joined #RubyOnRails
[13:49:05] Trynemjoel: has joined #RubyOnRails
[13:49:09] darrencauthon: has joined #RubyOnRails
[13:50:24] zorak8: has joined #RubyOnRails
[13:50:40] guest56: has joined #RubyOnRails
[13:52:12] niiamon: has joined #RubyOnRails
[13:52:34] Scripore: has joined #RubyOnRails
[13:52:51] jonee: has joined #RubyOnRails
[13:54:36] Trynemjoel: has joined #RubyOnRails
[13:55:09] erich: has joined #RubyOnRails
[14:00:07] Trynemjoel: has joined #RubyOnRails
[14:00:18] RandyT: has joined #RubyOnRails
[14:04:13] n1lo: has joined #RubyOnRails
[14:04:27] eoy: has joined #RubyOnRails
[14:08:10] GriffinHeart: has joined #RubyOnRails
[14:08:35] ruurd: has joined #RubyOnRails
[14:08:37] Trynemjoel: has joined #RubyOnRails
[14:09:59] zpe: has joined #RubyOnRails
[14:10:28] strcmp1: has joined #RubyOnRails
[14:13:30] Scripore: has joined #RubyOnRails
[14:13:40] Jarboe: has joined #RubyOnRails
[14:15:10] jgt: has joined #RubyOnRails
[14:16:37] eoy: has joined #RubyOnRails
[14:20:38] Trynemjoel: has joined #RubyOnRails
[14:23:29] bronson: has joined #RubyOnRails
[14:25:11] theery: has joined #RubyOnRails
[14:27:39] stamina: has joined #RubyOnRails
[14:29:26] GriffinHeart: has joined #RubyOnRails
[14:30:41] GriffinHeart: has joined #RubyOnRails
[14:35:35] maximski: has joined #RubyOnRails
[14:36:09] maximski: does anyone know if you can delay paypal payments?
[14:36:09] ruurd: has joined #RubyOnRails
[14:36:24] maximski: like you get the approve for it to be processed but you actually process it later?
[14:37:18] renews: has joined #RubyOnRails
[14:42:23] ruurd: has joined #RubyOnRails
[14:42:45] Fire-Dragon-DoL: has joined #RubyOnRails
[14:44:13] Tempesta: has joined #RubyOnRails
[14:44:56] GreatDanton: has joined #RubyOnRails
[14:45:06] GreatDanton: has joined #RubyOnRails
[14:46:31] fast_scooter: has joined #RubyOnRails
[14:50:29] GreatDanton: has joined #RubyOnRails
[14:51:59] GreatDanton: has joined #RubyOnRails
[14:52:07] pontiki: not entirely sure how with paypal, but you can authorize a charge and settle it later with credit card processing
[14:52:10] Trynemjoel: has joined #RubyOnRails
[14:52:12] lukas: has left #RubyOnRails: ("WeeChat 0.4.2")
[14:52:19] AnoHito: has joined #RubyOnRails
[14:53:07] GreatDanton: has joined #RubyOnRails
[14:53:36] GreatDanton: has joined #RubyOnRails
[14:55:25] christiandsg: has joined #RubyOnRails
[14:56:01] theery: has joined #RubyOnRails
[14:56:19] Jon30: has joined #RubyOnRails
[15:00:39] fast_scooter: has joined #RubyOnRails
[15:02:08] diegoviola: has joined #RubyOnRails
[15:03:36] GreatDanton: has joined #RubyOnRails
[15:03:45] GreatDanton: has joined #RubyOnRails
[15:04:24] diegoviola: so I'm trying to build a madlib app and I have an input where I send a string like this: "I {verb, past-tense} the {noun}. It was {adjective}." -- I'm parsing each of those {noun}, etc, and I'm trying to show inputs for those words after the request so I can enter words
[15:04:41] fast_scooter: has joined #RubyOnRails
[15:04:56] diegoviola: how would you do this? any ideas?
[15:05:29] diegoviola: after the request I see this string in the params hash but I'm not sure how I would show the inputs after parsing {noun}, etc
[15:05:30] doodlehaus: has joined #RubyOnRails
[15:05:36] dionysus69: has joined #RubyOnRails
[15:08:05] darrencauthon: has joined #RubyOnRails
[15:08:15] pontiki: if you can parse out the elements, substitute in their place "%s", collect the inputs in the same order as the elements, then pass them as an array to the substituted string with %
[15:08:15] schaerli: has joined #RubyOnRails
[15:11:32] diegoviola: thanks, that doesn't sound very reliable though
[15:11:40] diegoviola: I wonder if there's another way to do it
[15:12:12] fast_scooter: has joined #RubyOnRails
[15:13:21] sevenseacat: probably no new ways since you asked a few hours ago
[15:13:23] diegoviola: I guess reliability depends on how good my regex is
[15:14:13] Trynemjoel: has joined #RubyOnRails
[15:14:45] marr: has joined #RubyOnRails
[15:15:39] ruurd: has joined #RubyOnRails
[15:16:24] diegoviola: I was having problems with my internet connection, no chance to read any response
[15:16:42] diegoviola: didn't you see I got disconnected multiples times also?
[15:17:01] diegoviola: anyway, thanks for the help
[15:17:22] l0oky: has joined #RubyOnRails
[15:19:31] DEA7TH_: has joined #RubyOnRails
[15:20:16] roolo: has joined #RubyOnRails
[15:23:32] lethjakman: has joined #RubyOnRails
[15:23:44] theery: has joined #RubyOnRails
[15:23:52] Coldblackice: has joined #RubyOnRails
[15:24:04] Scripore: has joined #RubyOnRails
[15:24:35] diegoviola: sorry about that
[15:26:25] pontiki: do you think the order of the elements will change between gathering them and interpolating them?
[15:27:55] diegoviola: pontiki: probably not
[15:28:51] GreatDanton: heya, I am having a little problem with using Ajax for updating comments(_comment.html.erb). I can update comments via redirecting, but I cannot update them via modal. https://gist.github.com/GreatDanton/146f70a04369a8575f5b
[15:29:40] pontiki: then what would be unreliable?
[15:30:44] diegoviola: pontiki: I guess I'm just not familiar with regex at all, what if I pass only a {noun} and nothing more?
[15:31:07] diegoviola: I know basic regex
[15:31:29] renews: has joined #RubyOnRails
[15:31:45] pontiki: there's hardly any regexp involved in this at all. the only one you really need for that is /{(.*?)}/
[15:32:49] pontiki: even the inner parens in that are sorta optional; you could strip off the braces later
[15:33:58] diegoviola: oh, I'll give this a try, thanks
[15:36:25] drale2k: has joined #RubyOnRails
[15:37:18] gambl0re: has joined #RubyOnRails
[15:39:08] nfk: has joined #RubyOnRails
[15:39:45] Trynemjoel: has joined #RubyOnRails
[15:44:06] yz: has joined #RubyOnRails
[15:44:14] hakunin: has joined #RubyOnRails
[15:44:50] roolo: has joined #RubyOnRails
[15:44:50] doodlehaus: has joined #RubyOnRails
[15:45:08] soahccc^: has joined #RubyOnRails
[15:45:34] nfk: has joined #RubyOnRails
[15:45:45] Trynemjoel: has joined #RubyOnRails
[15:45:47] theery: has joined #RubyOnRails
[15:46:38] JonasOSDever: has joined #RubyOnRails
[15:47:34] calleerlandsson: has joined #RubyOnRails
[15:50:02] elektronaut: has joined #RubyOnRails
[15:51:43] vedu: has joined #RubyOnRails
[15:51:43] yz: has left #RubyOnRails: ()
[15:51:54] phrozen77: has joined #RubyOnRails
[15:51:57] bauruine: has joined #RubyOnRails
[15:52:32] drPoggs: has joined #RubyOnRails
[15:52:42] TheMonster: has joined #RubyOnRails
[15:56:46] Trynemjoel: has joined #RubyOnRails
[15:57:06] soule: has joined #RubyOnRails
[16:03:52] leesharma: has joined #RubyOnRails
[16:05:58] Scripore: has joined #RubyOnRails
[16:06:47] cornerma1: has joined #RubyOnRails
[16:07:20] rickmasta: has joined #RubyOnRails
[16:11:16] wheeee: has joined #RubyOnRails
[16:16:48] Trynemjoel: has joined #RubyOnRails
[16:18:24] vigasdeep: has joined #RubyOnRails
[16:25:39] renews: has joined #RubyOnRails
[16:26:19] Trynemjoel: has joined #RubyOnRails
[16:28:17] workmad3: has joined #RubyOnRails
[16:29:34] centrx: has joined #RubyOnRails
[16:32:19] Trynemjoel: has joined #RubyOnRails
[16:33:03] idd2d: has joined #RubyOnRails
[16:33:53] ruurd: has joined #RubyOnRails
[16:33:59] givanse: has joined #RubyOnRails
[16:35:29] schaerli: has joined #RubyOnRails
[16:37:12] drale2k: has joined #RubyOnRails
[16:37:14] ruurd: has joined #RubyOnRails
[16:37:14] wheeee: has joined #RubyOnRails
[16:38:51] darrencauthon: has joined #RubyOnRails
[16:39:20] exadeci: has joined #RubyOnRails
[16:39:52] j3r0: has joined #RubyOnRails
[16:42:19] wheeee: has joined #RubyOnRails
[16:42:21] Trynemjoel: has joined #RubyOnRails
[16:43:15] chinmay_dd: has joined #RubyOnRails
[16:45:04] meoblast001: has joined #RubyOnRails
[16:47:51] diegoviola: pontiki: I just tried what you suggested, it works great, thanks
[16:48:52] ruurd: has joined #RubyOnRails
[16:53:41] mloy: has joined #RubyOnRails
[16:53:51] mloy: Can I define multiple attr_accessors like so:
[16:53:53] mloy: attr_accessor :id, :title, :body
[16:54:40] centrx: mloy, Yes
[16:55:04] mloy: centrx, ta :)
[16:55:38] christiandsg: has joined #RubyOnRails
[16:58:56] idd2d: has joined #RubyOnRails
[17:01:22] Trynemjoel: has joined #RubyOnRails
[17:02:25] wheeee1: has joined #RubyOnRails
[17:02:47] bruno-: has joined #RubyOnRails
[17:04:09] GreatDanton: I am having a little problem with using Ajax for updating comments(_comment.html.erb). I can update comments via redirecting, but I cannot update them via modal. https://gist.github.com/GreatDanton/146f70a04369a8575f5b
[17:04:16] rickmasta: has joined #RubyOnRails
[17:05:33] fryguy: that's an awful lot of code
[17:05:39] fryguy: mind explaining more specifically what is wrong
[17:08:05] bruno-: has joined #RubyOnRails
[17:08:46] NoidedSuper: has joined #RubyOnRails
[17:11:17] chouhoulis: has joined #RubyOnRails
[17:11:48] GreatDanton: I cannot see text of the comment when displaying modal
[17:12:51] GreatDanton: _comment.html.erb line 61
[17:14:48] bruno-: has joined #RubyOnRails
[17:14:52] fryguy: why is comment an instance variable in the form?
[17:15:16] VeryBewitching: has joined #RubyOnRails
[17:15:59] GreatDanton: dont know I used the same code as before
[17:17:56] chouhoulis: has joined #RubyOnRails
[17:19:03] GreatDanton: it returns me undefined model name if I remove it
[17:19:18] GreatDanton: undefined method*
[17:19:47] renews: has joined #RubyOnRails
[17:20:07] bruno-: has joined #RubyOnRails
[17:20:24] dlitz: has joined #RubyOnRails
[17:21:57] drsbl: has joined #RubyOnRails
[17:22:39] dymk: Does Rails provide an API for extracting the PG::Result from an ActiveRecord::Relation?
[17:23:08] dymk: Really API doesn't matter that much, I'd just like to know where the PG::Result is being stored so I can pry it out with instance_variable_get or something similar
[17:24:48] GriffinHeart: has joined #RubyOnRails
[17:26:36] doodlehaus: has joined #RubyOnRails
[17:27:45] centrx: dymk, I think by the time it gets to ActiveRecord, the database connections result object is not retained
[17:28:09] dymk: Well, ActiveRecord::Base.connection.instance_variable_get("@connection") would be the PG::Connection
[17:28:33] dymk: and queries are resolved lazily, so I'd imagine the pg::result would be in-flight somewhere in there?
[17:30:05] centrx: right but when it executes the query it returns this: ActiveRecord::Result.new(fields, result.values, types)
[17:30:10] centrx: result is the PG::Result object
[17:30:27] rickmasta: has joined #RubyOnRails
[17:30:46] centrx: but you can use the connection directly
[17:31:02] centrx: e.g. ActiveRecord::Base.connection.select_all(my_query.sql)
[17:31:09] centrx: building the query with ActiveRecord
[17:31:47] drsbl: has joined #RubyOnRails
[17:33:52] Lightsword: has joined #RubyOnRails
[17:40:03] darrencauthon: has joined #RubyOnRails
[17:40:07] HoppingMadMan: has joined #RubyOnRails
[17:42:13] sdwrage: has joined #RubyOnRails
[17:42:40] hmnhf: has joined #RubyOnRails
[17:44:40] schaerli: has joined #RubyOnRails
[17:45:28] chuy: has joined #RubyOnRails
[17:46:19] theery: has joined #RubyOnRails
[17:46:52] minotep: has joined #RubyOnRails
[17:48:09] yfeldblum: has joined #RubyOnRails
[17:48:54] j_mcnally: has joined #RubyOnRails
[17:49:30] j_mcnally: has joined #RubyOnRails
[17:51:21] sdwrage: has joined #RubyOnRails
[17:53:54] smathy: has joined #RubyOnRails
[17:56:23] christiandsg: has joined #RubyOnRails
[18:00:08] crankharder: has joined #RubyOnRails
[18:00:55] ten27pm: has joined #RubyOnRails
[18:02:54] rghose: has joined #RubyOnRails
[18:03:10] erich: has joined #RubyOnRails
[18:03:30] ynroot: has joined #RubyOnRails
[18:03:45] yaw: has joined #RubyOnRails
[18:04:38] devdazed: has joined #RubyOnRails
[18:06:35] christiandsg: has joined #RubyOnRails
[18:07:05] drsbl: has joined #RubyOnRails
[18:07:33] drsbl: has left #RubyOnRails: ()
[18:07:36] drsbl: has joined #RubyOnRails
[18:09:21] arup_r: How can I give `select` method a default value ? https://gist.github.com/aruprakshit/b6879f3ca399fe5bb73b
[18:11:06] slava_: has joined #RubyOnRails
[18:11:51] centrx: arup_r, That's what the 'selected' parameter means
[18:11:56] chr5: has joined #RubyOnRails
[18:11:59] centrx: http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#method-i-options_for_select
[18:12:08] mikecmpbll: has joined #RubyOnRails
[18:12:20] schaerli: has joined #RubyOnRails
[18:12:56] crdpink: has joined #RubyOnRails
[18:13:31] chr5: hello guys
[18:14:04] renews: has joined #RubyOnRails
[18:14:28] arup_r: centrx, I was seeing here
[18:14:37] arup_r: ok let me see the method.
[18:15:11] chr5: I have a web project called Awwa Art, and I need a ruby on rails develop that help me to complate the project, anyone interested?
[18:15:59] chr5: I need the help of a RoR developer...
[18:16:21] chr5: Private contact or email contact in carlos@awwa.es , thanks
[18:18:02] ynroot: has left #RubyOnRails: ()
[18:19:12] jgpawletko: has joined #RubyOnRails
[18:21:20] fast_scooter: has joined #RubyOnRails
[18:25:49] drale2k: has joined #RubyOnRails
[18:25:51] GriffinHeart: has joined #RubyOnRails
[18:25:53] chinmay_dd: has joined #RubyOnRails
[18:25:55] Xiti: has joined #RubyOnRails
[18:31:01] arup_r: centrx, when I have [[0, 'a'], [1, 'b']) what value to pass to the `selected` option ?
[18:31:22] shinnya: has joined #RubyOnRails
[18:31:23] arup_r: That is not I am seeing in the doco..
[18:32:26] AmBienCeD: has joined #RubyOnRails
[18:32:51] centrx: arup_r, looks like it would be the value 'a'
[18:33:18] yfeldblum: has joined #RubyOnRails
[18:33:28] arup_r: let me try
[18:34:04] rghose: has joined #RubyOnRails
[18:36:29] Trynemjoel: has joined #RubyOnRails
[18:38:00] arup_r: centrx, it takes what we are setting as the option value
[18:38:25] arup_r: so in my case as I shown in the example it will 0 or 1
[18:38:32] mhib: has joined #RubyOnRails
[18:38:50] arup_r: anyway thanks centrx to point me to the doc.. I missed it
[18:38:55] arup_r: long time work
[18:39:37] centrx: The doc says the second element of the pair is the value
[18:39:50] dcunit3d: has joined #RubyOnRails
[18:40:45] darrencauthon: has joined #RubyOnRails
[18:42:43] j3r0: has joined #RubyOnRails
[18:43:17] balr0g: has joined #RubyOnRails
[18:44:30] Trynemjoel: has joined #RubyOnRails
[18:44:58] gerep: has joined #RubyOnRails
[18:44:59] arup_r: Yes. doc is correct.. I write it here opposite way
[18:45:04] arup_r: I should sleep now
[18:45:24] diego1: has joined #RubyOnRails
[18:46:27] stick-shift: has joined #RubyOnRails
[18:46:34] rghose: has joined #RubyOnRails
[18:55:24] mina: has joined #RubyOnRails
[18:56:26] QKO: has joined #RubyOnRails
[18:56:33] davidcelis: has joined #RubyOnRails
[18:56:33] davidcelis: has joined #RubyOnRails
[18:56:35] rcm7: has joined #RubyOnRails
[18:56:39] yfeldblum: has joined #RubyOnRails
[18:56:40] funnel: has joined #RubyOnRails
[18:56:43] confact: has joined #RubyOnRails
[18:56:45] loglaunch: has joined #RubyOnRails
[18:56:47] tekk: has joined #RubyOnRails
[18:56:49] jhm: has joined #RubyOnRails
[18:56:51] iamayam: has joined #RubyOnRails
[18:56:51] DylanJ: has joined #RubyOnRails
[18:57:05] larshaugseth: has joined #RubyOnRails
[18:57:13] \13k: has joined #RubyOnRails
[18:57:14] Scripore: has joined #RubyOnRails
[18:57:29] nygrenh: has joined #RubyOnRails
[18:57:34] snakehsu: has joined #RubyOnRails
[18:58:51] rghose1: has joined #RubyOnRails
[18:59:36] beauby: has joined #RubyOnRails
[18:59:39] malcolmva: has joined #RubyOnRails
[19:00:31] DaniG2k: has joined #RubyOnRails
[19:05:14] l0oky: has joined #RubyOnRails
[19:05:24] jenrzzz: has joined #RubyOnRails
[19:08:14] renews: has joined #RubyOnRails
[19:08:28] tweeeaks: has joined #RubyOnRails
[19:10:58] matt_d: has joined #RubyOnRails
[19:10:58] jkwood: has joined #RubyOnRails
[19:10:58] Wingar: has joined #RubyOnRails
[19:10:58] kramsee: has joined #RubyOnRails
[19:10:58] leex: has joined #RubyOnRails
[19:11:03] ptierno: has joined #RubyOnRails
[19:11:03] vircung|afk: has joined #RubyOnRails
[19:11:04] dps: has joined #RubyOnRails
[19:11:04] epochwolf|vps: has joined #RubyOnRails
[19:11:04] epochwolf|vps: has joined #RubyOnRails
[19:11:06] jso: has joined #RubyOnRails
[19:11:07] rhinon: has joined #RubyOnRails
[19:11:08] jcm: has joined #RubyOnRails
[19:11:09] peteyg: has joined #RubyOnRails
[19:11:10] ekem: has joined #RubyOnRails
[19:11:13] stevednd: has joined #RubyOnRails
[19:11:13] alexblom: has joined #RubyOnRails
[19:11:14] justinweiss: has joined #RubyOnRails
[19:11:15] adam|: has joined #RubyOnRails
[19:11:16] danshultz: has joined #RubyOnRails
[19:11:19] royvandermeij: has joined #RubyOnRails
[19:11:21] eduardodeoh: has joined #RubyOnRails
[19:11:26] tskogberg: has joined #RubyOnRails
[19:11:38] Aeyrix: has joined #RubyOnRails
[19:11:48] lethjakman: has joined #RubyOnRails
[19:11:56] TDJACR: has joined #RubyOnRails
[19:11:57] sloggerkhan: has joined #RubyOnRails
[19:12:58] null__: has joined #RubyOnRails
[19:12:58] ddv: has joined #RubyOnRails
[19:12:58] null__: has joined #RubyOnRails
[19:13:01] Trynemjoel: has joined #RubyOnRails
[19:15:55] cookiez: has joined #RubyOnRails
[19:16:15] ishahnaz: has joined #RubyOnRails
[19:17:52] doodlehaus: has joined #RubyOnRails
[19:17:57] BBHoss: has joined #RubyOnRails
[19:21:53] jhubert: has joined #RubyOnRails
[19:22:29] alaing: has joined #RubyOnRails
[19:23:29] schaerli: has joined #RubyOnRails
[19:23:54] HoppingMadMan: has joined #RubyOnRails
[19:24:17] alaing: has joined #RubyOnRails
[19:24:23] alaing: hi new rails/frontend dev, how do I find an element and test for a value in CI tests?
[19:24:26] alaing: my application is using rspec, capybara, cucumber
[19:26:38] ElSif: look up element selectors in capybara docs
[19:27:50] RegulationD: has joined #RubyOnRails
[19:28:02] Trynemjoel: has joined #RubyOnRails
[19:30:42] alaing: ElSif: thanks, this is the test thats failing, expect('#primary-nav').to have_content('Home')
[19:31:37] ElSif: alaing: sure, you need to select the element that id `#primary-nav` to be able to access its content
[19:32:10] Scripore: has joined #RubyOnRails
[19:32:12] naftilos76: has joined #RubyOnRails
[19:32:26] alaing: is that the right way or referring to an elements id?
[19:32:35] ElSif: yea, that should work
[19:33:06] ElSif: if i remember though, some of capybara's selectors dont need the `#` for the id, they auto try both classes and ids
[19:33:53] drale2k: has joined #RubyOnRails
[19:34:37] MAQ: has joined #RubyOnRails
[19:35:47] romdi: has joined #RubyOnRails
[19:36:00] dici: has joined #RubyOnRails
[19:38:42] dici: Hey guys, I updated my Rails App from 3.2.x to 4.0.x and Ruby from 1.9.3 to 2.2.x. Now it failed in a weird way. And I figured out that "params[:member][:bool_value] == true" and "params[:member][:bool_value] == '1'" did not evaluate properly. Now I'm doing "params[:member][:bool_value].to_s == 'true'" which works suprisingly... Any idea how to do it the proper way or how to troubleshoot this?
[19:41:34] darrencauthon: has joined #RubyOnRails
[19:42:34] Trynemjoel: has joined #RubyOnRails
[19:43:16] Jackish: has joined #RubyOnRails
[19:43:19] chr5: Hi Guys, I need a rails developer, any idea?
[19:43:26] wheeee: has joined #RubyOnRails
[19:43:33] Jackish: chr5: What kind of project ?
[19:43:41] chr5: Hi Jackish
[19:43:59] chr5: I promote a community of Graphic designers and artist
[19:44:04] chr5: called Awwa Art
[19:44:45] chr5: we need tools to co-create..show profiles and show our work
[19:44:59] chr5: i have developed an app with help another developer
[19:45:04] Jackish: awwa.es yours ?
[19:45:20] chr5: Yes It is...it is a simple website
[19:45:30] chr5: but the app is offline
[19:45:34] chr5: in this moment
[19:46:03] chr5: Awwa art is like a open graphic designers community
[19:46:13] Jackish: Like ello ?
[19:46:21] chr5: ello? I dont know...let me see
[19:46:55] rhizome: how is it different than deviantart?
[19:46:56] chr5: Do you know Threadless?
[19:47:19] rhizome: so a tshirt site
[19:48:02] chr5: We makes tshirts, but the idea is develop a space to co-work
[19:48:13] chr5: share designs, co-create
[19:48:23] chr5: can you get design code in devian art?
[19:48:37] chr5: get source code
[19:48:44] chr5: get the source design file
[19:48:54] chr5: the vectorial file
[19:48:58] schaerli: has joined #RubyOnRails
[19:49:09] rhizome: vector file. not that i'm aware, just finished products.
[19:49:52] chr5: imagine that i make a design, with inkscape , i share my design
[19:50:06] chr5: another designer from Awwa Art takes design, and make a new design
[19:50:11] chr5: orgy designers
[19:50:21] chr5: do you understand me?
[19:50:32] rhizome: http://blog.gerv.net/2013/11/image-sharing-for-svg/
[19:51:57] umgrosscol: has joined #RubyOnRails
[19:52:10] Pupeno: has joined #RubyOnRails
[19:52:26] Jackish: chr5: its possible
[19:52:38] doodlehaus: has joined #RubyOnRails
[19:53:47] chr5: Jackish, i dont see you in the people pannel...can you accept privat message?
[19:54:09] HoppingMadMan: has joined #RubyOnRails
[19:54:46] erich: has joined #RubyOnRails
[19:56:41] chr5: Rhizome, I dont understand what you mean with this url....is there any other similar project in action?
[19:58:08] rakm: has joined #RubyOnRails
[19:58:20] Lightsword: has joined #RubyOnRails
[19:59:12] volsus: has joined #RubyOnRails
[20:02:23] renews: has joined #RubyOnRails
[20:03:23] erich: has joined #RubyOnRails
[20:03:27] alaing: ElSif: with that test i had i get this message expected to find text "Home" in "#primary-nav" (RSpec::Expectations::ExpectationNotMetError)
[20:04:07] alaing: ElSif: would it matter if 'Home' is actually text inside a primary-nav child element
[20:04:26] wheeee: has joined #RubyOnRails
[20:05:24] wheeee: has joined #RubyOnRails
[20:06:56] czerasz: has joined #RubyOnRails
[20:08:28] ElSif: alaing: and you added a selector? otherwise I think your are just seeing that the string `#primary-nav` doesn't contain the string `Home`. been a little while but last i used capybara it didn't hook into the expect method automatically
[20:09:23] alaing: ElSif: this is the test i'm running: expect('#primary-nav').to have_content('Home')
[20:09:59] alaing: basically i want to test the nav element has <a> Home and click it to go to the path and then test its actually gone to the home pagte
[20:10:30] fast_scooter: has joined #RubyOnRails
[20:10:54] ElSif: alaing: you don't seem to have selected any element on the page there, https://github.com/jnicklas/capybara <- suggest reading on getting page content here, you could just try a generic `expect(page).to have_content("Home")` as a sanity check.
[20:11:53] alaing: the sanity check worked
[20:12:06] Trynemjoel: has joined #RubyOnRails
[20:13:40] ElSif: alaing: ok, then you should be able to get it with `expect( find('#primary-nav') ).to have_content('Home')`. i highly suggest reading up on the "Finding" section of the capybara github
[20:13:48] Scripore: has joined #RubyOnRails
[20:14:15] alaing: ElSif: thanks for your help, its very much appreciated
[20:14:25] ElSif: alaing: yw
[20:15:50] alaing: ElSif: expect(find('#primary-nav')) worked perfectly
[20:16:02] alaing: Off to carry on reading up on Finding
[20:16:07] alaing: thanks agin
[20:16:50] lethjakman: has joined #RubyOnRails
[20:17:01] lemur: has joined #RubyOnRails
[20:20:52] mxrguspxrt: has joined #RubyOnRails
[20:20:56] chouhoulis: has joined #RubyOnRails
[20:21:40] beauby: has joined #RubyOnRails
[20:21:57] codezomb: has joined #RubyOnRails
[20:22:36] mxrguspxrt: I got high level acceptance tests, when I run scenario "sign in" i would call in scenario "add product" before tasks run_before_scenario "sign in". DSL for reading would be nicer than with predefining methods. Has anyone done smth like that
[20:26:12] j_mcnally: has joined #RubyOnRails
[20:27:00] j_mcnally: has joined #RubyOnRails
[20:27:38] Helheim: has joined #RubyOnRails
[20:28:24] beauby: has joined #RubyOnRails
[20:39:08] Trynemjoel: has joined #RubyOnRails
[20:39:26] j_mcnally: has joined #RubyOnRails
[20:42:17] darrencauthon: has joined #RubyOnRails
[20:42:35] lwu: has joined #RubyOnRails
[20:43:28] jhubert: has joined #RubyOnRails
[20:43:42] niiamon: has joined #RubyOnRails
[20:44:39] Trynemjoel: has joined #RubyOnRails
[20:45:41] lwu: has joined #RubyOnRails
[20:45:46] ur5us: has joined #RubyOnRails
[20:46:46] ur5us: has joined #RubyOnRails
[20:47:41] fedexo: has joined #RubyOnRails
[20:49:42] Scripore: has joined #RubyOnRails
[20:50:29] seank_: has joined #RubyOnRails
[20:53:39] Trynemjoel: has joined #RubyOnRails
[20:56:33] renews: has joined #RubyOnRails
[20:58:39] x-light: has joined #RubyOnRails
[21:02:18] diegoviola: has joined #RubyOnRails
[21:03:53] Lightsword: has joined #RubyOnRails
[21:06:43] imkj: has joined #RubyOnRails
[21:07:07] deavid: has joined #RubyOnRails
[21:08:54] erich: has joined #RubyOnRails
[21:10:00] doodlehaus: has joined #RubyOnRails
[21:12:08] wheeee: has joined #RubyOnRails
[21:12:34] wheeee: has joined #RubyOnRails
[21:12:59] GreatDanton: has joined #RubyOnRails
[21:13:33] doodlehaus: has joined #RubyOnRails
[21:19:44] RegulationD: has joined #RubyOnRails
[21:22:01] drale2k: has joined #RubyOnRails
[21:22:57] asheinfeld: has joined #RubyOnRails
[21:27:45] Helheim: has joined #RubyOnRails
[21:28:00] umgrosscol: has joined #RubyOnRails
[21:28:18] _3by8: has joined #RubyOnRails
[21:29:01] idd2d: has joined #RubyOnRails
[21:29:52] dcunit3d: has joined #RubyOnRails
[21:29:54] _3by8: I'm going to be saving lists of items to a database. Based on what little I know, it seems like saving the lists in JSON format makes sense. Does that sound right?
[21:32:30] rhizome: sometimes. usually not. depends on what you're going to do with them
[21:34:27] dustinm`: has joined #RubyOnRails
[21:35:32] cac: has joined #RubyOnRails
[21:37:43] djinni`: has joined #RubyOnRails
[21:39:27] Radar: GOOD MORNING
[21:39:32] Helheim: has joined #RubyOnRails
[21:42:53] VeryBewitching: _3by8: Also, it depends on what database you're using.
[21:43:02] darrencauthon: has joined #RubyOnRails
[21:43:08] VeryBewitching: _3by8: With Postgres it could make sense under certain conditions.
[21:44:32] l0oky: has joined #RubyOnRails
[21:45:03] yfeldblum: has joined #RubyOnRails
[21:45:15] _3by8: rhizome: it'll be a list of cards from a card game.
[21:45:31] _3by8: VeryBewitching: Why does it make more sense with PostgreSQL?
[21:46:03] VeryBewitching: _3by8: You can query JSON stored in a column with Postgres, I think MySQL has to be modified for it.
[21:46:04] ledestin: has joined #RubyOnRails
[21:46:23] _3by8: VeryBewitching: interesting. Seems like something I might want.
[21:46:41] El3ktra: has joined #RubyOnRails
[21:46:53] VeryBewitching: _3by8: Are you storing a deck, or just discards, or something?
[21:47:00] _3by8: VeryBewitching: deck.
[21:47:06] El3ktra: has left #RubyOnRails: ()
[21:47:18] VeryBewitching: _3by8: I would just create a class tbh
[21:47:38] rakm: has joined #RubyOnRails
[21:47:42] _3by8: VeryBewitching: what do you mean?
[21:48:06] VeryBewitching: _3by8: Instead of storing the deck, just create a collection for it; would it ever not be a full deck of cards?
[21:48:12] Radar: It's probably a deck of specific cards?
[21:48:26] Pupeno: has joined #RubyOnRails
[21:48:45] Pupeno: has joined #RubyOnRails
[21:48:48] VeryBewitching: Radar: A deck is a deck, anything less than 52 cards is not a deck, it's just cards. :D
[21:49:00] VeryBewitching: I wanted to clarify that.
[21:49:25] _3by8: VeryBewitching: it's a collectible card game, I forgot to mention that. There's a lot of data, the decks won't always contain the same cards.
[21:49:34] Helheim: has joined #RubyOnRails
[21:49:52] devdazed_: has joined #RubyOnRails
[21:50:00] theery: has joined #RubyOnRails
[21:50:02] VeryBewitching: _3by8: OK, so storing JSON would make sense with Postgres imo
[21:50:18] _3by8: VeryBewitching: thanks for the input :)
[21:50:19] VeryBewitching: _3by8: Being able to query the cards would be handy I would imagine.
[21:50:37] _3by8: VeryBewitching: possibly. Thanks for the tip on PostreSQL and querying JSON!
[21:50:40] renews: has joined #RubyOnRails
[21:50:55] ap4y: has joined #RubyOnRails
[21:51:22] seank_: has joined #RubyOnRails
[21:53:10] VeryBewitching: _3by8: http://stackoverflow.com/questions/10560394/how-do-i-query-using-fields-inside-the-new-postgresql-json-datatype to get you started.
[21:58:13] arooni-mobile: has joined #RubyOnRails
[21:58:37] Helheim: has joined #RubyOnRails
[21:58:44] towski_: has joined #RubyOnRails
[22:00:41] cac_: has joined #RubyOnRails
[22:03:21] mikepack: has joined #RubyOnRails
[22:05:36] lethjakman: has joined #RubyOnRails
[22:05:54] ecksit: has joined #RubyOnRails
[22:08:23] Helheim: has joined #RubyOnRails
[22:12:02] Silox|: has joined #RubyOnRails
[22:12:35] Helheim: has joined #RubyOnRails
[22:13:28] smathy: has joined #RubyOnRails
[22:15:37] theery: has joined #RubyOnRails
[22:15:47] carlosd: has joined #RubyOnRails
[22:16:48] dcunit3d: has joined #RubyOnRails
[22:17:39] Helheim: has joined #RubyOnRails
[22:17:57] Scripore: has joined #RubyOnRails
[22:18:19] quazimod1: has joined #RubyOnRails
[22:18:57] doodlehaus: has joined #RubyOnRails
[22:20:26] chouhoulis: has joined #RubyOnRails
[22:25:33] diegoviola: I've been struggling trying to make some spec pass but I don't get it
[22:26:04] diegoviola: I asked the person that wrote the spec for clarification and he said: "You should be able to make everything work with the specs as is"
[22:27:58] diegoviola: here's the spec: https://gist.github.com/diegoviola/b0053b61818dda392b67#file-mad_lib_steps-rb-L7
[22:28:09] diegoviola: line 7 and 14 is what is confusing me
[22:28:24] mxrguspxrt: has joined #RubyOnRails
[22:28:51] diegoviola: why is it calling a capybara method #has_field? on a model is beyond me
[22:31:21] charliesome: has joined #RubyOnRails
[22:35:30] rhizome: if i knew cucumber...
[22:35:43] rhizome: are there other specs that do pass with that syntax?
[22:35:48] diegoviola: I don't know cucumber either
[22:36:02] diegoviola: rhizome: no, I'm supposed to fix this spec
[22:36:10] diegoviola: but it's not making much sense, so
[22:36:24] diegoviola: err, I'm supposed to make the spec pass
[22:37:18] deavid: has joined #RubyOnRails
[22:37:23] glennt: has joined #RubyOnRails
[22:38:00] diegoviola: https://gist.github.com/06d81862080ef0eea93c
[22:38:04] diegoviola: that's the other file it's using
[22:38:27] rhizome: is there a cucumber channel?
[22:39:09] smathy: diegoviola, do the specs pass?
[22:39:20] diegoviola: rhizome: yes, #cucumber, 23 people in there
[22:39:25] smathy: diegoviola, do you get an error about that has_field? ?
[22:40:00] doodlehaus: has joined #RubyOnRails
[22:40:15] theery: has joined #RubyOnRails
[22:41:07] smathy: diegoviola, my understanding is that has_field? can be called on a capy node, which that definitely doesn't look like. But I don't know/like/use cucumber - maybe it freaks with things so that does work.
[22:41:28] diegoviola: smathy: yeah this looks odd
[22:41:44] asheinfeld: has joined #RubyOnRails
[22:42:25] smathy: Usually you use a finder, like an xpath finder, to pull out nodes from your document, and then you can use has_field? on that to search for forms with that field value within that node.
[22:42:25] wethu: has joined #RubyOnRails
[22:42:39] smathy: (or just call it on page.)
[22:43:03] nofxx: has joined #RubyOnRails
[22:43:47] darrencauthon: has joined #RubyOnRails
[22:44:04] theery: has joined #RubyOnRails
[22:44:40] diegoviola: https://gist.github.com/diegoviola/9311d0d9cb764a831edb
[22:44:44] diegoviola: that's what I get when I run the cucumber spec
[22:44:51] renews: has joined #RubyOnRails
[22:45:02] diegoviola: it complains that there is no has_field? in the model
[22:45:44] Casty: has joined #RubyOnRails
[22:45:56] diegoviola: smathy: yes I know, but the person who wrote this spec said: "You should be able to make everything work with the specs as is"
[22:46:35] smathy: diegoviola, well perhaps this is an historical moment, perhaps this is the first time that this person has ever written a bug.
[22:46:54] smathy: ...be kind with them, they'll do this a lot more in their career.
[22:47:31] smathy: Like I said, maybe cucumber is doing some (horrible, btw) magic here. But if so, ask them to explain it more.
[22:52:29] seank_: has joined #RubyOnRails
[22:53:49] fighella: has joined #RubyOnRails
[22:56:20] Radar: Who wrote https://gist.github.com/diegoviola/b0053b61818dda392b67#file-mad_lib_steps-rb?
[22:56:40] Radar: diegoviola: ^ ?
[22:56:43] rhizome: nothing i can find puts has_* anywhere but capybara, which uses page.
[22:56:57] Radar: hey pontiki
[22:57:38] pontiki: any word from manning, radar?
[22:57:45] Radar: pontiki: We are not on speaking terms.
[22:57:49] Radar: (Manning and I)
[22:57:57] rhizome: rap battle
[22:57:58] Radar: If anyone gets word, it'll be sevenseacat.
[22:58:18] pontiki: ACTION nods
[22:58:36] Radar: So totally weird that they missed their supposed Amazon publishing date. It's so out of character for them.
[22:58:45] Radar: ACTION listens to the booms of the world's sarcasm detectors
[22:59:44] theery: has joined #RubyOnRails
[22:59:57] pontiki: ACTION holds up springs and guages and loose wires.
[23:00:03] pontiki: you owe me a new one
[23:00:50] charliesome: has joined #RubyOnRails
[23:02:01] diegoviola: Radar: https://github.com/joshsz <-- that person wrote it
[23:03:02] doodlehaus: has joined #RubyOnRails
[23:03:08] Radar: diegoviola: It seems wroing
[23:03:14] Radar: The steps seem wrong completely.
[23:03:27] mikecmpbll: hmm, any seasoned web scrapers know any tips about evading 509 Bandwidth Limit Exceeded? :d
[23:03:54] mikecmpbll: it's some apache module doing the throttling i believe, i've tried various different wait times between requests but can't really work out the logic of it
[23:04:07] diegoviola: I'd probably be able to write what they want from scratch ignoring their specs (rewriting them myself) and not waste too much time with this crap
[23:04:40] pontiki: i've never encountered it, mikecmpbll
[23:04:42] charliesome: has joined #RubyOnRails
[23:04:43] arBmind1: has joined #RubyOnRails
[23:05:06] mikecmpbll: i should've tested this site for suitability before spending all day writing the scraper.
[23:05:36] diegoviola: visit path_to('the home page')
[23:05:39] diegoviola: that doesn't seem valid at all
[23:06:24] lethjakman: has joined #RubyOnRails
[23:07:03] fighella: has joined #RubyOnRails
[23:07:57] htmldrum: has joined #RubyOnRails
[23:10:10] drale2k: has joined #RubyOnRails
[23:10:47] neruda: has joined #RubyOnRails
[23:11:24] dcunit3d: has joined #RubyOnRails
[23:11:34] pontiki: looks a bit like a cucumber thing
[23:11:39] Miesco: has joined #RubyOnRails
[23:11:46] Miesco: Hi, where is a good place to buy a domain?
[23:11:50] earthquake: has joined #RubyOnRails
[23:12:29] pontiki: +1 for gandi.net
[23:12:38] pontiki: they are good people
[23:12:49] mikecmpbll: nice catchphrase.
[23:13:20] strcmp1: i transferred a few days ago (from 1and1.com) based on a recommendation from a friend, and yes it seems like compared to the last guys they're worlds ahead.
[23:13:49] strcmp1: 1and1.com is real spammy and godaddy-like
[23:13:51] pontiki: i transferred my stuff from godaddy starting a few years ago
[23:14:23] mikecmpbll: what seperates a good domain provider from a bad one?
[23:14:23] diegoviola: pontiki: I think they meant page.has_field? instead of @madlib.has_field? though
[23:14:24] Miesco: Okay gandi, now how do i make my router automically set it to my ip?
[23:14:30] strcmp1: gandi.net feels more like a small business with a decent site and no upsells or confusing UIs to edit your zone files etc.
[23:14:30] mikecmpbll: i've used the same one forever and i don't really know why i'd switch
[23:14:38] mikecmpbll: i have almost 0 interaction with them
[23:14:53] pontiki: diegoviola: i was referring to this: me page')
[23:14:53] pontiki: [20150802|1805.39] < diegoviola> that doesn't seem valid at all
[23:15:17] pontiki: [20150802|1805.35] < diegoviola> visit path_to('the home page')
[23:15:22] pontiki: that, i meant
[23:15:38] strcmp1: mikecmpbll, for example i used the webmail of 1and1.com for my domain and it sucked. and if when you login to change your zone file, you have to avoid confusing UI or a long trail of links to do anything, or upsells, its usually bad
[23:15:54] mikecmpbll: strcmp1: ah okay
[23:16:11] pontiki: mikecmpbll: for me, godaddy's policies regarding internet freedom, net neutrality, CISPA, etc
[23:16:22] rhizome: never use godaddy
[23:16:29] mikecmpbll: oh, i don't know about any of this
[23:16:46] mikecmpbll: valid reasons :)
[23:16:46] pontiki: it may not be important to you
[23:16:51] pontiki: which is quite okay
[23:16:52] strcmp1: godaddy is upsell king
[23:17:04] rhizome: godaddy is a garbage company. it's not ok to use them.
[23:17:04] strcmp1: go there to order a domain and you might leave with a new car
[23:17:07] neruda: has joined #RubyOnRails
[23:17:07] neruda: has joined #RubyOnRails
[23:17:18] pontiki: or a new suit
[23:17:19] theery: has joined #RubyOnRails
[23:17:33] neruda: im getting an error on form submission that makes me think form params are being shuffled: https://gist.github.com/anonymous/74a2f845f9fb2808df58
[23:17:39] neruda: can someone take a look and call me an idiot please
[23:17:48] rhizome: i can do that without even looking
[23:18:05] neruda: rhizome: but you wont because you means test
[23:18:45] rhizome: i'm not sure what that means, but your gist doesn't have enough information to help
[23:18:46] strcmp1: neruda, you pass it to your model as ModelFoo.new params['header'] ?
[23:19:28] Radar: date_reported probably needs to be parsed through Date.parse first?
[23:19:30] mikecmpbll: probably strong params
[23:19:50] Radar: See how you get 3 different diagnoses when you provide no code? :D
[23:19:52] mikecmpbll: oh ya and marshalling date.
[23:21:04] Radar: Although in my testing then it looks like Rails processes the date just fine.
[23:21:12] neruda: strcmp1: feel free to call me an idiot
[23:21:14] Radar: neruda: steps to reproduce in a new app kthxbye
[23:21:28] neruda: mikecmpbll: you are right, strong params fuckery
[23:22:24] darrencauthon: has joined #RubyOnRails
[23:23:24] gerep: has joined #RubyOnRails
[23:23:34] Radar: something something occam's razor
[23:24:07] strcmp1: neruda, i dont like calling anyone an idiot so i will reserve my right to freedom and not bother =P
[23:24:23] mikecmpbll: strcmp1: don't be such a pacifist.
[23:26:19] GreatDanton: I need a bit of help again with updating with Ajax. I can only update first post of the current user(line 56). I got feeling I have to create unique reveal-id but I can't get it to work. https://gist.github.com/GreatDanton/146f70a04369a8575f5b.
[23:26:40] jgt: has joined #RubyOnRails
[23:27:16] GreatDanton: I meant _comment.html.erb file
[23:28:10] mikecmpbll: GreatDanton: you might have to be a bit more specific describing the problem
[23:28:12] ur5us: has joined #RubyOnRails
[23:28:21] Radar: tabs? admin plz ban
[23:28:37] theery: has joined #RubyOnRails
[23:29:25] GreatDanton: I want to update comments with opening modal window
[23:29:45] mikecmpbll: 'update comments' ?
[23:29:59] mikecmpbll: oh update a single comment?
[23:30:14] GreatDanton: I got discussions that has many comments
[23:30:22] GreatDanton: I want to edit specific comment
[23:31:10] mikecmpbll: is the modal generated dynamically? or loaded with the comments page?
[23:31:52] GreatDanton: I am not sure what you are asking me
[23:31:56] GreatDanton: ACTION hides
[23:31:56] mikecmpbll: or alternatively, are you creating a modal per comment
[23:32:16] mikecmpbll: the markup for the modal
[23:32:46] GreatDanton: I am probably creating modal per comment, I don't know what options I have really
[23:32:55] Miesco: Man, how do I choose my ip for my domain...
[23:33:04] Miesco: on gandi.net
[23:33:30] mikecmpbll: GreatDanton: yeah, that's easier. so what's not working?
[23:33:43] dcunit3d: has joined #RubyOnRails
[23:33:48] bruno-: has joined #RubyOnRails
[23:33:53] GreatDanton: do you see reveal-id: "Edit-Modal"?
[23:34:00] mikecmpbll: GreatDanton: no
[23:34:30] GreatDanton: https://gist.github.com/GreatDanton/146f70a04369a8575f5b#file-_comment-html-erb
[23:34:58] mikecmpbll: GreatDanton: seeing as you're pointing it out, explain why it's relevant
[23:35:14] GreatDanton: it fires up modal window
[23:35:16] mikecmpbll: (it is, but you pointing it out shows you probably know the answer anyways :p)
[23:35:37] GreatDanton: yeah but I cant create unique id
[23:35:57] GreatDanton: I got whole page of errors when I try to use <%= comment.id %>
[23:36:15] mikecmpbll: you probably mangled the syntax. maybe gist that.
[23:36:39] mikecmpbll: just the code would probably do.
[23:36:50] mikecmpbll: i assume it's a syntax error, no?
[23:37:53] seank_: has joined #RubyOnRails
[23:38:25] GreatDanton: mikecmpbll, https://gist.github.com/GreatDanton/4d8af0cd46b60be2f4a4
[23:38:28] GreatDanton: I tried like that
[23:39:01] mikecmpbll: the link_to is already in erb
[23:39:05] renews: has joined #RubyOnRails
[23:39:13] mikecmpbll: you don't need erb tags <%= %> for that bit
[23:39:27] GreatDanton: comment.id will work?
[23:39:30] mikecmpbll: but you're in a string, so you need to interpolate the variable with #{comment.id}
[23:39:56] mikecmpbll: <%= link_to "Edit", edit_comment_path(comment), remote: true, data: { 'reveal-id': "Edit-Modal-#{comment.id}"} %>
[23:40:04] quazimod1: has joined #RubyOnRails
[23:40:14] quazimod2: has joined #RubyOnRails
[23:40:30] theery: has joined #RubyOnRails
[23:41:42] Ropeney: has joined #RubyOnRails
[23:42:00] lwu: has joined #RubyOnRails
[23:43:03] GreatDanton: mikecmpbll, error page is gone, but it doesnt fire up modal
[23:43:06] bronson: has joined #RubyOnRails
[23:44:07] bruno-_: has joined #RubyOnRails
[23:44:28] mikecmpbll: GreatDanton: why not? :)
[23:44:46] GreatDanton: not sure black overlay is there, but white background is missing
[23:44:59] mikecmpbll: that doesn't mean anything to me, js
[23:45:10] theery: has joined #RubyOnRails
[23:45:36] GreatDanton: well it's modal from Foundation framework
[23:45:42] theery: has joined #RubyOnRails
[23:45:49] mikecmpbll: GreatDanton: i've no idea about that, and that is what you should assume.
[23:46:01] zorak8: has joined #RubyOnRails
[23:46:49] GreatDanton: yes makes sense
[23:47:03] mikecmpbll: GreatDanton: obviously debugging is obvious: 1) has the data-reveal-id attribute of the edit link got the correct id? 2) does the modal with that same exact ID exist ?
[23:48:20] GreatDanton: 1) okay, 2nd it doesnt
[23:48:24] GreatDanton: guess I messed up the code
[23:48:54] GreatDanton: modal got id="Edit-Modal-#{comment.id}
[23:50:05] GreatDanton: mikecmpbll, thanks again
[23:50:08] GreatDanton: its working now
[23:50:18] mikecmpbll: ah, you only needed to change that in the link_to ;)
[23:50:40] mikecmpbll: everything between <% and %> is evaluated as ruby
[23:50:49] mikecmpbll: everything that isn't, in erb, is html.
[23:51:03] GreatDanton: thank you I 've spent 2days on that :D
[23:53:01] helpa: has joined #RubyOnRails
[23:53:43] towski_: has joined #RubyOnRails
[23:54:15] blankammo: has joined #RubyOnRails
[23:54:38] wheeee1: has joined #RubyOnRails