« Back to channel list

#RubyOnRails - 12 November 2015

« Back 1 day Forward 1 day »
[00:01:07] StaticVoid: smathy: nvm - pebkac... working now
[00:01:19] quazimodo: has joined #RubyOnRails
[00:01:34] StaticVoid: smathy: the scaffold-generated views threw me off, was looking at the wrong view
[00:01:42] roxtrongo: has joined #RubyOnRails
[00:02:06] TheNet: so I have a pretty strange problem. I have an animated css background. The problem is that when the page changes, the animation resets. This is to be expected. I thought I could solve this by using data-turbolinks-permanent on the background element to prevent turbolinks from refreshing it, but the animation still resets.
[00:02:23] smathy: StaticVoid, ok cool.
[00:02:35] Jasaka|NA: has joined #RubyOnRails
[00:05:02] Encapsulation: has joined #RubyOnRails
[00:06:52] framling: has joined #RubyOnRails
[00:07:00] mwlang: has joined #RubyOnRails
[00:08:09] K_r3aPeR: has joined #RubyOnRails
[00:08:51] mwlang: with solr/sunspot, how do I get fuzzy matches to rank lower than exact matches?
[00:09:17] lemur: has joined #RubyOnRails
[00:09:52] mostlybadfly: has joined #RubyOnRails
[00:11:57] rakm: has joined #RubyOnRails
[00:12:45] _wldcordeiro: has joined #RubyOnRails
[00:15:06] htmldrum: has joined #RubyOnRails
[00:15:08] rickmasta: has joined #RubyOnRails
[00:15:30] ebbflowgo: has joined #RubyOnRails
[00:16:52] blackmes1: has joined #RubyOnRails
[00:19:03] x-light: has joined #RubyOnRails
[00:21:00] Scriptonaut: has joined #RubyOnRails
[00:21:19] Scriptonaut: can anyone link me (or explain to me) an explanation of using devise's remember_me?
[00:21:21] n1lo: has joined #RubyOnRails
[00:21:32] Scriptonaut: I have the checkbox in place, I don't know what to do with the param though
[00:22:22] platzhirsch: has left #RubyOnRails: ()
[00:23:11] benlieb: has joined #RubyOnRails
[00:23:37] baweaver: has joined #RubyOnRails
[00:24:22] Pupeno: has joined #RubyOnRails
[00:24:53] rhizome: maybe there's a rememberable plugin
[00:24:57] rhizome: that takes care of all that
[00:25:05] veg: has joined #RubyOnRails
[00:25:12] Scriptonaut: there's a rememberable setting on the model(user model), and I have it set
[00:25:21] Scriptonaut: I just don't know where to pass the remember_me param
[00:25:39] blokc: has joined #RubyOnRails
[00:25:58] rhizome: there are some suggestions in the docs
[00:26:49] blokc: NilClass error when setting request environment variables in my IntegrationTests. Following Devise OmniAuth guide for integration testing.
[00:26:51] blokc: https://github.com/intridea/omniauth/wiki/Integration-Testing
[00:26:51] darrencauthon: has joined #RubyOnRails
[00:29:21] skyjumper: anyone know how to detect (within a controller) if the controller is being tested via rspec?
[00:29:38] skyjumper: a reliable way, that is
[00:29:38] blokc: Made a public gist with my IntegrationTest. https://gist.github.com/wurde/23c3eb9825f178448b8a
[00:29:41] Radar: skyjumper: !xy
[00:29:41] helpa: skyjumper: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[00:30:26] skyjumper: more generally, i'm testing a controller method that acts as a callback for a 3rd party service
[00:30:30] blokc: Does anyone have experience setting request env variables in integration tests?
[00:30:36] blokc: request.env["omniauth.auth"] is all I need to do.
[00:30:38] rhizome: you shouldn't need to check
[00:30:49] Radar: blokc: https://github.com/intridea/omniauth/wiki/Integration-Testing
[00:30:55] rhizome: blokc: i'm not sure if those docs apply to integrations
[00:31:04] Radar: Oh you just linked it :(
[00:31:13] skyjumper: the 3rd party service signs their params, and the controller only accepts them if signed
[00:31:17] wkoszek: Radar: Other than your book, I have Agile Web Development with Rails 4. Anything else I may want to order to get to the Rails intermediate level?
[00:31:18] Radar: Yes, you can use those in integrations too.
[00:31:24] Radar: wkoszek: That'll do for now.
[00:31:27] skyjumper: my tests don't have their key, so can't do the signing
[00:31:35] Radar: wkoszek: If you just want to give money away then you can buy MTWR
[00:31:38] Radar: wkoszek: !mtwr
[00:31:38] helpa: wkoszek: Multitenancy With Rails - https://leanpub.com/multi-tenancy-rails-2 - An excellent book that teaches you about building a Multitenanted Rails application. Written by Ryan Bigg.
[00:31:52] Radar: skyjumper: Can you stub the 3rd party service in your tests?
[00:32:18] skyjumper: Radar: stub it how? it's connecting to the rails app
[00:32:36] blokc: Radar: I realize, but shouldn't I be able to set request variables in Integration tests anyway?
[00:32:42] Radar: skyjumper: I don't know. I have no code to go on so I'm just playing it by ear.
[00:32:46] Radar: blokc: No.
[00:32:59] wkoszek: Radar: oki doki.
[00:33:12] ibouvousaime: has joined #RubyOnRails
[00:33:22] skyjumper: oh, the test should stub out the signature verification
[00:33:40] alyyy: has joined #RubyOnRails
[00:35:25] mary5030: has joined #RubyOnRails
[00:35:40] blokc: Radar: Do you have any integrations tests you've written, as examples?
[00:35:53] Radar: blokc: Not to hand for omniauth, no.
[00:36:00] blokc: Radar: Any.
[00:36:06] Radar: blokc: But when I have had to write one before, exactly what is documented in that guide is what I have done.
[00:36:10] Radar: blokc: Oh yeah tons
[00:36:23] Radar: https://github.com/rubysherpas/r4ia_examples
[00:36:27] framlinqp: has joined #RubyOnRails
[00:36:28] Radar: https://github.com/radar/twist
[00:36:32] Radar: spec/features in both repos
[00:37:42] blokc: Radar: Neither of those are using ActionDispatch::IntegrationTest classes. They are RSpec.
[00:37:51] Radar: ACTION sighs longingly.
[00:37:58] twilling: has joined #RubyOnRails
[00:38:08] Radar: "Radar: do you have any integration tests?" "Yes" "These are not MY KIND of integration tests"
[00:38:20] Radar: Nowhere previously did you mention what kind of tests they had to be!
[00:38:27] mwlang: hmmm??? ???radar/twist??? ??? ???oliver/twist??? would be more poetic. :-)
[00:38:45] shibabu: has joined #RubyOnRails
[00:39:23] blokc: Radar: You answered so authoritatively "no" that it wasn't possible that I missed the assumption that we are using the integration framework provided in rails by default.
[00:39:37] Radar: blokc: Either way, my "no" still stands.
[00:39:46] quazimodo: Is it worth it to include the child application's id & secret when requesting a user resource from a single sign on parent app via the access token for that user ?
[00:39:47] Radar: You do not have access to the env or session details within an integration test.
[00:40:13] quazimodo: to rephrase, should I bother to authenticate the child application against the SSO server when the child wants to get user details via the access token for that user
[00:41:37] matthewd: quazimodo: Depends on how hard it is for a random application to get hold of the token, and the value of the user details. Probably?
[00:41:45] blokc: Radar: From what I've read and tested, you're right. If do find a way, it'll be a hack.
[00:42:03] matthewd: quazimodo: Are you designing an SSO system?
[00:42:03] blokc: I just wanted to test Devise GitHub OmniAuth authentication!
[00:42:17] stannard: has joined #RubyOnRails
[00:42:18] Radar: blokc: and the wiki article tells you exactly how to do that.
[00:42:23] Radar: blokc: Have you tried it yet?
[00:42:24] ruurd: has joined #RubyOnRails
[00:42:30] Radar: Or are you fixated on modifying env?
[00:42:45] krramos_: has joined #RubyOnRails
[00:43:11] blokc: Radar: This is a line pulled from the wiki.
[00:43:12] blokc: request.env["omniauth.auth"] = OmniAuth.config.mock_auth[:twitter]
[00:43:21] blokc: Am I reading that right?
[00:44:05] Radar: blokc: No, you're not reading it at all. You're picking a single line and asking how to apply it into an integration test. That single line is under the "Setting up the controller" subheading.
[00:44:08] blokc: Steps are set OmniAuth to "test mode" so that it'll look for the mock.
[00:44:12] Radar: Which is NOT for an integration test!
[00:44:22] rickmasta: has joined #RubyOnRails
[00:44:23] Radar: https://github.com/intridea/omniauth/wiki/Integration-Testing#omniauthconfigtest_mode
[00:44:23] weaksauce: has joined #RubyOnRails
[00:44:26] Radar: Start here and read downwards.
[00:44:29] blokc: It then stubs a response.
[00:44:51] Radar: test_mode, mock_auth and add_mock are what you need for an integration test.
[00:45:17] CodingWolf: has joined #RubyOnRails
[00:45:34] rickmasta: has joined #RubyOnRails
[00:45:35] htmldrum: has joined #RubyOnRails
[00:45:39] dented42: has joined #RubyOnRails
[00:46:34] atomical: has joined #RubyOnRails
[00:46:37] annlewis: has joined #RubyOnRails
[00:47:11] TheNet: has joined #RubyOnRails
[00:48:37] rhizome: i'd say the url to those docs has a bug
[00:49:14] s2013: anyone ever had any issues with json parseerror while fetching manifests during deployment.. if that makes sense
[00:49:26] veg: has joined #RubyOnRails
[00:49:27] Radar: s2013: !rule0
[00:49:27] helpa: s2013: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[00:49:29] blokc: I can't wait till StackOverflow comes out with their solution to standardizing documentation.
[00:49:44] s2013: nevermind it deployed fine
[00:49:48] blokc: has left #RubyOnRails: ()
[00:49:53] rhizome: i have an idea along those lines i've been sitting on for awhile
[00:51:02] krz: has joined #RubyOnRails
[00:54:02] pkrueger: has joined #RubyOnRails
[00:56:20] gusrub: has joined #RubyOnRails
[00:56:28] owenjones: has joined #RubyOnRails
[00:58:17] s2013: hmmm ok so i deployed my code.. it worked fine except its using old assets.. i ran rake assets:clean and rake assets:precompile on the server
[00:58:25] s2013: am i missing something?
[00:59:18] mghaig: has joined #RubyOnRails
[00:59:26] sankaber: has joined #RubyOnRails
[01:00:46] Scriptonaut: has left #RubyOnRails: ()
[01:01:06] henry1: has joined #RubyOnRails
[01:01:23] makerops: has joined #RubyOnRails
[01:02:25] nya: has joined #RubyOnRails
[01:03:07] ebbflowgo: has joined #RubyOnRails
[01:04:11] ur5us: has joined #RubyOnRails
[01:04:53] Aeyrix: I can't wait till StackOverflow comes out with their solution to standardizing documentation.
[01:05:20] Jasaka: has joined #RubyOnRails
[01:05:59] quazimodo: Radar: what do you think
[01:06:47] quazimodo: worth it to pass the child app id & secret to the sso server when fetching user details?
[01:07:36] sevenseacat: has joined #RubyOnRails
[01:07:38] zpe: has joined #RubyOnRails
[01:08:16] matthewd: quazimodo: Depends on how hard it is for a random application to get hold of the token, and the value of the user details. Probably?
[01:08:17] matthewd: quazimodo: Are you designing an SSO system?
[01:09:03] northfurr: has joined #RubyOnRails
[01:09:56] rubyonrailed: has joined #RubyOnRails
[01:10:13] lemur: has joined #RubyOnRails
[01:10:43] s2013: has joined #RubyOnRails
[01:12:39] rgtk: has joined #RubyOnRails
[01:14:43] rgtk: has joined #RubyOnRails
[01:15:09] alex88: has joined #RubyOnRails
[01:16:29] rubyonrailed: has joined #RubyOnRails
[01:16:32] rgtk: has joined #RubyOnRails
[01:17:16] Maletor: has joined #RubyOnRails
[01:17:37] rgtk: has joined #RubyOnRails
[01:17:49] darrencauthon: has joined #RubyOnRails
[01:20:38] nickenchuggets: has joined #RubyOnRails
[01:20:51] hoodow_: has joined #RubyOnRails
[01:21:19] skyjumper: anyone know offhand how to specify an "action" param to a controller via rspec, without having rails overwrite it? https://gist.github.com/anonymous/0ebd04303ce34c7f7918
[01:21:49] Senjai: has joined #RubyOnRails
[01:21:52] sevenseacat: you don't, action is a reserved param for the name of the action being called.
[01:22:00] nickenchuggets: has joined #RubyOnRails
[01:22:01] nickenchuggets: has joined #RubyOnRails
[01:22:35] skyjumper: well, this 3rd party service uses it, and in real world use request.request_parameters['action'] gets me their value of it
[01:22:42] ebbflowgo: has joined #RubyOnRails
[01:23:18] hardtail: has joined #RubyOnRails
[01:23:22] skyjumper: and now i need to test that controller method
[01:23:27] mghaig: has joined #RubyOnRails
[01:23:51] TheNet: has joined #RubyOnRails
[01:23:53] chouhoulis: has joined #RubyOnRails
[01:26:47] quazimodo: mathewd it wont be easy
[01:26:55] quazimodo: matthewd: already designed
[01:27:02] quazimodo: is he here?
[01:27:08] quazimodo: i cant see sign ins/outs
[01:27:17] quazimodo: matthewd: yeah hullo
[01:27:49] matthewd: Ah, okay.. I was going to recommend you just use http://casino.rbcas.com/
[01:28:15] quazimodo: matthewd: it's oauth based
[01:28:21] quazimodo: i didn't want to use cas/casino
[01:28:25] quazimodo: seemed pointlessly complex
[01:28:33] quazimodo: at least for my usage
[01:28:49] quazimodo: cas/casino seems so ... complicated
[01:29:11] Cache_Money: has joined #RubyOnRails
[01:29:22] mghaig: has joined #RubyOnRails
[01:30:27] matthewd: Yeah, I won't argue with that.. for me it seemed more pleasant to accept some complexity overhead to avoid having to design things from scratch
[01:30:58] matthewd: But if you're doing OAuth, I would've thought the answer to your above question would be well-defined
[01:31:02] mices: who can i use for cc processing
[01:31:31] Aeyrix: Braintree
[01:33:04] ebbflowgo: has joined #RubyOnRails
[01:34:02] veg: has joined #RubyOnRails
[01:34:42] shibabu: has joined #RubyOnRails
[01:35:04] SteenJobs: has joined #RubyOnRails
[01:39:18] skyjumper: possible to get around the reserved 'action' param in controller tests, without diving into Rack internals?
[01:40:06] skyjumper: i explained it about 20 lines up
[01:40:46] skyjumper: need to pass a different value for "action" to a controller via a test, and it no worky
[01:42:03] one_zero: has joined #RubyOnRails
[01:47:11] A124: has joined #RubyOnRails
[01:48:14] momloy: has joined #RubyOnRails
[01:50:28] rgtk: has joined #RubyOnRails
[01:52:30] rgtk: has joined #RubyOnRails
[01:53:01] rclanan_: has joined #RubyOnRails
[01:53:23] sdwrage: has joined #RubyOnRails
[01:54:16] rgtk: has joined #RubyOnRails
[01:56:06] rgtk_: has joined #RubyOnRails
[01:58:01] rgtk: has joined #RubyOnRails
[01:59:42] messine: has joined #RubyOnRails
[01:59:58] A124: has joined #RubyOnRails
[02:00:03] rgtk: has joined #RubyOnRails
[02:00:16] mghaig: has joined #RubyOnRails
[02:01:52] rickmasta: has joined #RubyOnRails
[02:02:00] rgtk: has joined #RubyOnRails
[02:02:26] Contigi: has joined #RubyOnRails
[02:02:29] twilling: has joined #RubyOnRails
[02:03:43] rgtk: has joined #RubyOnRails
[02:04:33] bruno-: has joined #RubyOnRails
[02:04:42] DanielN: has joined #RubyOnRails
[02:05:38] rgtk_: has joined #RubyOnRails
[02:07:36] rgtk: has joined #RubyOnRails
[02:08:27] zpe: has joined #RubyOnRails
[02:09:26] rgtk: has joined #RubyOnRails
[02:10:59] stardolphin33: has joined #RubyOnRails
[02:11:28] rgtk: has joined #RubyOnRails
[02:12:24] stardolphin33: has left #RubyOnRails: ()
[02:12:34] DLSteve: has joined #RubyOnRails
[02:13:11] rgtk_: has joined #RubyOnRails
[02:15:07] rgtk: has joined #RubyOnRails
[02:17:04] asianMike: has joined #RubyOnRails
[02:17:08] rgtk: has joined #RubyOnRails
[02:19:02] rgtk: has joined #RubyOnRails
[02:20:46] rgtk: has joined #RubyOnRails
[02:22:41] rgtk: has joined #RubyOnRails
[02:24:17] Yomero2: has joined #RubyOnRails
[02:24:43] rgtk: has joined #RubyOnRails
[02:24:44] Pupeno: has joined #RubyOnRails
[02:26:40] rgtk: has joined #RubyOnRails
[02:28:22] rgtk: has joined #RubyOnRails
[02:30:11] blackmes1: has joined #RubyOnRails
[02:30:18] rgtk: has joined #RubyOnRails
[02:31:16] simkessy: If someone could take a look at this. I'm trying to create seed data but my associations don't always get created http://stackoverflow.com/questions/33663419/seeding-not-always-creating-association
[02:31:18] darrencauthon: has joined #RubyOnRails
[02:32:05] dented42: has joined #RubyOnRails
[02:32:17] rgtk: has joined #RubyOnRails
[02:33:15] SalexW: has joined #RubyOnRails
[02:34:16] rgtk: has joined #RubyOnRails
[02:35:26] crystalneth: has joined #RubyOnRails
[02:35:32] crystalneth: @matthewd Figured out yesterday???s question about gem versions:
[02:35:33] crystalneth: Gem::Requirement.new("~> 1.0.5") =~ Gem::Version.new("1.0.6")
[02:36:01] rgtk: has joined #RubyOnRails
[02:36:01] messine: has joined #RubyOnRails
[02:36:50] rclanan: has joined #RubyOnRails
[02:37:28] DanielN: has joined #RubyOnRails
[02:37:54] rgtk: has joined #RubyOnRails
[02:39:01] rakm: has joined #RubyOnRails
[02:39:55] rgtk: has joined #RubyOnRails
[02:41:53] rgtk: has joined #RubyOnRails
[02:43:54] rgtk: has joined #RubyOnRails
[02:44:26] mices: on the github devise page under "Configuring multiple models" it gives the code to create the table but the code doesn't include an id field
[02:44:55] Aeyrix: The code never contains an ID field yo.
[02:45:21] sevenseacat: you never have to specify an ID field
[02:45:28] rgtk: has joined #RubyOnRails
[02:45:43] mices: my table got created without one
[02:46:29] sevenseacat: you have to specify that you dont want an ID field, to not get one
[02:47:28] rgtk: has joined #RubyOnRails
[02:47:43] koprom: has joined #RubyOnRails
[02:48:14] SteenJobs: has joined #RubyOnRails
[02:48:57] Radar: #rubyonrails to mices, #rubyonrails to mices. Come in, mices.
[02:49:24] Axsuul: has joined #RubyOnRails
[02:49:28] rgtk: has joined #RubyOnRails
[02:51:22] rgtk: has joined #RubyOnRails
[02:51:46] sevenseacat: *hums this is crowd control to major tom
[02:51:51] mices: https://gist.github.com/mices/9c038f7e4e22a5d908c2
[02:51:57] Radar: Ground control?
[02:52:05] Radar: mices: schema.rb too pleaes
[02:52:05] Aeyrix: crowd control lol
[02:52:17] sevenseacat: that table definitely has an ID field.
[02:52:30] Radar: sevenseacat: the table that migration creates would definitely
[02:53:04] rgtk: has joined #RubyOnRails
[02:53:07] Radar: why yes I _do_ take great joy in being pedantic. How could you tell?
[02:53:28] sevenseacat: thats fair. most of the time there's a reason for it.
[02:54:16] Radar: mices: Why is it taking you so long to post files today?
[02:54:25] Radar: The suspense is killing me!
[02:54:44] kies: has joined #RubyOnRails
[02:55:02] rgtk: has joined #RubyOnRails
[02:55:42] tater: has joined #RubyOnRails
[02:56:11] DiCablo: has joined #RubyOnRails
[02:57:01] rgtk: has joined #RubyOnRails
[02:58:07] Radar: https://gist.github.com/mices/9c038f7e4e22a5d908c2#file-schema-rb-L16
[02:58:08] sevenseacat: `id: false` ah hah
[02:58:09] Radar: oh look, id: false.
[02:58:18] Radar: mices: So the migration previously had id: false, and then you removed it
[02:58:30] mices: this is the table after running `rails generate devise admins`
[02:58:53] rgtk: has joined #RubyOnRails
[02:59:00] mices: so i guess devise doesn't want an id in the table
[02:59:12] Radar: no, devise doesn't do that.
[02:59:14] Radar: You have done that
[02:59:37] Radar: mices: "rake db:drop db:create db:migrate" will fix it, but at the cost of deleting your data.
[02:59:48] TheNet: has joined #RubyOnRails
[03:00:08] mices: there's no data
[03:00:39] rgtk: has joined #RubyOnRails
[03:02:34] rgtk: has joined #RubyOnRails
[03:03:33] smathy: #protip db:reset == db:drop db:create db:migrate
[03:03:51] Radar: Common misconception.
[03:03:57] sevenseacat: db:reset is drop, create, schema:load
[03:03:58] smathy: *db:migrate:reset
[03:03:59] EminenceHC: has joined #RubyOnRails
[03:04:11] sevenseacat: and seed i believe
[03:04:31] sevenseacat: TIL theres a db:migrate:reset
[03:04:34] rgtk: has joined #RubyOnRails
[03:05:09] Radar: task :reset => ['db:drop', 'db:create', 'db:migrate']
[03:05:16] Radar: Seems I'm confusing it with db:setup. Sorry smathy.
[03:05:27] Radar: task :setup => ['db:schema:load_if_ruby', 'db:structure:load_if_sql', :seed]
[03:05:51] Radar: #true #facts
[03:05:52] sevenseacat: too many similarly named tasks
[03:05:53] bruno-: has joined #RubyOnRails
[03:06:10] Radar: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/railties/databases.rake#L177
[03:06:19] Radar: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/railties/databases.rake#L76
[03:06:25] Radar: Q.E.D. and all that
[03:06:33] rgtk: has joined #RubyOnRails
[03:06:45] Radar: ACTION puts on dunces cap, sits in corner
[03:07:18] SteenJobs: has joined #RubyOnRails
[03:07:49] sevenseacat: https://github.com/rails/rails/blob/v4.2.4/activerecord/lib/active_record/railties/databases.rake#L140-L142
[03:08:17] rgtk: has joined #RubyOnRails
[03:08:24] krramos_: has joined #RubyOnRails
[03:08:33] smathy: Radar, no, you were right for db:reset, that's a drop and setup (ie. schema load, seed load). db:migrate:reset is what I meant, that's the drop, create, migrate
[03:09:00] sevenseacat: that is seriously confusing.
[03:09:53] mices: so should i run db:migrate:reset
[03:10:08] rgtk_: has joined #RubyOnRails
[03:11:38] baweaver: has joined #RubyOnRails
[03:12:04] rgtk: has joined #RubyOnRails
[03:12:58] sevenseacat: you should recreate your database, yes. what commands you use to do that, is up to you.
[03:13:11] ValicekB: has joined #RubyOnRails
[03:13:43] draig: has joined #RubyOnRails
[03:13:45] mices: i ran the original command that radar gave me "rake db:drop db:create db:migrate" and got a duplicate column name "email" error
[03:13:53] messine: has joined #RubyOnRails
[03:14:04] rgtk: has joined #RubyOnRails
[03:14:17] messine: has left #RubyOnRails: ()
[03:14:20] sevenseacat: !debug you should know this by now
[03:14:20] helpa: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[03:14:54] mices: my add_devise_to_admins migrations were still in the migrate directory
[03:15:15] mices: that's what threw the error
[03:15:17] crystalmaiden: has joined #RubyOnRails
[03:15:21] mghaig: has joined #RubyOnRails
[03:15:43] DanielN: has joined #RubyOnRails
[03:15:52] peppers: has joined #RubyOnRails
[03:15:56] mices: let's see the admins table now
[03:16:05] rgtk: has joined #RubyOnRails
[03:17:10] mices: nothing there but the admins table it wiped everything else ha ha
[03:17:20] mices: and not even an id column :(
[03:17:28] Radar: are you sure all your migrations ran?
[03:17:42] rgtk: has joined #RubyOnRails
[03:17:59] mices: i mean no they were aborted after create_admins
[03:18:02] iamse7en: has joined #RubyOnRails
[03:18:08] mices: because of the error
[03:18:32] mices: i'll just edit
[03:18:40] dopie: has joined #RubyOnRails
[03:19:41] rgtk: has joined #RubyOnRails
[03:19:53] mices: i thought the migration was merely trying to change email to null: false
[03:20:39] Radar: So why do you think that happened?
[03:20:52] Radar: Why do you think the tables weren't there?
[03:21:43] rgtk: has joined #RubyOnRails
[03:22:25] mices: the error was on create admins, seemingly drop db failed to drop the table?
[03:22:27] orolo: has joined #RubyOnRails
[03:22:38] mices: meaning the database
[03:23:04] ElSif: has joined #RubyOnRails
[03:23:37] rgtk: has joined #RubyOnRails
[03:24:14] Radar: it failed to run all the migrations and create all your tables
[03:24:28] krramos_: has left #RubyOnRails: ()
[03:24:54] K_r3aPeR: has joined #RubyOnRails
[03:25:17] rgtk: has joined #RubyOnRails
[03:27:13] rgtk: has joined #RubyOnRails
[03:27:39] pwnd_nsfw: has joined #RubyOnRails
[03:29:38] gambl0re: has joined #RubyOnRails
[03:31:32] chipotle: has joined #RubyOnRails
[03:32:07] dopie: page.should have_field("Company Name", :with => "Test Company") worked
[03:32:19] blackmes1: has joined #RubyOnRails
[03:32:36] annlewis: has joined #RubyOnRails
[03:34:07] pydave6367: has left #RubyOnRails: ()
[03:38:55] rakm: has joined #RubyOnRails
[03:43:47] rickmasta: has joined #RubyOnRails
[03:46:22] RegulationD: has joined #RubyOnRails
[03:48:01] nizmow: has joined #RubyOnRails
[03:50:28] jhack: has joined #RubyOnRails
[03:53:40] acti0nman: has joined #RubyOnRails
[03:54:19] fedexo: has joined #RubyOnRails
[03:55:05] axl_: has joined #RubyOnRails
[03:56:15] benlieb: has joined #RubyOnRails
[03:57:08] zpe: has joined #RubyOnRails
[03:57:24] yfeldblum: has joined #RubyOnRails
[04:01:52] erbse: has joined #RubyOnRails
[04:02:58] bulldawgden: has joined #RubyOnRails
[04:06:12] bulldawgden: has joined #RubyOnRails
[04:06:30] baweaver: has joined #RubyOnRails
[04:06:52] ruurd: has joined #RubyOnRails
[04:08:22] bruno-: has joined #RubyOnRails
[04:10:35] cmacritchie: has joined #RubyOnRails
[04:12:24] baweaver: has joined #RubyOnRails
[04:12:26] framling: has joined #RubyOnRails
[04:13:18] northfurr: has joined #RubyOnRails
[04:14:59] braincrash: has joined #RubyOnRails
[04:16:16] rromanch_: has joined #RubyOnRails
[04:20:28] sdwrage: has joined #RubyOnRails
[04:21:57] robbyoconnor: has joined #RubyOnRails
[04:22:41] shibabu: has joined #RubyOnRails
[04:23:46] K_r3aPeR: has joined #RubyOnRails
[04:24:22] arup_r: has joined #RubyOnRails
[04:24:50] ruurd: has joined #RubyOnRails
[04:25:04] chipotle: has joined #RubyOnRails
[04:25:30] mghaig: has joined #RubyOnRails
[04:28:37] kp666: has joined #RubyOnRails
[04:28:49] baweaver: has joined #RubyOnRails
[04:29:36] kp666: has joined #RubyOnRails
[04:29:49] exige81: has joined #RubyOnRails
[04:33:34] annlewis: has joined #RubyOnRails
[04:35:12] youngbaks: has joined #RubyOnRails
[04:36:20] gusrub: has joined #RubyOnRails
[04:39:31] mghaig: has joined #RubyOnRails
[04:39:38] simplyianm: has joined #RubyOnRails
[04:41:22] qnotwo: has joined #RubyOnRails
[04:42:17] atzorvas: has joined #RubyOnRails
[04:42:30] atzorvas_: has joined #RubyOnRails
[04:46:53] gusrub: has joined #RubyOnRails
[04:49:37] shinenelson: has joined #RubyOnRails
[04:54:22] rickmasta: has joined #RubyOnRails
[04:56:30] ss_much: has joined #RubyOnRails
[04:56:57] axl_: has joined #RubyOnRails
[04:57:03] djbkd: has joined #RubyOnRails
[04:57:49] dented42: has joined #RubyOnRails
[04:58:30] SteenJobs: has joined #RubyOnRails
[05:08:10] threeminutemonta: has joined #RubyOnRails
[05:09:08] bruno-: has joined #RubyOnRails
[05:10:11] mghaig: has joined #RubyOnRails
[05:12:51] wa_r_ch_i__ld1: has joined #RubyOnRails
[05:14:05] wa_r_ch_i__ld1: anyone remotely authenticate for a remote NTLM site from within Rails? im trying the ruby-ntlm gem, but getting this weird error (SocketError: getaddrinfo: Name or service not known)
[05:14:45] x-light: has joined #RubyOnRails
[05:15:02] Radar: use the right name then.
[05:15:20] Radar: wa_r_ch_i__ld1: You should know by now that we expect code to be shown for any errors that you want help with.
[05:15:23] Radar: No code means no help.
[05:15:33] dkam_: has joined #RubyOnRails
[05:16:15] wa_r_ch_i__ld1: @radar ill attach something, I just don't even know if this gem is on target for what I want
[05:16:25] wa_r_ch_i__ld1: require 'ntlm/http'
[05:16:25] wa_r_ch_i__ld1: http = Net::HTTP.new('www.example.com')
[05:16:26] wa_r_ch_i__ld1: request = Net::HTTP::Get.new('/')
[05:16:26] wa_r_ch_i__ld1: request.ntlm_auth('User', 'Domain', 'Password')
[05:16:26] wa_r_ch_i__ld1: response = http.request(request)
[05:16:56] wa_r_ch_i__ld1: there is this site, I want to login with the user's credentials, thaat way when I render the site in an iframe, they dont get the auth popup
[05:17:40] wa_r_ch_i__ld1: @Aeyrix because sometimes ppl dont feel like opening up a separate site for some reason
[05:18:03] wa_r_ch_i__ld1: and those sites used Microsoft ;)
[05:18:07] arup_r: I am creating some model records using remote: true. and it is working. after action I am rendering a empty create.js.erb file. I need this file although it doesn't have any logic in it, to prevent render partial error. Any way to render the flash messages for valid/invliad case, while I don't have a physical template which has no logic, rather something inline or equivalent ?
[05:18:16] baweaver: wa_r_ch_i__ld1: sometimes people don't feel like reading long code on IRC
[05:18:17] arup_r: https://gist.github.com/aruprakshit/aff3a7f515089ef995fa
[05:18:18] Aeyrix: wa_r_ch_i__ld1: You can't login for a user with basic auth
[05:18:25] baweaver: seems there's an impass there
[05:18:38] wa_r_ch_i__ld1: @Aeyrix its ntlm, i've tried basic auth (even though its risky)
[05:18:48] Aeyrix: You can't do it with NTLM either.
[05:18:57] Aeyrix: You can do it with a form-based auth if you remove CRSF protections.
[05:19:07] arup_r: wa_r_ch_i__ld1: yo!
[05:19:27] wa_r_ch_i__ld1: @Aeyrix when you say "can't" do you mean that literally, or "shouldn't"
[05:19:29] arup_r: wa_r_ch_i__ld1: I never head the term NTLM hehe
[05:19:37] Aeyrix: wa_r_ch_i__ld1: Both.
[05:19:39] wa_r_ch_i__ld1: @arup_r thats a good sign :)
[05:19:57] wa_r_ch_i__ld1: @Aeyrix even with ajax?
[05:20:01] arup_r: hehe.. yes I proved that I am a dumb as usual
[05:20:17] wa_r_ch_i__ld1: @arup_r NTLM = outdated Microsoft security
[05:20:36] pontiki: i'm going buggy with all these @'s
[05:20:42] wa_r_ch_i__ld1: @Aeyrix i tried using this https://github.com/erlandranvinge/ntlm.js/
[05:21:11] wa_r_ch_i__ld1: @Aeyrix but couldnt seem to get it going
[05:21:23] dviola: has joined #RubyOnRails
[05:21:24] Aeyrix: Where is the NTLM server?
[05:21:25] pontiki: has left #RubyOnRails: (""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson")
[05:22:33] wa_r_ch_i__ld1: @Aeyrix something like http://hostname.name.org/posts/index.aspx
[05:22:44] wa_r_ch_i__ld1: so for that ntlm.js i used http://hostname.name.org as domain
[05:22:46] Aeyrix: Do you own the server
[05:22:50] Aeyrix: that you're trying to point
[05:22:53] wa_r_ch_i__ld1: and the full url for url
[05:22:53] Aeyrix: this thing towards
[05:22:59] arup_r: when you guys get some free time.. just give a look what I asked. :D
[05:23:05] wa_r_ch_i__ld1: well not "me" , but I have authority
[05:23:14] wa_r_ch_i__ld1: from the ppl that do
[05:23:26] Aeyrix: tbh you're being way too evasive
[05:23:28] Aeyrix: I can't be bothered
[05:23:37] Aeyrix: Just give the hostnames nobody is gonna DDoS your shit or steal your ideas
[05:24:01] Aeyrix: If it's PII or sensitive data you need a consultant, not #rubyonrails.
[05:24:02] wa_r_ch_i__ld1: @Aeyrix i wouldnt care, theyre not mine
[05:24:13] Aeyrix: So I understand it as
[05:24:14] wa_r_ch_i__ld1: @Aeyrix its actually on a localhost
[05:24:17] Aeyrix: Your site: hostnamea.com
[05:24:21] Aeyrix: Their site: hostnameb.com
[05:24:33] Aeyrix: hostnamea.com has that javascript to do some auth to hostnameb.com, yes?
[05:24:47] Aeyrix: What's hostnameb.com?
[05:24:50] Aeyrix: Like, the actual site.
[05:25:04] wa_r_ch_i__ld1: its only accessible from the server itself, im ssh-ing in
[05:25:22] Aeyrix: You... realise how Javascript works, right?
[05:25:39] Aeyrix: It's client side. Unless the client can access the second site, it won't work.
[05:25:51] Aeyrix: You just said it's local only.
[05:25:52] wa_r_ch_i__ld1: Im embedding it in an iframe and it works
[05:25:58] Maletor: has joined #RubyOnRails
[05:26:05] wa_r_ch_i__ld1: im hosting hostnamea locally too
[05:26:33] wa_r_ch_i__ld1: ive logged in remotely with curl, but obviously that wont transfer to the browser
[05:26:44] wa_r_ch_i__ld1: i even tried saving a cookie from there but nothing comes back
[05:26:45] qejk: has joined #RubyOnRails
[05:27:11] Aeyrix: Yes that's because NTLM works through KeepAlive.
[05:27:17] Aeyrix: You can only do it in the client you're doing it via.
[05:27:26] Aeyrix: hostnameb.com needs those CORS policies set for it to work.
[05:27:33] Aeyrix: The ones listed in ntlm.js that you linked me.
[05:27:44] Aeyrix: Without them, Firefox / Chrome / Vivaldi / whatever browser will just completely ignore you.
[05:28:39] Aeyrix: "Since the IIS isn't built (??) to support CORS, it will react in a most unfortunate way when receiving a preflight OPTION request (HTTP 401). The remedy for this is to use your own module or disable security checks in the browser."
[05:29:00] wa_r_ch_i__ld1: there is no way to autofill the authentication popup right?
[05:29:05] wa_r_ch_i__ld1: i dont see it in the DOM or anything
[05:29:16] Aeyrix: No, as it's a browser component not a DOM component.
[05:29:29] Aeyrix: It's part of why I detest any type of authentication that isn't form-based.
[05:29:58] johnflux: has joined #RubyOnRails
[05:30:30] wa_r_ch_i__ld1: can I just embed the curl request somehow?
[05:30:43] wa_r_ch_i__ld1: like instead of just pasting the curl response, keep it open and dynamic in an iframe?
[05:30:48] Aeyrix: literally what
[05:31:02] Aeyrix: You can embed the iframe then the users can log into the site there
[05:31:09] Aeyrix: but that's kind of awful
[05:31:12] wa_r_ch_i__ld1: yeah thats the part im trying to skip ;)
[05:31:19] Aeyrix: yeah you can't do anything else really
[05:31:28] Aeyrix: you can't login for a user because it's not a form element
[05:31:31] wa_r_ch_i__ld1: besides I guess consuming an entire site with curl
[05:33:40] pawnbox_: has joined #RubyOnRails
[05:34:03] blackmes1: has joined #RubyOnRails
[05:34:13] annlewis: has joined #RubyOnRails
[05:35:32] pawnbox_: has joined #RubyOnRails
[05:35:47] freezeve1: has joined #RubyOnRails
[05:36:24] makenoise: has joined #RubyOnRails
[05:36:24] pawnbox_: has joined #RubyOnRails
[05:38:35] wa_r_ch_i__ld1: @Aeyrix is there anyway I can append the credentials to the url like I would for basic auth? (username:password@url)
[05:38:45] wa_r_ch_i__ld1: even though its unsafe etc.
[05:39:58] Aeyrix: http://blogs.msdn.com/b/chiranth/archive/2013/09/21/ntlm-want-to-know-how-it-works.aspx
[05:39:59] Aeyrix: Doubt it.
[05:41:27] roxtrongo: has joined #RubyOnRails
[05:42:09] roxtrongo: has joined #RubyOnRails
[05:42:32] erbse: has joined #RubyOnRails
[05:43:15] pawnbox_: has joined #RubyOnRails
[05:43:38] DanielN: has joined #RubyOnRails
[05:45:50] ruurd: has joined #RubyOnRails
[05:46:01] wa_r_ch_i__ld1: @Aeyrix can I use capybara at runtime? http://stackoverflow.com/questions/4329985/http-basic-auth-for-capybara
[05:46:13] wa_r_ch_i__ld1: seems like that can fill out the popup
[05:51:25] rgtk: has joined #RubyOnRails
[05:51:33] yfeldblum: has joined #RubyOnRails
[05:57:42] axl_: has joined #RubyOnRails
[05:59:01] blackhuey: has joined #RubyOnRails
[05:59:39] owenjones: has joined #RubyOnRails
[06:00:45] yfeldblum: has joined #RubyOnRails
[06:05:42] mark2: has joined #RubyOnRails
[06:08:10] krz: has joined #RubyOnRails
[06:09:53] bruno-: has joined #RubyOnRails
[06:10:19] lxsameer: has joined #RubyOnRails
[06:12:29] _3by8: has joined #RubyOnRails
[06:13:11] owenjones: has joined #RubyOnRails
[06:14:01] _3by8: Is there some sort of condition that has to be met to be able to use the order method on an ActiveRecord object?
[06:16:21] Ropeney: _3by8, sounds like your having a problem with it?
[06:16:23] A124: has joined #RubyOnRails
[06:17:45] _3by8: Ropeney: figured it out. :desc vs desc
[06:17:56] roxtrongo: has joined #RubyOnRails
[06:18:55] _3by8: Just out of curiousity, how many of you guys and gals have businesses that allow you to work from home doing Rails projects for people?
[06:19:26] yfeldblum: has joined #RubyOnRails
[06:20:23] xardion: has joined #RubyOnRails
[06:22:01] arBmind: has joined #RubyOnRails
[06:22:16] VeryBewitching: Not Rails projects at this time, but working from home yes.
[06:22:16] owenjones: has joined #RubyOnRails
[06:23:31] chrissonar: has joined #RubyOnRails
[06:25:12] mghaig: has joined #RubyOnRails
[06:26:43] _3by8: What do you do?
[06:26:57] owenjones: has joined #RubyOnRails
[06:26:58] annlewis: has joined #RubyOnRails
[06:28:22] dhjondoh: has joined #RubyOnRails
[06:29:05] krz: has joined #RubyOnRails
[06:29:32] mhib: has joined #RubyOnRails
[06:30:04] DoubleMalt: has joined #RubyOnRails
[06:34:50] raunicolae: has joined #RubyOnRails
[06:35:32] yfeldblum: has joined #RubyOnRails
[06:35:54] VeryBewitching: Analysis, which requires software to be developed.
[06:36:39] VeryBewitching: Just not in Ruby at this time ;)
[06:37:19] raunicolae: has left #RubyOnRails: ()
[06:37:53] simplyianm: has joined #RubyOnRails
[06:38:02] sinkensabe: has joined #RubyOnRails
[06:39:30] skyjumper: _3by8: there are lots of remote rails jobs too
[06:39:49] _3by8: VeryBewitching: system design?
[06:39:58] K_r3aPeR: has joined #RubyOnRails
[06:40:00] _3by8: VeryBewitching: so business stuff?
[06:40:20] VeryBewitching: _3by8: Strictly speaking, I cannot discuss it, I can confirm I write code, not in Ruby
[06:40:31] _3by8: VeryBewitching: mkay!
[06:40:52] SteenJobs: has joined #RubyOnRails
[06:42:30] pawnbox_: has joined #RubyOnRails
[06:43:56] crystalneth: has joined #RubyOnRails
[06:46:52] dalpo: has joined #RubyOnRails
[06:48:41] jas02: has joined #RubyOnRails
[06:50:28] aetherion: has joined #RubyOnRails
[06:50:50] stannard: has joined #RubyOnRails
[06:52:04] yardenbar: has joined #RubyOnRails
[06:55:21] roxtrongo: has joined #RubyOnRails
[06:57:46] shibabu: has joined #RubyOnRails
[06:58:09] aetherion: Hi everyone
[06:58:47] axl_: has joined #RubyOnRails
[06:59:29] trosborn: has joined #RubyOnRails
[07:03:21] ruurd: has joined #RubyOnRails
[07:10:05] sinkensabe: has joined #RubyOnRails
[07:10:52] aganov: has joined #RubyOnRails
[07:13:15] helpa-bot: has joined #RubyOnRails
[07:15:15] helpa-bot: has joined #RubyOnRails
[07:15:39] Puffball: has joined #RubyOnRails
[07:15:42] rvanlieshout: has joined #RubyOnRails
[07:15:42] pwnd_nsfw: has joined #RubyOnRails
[07:16:48] nygrenh: has joined #RubyOnRails
[07:17:03] llakey: has joined #RubyOnRails
[07:17:16] helpa: has joined #RubyOnRails
[07:17:33] tw1sted: has joined #RubyOnRails
[07:18:01] arup_r: Using sequence of Factorygirls, when still then getting email validation errors? https://gist.github.com/aruprakshit/8a8a1627cc9b0e988576
[07:18:44] baweaver: has joined #RubyOnRails
[07:18:47] arup_r: s/when/why
[07:19:16] AzaToth: has joined #RubyOnRails
[07:19:17] segy: has joined #RubyOnRails
[07:19:25] LudicrousMango: has joined #RubyOnRails
[07:19:47] Radar: has joined #RubyOnRails
[07:20:03] lemur: has joined #RubyOnRails
[07:20:33] Palsson_: has joined #RubyOnRails
[07:21:34] Brando753: has joined #RubyOnRails
[07:22:10] roxtrongo: has joined #RubyOnRails
[07:22:13] Pazician: has joined #RubyOnRails
[07:22:40] bmalum: has joined #RubyOnRails
[07:27:48] owenjones: has joined #RubyOnRails
[07:28:22] p1k: has joined #RubyOnRails
[07:28:55] p1k: so a {select clause} in a has_many for an AR model does not work with includes blocks :o
[07:29:46] x-light: has joined #RubyOnRails
[07:29:59] simkessy: Hey, I have around 20 javascript files for my application and the majority use, "jquery.ready" I've read that that's bad practice but I'm not sure what to do to clean that up. Any suggestions?
[07:30:52] simplyianm: has joined #RubyOnRails
[07:30:55] sdwrage: has joined #RubyOnRails
[07:32:07] rvanlieshout: simplyianm: and what info was given with that 'is bad practice'?
[07:33:09] rvanlieshout: p1k: if i understand your question: rails would prefer to prevent a LEFT JOIN, cause it's slow. an includes would result in a separate query for the included records. You'll need to either use an INNER JOIN (which is fast, but works differently then a LEFT JOIN) or tell rails to explicitly use a left join
[07:33:57] cfjk: has joined #RubyOnRails
[07:34:26] annlewis: has joined #RubyOnRails
[07:34:50] blackmes1: has joined #RubyOnRails
[07:34:50] luciusgone: has joined #RubyOnRails
[07:35:57] dionysus69: has joined #RubyOnRails
[07:36:51] erbse: has joined #RubyOnRails
[07:36:59] p1k: rvanlieshout: i'm saying if I have a has_many :foos, -> {select foo.quantity as foo_quantity}, through: foos
[07:37:08] p1k: It doesn't seem to let me use it in a .includes block
[07:37:33] rvanlieshout: 1) that syntax is invalid
[07:37:35] helpa: 2: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[07:37:41] rvanlieshout: 3) why would you want to do that?
[07:40:14] p1k: on Bar < AR::Base
[07:40:16] p1k: has_many :foos, -> { select "bars.*, foos.quantity as foos_quantity" }, through: :foos, source: :bars
[07:40:33] p1k: is valid on a single entry, but breaks when used on a relation
[07:41:08] helpa: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[07:41:13] privacyid01: has joined #RubyOnRails
[07:42:49] arBmind: has joined #RubyOnRails
[07:42:50] p1k: :S it's just faster to type
[07:42:52] rvanlieshout: it's also just weird to have such a statement
[07:44:37] privacyid01: anyone know the best approach to create a backend rails and frontend android apps? I think about using json to communicate, but I still not sure how to handle the login
[07:44:58] comrad: has joined #RubyOnRails
[07:45:18] rvanlieshout: privacyid01: based on 'the login' i assumed it's not just a public api
[07:45:32] rvanlieshout: you might want to google 'rails api session'
[07:45:37] rvanlieshout: there are many ways in handling that
[07:46:03] privacyid01: the user can login, oh ok thanks for that keyword,
[07:47:31] neanderslob: has joined #RubyOnRails
[07:48:37] simplyianm: has joined #RubyOnRails
[07:50:01] zpe: has joined #RubyOnRails
[07:50:21] roxtrongo: has joined #RubyOnRails
[07:50:46] dionysus69: how do I optimize this? scope :category, -> (category) {where("category like ?", "#{category}%")} what can I use instead of "like"?
[07:51:54] luciusgone: has joined #RubyOnRails
[07:51:56] ruurd: has joined #RubyOnRails
[07:51:58] adac: has joined #RubyOnRails
[07:52:32] rvanlieshout: dionysus69: that depends on what should happen
[07:52:48] rvanlieshout: and why does it need optimization? did you see it's slow?
[07:53:16] solars: has joined #RubyOnRails
[07:54:24] dionysus69: I just know the comparing texts are equal to each other so instead of "like" I should use equating comparison
[07:54:32] dionysus69: I just dont know sql that well :D
[07:54:33] lubekpl: has joined #RubyOnRails
[07:55:10] moeabdol: has joined #RubyOnRails
[07:57:04] ur5us: has joined #RubyOnRails
[07:58:41] rvanlieshout: it depends on what column type it is and what db engine you're using
[07:59:38] axl_: has joined #RubyOnRails
[07:59:58] User458764: has joined #RubyOnRails
[08:00:15] rgtk: has joined #RubyOnRails
[08:01:25] dionysus69: rvanlieshout: postgres and type is string
[08:01:37] rvanlieshout: and when do you want it to match?
[08:04:18] akash: has joined #RubyOnRails
[08:04:59] akash: has left #RubyOnRails: ()
[08:05:57] thecyclone: has joined #RubyOnRails
[08:06:09] ibouvousaime: has joined #RubyOnRails
[08:06:13] dionysus69: its a select box and this scope filters based on which value is selected. so if I select category vodka, only vodka values in category column should be returned
[08:06:28] dionysus69: this works its just I dont think like comparison is good enough
[08:06:30] teclator: has joined #RubyOnRails
[08:08:11] dragonkh: has joined #RubyOnRails
[08:10:26] smoitra: has joined #RubyOnRails
[08:11:26] darutoko: has joined #RubyOnRails
[08:11:46] smoitra: has joined #RubyOnRails
[08:13:00] mghaig: has joined #RubyOnRails
[08:14:54] Spami: has joined #RubyOnRails
[08:18:48] artto: has joined #RubyOnRails
[08:19:12] Pupeno: has joined #RubyOnRails
[08:21:12] baweaver: has joined #RubyOnRails
[08:25:21] Pazician_: has joined #RubyOnRails
[08:28:17] quazimodo: has joined #RubyOnRails
[08:28:41] owenjones: has joined #RubyOnRails
[08:29:20] sadaf2605: has joined #RubyOnRails
[08:29:29] MartinElvar: has joined #RubyOnRails
[08:29:31] krz: has joined #RubyOnRails
[08:29:57] Kedare: has joined #RubyOnRails
[08:30:36] A124: has joined #RubyOnRails
[08:32:06] MartinElvar: has joined #RubyOnRails
[08:34:18] Guest85793: has left #RubyOnRails: ()
[08:34:31] Radar: has joined #RubyOnRails
[08:35:31] blackmes1: has joined #RubyOnRails
[08:35:39] annlewis: has joined #RubyOnRails
[08:36:53] czerasz: has joined #RubyOnRails
[08:42:14] marr: has joined #RubyOnRails
[08:42:26] SteenJobs: has joined #RubyOnRails
[08:45:10] camilasan: has joined #RubyOnRails
[08:46:36] bruno-: has joined #RubyOnRails
[08:46:41] toomus: has joined #RubyOnRails
[08:49:16] Pazician: has joined #RubyOnRails
[08:49:56] foucist: has joined #RubyOnRails
[08:50:18] Radar: hi toomus
[08:51:01] p1k: has joined #RubyOnRails
[08:51:44] vigintas: has joined #RubyOnRails
[08:52:07] vigintas: has joined #RubyOnRails
[08:53:50] SteenJobs: has joined #RubyOnRails
[08:56:00] toomus: My pastie: http://pastie.org/10552106
[08:56:40] SalexW: has joined #RubyOnRails
[08:56:45] toomus: How to preload polymorphic associations with nested associations?
[08:56:52] Radar: You can't.
[08:56:59] toomus: Of course last line doesn't work
[08:57:57] toomus: Radar: without eager load I have N+1 query problem
[08:58:03] Radar: toomus: yes.
[08:58:20] Radar: how is activerecord supposed to know what tables to load trackable objects from?
[08:58:27] shibabu: has joined #RubyOnRails
[08:59:26] rvanlieshout: and even include a second level relationship
[08:59:32] rvanlieshout: on something unknown
[08:59:42] toomus: Radar: AR know how to load polymorphic associations
[08:59:55] rvanlieshout: toomus: but only on a per record base
[08:59:58] Radar: toomus: Yes because it knows what the type and id are.
[09:00:13] toomus: The problem is in second level
[09:00:19] Pazician_: has joined #RubyOnRails
[09:00:21] axl_: has joined #RubyOnRails
[09:00:35] mikecmpbll: has joined #RubyOnRails
[09:00:43] toomus: One model has 'author', second has 'founder'
[09:00:45] rvanlieshout: toomus: you'll have to write the join yourself. but only if we know what you're trying to do
[09:01:38] rvanlieshout: and it won't be better then n+1 queries per se
[09:01:47] User458764: has joined #RubyOnRails
[09:01:56] ruurd: has joined #RubyOnRails
[09:01:57] pramsky: has joined #RubyOnRails
[09:02:53] nocontrol: has joined #RubyOnRails
[09:02:59] Zackio: has joined #RubyOnRails
[09:03:07] tlarevo: has joined #RubyOnRails
[09:03:34] tlarevo: has left #RubyOnRails: ()
[09:03:42] lubekpl: has joined #RubyOnRails
[09:04:46] sadaf2606: has joined #RubyOnRails
[09:05:04] thecyclone: has joined #RubyOnRails
[09:05:20] jsrn_: has joined #RubyOnRails
[09:07:18] arup_r: In my view i have the login field id as "user_email", but why then Capybara don't find it. I have a line of code for the same like: fill_in 'user_email', with: user.email
[09:07:26] arup_r: is it wrong ?
[09:07:34] Pazician: has joined #RubyOnRails
[09:07:54] rvanlieshout: arup_r: use save_page from capybara to see what page capybara is using when it's trying to find that field
[09:08:32] arup_r: ok where it will save the page ? Very new here :)
[09:08:45] arup_r: ok.. let me try
[09:08:49] blackmes1: has joined #RubyOnRails
[09:09:14] teclator: has joined #RubyOnRails
[09:12:06] arup_r: hume page is different it says I have no supported browser.. hehe.. Now I am in trouble. Let me see what I can do..
[09:12:08] artto: has joined #RubyOnRails
[09:12:34] bonemind: has joined #RubyOnRails
[09:12:40] rvanlieshout: so that's why capybara can't find that element :)
[09:12:50] wkoszek: ACTION has a sad moment; instead of 'gci' typed 'gco', which in his vocabulary is "git checkout"
[09:13:37] rvanlieshout: wkoszek: and what would gci be? :)
[09:13:51] wkoszek: rvanlieshout: git commit
[09:14:02] nfk|laptop: has joined #RubyOnRails
[09:14:06] arup_r: rvanlieshout: I am seeing this: https://github.com/jnicklas/capybara#drivers I would like to run headless broswer. webkit comes as default JS driver with Capybara
[09:14:25] rvanlieshout: arup_r: checkout the headless gem
[09:14:37] Cork: is there a way to redefine a resource #show routes? (so they can have extra values after the :id)
[09:15:11] rvanlieshout: Cork: something wrong with ?foo=bar&baz=2
[09:15:21] goldbug: has joined #RubyOnRails
[09:15:27] Cork: no downloads/:id/:file_name
[09:15:52] rvanlieshout: oh right. remove the show route from the resources command
[09:15:55] rvanlieshout: and define one yourself
[09:16:11] Cork: hmm, let me try that again
[09:16:19] sevenseacat: has joined #RubyOnRails
[09:17:10] wkoszek: ACTION is having his 3hrs of coding saved by copy & pasting from iterm history
[09:17:38] Cork: ah, ya that works
[09:17:40] Cork: rvanlieshout: thx
[09:17:57] Ergo: has joined #RubyOnRails
[09:18:03] scmx: has joined #RubyOnRails
[09:18:08] dionysus69: how do I keep drop down selected after submition ? :\
[09:18:36] Cork: dionysus69: should work out of the box as long as your using the model to construct the form
[09:20:05] dionysus69: Cork: I am using scope :\ with ransack
[09:20:45] Cork: ah, might be something with ransack then, never used it
[09:21:51] goldbug: This little bit of CoffeeScript is throwing the ReferenceError 'update_language is not defined'. How come? It looks pretty defined to me. https://gist.github.com/classicgoldbug/fd7fb964d9e3be8eb8ec
[09:21:52] rubyonrailed: has joined #RubyOnRails
[09:23:07] baweaver: has joined #RubyOnRails
[09:23:20] pawnbox_: has joined #RubyOnRails
[09:23:45] johnflux: has joined #RubyOnRails
[09:24:41] solars: does a database pool size > 5 (default) make sense in rails?
[09:24:48] solars: I think not because of single threading, right
[09:25:26] Pazician: has joined #RubyOnRails
[09:26:16] Pazician: has joined #RubyOnRails
[09:27:22] goldbug: Ah, found the problem. Eeeeexcellent.
[09:29:19] dionysus69: options_for_select(category) this can take second argument, and after submittion that selected value will persist, I just don't get how can I get value from params in a view, is it possible?
[09:30:24] elaptics: dionysus69: use the params hash - it's available in the view
[09:30:56] foucist: has joined #RubyOnRails
[09:31:33] htmldrum: has joined #RubyOnRails
[09:32:44] AzaToth: has joined #RubyOnRails
[09:34:01] Megamos: has joined #RubyOnRails
[09:36:27] annlewis: has joined #RubyOnRails
[09:36:28] trosborn: has joined #RubyOnRails
[09:38:35] sdwrage: has joined #RubyOnRails
[09:39:02] njero: has joined #RubyOnRails
[09:39:03] dionysus69: elaptics: ok that was a big discovery for me :D, I am still sometimes confused on what is available where in an app as a whole ))
[09:40:14] alyyy: has joined #RubyOnRails
[09:40:29] pawnbox_: has joined #RubyOnRails
[09:41:10] kerunaru: has joined #RubyOnRails
[09:42:35] ibouvousaime: has joined #RubyOnRails
[09:43:42] roxtrongo: has joined #RubyOnRails
[09:43:55] User458764: has joined #RubyOnRails
[09:50:50] pawnbox_: has joined #RubyOnRails
[09:52:24] baash05: has joined #RubyOnRails
[09:53:12] baash05: Hey all.. i"m trying to set a value only if it used to be nil
[09:53:23] Cervajz: has joined #RubyOnRails
[09:53:55] baash05: Oh well I just figured out how to do it :)
[09:54:07] owenjones: has joined #RubyOnRails
[09:55:15] Cervajz_: has joined #RubyOnRails
[09:55:23] pawnbox_: has joined #RubyOnRails
[09:55:51] goldbug: Glad we could help, baash05 (;
[09:56:20] dionysus69: can anyone help me with a little data modeling quest?
[09:57:15] goldbug: Can't hurt to try.
[09:57:31] TPBallbag: has joined #RubyOnRails
[09:58:02] rodfersou: has joined #RubyOnRails
[09:58:27] nickjj: has joined #RubyOnRails
[09:58:50] sdwrage: has joined #RubyOnRails
[09:59:25] dionysus69: well I have a single model with around 10 fields. Now I want to add a product which is on sale, I want to avoid adding additional boolean field to the already bloated model saying true on sale false on sale with a new price column as well. so if I create a new model, how can I "get" few rows of old standard model and add some info to it.
[09:59:43] dionysus69: maybe my approach is wrong altogether
[09:59:44] Gargron: has joined #RubyOnRails
[09:59:49] rvanlieshout: dionysus69: why is adding a boolean an issue?
[10:00:22] rvanlieshout: i see a lot of people here using stuff like STI or several tables without knowing the impact it has on the database it self
[10:00:54] dionysus69: well you see I have over 500 products and only 5 ish will be ever on sale, would be wasted space to add 495 empty params
[10:01:07] axl_: has joined #RubyOnRails
[10:01:10] rvanlieshout: so you've compared the space a boolean costs
[10:01:15] dionysus69: what is sti?
[10:01:16] rvanlieshout: against a separate table + the queries needed?
[10:01:17] Spami: has joined #RubyOnRails
[10:01:26] rvanlieshout: some buzz word you're most likely never going to need
[10:02:03] bruno-: has joined #RubyOnRails
[10:02:03] dionysus69: hmm along with the boolean field though there needs to be "new price" field as well with another 495 fields empty
[10:02:11] ddv: people tend to overengineer
[10:02:15] dionysus69: still worth using same model?
[10:02:16] arup_r: I am using headless browser. when running feature, getting a HTML page ( saved page) which is telling about browser versions. Not the my actual login page. https://gist.github.com/aruprakshit/097ec81ab14941a4be88
[10:02:26] arup_r: where am I wrong ?
[10:02:26] ddv: oh its arup_r again
[10:03:08] njero: has joined #RubyOnRails
[10:03:10] arup_r: I am now 2 hours on this.. no progress :(
[10:08:18] rvanlieshout: dionysus69: most fields don't really consume that much space if null
[10:08:21] oded: has joined #RubyOnRails
[10:08:51] rvanlieshout: arup_r: does your app has such a browser version page? cause it gets redirected to there somehow
[10:09:01] rvanlieshout: you could tail -f log/test.log to see the requests sent to the test browser instance
[10:09:12] arup_r: ok.. checking
[10:10:39] sameerynho: has joined #RubyOnRails
[10:11:37] pawnbox_: has joined #RubyOnRails
[10:12:14] pawnbox_: has joined #RubyOnRails
[10:12:15] baweaver: has joined #RubyOnRails
[10:13:31] arup_r: rvanlieshout: hum. Didn't came to my mind I can see test log like that. it is redirecting, but why it is redirecting. If I open it in the browser, it never redirects: https://gist.github.com/aruprakshit/097ec81ab14941a4be88
[10:13:39] gregf_: has joined #RubyOnRails
[10:13:42] dionysus69: rvanlieshout: ok thanks will stick with single model then :) I havent really worked with multiple models yet so I wanted to push myself there if needed )
[10:13:51] rvanlieshout: arup_r: cause of the user agent
[10:14:10] arup_r: oh. so what I need to do ?
[10:14:26] rvanlieshout: arup_r: fix your app.. it's your app that is redirecting users with unsupported browsers away
[10:15:31] arup_r: hmm. That part someone else coded, that is why I didn't know.. lol
[10:15:32] DoubleMalt: has joined #RubyOnRails
[10:15:55] lubekpl: has joined #RubyOnRails
[10:16:00] ruurd: has joined #RubyOnRails
[10:16:27] otnirebal: has left #RubyOnRails: ()
[10:18:28] goldbug: I've got a person.coffee in assets/javascript and one function calls this: $.ajax 'update_name_fields'. But getting this error: ActionController::RoutingError (No route matches [GET] "/people/3/update_name_fields")
[10:18:49] goldbug: I do indeed have an update_name_fields.coffee in views/person/
[10:18:54] goldbug: views/people rather
[10:19:31] goldbug: And I have added this to routes.rb: get 'people/update_name_fields', as: 'update_name_fields'
[10:20:00] rvanlieshout: goldbug: 'people/update_name_fields' != 'people/:id/update_name_fields'
[10:20:22] goldbug: That's what I was thinking. So, how to correctly reference?
[10:20:24] rvanlieshout: just add a get :update_name_fields, on: :member to the resource
[10:20:47] nfk|laptop: has joined #RubyOnRails
[10:21:23] goldbug: rvanlieshout: In routes.rb?
[10:22:38] goldbug: And - sorry to be dense - I should be adding it to the line that says 'resources :people, :periods' somehow?
[10:22:47] Peg-leg: has joined #RubyOnRails
[10:23:48] goldbug: Ah, think I see how it's done.
[10:23:54] baweaver: has joined #RubyOnRails
[10:24:19] Axsuul: has joined #RubyOnRails
[10:24:19] njero: has joined #RubyOnRails
[10:24:19] rvanlieshout: you've found it? was away for a sec
[10:24:26] apotry: has joined #RubyOnRails
[10:24:53] goldbug: Bingo. Yep, I RTFMed.
[10:24:56] dionysus69: is migration name doing anything really? or its just descriptive?
[10:24:59] foucist: has joined #RubyOnRails
[10:25:49] dionysus69: theres so much magic in ruby that i am confused on what has purpose and what not :D
[10:26:03] rvanlieshout: that's why we are here :)
[10:27:57] exadeci: has joined #RubyOnRails
[10:28:11] lxsameer_: has joined #RubyOnRails
[10:29:30] Megamos: Having the common problem with Rails + angularJS routing of page refresh and typing url straight in browser. I've tried for two days now. Found fixes but can't get any of them to work. Here is code after last tried fix, https://gist.github.com/megamos/655f3547e34f5eb617a1
[10:30:36] Megamos: What ever I do, Rails decides to take care of the routing instead of passing it over to angular.
[10:34:06] beauby: has joined #RubyOnRails
[10:34:53] rvanlieshout: Megamos: what does 'passing it over to angular' mean?
[10:35:08] rvanlieshout: rails runs at the server, angular at the client
[10:35:21] rvanlieshout: so rails will only take care of things that the browser actually sends to the server
[10:35:46] Cervajz: has joined #RubyOnRails
[10:36:52] Cork: is it possible to define for a model map to a route?
[10:37:04] rvanlieshout: models have no relationship with routes
[10:37:12] annlewis: has joined #RubyOnRails
[10:37:18] Cork: currently i use url_for([o.parent_model, o])
[10:37:40] Cork: it would be nice if one could do url_for(o) and o knew how to give url_for a correct array
[10:37:58] Megamos: Well, all routes go through rails yes? It passes it through application#index that then goes to ui-view(angular) that with it routes shows the right template. Correct?
[10:38:17] rvanlieshout: Cork: [o.parent_model, o] is not the same as [o]
[10:38:27] rvanlieshout: and it's not common to namespace the show-action
[10:38:39] Cork: rvanlieshout: ya, i know
[10:39:00] Cork: my point was can the model handle this so you don't have to define it every time you want to generate a link from it?
[10:39:19] Cork: i'm not saying this should be automatic
[10:40:09] rvanlieshout: cause the model world doesn't know about routing
[10:40:38] Megamos: rvanlieshout: Not talking about the model, but controller. When I click a link href="/companies" angular shows propper template. Then on refresh, as you can see on the rails server code, one parameter is missing. So rails tries to route it to it's own controller instead of sending so angular can do it.
[10:40:39] Cork: it isn't about routing...
[10:40:42] Cork: ah, forget it...
[10:40:58] Cork: not really no
[10:40:58] rvanlieshout: you want your model to change the way the route is determined
[10:41:15] rvanlieshout: Megamos: rails doesn't send anything to angular
[10:41:18] rvanlieshout: that's not how this game works
[10:41:18] Cork: no, i wanted the model to contain the info, not exactly control it
[10:41:33] Cork: maening if a model is a child model of another model and it knows the relation
[10:41:46] Cork: it could just provide it instead of you having to explicitly do it every time
[10:41:48] rvanlieshout: Cork: you might want to look at decorators for that
[10:41:59] Megamos: :) ok, guess I need to find some more articles to read.
[10:42:11] ruurd: has joined #RubyOnRails
[10:42:31] oded: has joined #RubyOnRails
[10:43:52] Megamos: rvanlieshout: "The route will redirect any unmatched requests (remember routes are matched in the order the are defined) to our site index, but we'll attach the path that was requested onto the URL. With the old path there we can handle it in our AngularJS app."
[10:45:04] Megamos: rvanlieshout: So the fixes I've read kinda makes me belive what I've said.
[10:47:05] bruno-: has joined #RubyOnRails
[10:48:09] Detch: has joined #RubyOnRails
[10:49:37] johnflux_: has joined #RubyOnRails
[10:51:18] pawnbox_: has joined #RubyOnRails
[10:51:37] rvanlieshout: Megamos: but not if you let your browser request that url directly
[10:52:05] artto: has joined #RubyOnRails
[10:52:19] rvanlieshout: and to prevent that angular uses a #
[10:52:32] rvanlieshout: so it's not /companies
[10:52:34] rvanlieshout: it's #/companies
[10:52:49] user1138_: has joined #RubyOnRails
[10:53:01] ldnunes: has joined #RubyOnRails
[10:53:37] Megamos: rvanlieshout: ? with html5mode set to true one does not need to #, correct?
[10:54:02] Megamos: rvanlieshout: this is the short article/fix I'm reading. http://omarriott.com/aux/angularjs-html5-routing-rails/
[10:54:04] roxtrongo: has joined #RubyOnRails
[10:54:23] trosborn: has joined #RubyOnRails
[10:54:48] rvanlieshout: but then you'll need an other method to prevent your browser from requesting /companies at the rails server
[10:54:57] rvanlieshout: cause it's not rails to blame to answer when somebody requests /companies
[10:55:07] owenjones: has joined #RubyOnRails
[10:55:22] mghaig: has joined #RubyOnRails
[10:55:31] mikecmpbll: i blame everything on rails
[10:56:10] waka: has joined #RubyOnRails
[10:56:32] lacrymology: has joined #RubyOnRails
[10:56:59] AzaToth: has joined #RubyOnRails
[10:57:09] annlewis: has joined #RubyOnRails
[10:57:32] SalexW: has joined #RubyOnRails
[10:58:15] Megamos: rvanlieshout: yes I thought the fix I have did this. And the fix before this one.... but nothing works. I hoped the code was just a bit "outdated" and someone here had a rails + angular app running and knew my problem.
[10:58:40] rvanlieshout: it's not related to rails
[10:59:14] rvanlieshout: i think you'll need your web server to serve the angulag app when accessing /companies, but what would break access to your rails backend
[10:59:39] ruurd: has joined #RubyOnRails
[10:59:41] waka: has joined #RubyOnRails
[11:00:49] Megamos: rvanlieshout: yes sorry, I guess I've been talking about rails when it's the webserver. The routing file in rails.... is where to fix is needed.
[11:01:03] shibabu: has joined #RubyOnRails
[11:01:07] rvanlieshout: and it would be easier to find using google if you leave out the rails part i guess :)
[11:01:28] rvanlieshout: but i don't think this is ever going to work, unless you move your rails part to an api subdomain or path
[11:01:45] axl_: has joined #RubyOnRails
[11:02:07] Megamos: I've found several fixes for this, and some that have the same problem but not getting answered on stackoverflow.
[11:02:32] rvanlieshout: and what's wrong with #/companies?
[11:03:09] Megamos: Well, some ppl have got it to work it seems like. Yes I almost ripped out my angular app from rails when I saw many doing it like that. Having the two apps running seperatly.
[11:03:41] rvanlieshout: it will work if you serve your angular app on /companies
[11:03:47] rvanlieshout: and use a different backend url for your rails app
[11:05:11] Megamos: Well it's not just that one route. It's when ever I refresh if not on root url.
[11:05:29] twilling: has joined #RubyOnRails
[11:05:37] rvanlieshout: so configure your web server to always serve your angular app, and move your rails backend to a subdomain
[11:07:41] Megamos: rvanlieshout: Yes, I guess it's time to go for that. Was hoping not to have to make big changes as I've seen/read about ppl solving this while still just having one domain (angular app inside the rails app)
[11:09:16] Megamos: rvanlieshout: Thanks for helping mr. Got some clarity at least.
[11:11:27] YahooAnswersFTW: has joined #RubyOnRails
[11:12:49] noodman: has joined #RubyOnRails
[11:13:00] moeabdol: has joined #RubyOnRails
[11:13:58] ibouvousaime: has joined #RubyOnRails
[11:14:11] YahooAnswersFTW: Could anyone help me out with a problem I've having with accepts_nested_attributes_for and 'reject_if'?
[11:15:26] TheMonster: yahooanswersftw: you can say the problem without asking that :)
[11:15:32] pawnbox_: has joined #RubyOnRails
[11:15:33] YahooAnswersFTW: http://pastebin.com/ExnydQm0
[11:16:20] YahooAnswersFTW: here... http://pastie.org/10552321
[11:16:25] YahooAnswersFTW: So the problem is
[11:16:37] YahooAnswersFTW: it's letting blank records through when I save the parent
[11:17:04] MasterNayru: has joined #RubyOnRails
[11:17:09] YahooAnswersFTW: TheMonster - I was working up to that.
[11:19:16] blackmes1: has joined #RubyOnRails
[11:19:20] stamina: has joined #RubyOnRails
[11:19:30] dalpo: has joined #RubyOnRails
[11:19:33] waka: has joined #RubyOnRails
[11:19:36] TheMonster: yahooanswersftw: may be you should replace kind with kid ?
[11:20:25] rickmasta: has joined #RubyOnRails
[11:21:53] YahooAnswersFTW: http://guides.rubyonrails.org/form_helpers.html
[11:21:56] YahooAnswersFTW: 9.5 Preventing Empty Records
[11:21:59] n1ck7: has joined #RubyOnRails
[11:22:08] YahooAnswersFTW: {|attributes| attributes['kind'].blank?}
[11:22:16] YahooAnswersFTW: Just following the docs
[11:23:11] htmldrum: has joined #RubyOnRails
[11:23:23] TheMonster: oh ok I'm sorry... may be you should wait for someone more experienced
[11:23:36] YahooAnswersFTW: But no, that didn't help. I tried it anyway.
[11:23:43] TheMonster: I thought it was a typo sorry
[11:23:56] rvanlieshout: yahooanswersftw: and add the request log to the gist
[11:24:37] baweaver: has joined #RubyOnRails
[11:24:46] srinidhi: has joined #RubyOnRails
[11:26:10] YahooAnswersFTW: Here's the post request: http://pastie.org/private/ygohwob2sowv5dtfewv9va
[11:26:15] TheMonster: actually... After reading the link you linked to... kind is specific to the class in the guide... You should only use it if kind is an attribute of your class
[11:26:18] waka: has joined #RubyOnRails
[11:26:40] mices: if i create a users table with just an email field, then when i run `rails generate devise users' and rake db:migrate, devise complains duplicate column creating email, so what's the point of creating the users table myself, do i have to? what fields should i create it with to leave room for devise to add email field
[11:26:46] pawnbox_: has joined #RubyOnRails
[11:27:34] TheMonster: so replace it with some attribute in relatives and try
[11:27:39] rvanlieshout: yahooanswersftw: the params show {"kid_id"=>"", "relationship"=>"", "_destroy"=>"0"}, that doesn't include a['kind']
[11:27:50] rvanlieshout: maybe raise a.inspect in that lambda to see what data you have there
[11:27:53] rvanlieshout: now time for lunch
[11:29:34] foucist: has joined #RubyOnRails
[11:30:51] arup_r: logger.info and puts doesn't print anything in the test.log file. What should I use? I want to print something in the rails test log to debug it
[11:32:33] ruurd: has joined #RubyOnRails
[11:32:54] MartinElvar: has joined #RubyOnRails
[11:33:59] rhizome: logger.debug
[11:34:31] rhizome: might have to use Rails.logger.debug in test
[11:35:50] arup_r: logger.debug didn't .. let m try
[11:36:14] ibouvousaime: has joined #RubyOnRails
[11:36:40] arup_r: worked Rails.logger
[11:37:05] arup_r: What a inconsistency ... :p
[11:37:13] YahooAnswersFTW: rvanlieshout - did that, got what you'd expect. kid_id, relationship, _destroy.
[11:37:24] YahooAnswersFTW: but this still doesn't work when I use:
[11:37:34] YahooAnswersFTW: reject_if: :all_blank
[11:37:49] YahooAnswersFTW: :reject_if => lambda { |a| a['kid_id'].blank? },
[11:37:50] Palsson_: has joined #RubyOnRails
[11:38:00] rgtk: has joined #RubyOnRails
[11:38:40] quazimodo: has joined #RubyOnRails
[11:38:51] Pazician: has joined #RubyOnRails
[11:39:35] antgel: has joined #RubyOnRails
[11:41:45] rikkipitt: has joined #RubyOnRails
[11:42:04] YahooAnswersFTW: Yeah I don't get it... I can even run this line in the debug window and get 'true'....
[11:42:10] YahooAnswersFTW: a['kid_id'].blank?
[11:42:37] YahooAnswersFTW: So then, why isn't :reject_if => lambda { |a| raise a.inspect }, rejecting?
[11:43:11] YahooAnswersFTW: :reject_if => lambda { |a| a['kid_id'].blank? },
[11:45:54] Shapeshi1ter: has joined #RubyOnRails
[11:47:26] YahooAnswersFTW: TheMonster - still not working.
[11:47:37] Shapeshi1ter: Hi. I'm reading on the topic of migrations, and it says that I could generate a migration AddPartNumberToProducts - which will modify the "Product" table, right? Without an s. So what if I want to modify the "Address" table. Do I have to call the migration AddGenderToAddresss or AddGenderToAddress or (properly) AddGenderToAddresses?
[11:48:51] youngbaks: has joined #RubyOnRails
[11:49:00] MasterNayru: has joined #RubyOnRails
[11:51:04] Pazician: has joined #RubyOnRails
[11:51:07] TheMonster: no clue sorry yahooanswersftw
[11:51:15] YahooAnswersFTW: TheMonster: k, nvm
[11:51:35] YahooAnswersFTW: Shapeshi1ter: in your first example
[11:51:47] YahooAnswersFTW: Shapeshi1ter: products table
[11:51:54] YahooAnswersFTW: Shapeshi1ter: Product class
[11:52:21] YahooAnswersFTW: Shapeshifter: tables are plural. Models singular
[11:52:42] YahooAnswersFTW: Shapeshifter: You should have an addresses table
[11:52:52] shapeshifter: yahooanswersftw: I see. But how does rails know the plural of all words?
[11:53:10] defsdoor: Shapeshifter, inflactions
[11:53:12] YahooAnswersFTW: Shapeshifter: Evil, dark magic. Or.... instrospection.
[11:53:19] defsdoor: inflections even
[11:53:24] YahooAnswersFTW: Shapeshifter: you can even override it if you want to
[11:53:39] shapeshifter: defsdoor: I see, pretty cool (if it works). Thanks.
[11:53:42] YahooAnswersFTW: I suggest reading through the rails guides
[11:53:47] defsdoor: Shapeshifter, there are some base rules for pluralisation
[11:53:48] darrencauthon: has joined #RubyOnRails
[11:53:56] shapeshifter: defsdoor: yeah I found the respective doc
[11:54:04] defsdoor: Shapeshifter, and inflections for exceptions
[11:54:11] YahooAnswersFTW: Shapeshifter: do you really want to add gender to an address though? That's kind of a weird thing to do.
[11:54:23] dionysus69: has joined #RubyOnRails
[11:54:29] YahooAnswersFTW: I mean, each to their own...
[11:54:59] shapeshifter: yahooanswersftw: yeah it fits the use case
[11:55:29] blackmes1: has joined #RubyOnRails
[11:55:35] YahooAnswersFTW: http://guides.rubyonrails.org/active_record_migrations.html
[11:55:40] owenjones: has joined #RubyOnRails
[11:55:57] shapeshifter: yahooanswersftw: yes that's the one I'm reading
[11:56:15] cpt: has joined #RubyOnRails
[11:57:54] annlewis: has joined #RubyOnRails
[11:58:31] YahooAnswersFTW: yahooanswersftw: rails g migration AddGenderToAddresses I think
[11:58:41] YahooAnswersFTW: You'll soon know if it's not.
[11:59:21] ruurd: has joined #RubyOnRails
[12:00:09] squiercaster: has joined #RubyOnRails
[12:02:21] purplexed-: has joined #RubyOnRails
[12:02:25] axl_: has joined #RubyOnRails
[12:03:02] pydave6377: has joined #RubyOnRails
[12:03:11] ruurd: has joined #RubyOnRails
[12:03:16] Cervajz: has joined #RubyOnRails
[12:04:03] wa_r_ch_i__ld1: has joined #RubyOnRails
[12:04:34] suchness: has joined #RubyOnRails
[12:04:37] wa_r_ch_i__ld1: is there a way to run a rails app in 2 different environments at the same time with phusion passenger?
[12:04:57] suchness: With the right amount of will
[12:05:37] wa_r_ch_i__ld1: know of any tutorials or anything?
[12:06:07] arup_r: what is the best way to perform the capybara test using Browser or headless browser ? Using headless browser is giving some Javascript compatinility error..
[12:06:16] ddv: arup_r: dejavu
[12:06:24] arup_r: what do you mean ?
[12:06:31] ddv: arup_r: you're repeating yourself
[12:06:32] suchness: wa_r_ch_i__ld1: http://stackoverflow.com/questions/21516195/running-same-ruby-application-in-multiple-environments ?
[12:06:42] arup_r: nah. not.
[12:07:15] suchness: wa_r_ch_i__ld1: Give each app vhost a different PassengerAppGroupName so that Phusion Passenger treats them as different apps.
[12:07:16] ddv: arup_r: for CI we use a headless browser
[12:07:23] arup_r: I added headless browser and facing issues, so I am thinking to switch to real browser.
[12:08:02] arup_r: I am writing some feature tests for Rails .. but too many issues one goes another comes .. /
[12:08:32] wa_r_ch_i__ld1: @suchness thanks
[12:08:38] chipotle: has joined #RubyOnRails
[12:08:39] suchness: wa_r_ch_i__ld1: Sure thing
[12:09:27] syath: has joined #RubyOnRails
[12:10:03] tvw: has joined #RubyOnRails
[12:11:28] nettoweb: has joined #RubyOnRails
[12:11:34] Megamos: has joined #RubyOnRails
[12:12:02] Megamos: has joined #RubyOnRails
[12:12:10] rubyonrailed: has joined #RubyOnRails
[12:12:16] pmunt: has joined #RubyOnRails
[12:12:28] nettoweb: guys, Im trying to replace any occurence of **STRING** in text with STRING in ruby...just cut off the asteristics. Im using gsub but caould till now
[12:20:21] apofis: has joined #RubyOnRails
[12:21:11] artto: has joined #RubyOnRails
[12:21:43] piotrj: has joined #RubyOnRails
[12:23:09] arup_r: Here is the error I am getting: https://gist.github.com/aruprakshit/097ec81ab14941a4be88
[12:25:25] baweaver: has joined #RubyOnRails
[12:25:52] pawnbox_: has joined #RubyOnRails
[12:28:02] quazimodo: has joined #RubyOnRails
[12:28:42] dionysus69: has joined #RubyOnRails
[12:28:50] ruurd: has joined #RubyOnRails
[12:28:51] nettoweb: rvanlieshout I was trying to get all [field_name] [field_email
[12:29:12] nettoweb: rvanlieshout I was trying to get all [field_name] [field_email] and change to @user.name and @user.email
[12:29:26] rvanlieshout: and you're still struggeling with that?
[12:29:33] nettoweb: I think gsub is the way but cant create the regex to change this
[12:29:42] rvanlieshout: are there more fields?
[12:29:52] nettoweb: rvanlieshout because [field_name] the user will type
[12:30:08] nettoweb: yes.. can be one or more
[12:30:36] rvanlieshout: consider using gsub with a block then
[12:31:01] rvanlieshout: .gsub(/\[(.*?)\]/) { |phrase| phrase.upcase }
[12:31:22] rvanlieshout: "I was trying to get all [field_name] [field_email] and change to @user.name and @user.email".gsub(/\[(.*?)\]/) { |phrase| phrase.upcase }
[12:31:26] rvanlieshout: "I was trying to get all [FIELD_NAME] [FIELD_EMAIL] and change to @user.name and @user.email"
[12:31:26] njero: has joined #RubyOnRails
[12:31:43] rvanlieshout: so you can use a method or just some code in that block that uses a case on phrase to determine what should be used
[12:32:12] dragonkh: has joined #RubyOnRails
[12:34:00] nocontrol: has joined #RubyOnRails
[12:37:12] krz: has joined #RubyOnRails
[12:39:41] tlarevo_: has joined #RubyOnRails
[12:42:15] jschoolcraft: has joined #RubyOnRails
[12:42:33] tlarevo_: has left #RubyOnRails: ()
[12:44:39] nettoweb: rvanlieshout thank you, I put it to work using this way: .gsub(/\--.*--/) { |phrase| a=phrase.gsub("--", ""); @user[a] })
[12:44:50] nettoweb: in this case Im using --field_name--
[12:44:55] nya: has joined #RubyOnRails
[12:45:17] rvanlieshout: then just change .* to (.*)
[12:45:20] rvanlieshout: and consider adding a ? after the *
[12:45:25] rvanlieshout: to make it 'non greedy'
[12:48:02] User458764: has joined #RubyOnRails
[12:48:07] SalexW: has joined #RubyOnRails
[12:49:10] n1ck7: I've namespaced a model "Wills" to "Classic::Wills", is there any way of using a namespace with a different reference? in PHP you could do something like "Use Classic\Wills as Wills"
[12:49:52] rvanlieshout: n1ck7: i don't really understand what you're trying to achieve
[12:50:05] elaptics: it sounds like that defeats the object of namespacing
[12:50:13] Sigfrid: has joined #RubyOnRails
[12:50:31] daivyk: has joined #RubyOnRails
[12:50:52] n1ck7: rvanlieshout, I'm refactoring an application, have renamed the model, but there's loads of references to the old model name inside of the controller, I'm gona be doing this for many models and controllers so I thought it might be a good idea
[12:51:39] djellemah: n1ck7: assign a new constant Wills = Classic::Wills , but yeah it kinda defeats the purpose of namespacing.
[12:51:39] rvanlieshout: imho refactoring it throughout the application would be cleaner
[12:53:16] n1ck7: djellemah, rvanlieshout Thanks for helping and your advice
[12:53:28] scmx: has joined #RubyOnRails
[12:54:41] sevenseacat: has joined #RubyOnRails
[12:56:41] owenjones: has joined #RubyOnRails
[12:57:45] nickenchuggets: has joined #RubyOnRails
[12:58:40] annlewis: has joined #RubyOnRails
[12:59:43] herbst: has joined #RubyOnRails
[13:01:00] northfurr: has joined #RubyOnRails
[13:01:29] Megamos: has joined #RubyOnRails
[13:02:42] leonardoajim: has joined #RubyOnRails
[13:03:21] ibouvousaime: has joined #RubyOnRails
[13:03:25] axl_: has joined #RubyOnRails
[13:03:39] orolo: has joined #RubyOnRails
[13:03:40] Scymex: has joined #RubyOnRails
[13:03:43] dkam_: has joined #RubyOnRails
[13:05:17] shibabu: has joined #RubyOnRails
[13:05:31] darrenca_: has joined #RubyOnRails
[13:06:49] pawnbox_: has joined #RubyOnRails
[13:07:24] mostlybadfly: has joined #RubyOnRails
[13:07:33] Palsson_: has joined #RubyOnRails
[13:09:40] sinkensabe: has joined #RubyOnRails
[13:10:27] kimegede: has joined #RubyOnRails
[13:11:35] shapeshifter: Question: I extended this model https://github.com/spree/spree/blob/3-0-stable/core/app/models/spree/address.rb by generating this migration http://ix.io/ma7 and then I created a (working) deface override to add another form field for this view https://github.com/spree/spree/blob/3-0-stable/frontend/app/views/spree/address/_form.html.erb which looks like this: http://ix.io/ma8 It shows up and see
[13:11:41] shapeshifter: ms to work fine, but the selected value doesn't seem to saved to the db (gender is always nil).
[13:11:44] shapeshifter: Is there anything else I need to do?
[13:13:22] beauby: has joined #RubyOnRails
[13:14:18] pawnbox_: has joined #RubyOnRails
[13:14:35] rvanlieshout: Shapeshifter: check the log for the request
[13:14:39] rvanlieshout: it might just be something as strong params
[13:19:34] hardtail: has joined #RubyOnRails
[13:22:41] maxz: has joined #RubyOnRails
[13:22:58] lxsameer_: has left #RubyOnRails: ()
[13:23:35] User458764: has joined #RubyOnRails
[13:24:05] rgtk: has joined #RubyOnRails
[13:26:12] baweaver: has joined #RubyOnRails
[13:26:52] shapeshifter: rvanlieshout: mh, I don't know, I don't see anything special in the log. If I change any of the other fields (first name etc.) then I see an update statement which updates the respective field, but changing gender doesn't trigger an update. I dug through the controller hierarchy involved but I can't really pinpoint any strong params (although the concept is new to me, I read some docs just now)
[13:27:32] hello9: has joined #RubyOnRails
[13:27:58] rvanlieshout: Shapeshifter: can you gist that request?
[13:28:17] hello9: I know that you can fill-out a browser based authentication popup with Capybara, is there a way to do it during the actual production, not testing?
[13:29:00] flashpoint9: has joined #RubyOnRails
[13:29:31] atomical: has joined #RubyOnRails
[13:30:15] shapeshifter: rvanlieshout: you mean this part? http://pastie.org/pastes/10552517/text?key=1wmwvri5rfqrfmvmsyj9a
[13:31:09] lacrymology: I'm trying to set up ActiveAdmin and I'm getting an error when I run the active_admin:install generator. `require': cannot load such file -- client_side_validations/formtastic (LoadError)
[13:31:19] shapeshifter: rvanlieshout: I think you're right, I probably need to insert gender somewhere https://github.com/spree/spree/blob/148bcaf1e44081f940248d94d3aa6c5e95bb4fe2/core/lib/spree/permitted_attributes.rb
[13:31:44] rvanlieshout: Shapeshifter: that part, but the full log of that request
[13:33:58] jkamenik: has joined #RubyOnRails
[13:35:46] blackmes1: has joined #RubyOnRails
[13:35:48] shapeshifter: rvanlieshout: nevermind, it's as you said, I had to put "Spree::PermittedAttributes.address_attributes << :gender
[13:35:53] shapeshifter: in an initializer
[13:36:08] shapeshifter: rvanlieshout: thanks for the hint
[13:38:05] rvanlieshout: you're welcome
[13:39:24] pawnbox_: has joined #RubyOnRails
[13:40:01] Sigfrid: has joined #RubyOnRails
[13:41:55] Zackio: has joined #RubyOnRails
[13:43:02] rubyonrailed: has joined #RubyOnRails
[13:45:14] jhack: has joined #RubyOnRails
[13:45:16] jhack: has left #RubyOnRails: ()
[13:47:05] rubyonra_: has joined #RubyOnRails
[13:48:34] lacrymology: how many 'nth' methods are there?
[13:49:12] rvanlieshout: imho besides first and last no that you should use :)
[13:49:20] goodcodeguy: has joined #RubyOnRails
[13:49:30] urbanmonk: has joined #RubyOnRails
[13:49:32] uri: has joined #RubyOnRails
[13:49:36] baweaver: has joined #RubyOnRails
[13:49:56] lacrymology: rvanlieshout: I agree, but.. why, anyways?
[13:50:07] lacrymology: apparently they're defined up to 'fifth' for no good reason
[13:50:39] lacrymology: rvanlieshout: and `forty_two`
[13:50:48] rvanlieshout: for that 'no good reason' part :)
[13:51:15] lacrymology: rvanlieshout: no, no. I mean.. why are they defined at all?
[13:51:32] trosborn: has joined #RubyOnRails
[13:51:40] lacrymology: and why isn't there a "sixth"
[13:52:00] lacrymology: or a "hundred_twenty_fourth"
[13:52:07] rvanlieshout: you could check the logs for that file
[13:52:16] rvanlieshout: 42 is some it joke
[13:52:22] umgrosscol: has joined #RubyOnRails
[13:56:00] herbst: has joined #RubyOnRails
[13:56:41] jschoolcraft: There was a project a few years ago trying to get at least 1-100 done, I think it was a fight against the maintainers that said NO
[13:57:00] jschoolcraft: s/project/effort/
[13:57:03] rvanlieshout: as they should
[13:57:06] owenjones: has joined #RubyOnRails
[13:57:07] rvanlieshout: it would cause overhead
[13:57:42] Grundell: has joined #RubyOnRails
[13:57:58] jschoolcraft: I think it was pure politics at the time, why do fifth but not allow the rest, etc, like the discussion here. probably before rails 3 iirc
[13:58:06] njero: has joined #RubyOnRails
[13:58:08] shapeshifter: What's the use of such methods anyway? I would find it bad manners to refer to specific indices in such a way. Seems fragile.
[13:58:22] rvanlieshout: ^, exception of first and last i guess
[13:58:42] veloutin_: has left #RubyOnRails: ()
[13:58:54] jschoolcraft: I don't know why you'd use anything other than first/last other than to be cheeky or clever.
[13:59:06] veloutin: has joined #RubyOnRails
[13:59:27] annlewis: has joined #RubyOnRails
[14:00:52] piotrj: has joined #RubyOnRails
[14:01:47] piotrj: has joined #RubyOnRails
[14:03:58] pawnbox_: has joined #RubyOnRails
[14:04:12] axl_: has joined #RubyOnRails
[14:05:22] sankaber: has joined #RubyOnRails
[14:07:58] shibabu: has joined #RubyOnRails
[14:10:53] nertzy: has joined #RubyOnRails
[14:13:14] piotrj: has joined #RubyOnRails
[14:13:44] ramortegui: has joined #RubyOnRails
[14:15:07] wa_r_ch_i__ld1: has joined #RubyOnRails
[14:16:19] jonathanwallace: has joined #RubyOnRails
[14:16:59] doodlehaus: has joined #RubyOnRails
[14:18:17] norc: has joined #RubyOnRails
[14:18:58] arup_r: what is cheeky ?
[14:21:10] Guest53: has joined #RubyOnRails
[14:22:07] danneu: https://github.com/rails/rails/commit/22af62cf486721ee2e45bb720c42ac2f4121faf4#commitcomment-8135
[14:22:14] moeabdol: has joined #RubyOnRails
[14:22:30] artmann: has joined #RubyOnRails
[14:22:52] njero: has joined #RubyOnRails
[14:23:51] qejk: has joined #RubyOnRails
[14:24:15] dionysus69: I am instantiating product model in 2 controllers so is it better approach to instantiate it in application controller or not worth it?
[14:25:00] moeabdol: has joined #RubyOnRails
[14:25:13] suchness: dionysus69: I would say not worth it off the bat without knowing more about your app.
[14:25:24] herbst: has joined #RubyOnRails
[14:25:25] norc: dionysus69: Do it in the application controller if you want to do it every time.
[14:25:35] norc: dionysus69: If not... use a Mixin.
[14:25:51] dionysus69: hmm what is mixin ? :D
[14:26:02] norc: dionysus69: http://ruby-doc.com/docs/ProgrammingRuby/html/tut_modules.html
[14:26:05] dionysus69: if its not a big deal with performance I am fine leaving it duplicated
[14:26:11] ibouvousaime: has joined #RubyOnRails
[14:26:27] suchness: It's certainly not a performance thing.
[14:26:39] dionysus69: is that a usual way how common code is used in multiple controllers?
[14:26:40] smathy: has joined #RubyOnRails
[14:26:42] norc: Its a design thing. Duplicating code is a bad idea.
[14:26:51] pawnbox_: has joined #RubyOnRails
[14:26:56] norc: If you have to do something in 2 different places, dry it up.
[14:26:59] baweaver: has joined #RubyOnRails
[14:27:18] norc: dionysus69: It is a usual way how common code is used in multiple anythings.
[14:27:47] dionysus69: hmm thanks norc & suchness
[14:28:34] beauby: has joined #RubyOnRails
[14:28:52] njero: has joined #RubyOnRails
[14:29:12] JulienITARD: has joined #RubyOnRails
[14:29:27] Megamos: has joined #RubyOnRails
[14:29:29] JulienITARD: has left #RubyOnRails: ()
[14:31:49] trosborn: has joined #RubyOnRails
[14:32:49] Encapsulation: has joined #RubyOnRails
[14:33:33] beauby: has joined #RubyOnRails
[14:34:04] Palsson_: has joined #RubyOnRails
[14:34:15] bobbobbins: has joined #RubyOnRails
[14:34:17] The_Phoenix: has joined #RubyOnRails
[14:34:23] bobbobbins: hey, how can I get rid of the media spoofing detection for paperclip?
[14:34:58] norc: bobbobbins: do_not_validate_attachment_file_type
[14:35:15] bobbobbins: norc: I tried that, it doesn't get rid of it
[14:35:32] norc: bobbobbins: gist us your controller
[14:35:35] norc: and model
[14:35:37] norc: and everything
[14:37:36] pawnbox__: has joined #RubyOnRails
[14:37:47] bobbobbins: https://gist.github.com/anonymous/a97edd36411fce3a2749
[14:37:55] njero: has joined #RubyOnRails
[14:39:27] sankaber: has joined #RubyOnRails
[14:40:02] norc: bobbobbins: http://sjoker.net/2014/02/paperclip-4-0-non-deactivatable-mediatype-spoofing/
[14:40:22] norc: Looks like a terrible hack, but hey.
[14:40:44] theod: has joined #RubyOnRails
[14:40:54] bobbobbins: ugh, thats annoying, ok
[14:44:42] WajidKagzi: has joined #RubyOnRails
[14:48:24] rickmasta: has joined #RubyOnRails
[14:49:56] momomomomo: has joined #RubyOnRails
[14:50:06] simplyianm: has joined #RubyOnRails
[14:50:21] pawnbox_: has joined #RubyOnRails
[14:50:29] oded: has joined #RubyOnRails
[14:52:09] griffindy: has joined #RubyOnRails
[14:52:39] Megamos: has joined #RubyOnRails
[14:54:07] Rodya_: has joined #RubyOnRails
[14:54:51] momomomomo: has joined #RubyOnRails
[14:55:38] melter: has joined #RubyOnRails
[14:56:57] sdwrage: has joined #RubyOnRails
[14:57:26] qnsi: has joined #RubyOnRails
[14:57:47] adavia: has joined #RubyOnRails
[14:57:58] owenjones: has joined #RubyOnRails
[14:59:47] lacrymology: how do I route a singular NESTED resource?
[15:00:13] annlewis: has joined #RubyOnRails
[15:00:14] lacrymology: I want object/:id/status to return the latest status
[15:00:17] lacrymology: not all statuses
[15:00:22] griffindy: has joined #RubyOnRails
[15:00:26] mark5: has joined #RubyOnRails
[15:00:29] acti0nman: has joined #RubyOnRails
[15:01:01] bobbobbins: I'd just edit your controller, throw a .first on there
[15:01:50] Guest53: has joined #RubyOnRails
[15:02:21] lacrymology: yeah, well,no
[15:02:23] njero: has joined #RubyOnRails
[15:02:29] lacrymology: there's a feature for this
[15:02:34] lacrymology: I want to use it
[15:02:46] lacrymology: because maintainability and what not
[15:02:49] trosborn: has joined #RubyOnRails
[15:03:15] willharrison: has joined #RubyOnRails
[15:03:41] SteenJobs: has joined #RubyOnRails
[15:04:41] stannard: has joined #RubyOnRails
[15:04:43] mag42c: has joined #RubyOnRails
[15:04:59] axl_: has joined #RubyOnRails
[15:05:30] lacrymology: nevermind, really easy
[15:05:36] lacrymology: it's just 'resource' instead of 'resources'
[15:05:39] lacrymology: in the router
[15:05:42] dionysus69: how do i write this so everything is common between price and new price except position right and background color https://gist.github.com/webzorg/4c9b41607add43370730
[15:07:00] HalcyonicStorm: has joined #RubyOnRails
[15:07:53] n1ck7: has joined #RubyOnRails
[15:10:32] flashpoint9: has joined #RubyOnRails
[15:12:17] DiCablo: has joined #RubyOnRails
[15:12:53] qnsi: dionysus69: this is css question, nothing to do with Rails
[15:14:52] Cervajz__: has joined #RubyOnRails
[15:15:00] pawnbox_: has joined #RubyOnRails
[15:15:44] bobbobbins: has joined #RubyOnRails
[15:17:39] sankaber: has joined #RubyOnRails
[15:18:47] qnsi: np, maybe someone will help you here, but I am sure you will get answer sooner or some css channel
[15:19:51] jkamenik1: has joined #RubyOnRails
[15:20:42] User458764: has joined #RubyOnRails
[15:25:04] kp666: has joined #RubyOnRails
[15:25:26] vielite94: has joined #RubyOnRails
[15:26:36] nfk|laptop: has joined #RubyOnRails
[15:27:08] goldbug: Is there any obvious reason why I'd be getting an Ajax parser error when when trying to send this through to a CoffeeScript? data: { language_id: $("language_select option:selected").val() }
[15:27:46] baweaver: has joined #RubyOnRails
[15:28:14] kerunaru: has joined #RubyOnRails
[15:28:24] treehug88: has joined #RubyOnRails
[15:29:03] aarkerio: has joined #RubyOnRails
[15:29:22] georges: has joined #RubyOnRails
[15:30:06] rubyonrails785: has joined #RubyOnRails
[15:30:27] njero: has joined #RubyOnRails
[15:31:15] maxz: has joined #RubyOnRails
[15:33:15] scmx: has joined #RubyOnRails
[15:33:31] teclator: has joined #RubyOnRails
[15:34:18] roxtrongo: has joined #RubyOnRails
[15:35:16] mikecmpbll: anybody used the chromebook pixel for rails dev?
[15:35:30] mikecmpbll: (locally, not via some web ide)
[15:36:40] Megamos: has joined #RubyOnRails
[15:37:39] nocontrol: has joined #RubyOnRails
[15:37:51] gavit: My datatables seem to be unable to sort, till I 'search' and then the coloms are sortable. any idea what this is related to?
[15:38:57] pimpin: has joined #RubyOnRails
[15:39:46] Scient: a bug somewhere I bet
[15:39:50] Scient: perhaps you should try debugging it
[15:40:57] TPBallbag: has joined #RubyOnRails
[15:42:40] siaW: has joined #RubyOnRails
[15:42:51] siaW: anyone wants to help with this? http://stackoverflow.com/questions/33675049/nomethoderror-undefined-method-roles-for-nilnilclass
[15:43:26] Scient: record.projects is nil?
[15:43:31] zz_timnovinger: has joined #RubyOnRails
[15:43:33] baweaver: has joined #RubyOnRails
[15:44:11] Scient: and you are "double checking" your tests with running some stuff in rails console
[15:44:24] pawnbox_: has joined #RubyOnRails
[15:44:29] Scient: remember that you need to explicitly set up test data for your tests
[15:44:31] Scient: its not magical
[15:44:44] mary5030: has joined #RubyOnRails
[15:44:49] Scient: so your assumption in the end is incorrect
[15:44:55] Scient: this is a data issue, not a code bug
[15:45:18] smathy: siaw, record.project is nil.
[15:46:19] flashpoint9: has joined #RubyOnRails
[15:47:01] bobbobbins: how can I save a file inside a zip to paperclip? I have it saving, but it saves as a binary file instead of whatever file type it is supposed to be
[15:47:04] siaW: smathy: record is an instance of the Ticket class. when i set that up in rails console and do record.project i???ts NOT nil
[15:47:15] siaW: smathy: it does return a boolean
[15:47:23] smathy: siaw, right, so you mustn't be doing the same thing in your tests.
[15:47:29] bobbobbins: here is what my code looks like: https://gist.github.com/anonymous/a97edd36411fce3a2749
[15:47:31] dopie: has joined #RubyOnRails
[15:47:37] smathy: siaw, as others (without prefixing with your nick) have said.
[15:47:39] elaptics: siaw: we need to see your specs
[15:47:43] tubbo: siaw: can you throw a debugger in that method and verify that record.project is not nil?
[15:47:53] smathy: tubbo, pfft, you know it's nil.
[15:48:15] tubbo: smathy: the path to enlightenment is the journey, not the destination.
[15:48:24] tubbo: ACTION levitates
[15:48:25] smathy: bobbobbins, what do you mean "it saves as a binary file"?
[15:48:35] smathy: tubbo, heh, fair enough :)
[15:49:02] bobbobbins: smathy: when I click on the file to download it later, it says its a binary and asks me to save it, instead of opening up like a pdf
[15:49:06] siaW: elaptics: this is the spec in question https://github.com/siaw23/Ticketee/blob/master/spec/policies/ticket_policy_spec.rb
[15:49:10] Scient: siaw: read above and set up your data in y our tests
[15:49:15] tubbo: i have a question actually...does anyone have recommendations for services that perform load testing on your rails application?
[15:49:18] Scient: you are making the wrong assumptions atm
[15:49:27] SteenJobs: has joined #RubyOnRails
[15:49:40] smathy: tubbo, ab
[15:49:42] tubbo: we were gonna go with Dynatrace for this one app but was wondering if anything else existed so we can compare
[15:50:13] bobbobbins: maybe because the temp file is appending some things after the extension
[15:50:14] tubbo: smathy: you're gonna need to google that one for me because i keep getting all these hot bods in my search results
[15:50:27] corioliss: has joined #RubyOnRails
[15:50:31] smathy: tubbo, apache benchmark
[15:50:32] tubbo: and ads for the P90X
[15:50:53] smathy: tubbo, you can probably just: man ab
[15:51:10] tubbo: i have it
[15:51:14] tubbo: well, on OS X..
[15:51:26] smathy: Yeah, it's part of the standard apache install, so if you have apache....
[15:51:39] tubbo: smathy: "ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server." will this work with my Nginx Hypertext Transfer Protocol (HTTP) server?
[15:52:10] tubbo: thanks man this is helpful. i'd much rather run load tests from my own machine.
[15:52:19] shibabu: has joined #RubyOnRails
[15:52:23] smathy: tubbo, that is probably the most commonly asked question, but yeah, it just flings socket connections. Nothing backend.
[15:52:33] tubbo: lol i figured
[15:52:37] rgtk: has joined #RubyOnRails
[15:52:42] tubbo: it's just like sending HTTP traffic somewhere right?
[15:52:49] smathy: tubbo, yeah exactly, and you can easily set up a bunch of other machines on a LAN all firing at a single target server.
[15:53:02] smathy: Yep, exactly.
[15:54:06] smathy: bobbobbins, that "prompts for download instead of displaying" doesn't mean anything about the file itself.
[15:54:19] smathy: bobbobbins, your httpd doesn't open and read the contents of a file before deciding what to send to the browser.
[15:54:29] a1fa: i have a silly question, if you are using devise(ldap) for user/session, should you create a separate controller/model to manage your users?
[15:55:18] bobbobbins: well the file itself is a temp file, and it adds some characters after the file extension, I'm thinking paperclip is reading it in with those characters so it can't determine the filetype...I guess my question is, how to stop the temp file from doing that
[15:55:22] smathy: bobbobbins, however that's all different to the validation error you showed in the gist.
[15:55:29] mary5030: has joined #RubyOnRails
[15:55:43] bobbobbins: yeah, i fixed that issue, I was just reusing that since the code didn't change
[15:55:51] dionysus69: has joined #RubyOnRails
[15:56:31] smathy: bobbobbins, you're talking about paperclip, but aren't YOU creating that tempfile in your Zip::File.open block?
[15:56:35] kies: has joined #RubyOnRails
[15:56:53] roxtrongo: has joined #RubyOnRails
[15:57:15] siaW: smathy: fixed it :) thanks :0
[15:57:19] bobbobbins: yeah, but the filename being passed to the tempfile doesn't have those weird characters...I guess the issue is before it hits paperclip
[15:57:37] Mattx: has joined #RubyOnRails
[15:57:55] voker57: has joined #RubyOnRails
[15:58:08] bobbobbins: i think I just found it...the filename needs to be passed as an array
[15:58:13] smathy: bobbobbins, right, so from what I'm gathering - you're creating a tempfile, which has a weird name, and then passing that to Paperclip which then can't determine the filetype?
[15:58:13] njero: has joined #RubyOnRails
[15:58:28] smathy: bobbobbins, cool, well done.
[15:58:32] Mattx: Hello. How do you rename a HABTM table? I declared the association like this: has_and_belongs_to_many :conversions, join_table: "conversions"
[15:58:35] bobbobbins: yeah, i guess tempfile messes with your filenames...strange
[15:58:35] owenjones: has joined #RubyOnRails
[15:58:39] smathy: siaw, cool, you're welcome.
[15:58:50] Mattx: but I'm getting "NameError: uninitialized constant Promotion::Conversion"
[15:58:56] a1fa: with devise(ldap) for user/session, and cancan for permissions, is it a good thing to create a separate model/controller to manage the users?
[15:59:16] gavit: Scient: I seem to be having this issue: http://stackoverflow.com/questions/31149836/uncaught-typeerror-cannot-use-in-operator-to-search-for-length-in-trigge but I'm on datatables 3.3.0 :S
[15:59:32] smathy: bobbobbins, doesn't seem weird to me at all, a big part of why you use Tempfile is to ensure a unique filename.
[15:59:43] tubbo: smathy: seems pretty simple, and i might use it to test my own little apps...but i think we are gonna check out this service called Dynatrace. they seem to consult with you and figure out requirements (like which are the least performant and/or most treaded parts of your app), then write the scripts to do load testing themselves. so we don't really have to fuck with it too much.
[15:59:58] doodlehaus: has joined #RubyOnRails
[16:00:13] bobbobbins: smathy: seems like they should do that before the extention though instead of after
[16:00:59] annlewis: has joined #RubyOnRails
[16:01:22] scmx: has joined #RubyOnRails
[16:01:43] smathy: tubbo, ok cool, I don't have any experience with actual services like that.
[16:03:23] smathy: bobbobbins, I suppose, I've never written code that didn't explicitly handle the filename when dealing with any tmpfile libraries.
[16:03:41] smathy: bobbobbins, many just create a totally garbled name totally unrelated to the original.
[16:04:09] cschneid_: has joined #RubyOnRails
[16:04:13] smathy: a1fa, separate to what?
[16:04:41] umgrosscol: has joined #RubyOnRails
[16:05:14] a1fa: smathy: i created an "accounts" controller/model on top of the users/model
[16:05:44] axl_: has joined #RubyOnRails
[16:05:59] a1fa: smathy: to manage users. it seems like an easier way to keep it from possibly messing up with user sessions
[16:06:24] a1fa: maybe just my inexperience with routes is causing me togo down this path
[16:06:37] flashpoint9: has joined #RubyOnRails
[16:06:42] a1fa: but right now, everything is working as it should
[16:07:10] a1fa: sessions are not impacted, and authorized moderators can edit users
[16:07:22] a1fa: the only downside could be some code replication between users, and "accounts"
[16:07:57] a1fa: again, this could all be just my inexperience - just trying to see how others have solved this conandrum, if there is any
[16:09:05] slash_nick: a1fa: i think you're overthinking... you've got a path to go down, make it work and then make observations... if you think you can improve on it then, improve on it
[16:09:48] a1fa: slash_nick: good point. i have learned so much in last two months, and i have re-wrote 90% of my code from last 2 months
[16:10:17] a1fa: slash_nick: the more time i put into it, the more you realize how wrong you coded it in the first place
[16:10:52] a1fa: so thanks for that, that is encouraging
[16:11:49] slash_nick: a1fa: no problem... have you heard of pseudocode?
[16:12:15] pimpin: has joined #RubyOnRails
[16:12:49] a1fa: no what is it?
[16:12:54] arthurix: has joined #RubyOnRails
[16:13:23] tbuehlmann: has joined #RubyOnRails
[16:13:24] pawnbox_: has joined #RubyOnRails
[16:13:33] greengriminal: has joined #RubyOnRails
[16:14:26] RegulationD: has joined #RubyOnRails
[16:15:33] syzygy_: has joined #RubyOnRails
[16:16:10] scmx: has joined #RubyOnRails
[16:17:24] slash_nick: a1fa: i was looking for some well worded definitions... basically, you describe the kind of code it will take to complete a feature, without worrying about details like syntax
[16:17:40] slash_nick: > Pseudocode is a kind of structured english for describing algorithms. It allows the designer to focus on the logic of the algorithm without being distracted by details of language syntax. At the same time, the pseudocode needs to be complete. It describe the entire logic of the algorithm so that implementation becomes a rote mechanical task of translating line by line into source code. | http://users.csc.calpoly.edu/~jdalbey/SWE/pdl_s
[16:18:04] slash_nick: a1fa: also noticed this udemy course, apparently on topic: https://www.udemy.com/flowchartingcourse/
[16:18:24] barhum2013: has joined #RubyOnRails
[16:18:26] DanielN: has joined #RubyOnRails
[16:19:47] chouhoulis: has joined #RubyOnRails
[16:20:26] barhum2013: Hello, anybody here start a rails devshop? I am thinking of starting one and would greatly appreciate some advice. Thanks
[16:21:51] pawnbox_: has joined #RubyOnRails
[16:21:53] sinkensabe: has joined #RubyOnRails
[16:23:05] disgrntld: has joined #RubyOnRails
[16:24:32] suchness: has left #RubyOnRails: ()
[16:24:38] suchness: has joined #RubyOnRails
[16:25:10] suchness: Anyone know of a github or something that has an html page with all the html elements on it to start writing a basic style guide?
[16:25:29] Yomero2: has joined #RubyOnRails
[16:26:29] Hates_: suchness: https://github.com/bjankord/Style-Guide-Boilerplate perhaps?
[16:26:35] maxz: has joined #RubyOnRails
[16:26:36] adaedra: You want a list of all existing elements?
[16:28:16] tlarevo: has joined #RubyOnRails
[16:29:19] a1fa: slash_nick: makes sense. i usually whiteboard what i want the code to do, then just fill in the blanks using the appropriate coding language, be it sh,ruby,etc
[16:30:54] Fire-Dragon-DoL: has joined #RubyOnRails
[16:32:03] slash_nick: just more techniques to help avoid getting bogged down by overthinking... get a first draft & iterate... i dont know if final draft is ever reached :)
[16:32:42] Cache_Money: has joined #RubyOnRails
[16:34:50] pimpin: has joined #RubyOnRails
[16:36:04] fryguy: i'm trying to add some rake tasks from a gem using a railtie, but at the time the gem is getting required, rails hasn't been loaded yet, so the advice in the guides to do "require my_gem/railtie if defined?(Rails)" isn't working. How can I make sure rails is loaded before my gem gets required?
[16:36:17] gusrub: has joined #RubyOnRails
[16:37:57] tubbo: fryguy: require 'rails', require 'whatevergem/your_railtie' :)
[16:38:02] tubbo: require 'rails';*
[16:38:12] pimpin: has joined #RubyOnRails
[16:38:22] surrealanalysis: has joined #RubyOnRails
[16:38:25] fryguy: requiring rails seems to go way against the guides though. it's a very curious omission
[16:38:51] freezevee: has joined #RubyOnRails
[16:39:19] fryguy: also adding require rails at the top fails with some bundle mismatch of rake, which also seems weird
[16:39:30] baweaver: has joined #RubyOnRails
[16:39:37] helpa: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[16:39:48] Maxz_: has joined #RubyOnRails
[16:40:11] fryguy: yah i guess i'll need to create a base case here to share
[16:41:04] jahbrewski: has joined #RubyOnRails
[16:41:27] shapeshifter: Question: I want to override the return value of a method depending on whether all object in a has_many relationship are of a certain type. https://github.com/spree/spree/blob/master/core/app/models/spree/order.rb#L82 <- this is the relationship. This is my override: http://ix.io/maQ So I do order.payments.all? { |payment| payment.is_a? Spree::PaymentMethod::Check } but for some reason it's alway
[16:41:33] shapeshifter: s false. The debug output from the example is this: http://pastie.org/private/iuwczylbijz3iqkr8flpw
[16:41:49] syzygy_: has joined #RubyOnRails
[16:41:57] shapeshifter: I'm completely sure that this payment object should be of the specified type, but apparently is_a returns false. is this expected?
[16:42:19] bobbobbins: has joined #RubyOnRails
[16:44:15] fryguy: hrmm, not sure how to simplify this down to less than a full rails app
[16:44:58] Sylario: has joined #RubyOnRails
[16:45:26] slash_nick: fryguy: i take it the gem isn't open source yet?
[16:45:32] slash_nick: most of us have rails apps :)
[16:45:42] fryguy: slash_nick: no it's a gem i'm writing right now'
[16:45:45] fryguy: not open source yet
[16:45:51] tenderlove: has joined #RubyOnRails
[16:46:14] blackmes1: has joined #RubyOnRails
[16:47:02] shapeshifter: nvm things wrong in my head.
[16:47:46] slash_nick: fryguy: maybe Gemfile/.lock from rails app, gemspec or whatever from gem (along with whatever pertains to your rake task) would be a good start
[16:48:04] fryguy: the rake task doesn't even get loaded
[16:48:07] fryguy: the problem is way before that
[16:48:14] fryguy: defined?(Rails) returns false when loading the gem
[16:49:39] tlarevo: has left #RubyOnRails: ()
[16:50:10] slash_nick: fryguy: when bundling?
[16:50:31] fryguy: when doing bundle exec rake
[16:51:00] The_Phoenix: has joined #RubyOnRails
[16:51:00] safety_cut: has joined #RubyOnRails
[16:51:19] slash_nick: code makes this hard without
[16:52:15] User458764: has joined #RubyOnRails
[16:52:17] theblang: has joined #RubyOnRails
[16:52:18] fryguy: yep i'm working on it
[16:52:21] The_Phoenix: has joined #RubyOnRails
[16:53:50] pixelhandler: has joined #RubyOnRails
[16:54:29] baweaver: has joined #RubyOnRails
[16:57:12] njero: has joined #RubyOnRails
[16:58:26] foucist: has joined #RubyOnRails
[16:58:44] safety_c_: has joined #RubyOnRails
[16:58:57] maxz: has joined #RubyOnRails
[16:59:24] suchness: Hates_: That's exactly what I was looking for, thank you.
[16:59:33] gusrub: has joined #RubyOnRails
[17:00:28] pimpin: has joined #RubyOnRails
[17:01:11] EminenceHC: has joined #RubyOnRails
[17:01:45] annlewis: has joined #RubyOnRails
[17:03:17] piotrj: has joined #RubyOnRails
[17:03:22] davidjd: has joined #RubyOnRails
[17:03:40] Cervajz: has joined #RubyOnRails
[17:03:41] Mattx: How do you rename a HABTM table? I declared the association like this: has_and_belongs_to_many :conversions, join_table: "conversions"
[17:03:45] Mattx: but I'm getting "NameError: uninitialized constant Promotion::Conversion"
[17:03:54] fryguy: slash_nick: https://gist.github.com/bryanalves/7d36ad1b3acd63c6fc64
[17:03:59] davidjd: has joined #RubyOnRails
[17:04:22] fryguy: pretty simple railtie, following the docs. not sure what I'm missing
[17:04:47] hahuang65: has joined #RubyOnRails
[17:04:58] davidjd: anyone ever use Mechanize to authorize a remote site that uses NTLM?
[17:04:59] SteenJobs: has joined #RubyOnRails
[17:05:04] dopie: how would I click this in capybara
[17:05:05] dopie: https://gist.github.com/staycreativedesign/e35aed4c88bda44b9483
[17:06:31] axl_: has joined #RubyOnRails
[17:06:35] slash_nick: find(selector).click
[17:07:15] njero: has joined #RubyOnRails
[17:08:18] dopie: slash_nick, so what would I select?
[17:09:20] dopie: as the selector?!
[17:09:48] njero: has joined #RubyOnRails
[17:10:18] IrishGringo: has joined #RubyOnRails
[17:10:33] fryguy: slash_nick: any ideas from my gist?
[17:10:44] njero: has joined #RubyOnRails
[17:12:31] smoitra: has joined #RubyOnRails
[17:13:38] SteenJobs: has joined #RubyOnRails
[17:13:57] mostlybadfly: has joined #RubyOnRails
[17:14:29] ishahnaz: has joined #RubyOnRails
[17:15:01] pyemkey: has joined #RubyOnRails
[17:15:42] kitsuneyo: has joined #RubyOnRails
[17:17:22] tubbo: oh wait never mind :D
[17:17:27] tubbo: yeah it's right
[17:17:28] kitsuneyo: this line makes no sense to me: render(:template => "blog/#{year}/list") ... how can "blog/#{year}/list" be a template??
[17:18:01] tubbo: dopie: from that markup you posted it looks like there's no real good way to select *just* that element.
[17:18:30] tubbo: dopie: if i may inject my opinion here, making elements that aren't <a> or <button> tags clickable is a code smell, and certainly an accessibility "never-ever-do-this".
[17:18:41] baweaver: has joined #RubyOnRails
[17:18:42] goldbug: Very simple question: I've passed a variable from one CoffeeScript to another. How do I reference it in the second CoffeeScript?
[17:18:53] tubbo: if i'm using a screen reader, i can't tell whether that 'Categories' text is clickable.
[17:18:59] davidjd: why doesnt mechanize NTLM auth work for me??http://www.rubydoc.info/gems/mechanize/Mechanize/HTTP/Agent#add_auth-instance_method
[17:18:59] tubbo: goldbug: !code
[17:18:59] helpa: goldbug: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[17:19:02] davidjd: my code and error
[17:19:13] mghaig: has joined #RubyOnRails
[17:19:13] tubbo: david__: you're probably doing it wrong :)
[17:19:20] tubbo: david__: yeah gist that shit
[17:19:49] goldbug: https://gist.github.com/classicgoldbug/dd0f0250d2900b9d84a8
[17:19:54] tubbo: kitsuneyo: i don't believe it is...
[17:20:06] goldbug: (I anticipated your response, just not quickly enough. . . )
[17:20:25] lubekpl: has joined #RubyOnRails
[17:20:45] kitsuneyo: tubbo, then what does this line mean? here's the page from rails cookbook, which i guess is pretty old: https://books.google.co.uk/books?id=6cn1K2flOc4C&pg=PA128&lpg=PA128&dq=rails+year+month+day+controller&source=bl&ots=oExn6ccL_0&sig=mA1RF8enYxGyV02DewfnXpA6EQQ&hl=en&sa=X&ved=0CDcQ6AEwBGoVChMI762h68SKyQIVSHEUCh3HUw0E#v=onepage&q=rails%20year%20month%20day%20controller&f=true
[17:20:59] slash_nick: fryguy: lib/tasks.rb not lib/tasks/some_task.rb ?
[17:21:04] Guest53: has joined #RubyOnRails
[17:21:11] dopie: tubbo, its a js thing
[17:21:17] tubbo: kitsuneyo: i'd highly advise not using books that are almost as old as rails itself ;)
[17:21:20] darkxploit: has joined #RubyOnRails
[17:21:28] fryguy: slash_nick: it's lib/tasks/tasks.rake. we don't even get to that point, the railtie isn't even being loaded because Rails isn't defined in lib/my_gem.rb
[17:21:39] kitsuneyo: lol tubbo, but if i understand the line then i can adapt it
[17:21:58] tubbo: dopie: no i totally understand that, but what i'm saying is that particular element is not accessible by a lot of different browsers.
[17:22:08] apotry: has joined #RubyOnRails
[17:22:23] davidjd: @tubbo https://gist.github.com/anonymous/743635397cbbd25f0d53
[17:22:25] goldbug: tubbo: Just trying to reference language_id and f in update_name_fields.coffee: https://gist.github.com/classicgoldbug/dd0f0250d2900b9d84a8
[17:22:26] tubbo: kitsuneyo: well the mechanics of `render` changed dramatically since then, so i think you might want to check out the api.rubyonrails.org documentation and the rails action_view guide
[17:23:19] tubbo: goldbug: i assume update_name_fields is an action on your controller, and update_name_fields.coffee is the view for it
[17:23:37] slash_nick: fryguy: what'd tubbo suggest? requiring rails in your railtie, right?
[17:23:52] tubbo: david__: " NTLM authentication failed" seems like a solid reason
[17:24:09] davidjd: @tubbo yeah but when I go to the site or use curl it wokrs ;/
[17:24:23] kitsuneyo: tubbo, yeah i guess this is no good to me at all
[17:24:26] tubbo: fryguy: i'm *pretty* sure if you use engine.rb instead of railtie.rb, and place it in 'your_gem/railtie', rails just autoloads it
[17:24:32] tubbo: whenever it needs to
[17:24:41] fryguy: slash_nick: when I do that, I get:
[17:24:44] tubbo: kitsuneyo: haha no problem...it's pretty common, there are a lot of rails resources out there but they get outdated quickly.
[17:24:49] wldcordeiro: has joined #RubyOnRails
[17:24:50] fryguy: You have already activated activesupport 4.2.4, but your Gemfile requires activesupport 4.2.2. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
[17:24:51] pyemkey: Hello, I would like to know how can I specify a gem per environment. I would like to use enterprise passenger on production server, but passenger open source on other environments(staging development etc). Any idea?
[17:25:53] goldbug: tubbo: No there's no associated action. The CoffeeScript just renders update_name_fields.coffee as javascript.
[17:26:14] goldbug: tubbo: The error I am getting is: NameError (undefined local variable or method `f' for #<#<Class:0x007f9f552d3628>:0x00000003f4ab48>):
[17:26:36] davidjd: @tubbo is there any other way I can fill-out the browser based popup via ruby/rails besides mechanize?
[17:26:56] davidjd: im trying to embed this external ntlm protected site in an iframe, but dont want the auth popup
[17:27:05] EminenceHC: has joined #RubyOnRails
[17:27:13] willharrison: has joined #RubyOnRails
[17:28:23] smathy: david__, "http://23nets.jje3pa.local/" is a very unusual NTLM domain, are you sure about that?
[17:28:38] The_Phoenix: has joined #RubyOnRails
[17:28:54] davidjd: @smathy yeah its something i have to ssh into, a test server for some ancient IIS microsoft site
[17:28:56] thither: Anyone in here know how to see if a point is in a polygon with RGeo? It's telling me .within? and .include? don't exist for the objects I have.
[17:29:06] davidjd: @smathy its also a bit different
[17:29:34] davidjd: microsoft protected, not actually "their" site ;)
[17:29:48] smathy: david__, so when you use curl you're using `--ntlm -u "http://23nets.jje3pa.local/\\ajamison2:pass2424"` ?
[17:30:21] ghanima: has joined #RubyOnRails
[17:30:37] davidjd: @smathy close im doing something like curl -u username:pass --ntlm then the url
[17:30:38] slash_nick: sorry fryguy , i dont know
[17:30:49] davidjd: @smathy so yes, but in a different order
[17:30:50] dopie: got it working
[17:30:55] spiman: has joined #RubyOnRails
[17:30:56] dopie: tubbo, added an id... :)
[17:31:20] slash_nick: dopie: you got it working, but tubbo was right to warn you not to do that
[17:31:22] smathy: david__, the fifth argument to add_auth is the NT domain.
[17:31:44] smathy: david__, if you don't have anything in your curl command as a prefix to the username then it sounds like you don't have an NT domain.
[17:31:55] tubbo: dopie: yeah that will definitely work, but it would be a *lot* easier to test if you simply made the <div> an <a> tag.
[17:32:00] tubbo: dopie: that way you can click_link 'Categories'
[17:32:13] yairgo: has joined #RubyOnRails
[17:32:14] tubbo: it's less error prone
[17:32:38] smathy: david__, I would try passing both nil and ""
[17:32:45] mghaig: has joined #RubyOnRails
[17:32:55] dopie: tubbo, I c
[17:33:04] yairgo: I have an oldschool problem going on, from rails 2.3.8 upgrading to rails 3.2.8. Have some old tables that have different primary key colums
[17:33:27] yairgo: set_primary_key was deprecated, so in my model I now have self.primary_key = ???value'
[17:34:04] smathy: david__, usually your NTLM login with curl will look something like this: curl --ntlm -u "abc_corp\\smathy:foobar" where "abc_corp" is the NT domain and is what would go as the fifth argument to add_auth.
[17:34:04] davidjd: @smathy the actual username is osmething like jje3pa/ajamison
[17:34:16] davidjd: @smathy i mean jje3pa\ajamison
[17:34:18] smathy: david__, forward slash, or backslash?
[17:34:35] smathy: david__, right, so jje3pa is your domain, THAT should be the fifth arg to add_auth.
[17:34:46] fryguy: slash_nick: works fine as an engine, so I guess i'll just use that
[17:34:57] spiman: hello, can i use tap on an active record association and change the order? example gist (draper specific) : https://gist.github.com/spiman/bb38fbda62d2e3b516bc
[17:35:02] yairgo: and my column is not being set. anyone know anything about this? I???ve tried googling for answers but can???t find anything
[17:35:57] slash_nick: fryguy: aw, punting? your example is pretty similar to http://edgeapi.rubyonrails.org/classes/Rails/Railtie.html ... but not exactly
[17:36:16] fryguy: slash_nick: that's the documentation I followed
[17:36:18] davidjd: @smathy still getting the error, tried it an escaped backslash username and without escape
[17:36:21] smathy: yairgo, !gist please
[17:36:21] helpa: yairgo: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[17:36:23] thither: Is there a way to make the rails console not show me the traceback when I'm dicking around with the repl?
[17:36:29] thither: It's really annoying
[17:36:51] smathy: david__, backslash?
[17:37:07] matthewd: spiman: !try
[17:37:07] helpa: spiman: Why don't you try it and find out for yourself?
[17:37:13] davidjd: @smathy https://gist.github.com/anonymous/20ec40a4fee03ba7c1cf
[17:37:40] smathy: david__, starting to think you're trolling me now.
[17:37:46] davidjd: @smathy im not ;(
[17:38:00] davidjd: i trieed it like that, and with an extra '\" and '\' to escape it
[17:38:00] slash_nick: fryguy: you differ on the first section, creating your railtie
[17:38:13] davidjd: i trieed it like that, and with an extra '\" after '\' to escape it
[17:38:18] fryguy: slash_nick: no i don't
[17:38:23] fryguy: slash_nick: what do you see that's different
[17:38:44] smathy: david__, I told you to change the domain (fifth) argument to "jje3pa" and you changed that AND the username argument.
[17:39:35] dionysus69: has joined #RubyOnRails
[17:39:56] arthurix: has joined #RubyOnRails
[17:40:03] smathy: david__, in the string "jje3pa\ajamison" the "jje3pa" is the domain (and hence to be supplied to add_auth as the fifth argument) and "ajamison" is the username (and hence, as you originally had, to be supplied to add_auth as the second argument).
[17:40:16] ibouvousaime_: has joined #RubyOnRails
[17:40:36] colinm: has joined #RubyOnRails
[17:40:40] davidjd: @smathy trying now, for curl i use the domain name with a forward slash though
[17:40:58] davidjd: i guess this is why i use linux
[17:41:09] mtmcfarl: has joined #RubyOnRails
[17:41:18] smathy: david__, probably a curl option addition to make it simpler to supply both without having to escape the \
[17:41:18] Maletor: has joined #RubyOnRails
[17:41:29] smathy: david__, you can probably provide "domain\\username:password" too
[17:41:41] slash_nick: fryguy: in the examples, `require 'my_gem/railtie' if defined?(Rails)` occurs in my_gem/railtie.rb ... in your example, that code is included in lib/my_gem.rb (lib/, probably)
[17:41:45] mtmcfarl: anyone know why the asset pipeline would show one image with the correct url and another image with a generic /images/image.jpg url?
[17:42:07] mtmcfarl: both are linked via image_tag(image_url('.....'))
[17:42:10] fryguy: slash_nick: can you reread the comments on that page again? I don't think you are correct
[17:42:33] The_Phoenix: has joined #RubyOnRails
[17:43:05] davidjd: @smathy :-D
[17:43:14] davidjd: @smathy thanks
[17:43:18] smathy: david__, you're welcome.
[17:43:21] slash_nick: fryguy: you're right
[17:43:22] cmacritchie: has joined #RubyOnRails
[17:44:00] slash_nick: fryguy: i thought it looked weird, the require at the bottom of a file
[17:44:03] davidjd: @smathy can I run mechanize from a rails controller and start a session at the target url so that If i embed it, it wont prompt for authentication?
[17:44:11] slash_nick: sorry fryguy, can't help
[17:44:14] davidjd: embed (i.e iframe)
[17:45:13] fryguy: slash_nick: just gonna use an engine, it just works and it seems fine
[17:45:18] smathy: david__, no.
[17:45:22] Sylario: I added XFCE to my ubuntu workstation, and now, Capistrano ignore my key authentification, making me unable to deploy any code
[17:45:36] Sylario: a direct SSH works without password
[17:45:40] smathy: david__, the socket will be open from your server to the remote NTLM host, nothing to do with the machine that the browser is running on.
[17:45:44] Sylario: i have no idea what is happening
[17:45:46] slash_nick: cool, fryguy... sorry to goad you about punting
[17:46:01] matthewd: mtmcfarl: The one that's getting '/images' isn't being found
[17:46:18] cmacritchie: I am trying to do user registration with devise/ ember, I am sending the request to my /api/users endpoint which I have configured in the routes for devise to use, etc. When I register I get a 201 created message, everything shows good and all of the data is passed to the users table except the email...
[17:46:28] cmacritchie: any ideas on why the email would not pass through
[17:46:32] joshkovach: has joined #RubyOnRails
[17:46:33] cmacritchie: I have tried strong params, etc
[17:46:38] mtmcfarl: matthewd: That's right. They both need to be getting the /assets/image-fingerprint
[17:46:43] davidjd: is there a way I can embed the mechanize responses so that it isnt just static html, (i.e if a user clicks something it will get sent to the remote server)
[17:46:46] smathy: sylario, !gist your console session showing the output you get from capistrano
[17:46:46] helpa: sylario: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[17:46:46] mtmcfarl: one is and the others aren't
[17:47:12] matthewd: mtmcfarl: I mean it's not finding the file in the asset path, and that's *why* it ends up with /images
[17:47:53] mtmcfarl: matthewd: interesting. I'll double check that
[17:49:24] smathy: david__, simplest would be to use a reverse proxy (eg. nginx) so the user just connects to your host and it proxies the connection through to the remote host (adding in the auth at the server).
[17:49:30] Sylario: smathy: it is the same that when i have not yet set up key auth : https://gist.github.com/anonymous/70bece387d0d88a38613
[17:49:48] Sylario: difference is that i have key auth working
[17:50:13] Sylario: i just installed xfce :/
[17:50:20] davidjd: @smathy and I can render it within a "local" rails app?
[17:50:25] yairgo: https://gist.github.com/yairgo/90e67807312135125b01
[17:50:52] rromanch_: has joined #RubyOnRails
[17:52:56] mrtomme: has joined #RubyOnRails
[17:53:08] smathy: sylario, so now show me the result of you sshing to your repo host.
[17:53:59] greengriminal: has joined #RubyOnRails
[17:54:26] smathy: sylario, and you may as well include the output of `git remote -v`
[17:55:05] Sylario: Smathy : it is just the greetings and the prompt
[17:55:08] smathy: david__, it'd have nothing to do with rails.
[17:55:13] The_Phoenix: has joined #RubyOnRails
[17:55:31] Sylario: and the remote is the correct IP
[17:55:37] lemur: has joined #RubyOnRails
[17:56:11] smathy: sylario, if you don't want to do as requested then I can't help you.
[17:57:10] desmondhume: has joined #RubyOnRails
[17:57:21] Megamos: Failing to return sunspot (search gem) search results to the view. Unsure of my routing and what happens after the form send post request. Do I have to make a seperate template to show my results in? https://gist.github.com/megamos/b6d2f5b0ae4ff327aa72
[17:57:52] rakm: has joined #RubyOnRails
[17:59:13] smathy: cmacritchie, !gist your controller, model, and logs of the POST request
[17:59:13] helpa: cmacritchie: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[18:00:26] Sylario: smathy: here they are : https://gist.github.com/bsylvain/c24dad94c3c7ba9a5ca7 but i do not know what info they have
[18:01:04] andrew9184: has joined #RubyOnRails
[18:02:13] davidjd: @smathy is there anyway I can append the login creds to the url so pass in src in an iframe?
[18:02:22] davidjd: like it works with basic, usename:password@url
[18:02:36] Sylario: git push also lost the ability to use auth with key
[18:02:46] annlewis: has joined #RubyOnRails
[18:03:32] mghaig: has joined #RubyOnRails
[18:04:37] smathy: sylario, you're not showing the command you're running, I really want to see from one command prompt to the next.
[18:04:41] mutsayu: has joined #RubyOnRails
[18:04:56] kies: has joined #RubyOnRails
[18:05:05] Sylario: it's ssh admin@server
[18:05:12] mutsayu: "You don't have /home/me/.gem/ruby/2.2.0/bin in your PATH" while I try to install ROR, how can I set this correctly in my path:
[18:05:16] Sylario: and for the other it's git remote -v you gave me
[18:05:38] colleenmcguckin: has joined #RubyOnRails
[18:06:39] Sylario: smathy: ok, if i ssh to the ip it does not work
[18:06:52] Sylario: i mean, it ask the password
[18:06:57] kerunaru: has joined #RubyOnRails
[18:07:23] smathy: sylario, so this is obscured by your xx.xx.xx.xx pastes. So listen, I need to see the actual stuff otherwise it's impossible to help you.
[18:07:29] banister: has joined #RubyOnRails
[18:07:36] axl_: has joined #RubyOnRails
[18:07:56] Sylario: smathy: i think i got the problem, ssh use key with domain name, but not with the ip
[18:08:02] dionysus69: has joined #RubyOnRails
[18:08:09] Guest53: has joined #RubyOnRails
[18:08:12] baweaver: has joined #RubyOnRails
[18:08:17] demonlove: has joined #RubyOnRails
[18:08:23] Sylario: it's just an IP, a public one
[18:08:47] smathy: sylario, yeah but by not showing it I can't see that you're doing different things in the cap vs the ssh test. That's the whole point.
[18:08:58] mutsayu: "You don't have /home/me/.gem/ruby/2.2.0/bin in your PATH" while I try to install ROR, how can I set this correctly in my path:
[18:10:03] smathy: sylario, a minute ago you were telling me that this was all working and you baulked at even showing me, and yet it seems that this difference between the hostname used in your cap vs the hostname used in your ssh test was EXACTLY the problem. Ironically the hostname/IP were things you "xx"ed out in your pastes. Hopefully next time you just paste what you're asked for.
[18:10:35] Sylario: smathy : sorry, but it still worked before xfce
[18:10:38] scmx: has joined #RubyOnRails
[18:10:51] smathy: mutsayu, !dry
[18:10:51] helpa: mutsayu: Don't repeat yourself. Asking the same question repeatedly will not give you more answers.
[18:11:15] mutsayu: smathy: maybe cos no'ne has read my question [;
[18:11:30] dopie: tubbo, slash_nick I tried your solution click_link 'Categories' and it didn't find the categories link
[18:11:33] trav408: has joined #RubyOnRails
[18:11:37] dopie: https://gist.github.com/staycreativedesign/e35aed4c88bda44b9483
[18:11:55] smathy: sylario, I never argued with that claim, as little sense as it makes. Maybe you changed something else and forgot, but the point really is if you need help then it's silly not to give the person trying to help you what they're asking for.
[18:11:58] RegulationD: has joined #RubyOnRails
[18:12:21] Sylario: i am a little bit paranoid with IP and Domain
[18:12:28] smathy: mutsayu, don't be so impatient.
[18:12:56] nettoweb: has joined #RubyOnRails
[18:13:07] smathy: mutsayu, you repeated the same question within 4 minutes, and you added three lines of just ?s
[18:13:16] gusrub: has joined #RubyOnRails
[18:13:25] smathy: mutsayu, do you think you've paid for sub-4 minute response times or something?
[18:13:25] tubbo: dopie: what about click_link '#category-main-list'?
[18:13:41] tubbo: dopie: because sometimes capybara can't match on content, e.g. if you have the text "Categories" anywhere else on the page
[18:14:14] smathy: mutsayu, so let me put this in terms you'll understand, being impatient makes those of us who take the time to answer people's questions LESS likely to respond to you.
[18:14:41] tubbo: mutsayu: ?
[18:14:59] flashpoint9: has joined #RubyOnRails
[18:15:15] demonlove: has joined #RubyOnRails
[18:15:37] smathy: sylario, then make it a private gist and PM the URL to someone if they're willing to help. Not showing it undermines any effort to help you.
[18:15:56] tubbo: lol the question doesn't even have anything to do with rails, you just don't have that dir in your shell's $PATH
[18:16:38] tubbo: dopie: hmm, i'm also not sure you want to have any additional content in there if you're gonna make that 'Categories' text clickable.
[18:17:05] dopie: Basically that button is a js dropdown of categories
[18:17:08] romdi: has joined #RubyOnRails
[18:17:12] dopie: you click on it... categories appear
[18:17:38] EminenceHC: has joined #RubyOnRails
[18:17:59] maxz: has joined #RubyOnRails
[18:18:15] dopie: when I click on it I'm supposed to see the categories but i do a pots page.body
[18:18:28] dopie: and I don't see it... so capybara isn't clicking on the link?
[18:18:36] dopie: I'm using capybara with poltergeist
[18:18:47] tubbo: dopie: if capybara can't find the link to click on, it will throw an error. otherwise it did click the link, your code just didn't do anything :)
[18:18:56] tubbo: dopie: it's possible you are selecting the wrong thing
[18:19:05] dopie: <input id="category_2" name="profile[category_ids][]" type="checkbox" value="2" />
[18:19:06] dopie: <label for="category_2">Coil Tubing</label>
[18:19:22] dopie: wouldn't I select check "Coil Tubing' ?
[18:19:35] tubbo: dopie: no
[18:20:32] tubbo: dopie: first of all, that has to be visible for capy to select it. second of all, if it's in the <a> (or <div>) tag, the click event binding on the parent tag will be taken into account, not the click action on the underlying child <input> and <label> tags you have in there.
[18:20:55] pyemkey: I have in Gemfile gems that I would like to use depends on environment. I have more than standard 3 environments(test development production). On production I would like to use enterprise version of passenger and open source on other. https://gist.github.com/pyemkey/de724aa40dff2b9007aa Anyone knows how could resolve my problem?
[18:21:19] tubbo: dopie: so the way you have designed this markup means that it probably won't work the way you intended it to. i think what you should do is use a containing div for "the whole field", and then make other elements that live side-by-side which are acutally clickable.
[18:21:39] veg_: has joined #RubyOnRails
[18:23:01] tubbo: dopie: this is super contrived, but check out this edit to your gist https://gist.github.com/tubbo/b16fbe285cb8952f5ce3
[18:23:09] tubbo: i assume you already have that JS code written
[18:23:16] tubbo: but i wanted to show you what the selector could look like
[18:23:25] dopie: It works when I run it myself
[18:23:37] djbkd: has joined #RubyOnRails
[18:23:50] tubbo: dopie: so you have this big #category-toggle containing div that houses all of the stuff for this component, then you wrap the <h3> with an <a> tag to make that the "clickable" element, and use the <fieldset> to actually display the data.
[18:24:29] smathy: pyemkey, you can do that, just that you can't use the Rails.env way, you'd need to use like `if ENV['RAILS_ENV'] == 'production'` and make sure that's set in your deploy tool.
[18:25:18] willharrison: has joined #RubyOnRails
[18:25:57] smathy: pyemkey, you can also use bundler groups, and in development you'd need to do something like: bundle --without=production
[18:26:04] Ergo: has joined #RubyOnRails
[18:26:35] rgtk: has joined #RubyOnRails
[18:26:45] smathy: pyemkey, once done once that setting will be saved in your .bundle/config file (which you could commit to source control).
[18:28:28] Yomero3: has joined #RubyOnRails
[18:28:55] agoldboi: has joined #RubyOnRails
[18:30:49] hardtail: has joined #RubyOnRails
[18:32:11] davidjd: @smathy is there anyway I can append the ntlm login creds to the url so pass in src in an iframe like i would with basic auth (username:password@url)
[18:33:00] jsrn_: has joined #RubyOnRails
[18:33:08] pyemkey: smathy: Thank you for your examples :)
[18:35:33] manfrin: has joined #RubyOnRails
[18:36:05] njero: has joined #RubyOnRails
[18:37:50] alex88: has joined #RubyOnRails
[18:40:18] smathy: david__, I don't know, it's possible - I mean basically that's what curl is doing for you, ie. negotiating the NTLM nonce behind the scenes so to the user it looks like a single request.
[18:40:57] davidjd: @smathy, yeah but i want to do it within the browser somehow, nginx/reverse proxy went a bit over my head ; /
[18:41:35] smathy: david__, if it can do it then it'll be: http://domain\user:password@hostname/ or maybe http://user%40domain:password@hostname/
[18:42:02] smathy: david__, right, why do you think "in the browser" is not what we're talking about.
[18:42:09] smathy: pyemkey, you're welcome.
[18:43:01] raj___: has joined #RubyOnRails
[18:43:03] smathy: david__, it is also possible that if there's only one domain on the remote Windows host that simply: http://username:password@hostname/ will work.
[18:44:09] smathy: david__, (hopefully) needless to say, you will be exposing that Windows machine's username/password to every user of your site.
[18:44:36] darkxploit: has joined #RubyOnRails
[18:46:20] moeabdol: has joined #RubyOnRails
[18:46:31] davidjd: @smathy doesn't seem like appending the creds to the url will work (or that its a good idea anyway). how can I use curl for the browser session?
[18:46:50] davidjd: @smathy i tried getting a cookie and appending it to the url, but didnt get any cookies from curl
[18:48:37] davidjd: im basically trying to avoid all the needless html parsing etc, trying to consume a site without an api
[18:49:13] jcandan: has joined #RubyOnRails
[18:51:18] jkamenik: has joined #RubyOnRails
[18:51:48] tianyi: has joined #RubyOnRails
[18:52:21] Guest53: has joined #RubyOnRails
[18:52:35] raunicolae: has joined #RubyOnRails
[18:52:45] raunicolae: has left #RubyOnRails: ()
[18:52:46] shmambo: has joined #RubyOnRails
[18:53:10] smathy: david__, not sure what "use curl for the browser session" means. I thought you had already connected to the site using curl.
[18:53:36] User458764: has joined #RubyOnRails
[18:53:50] rgtk: has joined #RubyOnRails
[18:53:50] youngbaks: has joined #RubyOnRails
[18:54:24] SteenJobs: has joined #RubyOnRails
[18:54:55] Oog: has joined #RubyOnRails
[18:55:12] scmx: has joined #RubyOnRails
[18:55:16] nettoweb: has joined #RubyOnRails
[18:55:21] davidjd: @smathy I'm trying to avoid parsing through the site, collecting the user input, sending it back, getting the response etc just because I can't auto fill the authentication popup
[18:55:48] infinitone: has joined #RubyOnRails
[18:56:19] lemur: has joined #RubyOnRails
[18:56:22] smathy: david__, right, you're trying to proxy the connection from the browser to the remote NTLM site without the browser having to login.
[18:56:30] smathy: david__, that's why I suggested a reverse proxy.
[18:56:32] Megamos: has joined #RubyOnRails
[18:56:51] smathy: david__, I don't know what you think curl has to do with any of this.
[18:57:18] smathy: (other than your own local testing of the auth to that host.
[18:58:11] bobbobbins: has joined #RubyOnRails
[18:58:20] yardenbar: has joined #RubyOnRails
[18:59:06] mikecmpbll: has joined #RubyOnRails
[18:59:18] smathy: david__, if reverse proxy goes over your head, either improve your knowledge, hire/partner-with someone with more knowledge, or use your app/ruby as the interface between browser and remote site and just accept the poor performance that will be.
[18:59:40] davidjd: @smathy when you say poor performance, you mean the login popup?
[19:00:07] jgpawletko: has joined #RubyOnRails
[19:00:33] dtordable: has joined #RubyOnRails
[19:01:14] EminenceHC: has joined #RubyOnRails
[19:01:41] arup_r: Why my CSS selector is getting failed as Syntax error is Capybara? https://gist.github.com/aruprakshit/70a066af8591bad588b1
[19:02:58] kitsuneyo: has joined #RubyOnRails
[19:03:01] Nerfdude: has joined #RubyOnRails
[19:03:02] smathy: david__, not sure what "login popup" you mean, I would think that the idea would be that your app would handle the NTLM.
[19:03:12] freezevee: has joined #RubyOnRails
[19:03:17] annlewis: has joined #RubyOnRails
[19:03:41] hardtail: has joined #RubyOnRails
[19:04:41] lubekpl: has joined #RubyOnRails
[19:05:24] momomomomo: has joined #RubyOnRails
[19:06:35] arup_r: The same CSS selector works in browser dev tool.. and but not in Capybara
[19:06:49] bruno-: has joined #RubyOnRails
[19:06:49] smathy: arup_r, my guess is that it's your numeric ID. Numeric IDs were only introduced in html5, so either your doctype doesn't specify that or your capybara driver doesn't know about it.
[19:07:04] kies: has joined #RubyOnRails
[19:07:20] hahuang65: has joined #RubyOnRails
[19:08:02] axl_: has joined #RubyOnRails
[19:09:58] Nerfdude: has left #RubyOnRails: ()
[19:10:28] arup_r: smathy: I used different selector with [value="x"] and it worked. thanks.. I used inside the spec `save_and_open_page` to show me the page in browser, but why not it is coming.. ?
[19:10:29] baweaver: has joined #RubyOnRails
[19:10:55] lacuna: has joined #RubyOnRails
[19:10:55] lacuna: has joined #RubyOnRails
[19:11:36] arup_r: http://www.rubydoc.info/github/jnicklas/capybara/Capybara/Session#save_and_open_page-instance_method
[19:11:48] arup_r: it is only saving, not opening in broser
[19:12:19] chubijs: has joined #RubyOnRails
[19:12:27] Megamosaren: has joined #RubyOnRails
[19:13:07] chubijs: Hello. I've got a quick question... What is wrong in this link_to erb statement? What I want it to do is to use a image as a button for switching languages. :)
[19:13:10] chubijs: <%= link_to_unless_current(image_tag("lvbtn.jpg", :alt => "LV lang"), locale: "lv", class: "lvbtn")
[19:13:53] arup_r: ok, where the `href` ? chubijs
[19:14:16] arup_r: you need to give it a path helper as a second srg, which is missing I see
[19:14:18] chubijs: to a jpg file in my assets foder
[19:14:47] DiCablo: has joined #RubyOnRails
[19:15:04] ruurd: has joined #RubyOnRails
[19:15:23] chubijs: Hmm. But the code kinda works, it does what it's supposed to. I just cant target it with my css... I want to resize the image
[19:15:27] arup_r: <0%= link_to_unless_current(image_path("lvbtn.jpg"), locale: "lv", class: "lvbtn") { image_tag("lvbtn.jpg", :alt => "LV lang") }
[19:15:41] User458764: has joined #RubyOnRails
[19:15:50] chubijs: tyvm, i'll give this a try <3
[19:17:14] qejk: has joined #RubyOnRails
[19:17:24] hahuang65: has joined #RubyOnRails
[19:17:32] chubijs: It's weird, still cant target it with my css
[19:17:33] lacuna: has joined #RubyOnRails
[19:18:07] chubijs: nothing happens when I try to change the width and height
[19:19:10] darrencauthon: has joined #RubyOnRails
[19:19:54] Pazician: has joined #RubyOnRails
[19:20:43] mary5030: has joined #RubyOnRails
[19:21:07] comrad: has joined #RubyOnRails
[19:21:07] techandy1: has joined #RubyOnRails
[19:21:18] nettoweb: has joined #RubyOnRails
[19:21:30] wkoszek: When I type "rails g XXX", is there a way/plugin mechanism to write an extension to intercept all the arguments to "rails" ?
[19:21:42] comrad: i want to write a CustomConstraint for my routes. I could not find the preferred location in the directory tree where to put the file
[19:21:51] nertzy: has joined #RubyOnRails
[19:23:45] darrenca_: has joined #RubyOnRails
[19:24:26] allcentury: has joined #RubyOnRails
[19:24:38] techandy1: has joined #RubyOnRails
[19:24:45] mary5030_: has joined #RubyOnRails
[19:25:24] comrad: ah some on github put them in /lib/constraints
[19:25:29] techandy1: I need alittle bit of help
[19:25:41] mary5030_: has joined #RubyOnRails
[19:25:53] flashpoint9: has joined #RubyOnRails
[19:26:19] momomomomo_: has joined #RubyOnRails
[19:26:54] barhum2013: has joined #RubyOnRails
[19:27:23] hashpuppy: has joined #RubyOnRails
[19:27:47] techandy1: When I restart my computer and try and run rails new (project) -d mysql, it doesn't work. The only way I can get it to work is by running these two commands first: source /usr/local/share/chruby/chruby.sh and source /usr/local/share/chruby/auto.sh. How can I add the to the path so that when I restart my computer I don't have to keep doing the source commands.
[19:28:07] hashpuppy: has left #RubyOnRails: ()
[19:28:13] alb12: has joined #RubyOnRails
[19:28:34] pimpin: has joined #RubyOnRails
[19:29:36] tenderlo_: has joined #RubyOnRails
[19:30:27] Radar: GOOD MORNING
[19:30:29] comrad: techandy1: if you would be so kind and reveal your operating system to us
[19:30:43] Radar: techandy1: put those two lines into ~/.bash_profile, then load a new terminal
[19:30:49] Radar: comrad: ubuntu iirc
[19:31:16] comrad: techandy1: listen to radar
[19:31:26] comrad: techandy1: the file might also be called ~/.bashrc
[19:31:27] lacuna: has joined #RubyOnRails
[19:31:27] lacuna: has joined #RubyOnRails
[19:31:38] willharrison: has joined #RubyOnRails
[19:32:30] techandy1: do I add them as is?
[19:34:30] Radar: techandy1: yes, just those two source lines
[19:34:32] Radar: does it work?
[19:34:37] EminenceHC: has joined #RubyOnRails
[19:34:40] darrencauthon: has joined #RubyOnRails
[19:34:47] techandy1: yes, it worked thank you
[19:34:49] cornerma1: has joined #RubyOnRails
[19:34:54] bobbobbins: has joined #RubyOnRails
[19:35:36] siaW: has joined #RubyOnRails
[19:36:13] mary5030: has joined #RubyOnRails
[19:36:20] momomomomo: has joined #RubyOnRails
[19:37:06] nickenchuggets: has joined #RubyOnRails
[19:37:51] lacuna: has joined #RubyOnRails
[19:37:51] lacuna: has joined #RubyOnRails
[19:38:54] njero: has joined #RubyOnRails
[19:39:41] njero: hey.. is there a way in rails i can lock controller action between threads?
[19:40:10] epochwolf: n_e_o: what are you trying to do?
[19:40:53] mary5030_: has joined #RubyOnRails
[19:41:05] njero: epochwolf: i'm reading from db and merging some data and writing it back. So i need to prevent same action running concurrently
[19:41:22] stamina: has joined #RubyOnRails
[19:41:29] epochwolf: n_e_o: that's not going to work when you have multiple rails servers running in production.
[19:41:39] matthewd: n_e_o: You want to lock the database records, then
[19:41:46] Radar: n_e_o: YourModel.with_lock do
[19:42:22] epochwolf: I'd read up on database locks before throwing them around everywhere.
[19:42:25] njero: k. so how will i accomplish in multiserver mode
[19:42:27] mary5030: has joined #RubyOnRails
[19:42:38] epochwolf: n_e_o: table or row level locking in the database.
[19:42:50] ur5us: has joined #RubyOnRails
[19:42:53] tw1sted: has joined #RubyOnRails
[19:43:17] epochwolf: You'll want to know how those work before you start using them because they will block everything else from touching those records.
[19:43:49] njero: epochwolf: no i need only to prevent that action . no other actions :(
[19:44:51] Radar: Give a person the answer, then watch them ignore it
[19:44:54] Radar: Welcome to #rubyonrails
[19:45:15] epochwolf: Radar: my first time back in 6 months and I'm reminded why I'm never around.
[19:45:18] njero: Radar: what u mean
[19:45:23] rhizome: there's a trick to spoonfeeding productively
[19:45:27] Radar: n_e_o: Your'e ignoring the answer I gave you.
[19:45:43] Radar: n_e_o: https://gist.github.com/radar/7481c0c2a33ad55153c4
[19:45:48] njero: Radar: sorry dude.. I didn't mean it
[19:45:55] Radar: You can even pair that with lock_version if you don't want people to modify the record at the same time
[19:46:15] njero: Radar: awesome.. let me try.. :)
[19:46:58] kerunaru: has joined #RubyOnRails
[19:47:01] matthewd: Radar: Talking of welcomes, 4.2.5/4.1.14 are out, if you want to update the topic
[19:47:12] matthewd: Though they don't seem to be twitter-official yet ??\_(???)_/??
[19:47:28] Radar: matthewd: no blog announcement. I wait for that first to update the topic.
[19:48:06] tenderlove: has joined #RubyOnRails
[19:49:22] ruurd: has joined #RubyOnRails
[19:51:08] gavit: I have a t able t hat I want to migrate into two tables. is it okay to add some kind of way to seed the new table with data in the migration(based on data from the table)
[19:51:25] smathy: gavit, yes.
[19:51:53] gavit: now to think on how to do it :)
[19:51:54] kraytul_: has left #RubyOnRails: ()
[19:52:31] lacuna: has joined #RubyOnRails
[19:52:31] lacuna: has joined #RubyOnRails
[19:52:48] SteenJobs: has joined #RubyOnRails
[19:53:05] x-light: has joined #RubyOnRails
[19:53:10] agoldboi: has joined #RubyOnRails
[19:53:56] rhizome: for extra credit, make it reversible ;)
[19:54:10] foucist: has joined #RubyOnRails
[19:55:26] epochwolf: raise ActiveRecord::IrreversibleMigration if not :D
[19:55:56] rhizome: INTO OUTFILE
[19:56:04] njero: hey.. does this Model.with_lock block other reads?
[19:56:23] epochwolf: n_e_o: no, it blocks updates by default on postgres.
[19:57:02] epochwolf: by default it does SELECT ... FOR UPDATE
[19:57:13] blahwoop: has joined #RubyOnRails
[19:57:47] ruurd: has joined #RubyOnRails
[19:58:10] njero: epochwolf: and does it also prevents same method across servers?
[19:58:25] njero: or just an update lock on db?
[19:58:43] epochwolf: n_e_o: no, it locks the rows in the database until the transaction finishes.
[19:58:45] mary5030: has joined #RubyOnRails
[19:59:13] Cork: has joined #RubyOnRails
[20:00:52] mary5030: has joined #RubyOnRails
[20:01:21] Mattx: how do you rename a HABTM join table?
[20:01:53] mary5030_: has joined #RubyOnRails
[20:02:09] epochwolf: Mattx: do you mean specifying a non-default name for the table or renaming an existing one?
[20:02:25] arup_r: using join_table: option Mattx
[20:02:30] Mattx: I declared the association like this: has_and_belongs_to_many :conversions, join_table: "conversions"
[20:02:34] Mattx: but I'm getting "NameError: uninitialized constant Promotion::Conversion"
[20:02:44] tubbo: yo dawg, i heard you like coffeescript's existance operator
[20:02:56] Mattx: arup_r, that's what I tried :/
[20:03:17] nettoweb: has joined #RubyOnRails
[20:03:52] ProLoser: has joined #RubyOnRails
[20:03:56] arup_r: How do you guys session hash inside capybara test.. Inside test session hash don't work :(
[20:04:05] annlewis: has joined #RubyOnRails
[20:04:06] mary5030: has joined #RubyOnRails
[20:04:08] arup_r: How should I get a handle on it
[20:04:14] mices: devise_for: is in addition to the model's regular routes or in substition of
[20:04:26] matthewd: Mattx: How is that error related to a table name? :/
[20:04:29] njero: epochwolf: awesome.. But confusing. What action happen if i wrap block of code inside transaction?
[20:04:57] njero: epochwolf: will it be locked across servers or just that one?
[20:05:10] arup_r: oh.. need to use Gem again..:/
[20:05:10] erbesharat: has joined #RubyOnRails
[20:05:13] smathy: arup_r, it's a capy test, you should actually do whatever a user would do to get the session.
[20:05:13] rhizome: n_e_o: how many database servers do you have?
[20:05:14] Maletor: has joined #RubyOnRails
[20:05:23] epochwolf: n_e_o: all servers, with_lock askes the database to lock records.
[20:05:37] simkessy: has joined #RubyOnRails
[20:05:56] tubbo: https://bugs.ruby-lang.org/issues/11537
[20:06:01] Mattx: never mind, it was my fault :P
[20:06:07] Mattx: matthewd, thanks
[20:06:13] dragonkh: has joined #RubyOnRails
[20:06:17] arup_r: smathy: Inside the controller loosing session value.. But, if I write pry.debug test is getting passed.. lol
[20:06:25] DoubleMalt: has joined #RubyOnRails
[20:06:36] erichu: has joined #RubyOnRails
[20:06:38] tubbo: mices: you should probably use `devise_for` rather than the routes you get in `resources`.
[20:06:59] piotrj: has joined #RubyOnRails
[20:07:00] njero: rhizome: epochwolf none. I'm curious. :) I'm developing only. not yet deployed
[20:07:24] rhizome: you have no database servers? what are you locking?
[20:07:54] mary5030_: has joined #RubyOnRails
[20:07:55] tubbo: n_e_o: definitely wait for rails to screw up before attempting to code in those transactions...AR does most of your queries in a transaction anyway.
[20:08:01] epochwolf: n_e_o: that's scary... development behavior is going to be different than production. >.<
[20:08:04] rgtk: has joined #RubyOnRails
[20:08:12] njero: rhizome: no i mean i haven't deployed yet. will start with aws ec2
[20:08:42] njero: tubbo: epochwolf :(
[20:08:51] arup_r: smathy: https://gist.github.com/aruprakshit/70a066af8591bad588b1/edit
[20:08:55] mary5030: has joined #RubyOnRails
[20:09:19] arup_r: he is saying what I feel from the test: http://railsware.com/blog/2012/01/07/accessing-application-session-in-capybara/
[20:09:26] smathy: Radar, "You can even pair that with lock_version if you don't want people to modify the record at the same time" - you meant: if you *do* want people... And you don't want to combine that with pessimistic, pessimistic will win.
[20:09:27] arup_r: Access to session and request is not possible from the test ...
[20:09:32] rhizome: tubbo: u!profile!thumbnails!large
[20:10:19] mices: tubbo: when i run rake routes i get "unitialized constant Admin" https://gist.github.com/mices/98dc5699265fb8f16c84
[20:10:23] tubbo: rhizome: they're all terrible ideas
[20:10:29] honestemu: has joined #RubyOnRails
[20:10:47] tubbo: it should be like CoffeeScript, u?.profile?.thumbnails?.large
[20:11:23] tubbo: mices: given that you didn't show me the source for app/models/admin.rb, i would have to assume that Admin is not an initialized constant.
[20:11:52] arup_r: smathy: Got this gem https://github.com/railsware/rack_session_access and no idea how it really will helpful for me
[20:12:02] honestemu: How do I avoid duplicates in a dropdown menu. I create it dynamically through the database: <%= select(:microsite, :sub_zone, Microsite.all.collect {|m| m.sub_zone}, { include_blank: 'SubZone' }) %>
[20:12:12] smathy: arup_r, I don't understand your problem explanation, and you haven't shown the views that the errors come from.
[20:12:22] arup_r: I gave gist
[20:12:33] arup_r: https://gist.github.com/aruprakshit/70a066af8591bad588b1
[20:12:36] smathy: honestemu, .uniq
[20:12:58] arBmind: has joined #RubyOnRails
[20:13:00] smathy: arup_r, saw it, hence my comment.
[20:14:07] davidjd: @smathy so if I try and reverse proxy to an NTLM site, how can I pass the login creds, can I use mechanize#add_auth? https://gist.github.com/anonymous/0764b464e482f56be5d5
[20:14:43] arup_r: ok. there is button to add asset.. which if I click will store the asset_id in session hash. And that action working. ( https://gist.github.com/aruprakshit/70a066af8591bad588b1#file-distributionlist_spec-rb-L20) . Now when I will click on "conplee sharing" buttin it will go to the sessions#new action ( https://gist.github.com/aruprakshit/70a066af8591bad588b1#file-distributionlist_spec-rb-L21)
[20:14:47] arup_r: smathy: ^^
[20:15:14] arup_r: So when it is going to the #new action. it is telling session[:shared_items] is `nil`.
[20:15:17] mary5030: has joined #RubyOnRails
[20:15:18] arup_r: which blows up
[20:15:19] smathy: david__, mechanize? I said this before, a reverse proxy will be done through something like nginx, it has NOTHING to do with your app, ruby, rails, etc.
[20:15:31] arup_r: That shouldn't be happen there.
[20:15:50] based_pdev_: has joined #RubyOnRails
[20:15:53] arup_r: but if i add pry.debug their to debug the test is getting passed.
[20:16:45] arup_r: is it clear now ?
[20:17:42] mary5030_: has joined #RubyOnRails
[20:18:05] njero: has joined #RubyOnRails
[20:18:18] mices: tubbo: ty
[20:18:34] zero-1: has joined #RubyOnRails
[20:18:36] smathy: arup_r, ok, my turn. See this https://gist.github.com/aruprakshit/70a066af8591bad588b1#file-log-txt-L25-L30 - that's the error, see the files it mentions there? THEY'RE NOT IN YOUR GIST!!
[20:19:11] xardion_: has joined #RubyOnRails
[20:19:24] zero-1: hi, anyone having problems with the mysql2 gem after upgrading to mysql 5.7.9?
[20:19:24] smathy: arup_r, is it clear now?
[20:19:31] mary5030_: has joined #RubyOnRails
[20:19:41] smathy: zero-1, what version is your gem?
[20:19:55] arup_r: How my error got changed? :/ let me do some more tests run.. :/
[20:20:15] zero-1: mysql2 0.3.11 as per bundle
[20:20:54] smathy: zero-1, that's from 2011 - might be time for an update.
[20:20:57] zero-1: smathy: hey smathy, it's been a while, how are you?
[20:21:12] smathy: zero-1, I'm as awesome and brilliant as ever.
[20:21:36] zero-1: smathy: heh, how's the family?
[20:21:46] smathy: Spectacular.
[20:21:48] honestemu: smathy: Got any examples on how to use .uniq in my case?
[20:22:05] njero: has joined #RubyOnRails
[20:22:18] smathy: honestemu, did you look it up? What did you try?
[20:23:02] lord4163: has joined #RubyOnRails
[20:24:06] dopie: I create a before block when I want to set things in the database so capybara can see them
[20:25:18] honestemu: smathy: Nevermind. I got it to work lol.
[20:25:42] kadoppe: has joined #RubyOnRails
[20:25:51] arup_r: smathy: now added the errors https://gist.github.com/aruprakshit/70a066af8591bad588b1
[20:25:58] arup_r: sorry for the last time.
[20:25:59] honestemu: smathy: Thanks.
[20:26:03] djbkd: has joined #RubyOnRails
[20:26:35] smathy: dopie, !try
[20:26:35] helpa: dopie: Why don't you try it and find out for yourself?
[20:26:38] corioliss: has joined #RubyOnRails
[20:26:42] smathy: honestemu, you're welcome.
[20:26:55] dopie: it didn't work
[20:27:07] scmx: has joined #RubyOnRails
[20:28:08] dici: has joined #RubyOnRails
[20:28:35] smathy: dopie, right, so now - explain your problem. What did you do. What did you expect it to do. What actually happened.
[20:28:45] wkoszek: Radar: You have a lot of good stuff on your website.
[20:28:46] dopie: yes I'm trying to formulate everything
[20:28:59] bobbobbins: has joined #RubyOnRails
[20:29:09] zero-1: has left #RubyOnRails: ("WeeChat 1.3")
[20:29:38] jcandan: has joined #RubyOnRails
[20:29:53] smathy: arup_r, I can't see what's supposed to be setting that session var. I assume SharesController#add_item but you're not demonstrating what's supposed to be calling that action.
[20:30:06] smathy: arup_r, nor do you provide enough information for me to glean it on my own.
[20:30:15] arup_r: ok. there is button to add asset.. which if I click will store the asset_id in session hash. And that action working. ( https://gist.github.com/aruprakshit/70a066af8591bad588b1#file-distributionlist_spec-rb-L20) . Now when I will click on "conplee sharing" buttin it will go to the sessions#new action ( https://gist.github.com/aruprakshit/70a066af8591bad588b1#file-distributionlist_spec-rb-L21)
[20:31:19] smathy: arup_r, ok, so assuming what you say is actually working, let me state your problem for you and see if you can confirm that this is it....
[20:31:50] baweaver: has joined #RubyOnRails
[20:32:07] momomomomo: has joined #RubyOnRails
[20:32:58] smathy: arup_r, line 20 of your spec is calling the SharesController#add_item action (and you know this from your test.log or something) and line 21 is calling SharesController#new but session[:shared_items] is nil (and hence raising the exception shown in the gist) and you don't understand why because add_item is meant to be setting it to at least []
[20:33:01] arthurix_: has joined #RubyOnRails
[20:33:38] arup_r: yes. that is what I am not able to understand
[20:34:16] chipotle: has joined #RubyOnRails
[20:34:44] smathy: arup_r, and amazingly, if you put a pry.debug in your new action then by the time you execute session[:shared_items] on the next line, it DOES have a value.
[20:35:06] arup_r: Yes, and that is freaking ..
[20:35:07] kitsuneyo: suppose you have a records table with unique index on multiple columns [:foo, :bar], and your url looks like records/foo/bar, what do you put in the controller show action? like @record = Record.find(params[:foo, :bar]) ??
[20:35:26] smathy: arup_r, :) What if, instead of a pry.debug you just put a sleep 1 in there?
[20:35:35] smathy: arup_r, or a sleep 1 between lines 20 and 21 in your spec?
[20:35:41] arup_r: let me see
[20:36:03] EminenceHC: has joined #RubyOnRails
[20:36:08] Radar: wkoszek: thank you
[20:36:19] nzst: has joined #RubyOnRails
[20:36:24] nzst: Any talk of postcss support?
[20:36:31] njero: hey.. got one more doubt.. how will rails issue lock(not just transaction) for a piece of code when it's run in multiple servers or distributed
[20:36:39] Radar: nzst: for...?
[20:36:47] nzst: Radar: rails and the asset pipeline
[20:37:04] sinkensabe: has joined #RubyOnRails
[20:37:05] nzst: i was under the impression it's no bueno, at the moment
[20:37:24] arup_r: kitsuneyo: No use find_by matcher
[20:37:25] Radar: nzst: I log this channel using helpa.
[20:37:30] Coldblackice: has joined #RubyOnRails
[20:37:34] Radar: nzst: Here are all the mentions of "postcss" ever.
[20:37:42] Radar: https://gist.github.com/radar/f0da08118bf860f68d5f
[20:37:53] Radar: Bet you can guess who wrote all those messages.
[20:37:55] rgtk: has joined #RubyOnRails
[20:38:09] nzst: odd, it's up and coming https://github.com/postcss/postcss
[20:38:15] nzst: frontend devs are drooling
[20:38:43] arup_r: kitsuneyo: find works only with id. if you want to search something else use find_by or where
[20:38:46] kitsuneyo: arup_r: so @record = Record.find_by(params[:foo, :bar]) will work?
[20:38:46] tubbo: nzst: time to get famous with your all-new sprockets plugin ;)
[20:38:56] arup_r: kitsuneyo: No
[20:39:15] arup_r: User.find_by(email: "email", country: "IN")
[20:39:17] arup_r: like that
[20:39:23] nzst: tubbo: what does that entail?
[20:39:45] tubbo: nzst: i don't know.
[20:40:09] nzst: Does anyone have a good tutorial on writing a sprockets plugin?
[20:40:33] kitsuneyo: i see, thanks arup_r
[20:40:36] tubbo: nzst: i just meant if you can't find a gem to get sprockets to compile your postcss code, you can write a plugin for rails that will do it. i'd look at the way sass-rails and coffee-rails were implemented to get an idea of what that entails.
[20:40:39] arup_r: smathy: that sleep 2 now causing varities of erros.. sometimes here and there .. :)but the original error goes away
[20:40:43] willharrison: has joined #RubyOnRails
[20:41:39] Pazician: has joined #RubyOnRails
[20:41:46] rhizome: obviously the way to improve CSS is to put javascript in it
[20:42:05] nzst: rhizome: i agree, css has needed a facelift for some time
[20:42:22] rhizome: i was being sarcastic
[20:42:24] tubbo: nzst: not sure what postcss does that's any better than anything else.
[20:42:32] Radar: sarcasm doesn't translate well across the itnernet
[20:42:38] rhizome: thanks, i'm new
[20:42:44] nzst: rhizome: it's cool i was being oblivious
[20:43:08] nzst: i'm just curious on how to get postcss and rails working together, it'd make some people on my team very happy
[20:43:12] Axsuul: has joined #RubyOnRails
[20:43:19] rhizome: because they're all about postcss?
[20:43:28] nzst: yup, they're digging it
[20:43:45] smathy: arup_r, right, and does that trigger in your mind the problem here?
[20:43:46] FailBit: kaminari is a piece of shit
[20:43:46] Radar: https://github.com/postcss/postcss#usage
[20:43:54] Radar: Seems like there is some good usage instructions right there
[20:44:12] pimpin: has joined #RubyOnRails
[20:44:15] Radar: evil martians (the sponsor) is a Rails shop. I'd consider it a bug if they don't show how to integrate with Rails yet
[20:44:19] bruno-: has joined #RubyOnRails
[20:44:23] arup_r: smathy: No, I was supposed to ask you what made you think that way ? :)
[20:45:07] smathy: arup_r, c'mon, you can get this. Line 20 does what?
[20:45:21] Cervajz: has joined #RubyOnRails
[20:45:27] arup_r: it is adding to the session..
[20:45:36] smathy: arup_r, no, what does line 20 itself actually do?
[20:45:46] crdpink: has joined #RubyOnRails
[20:45:53] arup_r: oh. got it.. it was crawling the page
[20:46:21] smathy: arup_r, not sure what that means.
[20:46:54] arup_r: ok.. looking for a checkbox which matches the given selector..
[20:47:14] smathy: arup_r, not just that.
[20:47:28] kies: has joined #RubyOnRails
[20:47:57] arup_r: and then check the checkbox and add the asset id to session hash
[20:48:06] nzst: tubbo: in coffee-rails and sass-rails I don't really get where the processing happens that might be similar
[20:49:28] tubbo: nzst: https://github.com/rails/coffee-rails/blob/master/lib/coffee/rails/template_handler.rb#L10
[20:49:36] nzst: tubbo: came across this https://github.com/josh/ruby-coffee-script
[20:49:44] tubbo: nzst: that's the line of code which compiles CS into JS.
[20:49:56] smathy: arup_r, no, that's not what line 20 does at all.
[20:50:22] smathy: arup_r, do you think that .click method actually adds the asset id to the session hash?
[20:50:44] smathy: arup_r, I'll give you a hint at what it does: it's named very well.
[20:50:49] arup_r: oh.. hum. no it actually making Ajax call
[20:51:09] smathy: arup_r, right, I'll pay that. It really just sends the click event to the element.
[20:51:45] arup_r: on click Ajax is happening and then inside the action asset id is getting added to the session hash
[20:51:54] smathy: arup_r, but sure, that initiates an ajax call. So off that goes, into the ether. And what does your test do next?
[20:52:31] smathy: arup_r, right, but while that's going down off on the server, what's your test doing?
[20:52:46] Radar: nzst: I wrote the asset pipeline guide and so I know nothing at all about the asset pipeline
[20:52:54] arup_r: Trying to fetch the vaule of the session which is not yet added..
[20:53:02] Radar: nzst: However, this is what I think sass-rails uses to hook into the asset pipeline: https://github.com/rails/sass-rails/blob/master/lib/sass/rails/railtie.rb#L57-L68
[20:53:10] smathy: arup_r, your test is doing that?
[20:53:17] Radar: nzst: I think that rabbit hole will keep you busy enough
[20:53:23] nzst: Radar: haha . thanks :)
[20:53:25] smathy: arup_r, you think line 21 is "trying to fetch the value of the session"?
[20:53:39] arup_r: You mean asynchronous action happened..
[20:53:51] tubbo: oh yeah, sorry
[20:53:53] arup_r: no it makes another Ajax call
[20:54:00] rhizome: is there a bible of turbolinks?
[20:54:00] tubbo: that's kinda what i was looking for, register_transformer
[20:54:11] herpless: has joined #RubyOnRails
[20:54:16] Pumukel: has joined #RubyOnRails
[20:54:33] smathy: arup_r, well you tell me, is an ajax call synchronous or asynchronous?
[20:54:37] Helheim: has joined #RubyOnRails
[20:54:51] tubbo: rhizome: nope. most people haven't bothered with it. actually, turbolinks is rather nice.
[20:55:01] tubbo: rhizome: it's just poorly documented.
[20:55:52] piotrj_: has joined #RubyOnRails
[20:56:29] rhizome: agree on all points
[20:56:42] arup_r: smathy: I got the reason of using sleep .. Thanks for pointing me there
[20:57:11] smathy: arup_r, you're welcome.
[20:57:13] agoldboi: has joined #RubyOnRails
[20:57:18] rhizome: i think i'm going to use it on something, actually post-hoc after upgrading from 3.x to 4.2
[20:57:25] rhizome: should be an adventure
[20:57:52] smathy: arup_r, just one small point of clarification - line 20 doesn't even send the ajax call, it just sends the click event to the element, that's also asych, so it actually doesn't even wait for the ajax to be triggered, it just fires a click even and returns.
[20:58:17] momomomomo: has joined #RubyOnRails
[20:58:49] baweaver: has joined #RubyOnRails
[20:59:08] Antoine59: has joined #RubyOnRails
[20:59:53] arup_r: makes sense.. I was on this issue since 1 long hours.. SO posts changed my thought process as they said, session is not available in test, so I raised hadn with them too :D
[20:59:59] smathy: rhizome, I found the README to be pretty damned informative.
[21:00:00] tubbo: rhizome: i'm using it on http://beta.brother.ly/
[21:00:08] tubbo: yeah the README is about the only docs you get
[21:00:10] tubbo: so it better be informative.
[21:00:21] tubbo: i think there's a wiki page about all the various events
[21:00:23] tubbo: and that's it
[21:00:39] smathy: arup_r, yeah, they mean that, unlike in controller tests, you can't DIRECTLY access the session inside your test code.
[21:00:57] Antoine59: hello, I'm having a problem with my model that before_destroy does not get executed at all when using ".delete" method
[21:01:09] smathy: arup_r, eg. you can't: assert_equal "bar", session[:foo]
[21:01:16] Antoine59: what might I have been doing wrong ?
[21:01:23] matthewd: antoine__: Sounds like you want .destroy ?
[21:01:29] tubbo: antoine__: you're using the Model#delete method, you want Model#destroy
[21:01:29] smathy: antoine__, expecting callbacks to be called when using .delete
[21:01:48] Guest53: has joined #RubyOnRails
[21:01:59] yran: has joined #RubyOnRails
[21:02:18] smathy: antoine__, actually what you're doing wrong is not reading the API docs.
[21:03:06] `based_pdev`: has joined #RubyOnRails
[21:03:35] arup_r: antoine__: ...
[21:04:22] Antoine59: tubbo thanks , it seems that you are one of few honourable people around to teach newbies
[21:04:38] rhizome: nothing like a veiled insult
[21:04:42] smathy: That's gotta sting matthewd
[21:04:50] annlewis: has joined #RubyOnRails
[21:04:50] tubbo: antoine__: correct. matthewd, smathy, rhizome, and arup_r are entirely without honor. #klingons
[21:04:59] rhizome: TAKE THAT, ME
[21:05:17] matthewd: It's a fair cop
[21:05:18] smathy: ACTION stabs tubbo in the colon
[21:05:32] rhizome: there's entirely too much colon-stabbing today
[21:05:39] Antoine59: matthewd a thanks for you too my friend
[21:05:45] smathy: Is any amount acceptable?
[21:05:56] rhizome: you have to read the room
[21:06:56] smathy: ACTION , shamed and dishonored, stabs himself
[21:07:10] tubbo: hari-colon?
[21:07:19] rhizome: seppukolon
[21:07:45] rhizome: if you hit the colon, you're too low
[21:07:47] colleenmcguckin: has joined #RubyOnRails
[21:08:12] sinkensabe: has joined #RubyOnRails
[21:08:15] jessemcgilallen: has joined #RubyOnRails
[21:08:50] arthurix: has joined #RubyOnRails
[21:08:57] Antoine59: matthewd, and tubbo if you can help me again by leading me to a tutorial on how to clone a model into two db destinations ? say mysql and couchbase ?
[21:09:50] axl_: has joined #RubyOnRails
[21:10:06] matthewd: antoine__: That sounds a bit too niche to be picky about who helps you ;)
[21:10:20] tubbo: antoine__: you can't do that with one model calss.
[21:10:42] Antoine59: well other people are saying things about not reading, I'm trying my best ...
[21:10:56] tubbo: that's good
[21:11:01] Antoine59: tube I did understand that, I need to use two models each with a diff. backend
[21:11:28] tubbo: antoine__: there's an attributes method on every AR model, so you could probably just wholesale insert that into the couchbase model.
[21:11:30] Antoine59: but I'm trying to read about association and I couldn't find a way to dup
[21:11:54] honestemu: has joined #RubyOnRails
[21:13:04] RegulationD: has joined #RubyOnRails
[21:13:36] ruurd: he's a pc... he does whaaaat???
[21:17:02] smathy: Dear hundreds of other people on the channel (other than matthewd and tubbo), sorry that my comment excluded you all from helping antoine__, I know that especially all you couchdb experts (like myself) are terribly heartbroken not to be able to help.
[21:19:25] cmacritchie: has joined #RubyOnRails
[21:19:34] cmacritchie: hey guys here is a gist with the issues I was having earlier
[21:19:35] cmacritchie: https://gist.github.com/colinmacritchie/f500063ee8f656e2c7a4
[21:19:52] momomomomo: smathy: I've never used it, but I remember you were a fan
[21:19:53] cmacritchie: with the email for a user not being passed to the users table on signup with devise/ember
[21:20:01] momomomomo: especially for the mobile app, right?
[21:20:09] cmacritchie: includes terminal putput which shows 201 created
[21:20:40] rhizome: smathy: feats of strength are next
[21:21:13] momomomomo: my feet are really strong rhizome
[21:21:41] matthewd: cmacritchie: https://gist.github.com/colinmacritchie/f500063ee8f656e2c7a4#file-terminal-output-L8
[21:21:55] cmacritchie: even if I fix gthat
[21:21:59] cmacritchie: it does not pass
[21:22:11] cmacritchie: thats just a method in the users.rb
[21:22:30] rhizome: red queen syndrome: solving problems reveals new problems
[21:22:54] davidjd: @smathy i've been checking out how to reverse proxy into NTLM, and so far I haven't seen anything that actually passes the credentials so the user doesn't have to enter them, is that possible?
[21:22:55] momomomomo: solving one problem with regexp: now you have two problems
[21:23:14] centrx: has joined #RubyOnRails
[21:25:59] tubbo: red queen?
[21:27:06] momomomomo_: has joined #RubyOnRails
[21:28:51] cmacritchie: anyone have any ideas?
[21:29:03] smathy: cmacritchie, https://gist.github.com/colinmacritchie/f500063ee8f656e2c7a4#file-user-rb-L51
[21:29:19] cmacritchie: need to remove that?
[21:29:19] smathy: cmacritchie, you created new accessor methods for :email - overriding the AR ones.
[21:29:30] Radar: cmacritchie: Why do you have that attr_accessor anyway?
[21:29:34] skakri: has joined #RubyOnRails
[21:29:44] cmacritchie: I did not put it there
[21:29:47] cmacritchie: someone else probably did
[21:29:56] Radar: git blame
[21:30:23] baweaver: has joined #RubyOnRails
[21:30:41] smathy: git colon-stab
[21:32:50] Pazician: has joined #RubyOnRails
[21:33:33] smathy: david__, answers like this came up in the top few google results: http://stackoverflow.com/a/22918442/152786
[21:33:59] davidjd: @smathy I saw that one, but i dont see him actually passing the username/password
[21:34:08] davidjd: wanted to check if you knew if that was possible
[21:35:02] smathy: david__, not sure if that's actually providing the auth details at the server, or just passing them through from browser to the remote host though.
[21:36:26] mary5030: has joined #RubyOnRails
[21:36:38] mdel: has joined #RubyOnRails
[21:37:40] colleenmcguckin: has joined #RubyOnRails
[21:38:25] robbyoconnor: has joined #RubyOnRails
[21:39:29] blackmes1: has joined #RubyOnRails
[21:40:08] smathy: david__, I'm sure it can be done, but I'm not an expert in setting this up. Probably you need samba and maybe neither nginx nor apache supports it, you might need to use squid or something.
[21:40:15] VeryBewitching: has joined #RubyOnRails
[21:41:17] honestemu: has joined #RubyOnRails
[21:42:32] arup_r: I am using this Gem( https://github.com/estum/growlyflash), to show the flash success/error messages when doing Ajax. Works pretty well. No able to capture the text while testing some UI page. What I tried useless, https://gist.github.com/aruprakshit/c2e3fd662a610c474b60
[21:43:29] smathy: david__, here's an overview of setting up squid to use winbind from samba to do the NTLM nonce against a domain server: http://wiki.squid-cache.org/ConfigExamples/Authenticate/Ntlm
[21:43:32] arup_r: because the message has timeout set, so it goes away after the preset interval
[21:43:57] Antoine59: has joined #RubyOnRails
[21:45:04] rakm: has joined #RubyOnRails
[21:45:06] neanderslob: has joined #RubyOnRails
[21:45:32] davidjd: @smathy thanks, checking it out now ;)
[21:45:41] smathy: arup_r, umm, you know the sleeps weren't the real solution to your race condition problems right?
[21:46:15] arup_r: no, I thought sleep is the way to go ahead. :(
[21:46:32] darrencauthon: has joined #RubyOnRails
[21:46:43] centrx: slow and steady wins the race
[21:48:20] smathy: arup_r, arup_r have you read the capy README: https://github.com/jnicklas/capybara ?
[21:48:22] sonofdirt: has joined #RubyOnRails
[21:48:41] TPBallbag: has joined #RubyOnRails
[21:48:44] smathy: arup_r, probably the sleep is causing the content to be gone by the time you're checking for it.
[21:49:07] allcentury: has joined #RubyOnRails
[21:49:15] arup_r: ACTION sweating in this winter... :/
[21:49:19] mghaig: has joined #RubyOnRails
[21:50:32] arup_r: reading..
[21:50:59] threeminutemonta: has joined #RubyOnRails
[21:54:45] dsimon: #rails-contrib seems pretty dead; anybody here have any suggestions or feedback on my PR to add foreign key constraint support to the sqlite adapter? https://github.com/rails/rails/pull/22236
[21:54:48] abcdef: has joined #RubyOnRails
[21:56:02] zvive: has joined #RubyOnRails
[21:56:23] cac: has joined #RubyOnRails
[21:57:21] goodcodeguy: has joined #RubyOnRails
[21:57:32] abc: has joined #RubyOnRails
[21:58:58] Maletor: has joined #RubyOnRails
[21:59:02] stubby3102: has joined #RubyOnRails
[21:59:26] maletor_: has joined #RubyOnRails
[21:59:39] Antoine59: has joined #RubyOnRails
[21:59:54] lemur: has joined #RubyOnRails
[22:00:22] Megamos: has joined #RubyOnRails
[22:00:36] freezevee: has joined #RubyOnRails
[22:01:05] matthewd: dsimon: That does say "3 days ago", right?
[22:01:32] alb12: has joined #RubyOnRails
[22:01:55] dsimon: am i being too impatient? i see other PRs getting feedback sooner, but there are a lot of LOC changed in mine
[22:02:22] cac: has joined #RubyOnRails
[22:02:37] duncannz: has joined #RubyOnRails
[22:02:52] LateralOctober: has joined #RubyOnRails
[22:03:46] arup_r: smathy: I forgot to click submit button.. :) I need sleep. it is 3:40 am now. First day with Capybara and whole shit. Never write integration test before..
[22:03:53] duncannz: has joined #RubyOnRails
[22:04:00] safety_cut: has joined #RubyOnRails
[22:04:03] dsimon: okay. i just didn't want it to get buried; i've had that happen with contributions to other FOSS projects, where the PR gets lost in the pile and I end up having to do a lot more work later rebasing because I wasn't enough of a squeaky wheel
[22:04:31] et09: has joined #RubyOnRails
[22:04:50] rhizome: are you sure that's a rails issue and not one of the sqlite3 gem?
[22:04:55] et09: hi - i'm looking for a very abstract way (like knex or arel) to access a mysql database, without using activerecord - can anyone recommend anything?
[22:04:57] dsimon: however, rails is like an order of magnitude larger and busier than anything else i've written patches for :-)
[22:04:58] blackhuey: has joined #RubyOnRails
[22:05:12] duncannz: has joined #RubyOnRails
[22:05:15] et09: activerecord/activemodel
[22:05:36] annlewis: has joined #RubyOnRails
[22:05:41] rhizome: it is a big PR so i wouldn't expect it to be understood right away
[22:05:49] dsimon: hm, perhaps
[22:06:24] matthewd: dsimon: It's definitely true that easy patches get attention more freely... much easier to take 60 seconds and clear it off the list than sit down with something that actually requires proper consideration
[22:07:03] dsimon: rhizome, the sqlite3 gem is fairly low-level though; and the changes I added to activerecord's adapter are at about the same level of abstraction as what's already there
[22:08:11] jessemcgilallen: has joined #RubyOnRails
[22:08:16] matthewd: Yeah, I agree it is an AR-level problem to solve... though my inclination is that if it's this much work, we're better off just not supporting it
[22:08:20] cac: has joined #RubyOnRails
[22:08:53] dsimon: it could be much much simpler if it didn't have to care about the name of the constraints
[22:09:09] dsimon: i wonder if there's some way to work around that, given that sqlite is mostly used for dev stuff anyways?
[22:10:30] dsimon: i mean, the rails constraint names are generated automatically, so if i assume that only rails-auto-named constraints are present then i could easily match stuff up
[22:10:55] axl_: has joined #RubyOnRails
[22:11:22] dsimon: on the other hand, my changes also fix a bug that was present in the existing code with figuring out the text collation setting for columns with weird names
[22:11:37] dsimon: and i don't think there is a simple way to do that sadly, since i have to parse :-|
[22:11:47] meoblast001: has joined #RubyOnRails
[22:11:59] dsimon: on the gripping hand maybe i should just make a patch for sqlite itself to improve its reflection pragmas
[22:12:38] dsimon: (considering that i only started on this rails patch in order to add a feature to the hobo_fields gem, i think i'm only two steps from the yak)
[22:17:59] wethu: has joined #RubyOnRails
[22:20:29] sinkensabe: has joined #RubyOnRails
[22:20:39] meoblast001: has joined #RubyOnRails
[22:20:56] lubekpl: has joined #RubyOnRails
[22:21:05] yran: has joined #RubyOnRails
[22:22:05] yran: has joined #RubyOnRails
[22:23:03] safety_cut: has joined #RubyOnRails
[22:25:10] Axsuul: has joined #RubyOnRails
[22:26:32] ss_much: has joined #RubyOnRails
[22:28:15] quazimodo: has joined #RubyOnRails
[22:29:55] banister: has joined #RubyOnRails
[22:30:37] yfeldblum: has joined #RubyOnRails
[22:33:02] Jasaka: has joined #RubyOnRails
[22:33:47] trosborn: has joined #RubyOnRails
[22:35:02] kitsuneyo: has joined #RubyOnRails
[22:36:15] crystalneth: has joined #RubyOnRails
[22:36:42] rromanchuk: has joined #RubyOnRails
[22:37:10] northfurr: has joined #RubyOnRails
[22:37:53] demonlove: has joined #RubyOnRails
[22:38:01] bobbobbins: has joined #RubyOnRails
[22:38:28] smathy: dsimon, I put in a couple of comments, seems like you've made a very large change to the adapter, not sure how backwardly compatible that is (with older versions of sqlite3) or why such big changes were warranted to add the fkey support.
[22:38:31] mices: has joined #RubyOnRails
[22:38:50] mices: where can i see all gems so i know what the latest releases are and stuff
[22:39:00] tubbo: mices: https://rubygems.org
[22:39:09] colleenmcguckin: has joined #RubyOnRails
[22:39:14] alyyy: has joined #RubyOnRails
[22:40:10] smathy: dsimon, after reading your comments, you should split your PR so that this bugfix you've done and your fkey addition are in two different PRs.
[22:40:55] smathy: et09, how about arel?
[22:41:13] ebbflowgo: has joined #RubyOnRails
[22:42:18] arthurix: has joined #RubyOnRails
[22:42:31] towski_: has joined #RubyOnRails
[22:43:21] Maletor: has joined #RubyOnRails
[22:43:36] mghaig: has joined #RubyOnRails
[22:45:05] Moeh: has joined #RubyOnRails
[22:45:22] Moeh: What is the fastest way to copy a table from a remote database to my local one using ruby pg gem?
[22:45:37] Moeh: remote *postgres
[22:46:32] njero: has joined #RubyOnRails
[22:46:54] Radar: Moeh: use the taps get
[22:47:58] VeryBewitching: That's a cool gem.
[22:49:19] uri: has joined #RubyOnRails
[22:49:24] matthewd: I imagine the fastest would be a straight COPY FROM / COPY TO, but without looking, I suspect such a gem would be more forgiving
[22:49:28] slash_nick: it'd probably be less headache (using taps) than using the psql gem to worth with the postgres copy from/copy to commands... (copy to a text file, copy from a text file)
[22:50:23] Moeh: Radar: Unfortunately I cannot run any scripts on the remote server
[22:50:42] slash_nick: there's some nuance to using copy that taps probably doesn't care about... and if copy inserts the primary keys, it does not alter the primary key sequence (have to do that yourself afterward)
[22:50:49] Radar: Moeh: Not sure where I said you had to run anything on the remote server. Configure taps to connect to the remote server.
[22:50:57] Moeh: slash_nick: Jeah, I was also thinking about using COPY, however I would like to avoid creating the csv file
[22:51:29] matthewd: Moeh: COPY TO stdin | COPY FROM stdin
[22:51:38] matthewd: (where "|" is "insert ruby code here")
[22:51:47] matthewd: Or, you know... just use a shell pipe :)
[22:52:16] jessemcgilallen: has joined #RubyOnRails
[22:52:19] CodingWolf: has joined #RubyOnRails
[22:53:04] slash_nick: Moeh: there's probably cleaner ways... but here's some sample code using active record and psql's copy from... you'd still need a "copy to" to get it out of the origin db
[22:53:08] slash_nick: https://gist.github.com/rthbound/417641c0fc95e7751e97
[22:53:15] Moeh: Radar: I don't see the possibility of copying only one table
[22:53:50] slash_nick: Moeh: "or when you want to transfer a list of tables"
[22:54:03] slash_nick: it's there in the readme.... --tables the_tables_i_care_abouts
[22:54:22] Radar: ACTION taps out of this one
[22:55:20] slash_nick: ACTION plays taps for Radar 
[22:55:38] jgpawletko: has joined #RubyOnRails
[22:55:39] slash_nick: tooot-toot-toooot
[22:55:51] njero: Radar: slash_nick taps both of you :|
[22:56:59] annlewis: has joined #RubyOnRails
[22:58:37] tetraktys: has joined #RubyOnRails
[23:00:43] lemur: has joined #RubyOnRails
[23:01:26] ahmgeek: has joined #RubyOnRails
[23:02:47] aep: has joined #RubyOnRails
[23:03:08] aep: is there a console command to show all available asset paths? i cant find the right path for image_tag
[23:06:00] bobbobbins: has joined #RubyOnRails
[23:06:02] arthurix_: has joined #RubyOnRails
[23:07:14] EminenceHC: has joined #RubyOnRails
[23:07:28] cac: has joined #RubyOnRails
[23:09:08] MartinElvar: has joined #RubyOnRails
[23:11:09] VeryBewitching: Moeh: Is the port open on the remote Postgres server?
[23:11:11] Pazician: has joined #RubyOnRails
[23:11:38] Moeh: VeryBewitching: Yes
[23:11:46] VeryBewitching: Moeh: You can use PGAdmin3 to dump the data locally from a remote server.
[23:11:56] VeryBewitching: I'm pretty sure, anyway. And it's open source and free.
[23:11:59] axl_: has joined #RubyOnRails
[23:12:30] VeryBewitching: It won't be automated or "quick", but it'll get you the data.
[23:13:16] Moeh: VeryBewitching: Unfortunately I need it automated
[23:13:48] Moeh: Radar: With the taps gem I would use "postgres://dbuser:dbpassword@localhost/dbname" for the local and the remote server, right?
[23:13:55] Radar: Moeh: !try
[23:13:55] helpa: Moeh: Why don't you try it and find out for yourself?
[23:14:11] Moeh: I always get Net/http.rb:879:in `initialize': getaddrinfo: Name or service not known (SocketError)
[23:14:16] Moeh: That is why I am asking
[23:14:34] Moeh: psql postgres://dbuser:dbpassword@localhost/dbname connects fine
[23:16:37] riotjones: has joined #RubyOnRails
[23:17:08] honestemu: has joined #RubyOnRails
[23:19:11] rgrmatt: has joined #RubyOnRails
[23:19:48] Moeh: If I use Sequel.connect(postgres://dbuser:dbpassword@localhost/dbname) it also works. Strange
[23:20:23] njero: has joined #RubyOnRails
[23:21:57] pyemkey: has joined #RubyOnRails
[23:23:00] Moeh: It seems that the taps gem does not work in my setup
[23:23:21] Ropeney: has joined #RubyOnRails
[23:23:40] pydave6367: has joined #RubyOnRails
[23:24:34] dideler: has joined #RubyOnRails
[23:25:48] safety_cut: has joined #RubyOnRails
[23:28:57] sdwrage: has joined #RubyOnRails
[23:29:18] baweaver: has joined #RubyOnRails
[23:29:44] smathy: Moeh, show your full command for both server and client side.
[23:30:09] bruce_lee: has joined #RubyOnRails
[23:30:54] Radar: Weird that it's using net/http to try and connect to it.
[23:30:58] Radar: I don't know what's up with that.
[23:32:14] LambdaSource: has joined #RubyOnRails
[23:36:32] kitsuneyo: has joined #RubyOnRails
[23:37:20] matthewd: aep: Where is the file?
[23:37:34] kitsuneyo: i used this line to create a route, which works, but my route has no helper path: "match 'location/:country_slug/:state_slug/:city_slug', via: [:get], controller: 'locations', action: :show"
[23:37:42] kitsuneyo: how do i fix that?
[23:37:57] rhizome: kitsuneyo: use as:
[23:38:45] kitsuneyo: thanks rhizome
[23:38:55] rhizome: you're welcome
[23:40:13] cac: has joined #RubyOnRails
[23:40:19] kitsuneyo: yeah that works :D
[23:40:37] ebbflowgo: has joined #RubyOnRails
[23:42:51] urbanmonk: has joined #RubyOnRails
[23:44:17] kitsuneyo: has joined #RubyOnRails
[23:45:00] umgrosscol: has joined #RubyOnRails
[23:45:27] cac: has joined #RubyOnRails
[23:45:38] rickmasta: has joined #RubyOnRails
[23:46:25] bobbobbins: has joined #RubyOnRails
[23:48:10] crystalmaiden: has joined #RubyOnRails
[23:48:24] gambl0re: has joined #RubyOnRails
[23:48:31] ur5us: has joined #RubyOnRails
[23:49:54] johnflux_: has joined #RubyOnRails
[23:52:08] yfeldblum: has joined #RubyOnRails
[23:52:56] Axsuul: has joined #RubyOnRails
[23:53:15] wwalker: has joined #RubyOnRails
[23:55:55] iooner: has joined #RubyOnRails
[23:56:00] FooBarWidget: has joined #RubyOnRails
[23:56:02] LBRapid: has joined #RubyOnRails
[23:56:46] Eminence_: has joined #RubyOnRails
[23:56:48] owenjones: has joined #RubyOnRails
[23:57:40] aaronseibert: has joined #RubyOnRails
[23:57:42] braincrash: has joined #RubyOnRails
[23:58:00] uri: has joined #RubyOnRails
[23:59:17] Radar: kitsuneyo: you can write it shorter too
[23:59:29] one_zero: has joined #RubyOnRails
[23:59:32] Radar: patience grasshopper
[23:59:45] Radar: get 'location/:country_slug/:state_slug/:city_slug', to: 'locations#show', as: :location