« Back to channel list

#RubyOnRails - 28 April 2016

« Back 1 day Forward 1 day »
[00:00:08] atrius: has joined #RubyOnRails
[00:00:37] cnk: has joined #RubyOnRails
[00:02:11] Caerus: has joined #RubyOnRails
[00:08:15] mwlang: Radar: you’re right…it’s generated tests…or more accurately, generated tests that are including and calling on shared contexts.
[00:09:01] Radar: mwlang: yay I like being right
[00:09:02] mwlang: dry_crud’s test framework is a good example of why *not* to do a crap-load of metaprogramming in the test specs. This stuff is nigh impossible to follow and trace through.
[00:10:03] baweaver: tests should be simple and stupid
[00:10:04] mwlang: I still have no clue how to read the output. :-p But slowly I’m tracing back to the root cause.
[00:10:18] GodFather: has joined #RubyOnRails
[00:10:19] baweaver: the more clever you are in your specs, the harder it is to actually, you know, test anything
[00:10:30] mwlang: baweaver: I prefer mine to be smart. :-)
[00:10:56] mwlang: by smart, I just mean don’t waste my time testing stuff that’s never gonna fail.
[00:11:30] mwlang: you know, like its(:id) { is_expected.to be_kind_of Integer }
[00:11:45] Radar: left lane should left lane
[00:16:51] delgiudices: has joined #RubyOnRails
[00:18:59] fmcgeough: has joined #RubyOnRails
[00:20:24] sypheren: has joined #RubyOnRails
[00:21:33] pyemkey: has joined #RubyOnRails
[00:25:50] SeanLazer: has joined #RubyOnRails
[00:26:10] test: has joined #RubyOnRails
[00:29:39] idefine: has joined #RubyOnRails
[00:29:44] djbkd: has joined #RubyOnRails
[00:30:13] b0un7y: has joined #RubyOnRails
[00:31:04] Brian: has joined #RubyOnRails
[00:34:57] Radar: Guest63286: hello
[00:35:34] crystal77: has joined #RubyOnRails
[00:36:23] heydonovan: has joined #RubyOnRails
[00:39:00] Darmani: Radar: Hey for some reason my Admin seed account doesn't seem to work. When I login and go to the index page nothing comes up.
[00:39:03] Darmani: Any ideas?
[00:39:14] bob434: has joined #RubyOnRails
[00:39:26] Radar: Darmani: code?
[00:39:57] Darmani: It's the same repo I've showed you before https://github.com/mfifth/ticketee
[00:40:26] Radar: What command did you run?
[00:40:52] Darmani: I'm not running any commands, I ran the server and manually tried to login.
[00:41:07] Radar: "Hey for some reason my Admin seed account doesn't seem to work. "
[00:41:16] Radar: How did the admin seed get there in the first place?
[00:41:35] Darmani: oh umm inside the Seed folder in the db directory.
[00:41:50] dchris: did you rake db:seed
[00:42:06] Darmani: of course I did.
[00:42:11] Darmani: I'm pretty sure...
[00:42:15] Darmani: wait yeah I did.
[00:42:19] dchris: are you sure
[00:42:23] Darmani: Because I can login with the account I just can't see the projects.
[00:42:41] Radar: Investigating.
[00:42:42] dchris: if you can log in then it works
[00:42:43] Ropeney: so it does work
[00:42:56] bronson: has joined #RubyOnRails
[00:42:58] Radar: _chris: Admin should be able to see all of the projects.
[00:42:58] Darmani: _chris: But the projects don't show up within the index...
[00:43:10] Radar: Darmani: Works on my machine. Who are you logging in as?
[00:43:17] Darmani: it does wttfff
[00:43:19] Radar: Darmani: I logged in as admin@example.com with the password of "password"
[00:43:24] Radar: Darmani: `rake db:reset` plz
[00:43:26] Darmani: yeah that's what I did...
[00:43:39] nickenchuggets: has joined #RubyOnRails
[00:43:40] Darmani: Radar: What will that do? o.o
[00:44:13] Radar: Darmani: Drop your db, recreate it and then run the migrations
[00:44:25] Radar: you might need to run `rake db:seed` after it. I can never quite remember what db:reset does compeltely.
[00:45:07] arnonhongklay: has joined #RubyOnRails
[00:45:09] Darmani: oh shit it removes everything...
[00:45:09] havenwood: Darmani: Drop the database, create the database, load the schema and initialize with the seed data.
[00:45:35] rickmasta: has joined #RubyOnRails
[00:45:37] havenwood: Darmani: rake -T | grep db:reset
[00:45:57] jaequery: has joined #RubyOnRails
[00:46:21] Darmani: havenwood: mmk.
[00:46:57] Darmani: how2createthedatabase.jpg
[00:47:04] Darmani: load the schema...
[00:47:22] Radar: Darmani: havenwood was quoting from the docs
[00:47:25] Radar: rake -T | grep db:reset
[00:47:34] Radar: It's in the output of ^ that command
[00:48:07] Darmani: It's like you guys are wizards
[00:48:14] baweaver: No good BBQ in SF :(
[00:48:18] Darmani: ACTION gives radar a staff of wisdom
[00:48:26] Radar: ACTION puts it with the others
[00:48:29] smathy: Wizards of resetting shit.
[00:48:44] baweaver: Have you tried turnin' it on and off again?
[00:48:51] Darmani: baweaver: ikr lmao
[00:49:20] smathy: So hilarious.
[00:50:40] arnonhongklay: has joined #RubyOnRails
[00:50:54] pyemkey: has joined #RubyOnRails
[00:58:23] w1lson: has joined #RubyOnRails
[00:59:56] benlieb: has joined #RubyOnRails
[01:01:19] delgiudices: has joined #RubyOnRails
[01:02:35] godzillaenlacasa: has joined #RubyOnRails
[01:02:57] jenrzzz: has joined #RubyOnRails
[01:07:24] GriffinHeart: has joined #RubyOnRails
[01:08:35] baweaver: has joined #RubyOnRails
[01:09:29] one_zero: has joined #RubyOnRails
[01:09:46] one_zero_z: has joined #RubyOnRails
[01:10:55] sleungcy: has joined #RubyOnRails
[01:11:11] one_zero: has joined #RubyOnRails
[01:11:36] bruce_lee: has joined #RubyOnRails
[01:11:36] bruce_lee: has joined #RubyOnRails
[01:13:15] timdotrb: has joined #RubyOnRails
[01:17:21] GriffinHeart: has joined #RubyOnRails
[01:18:36] RegulationD: has joined #RubyOnRails
[01:19:33] LastWhisper____: has joined #RubyOnRails
[01:19:48] jaequery: has joined #RubyOnRails
[01:21:14] idefine: has joined #RubyOnRails
[01:21:47] joshkovach: has joined #RubyOnRails
[01:22:40] sevenseacat: has joined #RubyOnRails
[01:26:33] voidDotClass: has joined #RubyOnRails
[01:26:37] voidDotClass: Question. I have two models: User, School, and I have a 3rd model: UserSchool, which belongs_to user, belongs_to school, and has a few additional metadata fields about the relationship. How can I have a has_many users on the School model, which is mapped to UserSchool instead of users?
[01:31:43] SeanLazer: voidDotClass: has_many :user_schools and has_many :users, through: :user_schools
[01:32:12] voidDotClass: SeanLazer, I want to alias it to user.schools instead of user.user_schools
[01:32:23] stardiviner: has joined #RubyOnRails
[01:32:33] SeanLazer: has_many :schools, class_name: 'UserSchool'
[01:32:48] SeanLazer: this is potentially a bad idea though
[01:33:37] emachnic: has joined #RubyOnRails
[01:33:41] fronistan: has joined #RubyOnRails
[01:33:57] SeanLazer: when you come back to this program in six months you'll forget that User#schools actually returns a collection of UserSchools
[01:34:01] SeanLazer: and that will be unpleasant
[01:35:57] SeanLazer: what's the best way to test a supercontroller? should i just set up a mock sub-controller and some fake routes in my test setup?
[01:36:13] DZj091231kld: has joined #RubyOnRails
[01:36:40] benlieb: agree with SeanLazer. Don't have a user#schools meth return user_schools if you have a School model
[01:36:42] prgmmr: has joined #RubyOnRails
[01:37:21] Aswebb_: has joined #RubyOnRails
[01:37:28] sneakerhax: has joined #RubyOnRails
[01:40:40] manfrin: has joined #RubyOnRails
[01:41:21] SeanLazer: voidDotClass: if you're looking to have an interface that's not as ugly as user.user_schools don't be afraid to give your join tables more expressive names
[01:41:57] voidDotClass: yeah i sorted it, thanks. used a diff. name
[01:43:47] voidDotClass: user.school_membership
[01:45:34] mwlang: user.institutions :-)
[01:46:42] chouhoulis: has joined #RubyOnRails
[01:46:49] bruce_lee: has joined #RubyOnRails
[01:49:04] chouhoul_: has joined #RubyOnRails
[01:49:39] chouhoul_: has joined #RubyOnRails
[01:50:05] wsk: has joined #RubyOnRails
[01:50:23] ur5us: has joined #RubyOnRails
[01:55:08] baweaver: has joined #RubyOnRails
[01:57:53] emachnic: has joined #RubyOnRails
[01:57:54] SeanLazer: what is the best way to test something that is meant to extended/inherited?
[01:58:51] sevenseacat: you make sure the parent class can still be instantiated by itself, or someone's gonna do that down the line and cause problems
[01:58:56] sevenseacat: then you test that :)
[01:59:19] sevenseacat: if it can't, then inheritance probably isnt the best mechanism here
[02:00:08] SeanLazer: sevenseacat: it's a supercontroller, so that makes it a bit trickier
[02:00:22] SeanLazer: looks like the rails team just creates mock controllers right in the test file https://github.com/rails/rails/blob/master/actionpack/test/controller/base_test.rb
[02:00:47] gambl0re: hi sevenseacat...
[02:01:10] SeanLazer: sevenseacat: it's trickier because traditional rails controller testing means running the actions and testing things like what template gets returned
[02:01:27] tenzan: has joined #RubyOnRails
[02:01:53] mwlang: SeanLazer: I just create classes and include or inherit the thing that was meant to be extended/inherited.
[02:02:02] mwlang: and do it right in the specs
[02:02:52] SeanLazer: mwlang: that's looking like the best option. i think in this case i'll also have to set up and tear down some routes for the mock class
[02:03:43] mwlang: SeanLazer: it’s all right there together so the spec’s remain readable and more easily understood.
[02:05:51] mikeiniowa: has joined #RubyOnRails
[02:06:27] SeanLazer: mwlang: cool, thanks, i'll go in that direction
[02:09:01] jfelchner: has joined #RubyOnRails
[02:09:59] emachnic: has joined #RubyOnRails
[02:11:02] DoctorMonocular: has joined #RubyOnRails
[02:12:00] _Tariq_: has joined #RubyOnRails
[02:13:43] GriffinHeart: has joined #RubyOnRails
[02:15:46] w1lson: has joined #RubyOnRails
[02:16:01] rakm: is there a way to do this query: `Test.joins(:test_bugs).where(id: [2078]).as_json(include: :test_bugs)` and not have n+1 db queries to TestBug?
[02:16:39] rakm: oh includes instead of joins does what i want, i think
[02:17:14] Cache_Money: has joined #RubyOnRails
[02:17:31] emachnic: has joined #RubyOnRails
[02:20:35] cnk: rakm: yes includes should
[02:21:43] benlieb: has joined #RubyOnRails
[02:28:12] p1k: has joined #RubyOnRails
[02:28:57] Jameser: has joined #RubyOnRails
[02:29:26] p1k: has joined #RubyOnRails
[02:34:11] xall: has joined #RubyOnRails
[02:34:22] sleungcy: has joined #RubyOnRails
[02:35:52] ur5us: has joined #RubyOnRails
[02:36:12] GriffinHeart: has joined #RubyOnRails
[02:37:37] SteenJobs: has joined #RubyOnRails
[02:39:17] chipotle_: has joined #RubyOnRails
[02:40:52] stardiviner: has joined #RubyOnRails
[02:41:30] bphogan_afk: has joined #RubyOnRails
[02:44:47] bronson: has joined #RubyOnRails
[02:45:02] berserk_ren: has joined #RubyOnRails
[02:45:36] GriffinHeart: has joined #RubyOnRails
[02:54:12] blackmesa: has joined #RubyOnRails
[03:06:34] Jasaka: has joined #RubyOnRails
[03:11:33] GriffinHeart: has joined #RubyOnRails
[03:13:50] Guest81609: has joined #RubyOnRails
[03:14:00] Cache_Money: has joined #RubyOnRails
[03:14:27] DoctorMonocular: has joined #RubyOnRails
[03:16:08] nickenchuggets: has joined #RubyOnRails
[03:17:10] aghalarp: has joined #RubyOnRails
[03:17:44] pyemkey: has joined #RubyOnRails
[03:18:42] rafaelfranca: has joined #RubyOnRails
[03:18:43] rafaelfranca: has joined #RubyOnRails
[03:19:24] braincrash: has joined #RubyOnRails
[03:19:25] RegulationD: has joined #RubyOnRails
[03:20:08] manfrin: has joined #RubyOnRails
[03:21:04] mitt3ns: has joined #RubyOnRails
[03:21:07] pyemkey: has joined #RubyOnRails
[03:21:49] jottr: has joined #RubyOnRails
[03:22:32] ur5us: has joined #RubyOnRails
[03:27:34] codesoda: has joined #RubyOnRails
[03:29:38] Ropeney: has joined #RubyOnRails
[03:30:08] baweaver: has joined #RubyOnRails
[03:36:08] AntiSpamMeta: has joined #RubyOnRails
[03:38:15] Aswebb_: has joined #RubyOnRails
[03:38:53] alexhartley: has joined #RubyOnRails
[03:39:01] njero: has joined #RubyOnRails
[03:39:42] bphogan: has joined #RubyOnRails
[03:40:12] Guest81609: has joined #RubyOnRails
[03:44:05] Cache_Money: has joined #RubyOnRails
[03:44:27] roamingdog: has joined #RubyOnRails
[03:45:54] bronson: has joined #RubyOnRails
[03:46:26] neox999: has joined #RubyOnRails
[03:46:40] stardiviner: has joined #RubyOnRails
[03:47:44] adre: has joined #RubyOnRails
[03:48:44] pawnbox: has joined #RubyOnRails
[03:55:22] Sadin: has joined #RubyOnRails
[03:55:24] tenzan: has joined #RubyOnRails
[03:56:03] neox999: has joined #RubyOnRails
[04:01:39] blackmesa: has joined #RubyOnRails
[04:03:33] DoctorMonocular: has joined #RubyOnRails
[04:03:34] diegoaguilar: has joined #RubyOnRails
[04:10:03] manfrin_: has joined #RubyOnRails
[04:10:35] chouhoulis: has joined #RubyOnRails
[04:10:52] crdpink: has joined #RubyOnRails
[04:14:15] w1lson: has joined #RubyOnRails
[04:15:23] jottr: Hi all. Is anyone in here using sparkpost?
[04:15:35] Spami: has joined #RubyOnRails
[04:16:27] yfeldblum: has joined #RubyOnRails
[04:18:13] yfeldblum: has joined #RubyOnRails
[04:23:47] helpa: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[04:24:16] Spami: has joined #RubyOnRails
[04:25:59] joshkovach: has joined #RubyOnRails
[04:30:09] victorcreed: has joined #RubyOnRails
[04:30:22] joshkovach: has left #RubyOnRails: ()
[04:33:39] Cache_Money: has joined #RubyOnRails
[04:49:01] Devalo: has joined #RubyOnRails
[04:50:01] rafaelfranca: has joined #RubyOnRails
[04:50:02] rafaelfranca: has joined #RubyOnRails
[04:51:41] dionysus69: has joined #RubyOnRails
[04:54:11] pyemkey: has joined #RubyOnRails
[04:57:49] GriffinHeart: has joined #RubyOnRails
[05:02:08] htmldrum: has joined #RubyOnRails
[05:03:00] joshkovach: has joined #RubyOnRails
[05:04:26] blackmesa: has joined #RubyOnRails
[05:05:17] sevenseacat: has joined #RubyOnRails
[05:05:18] navneet: has joined #RubyOnRails
[05:06:58] xall: has joined #RubyOnRails
[05:07:55] Devalo: has joined #RubyOnRails
[05:10:56] navneet_: has joined #RubyOnRails
[05:13:05] Palsson: has joined #RubyOnRails
[05:16:37] iamayam: has joined #RubyOnRails
[05:17:52] fumduq: has joined #RubyOnRails
[05:18:45] p1k: has joined #RubyOnRails
[05:18:48] TheMoonMaster: has joined #RubyOnRails
[05:18:48] TheMoonMaster: has joined #RubyOnRails
[05:19:27] Weavel: has joined #RubyOnRails
[05:26:53] sneakerhax: has joined #RubyOnRails
[05:29:48] tildes: has joined #RubyOnRails
[05:30:44] cmckee: has joined #RubyOnRails
[05:31:34] tenzan: has joined #RubyOnRails
[05:37:44] PedramT: has joined #RubyOnRails
[05:39:07] Aswebb_: has joined #RubyOnRails
[05:43:00] navneet: has joined #RubyOnRails
[05:47:03] moeabdol: has joined #RubyOnRails
[05:47:34] bronson: has joined #RubyOnRails
[05:48:45] Devalo: has joined #RubyOnRails
[05:50:34] Cache_Money: has joined #RubyOnRails
[05:51:25] agent_white: has joined #RubyOnRails
[05:51:40] grassass: has joined #RubyOnRails
[05:52:29] AzaToth: has joined #RubyOnRails
[05:53:29] srinidhi: has joined #RubyOnRails
[05:59:50] jstransky: has joined #RubyOnRails
[06:01:57] pawnbox: has joined #RubyOnRails
[06:07:09] chrissonar: has joined #RubyOnRails
[06:07:29] blackmesa: has joined #RubyOnRails
[06:07:45] netzfisch: has joined #RubyOnRails
[06:10:35] pLaToOn: has joined #RubyOnRails
[06:10:54] Radar: good morning
[06:12:11] Pupeno: has joined #RubyOnRails
[06:14:02] Pupeno: I'm testing my app with capybara and there's a redirect to a different host. It looks like capybara is just ignoring the host and accessing that path in my own app, which is not valid, so it gets a 404. Anybody experience this?
[06:14:39] DoubleMalt: has joined #RubyOnRails
[06:20:21] rvanlieshout: has joined #RubyOnRails
[06:21:15] MEATCHICKEN: has joined #RubyOnRails
[06:22:27] Ropeney: has joined #RubyOnRails
[06:23:23] Ropeney: has joined #RubyOnRails
[06:25:44] Cork: is there a way to hook into a active record before it starts setting values in attributes? (i would like to populate a class variable)
[06:26:12] Cork: Permissions.new(attribute_local_permission: true)
[06:26:24] solars: has joined #RubyOnRails
[06:26:27] sevenseacat: class... variable...?
[06:26:45] rvanlieshout: class variables are not threadsafe. don't use them
[06:26:58] sevenseacat: one of many reasons not to use them
[06:27:47] ishe: has joined #RubyOnRails
[06:29:57] sp1rs: has joined #RubyOnRails
[06:30:24] aghalarp: has joined #RubyOnRails
[06:32:35] p1k: has joined #RubyOnRails
[06:33:31] Cork: sevenseacat: @permisssions is a hash i need to populate
[06:34:27] navneet: has joined #RubyOnRails
[06:38:00] armyriad: has joined #RubyOnRails
[06:38:01] roshanavand: has joined #RubyOnRails
[06:39:59] timdotrb: has joined #RubyOnRails
[06:40:01] sp1rs: has joined #RubyOnRails
[06:40:39] jenrzzz: has joined #RubyOnRails
[06:40:39] jenrzzz: has joined #RubyOnRails
[06:42:34] tvw: has joined #RubyOnRails
[06:46:06] navneet: has joined #RubyOnRails
[06:47:31] ur5us: has joined #RubyOnRails
[06:48:23] PedramT: has joined #RubyOnRails
[06:48:34] bronson: has joined #RubyOnRails
[06:50:55] artto: has joined #RubyOnRails
[06:53:52] jenrzzz: has joined #RubyOnRails
[06:53:57] jenrzzz: has joined #RubyOnRails
[06:56:27] arBmind: has joined #RubyOnRails
[06:57:53] Radar: Pupeno: Yes. Use selenium-webdriver or phantomjs to run your tests.
[06:58:36] chipotle: has joined #RubyOnRails
[07:02:46] lubekpl: has joined #RubyOnRails
[07:06:53] AlexJakeGreen: has joined #RubyOnRails
[07:09:30] PedramT: has joined #RubyOnRails
[07:10:34] blackmesa: has joined #RubyOnRails
[07:13:02] pawnbox: has joined #RubyOnRails
[07:17:19] Pumukel: has joined #RubyOnRails
[07:18:31] tagaulap: has joined #RubyOnRails
[07:19:30] Jet4Fire: has joined #RubyOnRails
[07:20:18] moep: has joined #RubyOnRails
[07:20:52] mark_66: has joined #RubyOnRails
[07:25:56] artto: has joined #RubyOnRails
[07:26:21] pawnbox: has joined #RubyOnRails
[07:29:28] aganov: has joined #RubyOnRails
[07:31:17] Pupeno: Radar: I thought I was using phantomjs, but I didn't set it up properly. Now it's working.
[07:31:44] Pupeno: Does anybody know how to run a method when minitests finds a failing test?
[07:32:42] PedramT: has joined #RubyOnRails
[07:35:31] marcules: has joined #RubyOnRails
[07:37:00] sp1rs: has joined #RubyOnRails
[07:37:37] ur5us: has joined #RubyOnRails
[07:39:18] mikecmpbll: has joined #RubyOnRails
[07:39:18] Ergo: has joined #RubyOnRails
[07:39:49] Aswebb_: has joined #RubyOnRails
[07:40:31] alexhartley: has joined #RubyOnRails
[07:40:45] darutoko: has joined #RubyOnRails
[07:40:56] ishe: has joined #RubyOnRails
[07:41:11] skroon: has joined #RubyOnRails
[07:41:33] PedramT: has joined #RubyOnRails
[07:42:32] tildes: has joined #RubyOnRails
[07:44:30] smoitra: has joined #RubyOnRails
[07:45:26] pawnbox: has joined #RubyOnRails
[07:46:42] PedramT: has joined #RubyOnRails
[07:49:09] marr: has joined #RubyOnRails
[07:49:27] bronson: has joined #RubyOnRails
[07:50:49] edwinvdgraaf: has joined #RubyOnRails
[07:50:54] moeabdol: has joined #RubyOnRails
[07:51:33] rafaelfranca: has joined #RubyOnRails
[07:51:34] rafaelfranca: has joined #RubyOnRails
[07:51:55] TheShaun: has joined #RubyOnRails
[07:54:27] dionysus69: has joined #RubyOnRails
[07:56:16] jenrzzz: has joined #RubyOnRails
[07:56:18] moeabdol: has joined #RubyOnRails
[07:56:44] mikecmpbll: has joined #RubyOnRails
[07:58:59] billy1234: has joined #RubyOnRails
[07:59:11] PedramT: has joined #RubyOnRails
[08:03:22] jsrn: has joined #RubyOnRails
[08:03:23] Pupeno: has joined #RubyOnRails
[08:03:35] mark_66: has left #RubyOnRails: ("PONG :leguin.freenode.net")
[08:05:39] adre: has joined #RubyOnRails
[08:05:51] lycaonian: has joined #RubyOnRails
[08:06:05] artto: has joined #RubyOnRails
[08:07:29] neanderslob: has joined #RubyOnRails
[08:07:30] navneet: has joined #RubyOnRails
[08:08:11] TvL2386: has joined #RubyOnRails
[08:10:36] neanderslob: hi everyone, I'm attempting to use send() within a concern to redirect to a path stored in a variable but am running into some trouble. More here: http://stackoverflow.com/questions/36907776/using-controller-concern-to-redirect-to-path-stored-in-variable if anyone's ineterested
[08:11:25] yfeldblum: has joined #RubyOnRails
[08:13:37] blackmesa: has joined #RubyOnRails
[08:16:09] ishe: has left #RubyOnRails: ("ERC (IRC client for Emacs 24.5.1)")
[08:17:12] sevenseacat: neanderslob: you're missing the redirect_to
[08:18:10] PedramT: has joined #RubyOnRails
[08:18:48] neanderslob: sevenseacat: hah, seems you're right; many thanks
[08:18:58] smoitra: has joined #RubyOnRails
[08:19:08] DoubleMalt: has joined #RubyOnRails
[08:19:30] alexhartley: has joined #RubyOnRails
[08:21:45] borkdude: has joined #RubyOnRails
[08:22:54] chaas: has joined #RubyOnRails
[08:25:47] tjbiddle: has joined #RubyOnRails
[08:29:48] navneet: has joined #RubyOnRails
[08:35:25] arBmind: has joined #RubyOnRails
[08:38:37] sp1rs: has joined #RubyOnRails
[08:40:28] weckl: has joined #RubyOnRails
[08:41:29] pawnbox: has joined #RubyOnRails
[08:42:34] pawnbox: has joined #RubyOnRails
[08:43:30] ferr: has joined #RubyOnRails
[08:44:31] n008f4g_: has joined #RubyOnRails
[08:50:02] shibly: has joined #RubyOnRails
[08:50:12] Pupeno: has joined #RubyOnRails
[08:50:15] shibly: has left #RubyOnRails: ()
[08:50:34] bronson: has joined #RubyOnRails
[08:51:56] Pupeno: has joined #RubyOnRails
[08:52:36] Pupeno: has joined #RubyOnRails
[08:55:57] b0un7y: has joined #RubyOnRails
[08:56:46] Radar: neanderslob: is your space bar broken?
[08:56:55] Radar: neanderslob: wondering why you're writing code like this
[08:56:56] Radar: elsif security.class.name=="Warrant"
[08:57:05] Radar: when usually it would be security.class.name == "Warrant"
[08:57:50] aghalarp: has joined #RubyOnRails
[08:58:23] Radar: neanderslob: It's also mentioned in bbatsov's styleguide here: https://github.com/bbatsov/ruby-style-guide#spaces-operators
[08:58:24] neanderslob: Radar: quite right; space bar's fine though, that's just sloppiness on my part
[08:58:28] sevenseacat: well I would never write any of that code
[08:58:47] lycaonian: has joined #RubyOnRails
[08:58:54] sevenseacat: its all rather scary
[08:59:44] Pupeno_: has joined #RubyOnRails
[08:59:51] skislak: has joined #RubyOnRails
[09:00:08] Radar: I'll see if I can tidy it up
[09:00:25] sevenseacat: without knowing its meaning, i'd be loath to touch it.
[09:00:39] moeabdol: has joined #RubyOnRails
[09:01:19] neanderslob: Radar: much appreciated, I'll see if I can learn something
[09:01:22] Radar: neanderslob: here's a tidier version: https://gist.github.com/radar/05865a54288d494dd723bd01e5de3278
[09:02:06] Radar: neanderslob: You MAY be able to get rid of the whole if/elsif thing altogether
[09:02:16] Radar: If it wasn't for holder.where(dynamid: a).first
[09:02:37] Radar: You can get rid of the path setting most likely
[09:02:39] pawnbox: has joined #RubyOnRails
[09:02:58] Radar: then do: redirect_to [line_item, folder], which I think will generate the right path for you
[09:03:14] Radar: I'd need to tinker with the code and have it backed up with some tests
[09:03:53] Palsson: has joined #RubyOnRails
[09:04:37] fox_mulder_cp: somebody remember nick of newbie, which some days ago show here crazy-code of his app, which has all dirs in app_root? as i know it was app for domain registering hoster..
[09:04:52] fox_mulder_cp: nick begins 'ow*'
[09:05:43] Spami: has joined #RubyOnRails
[09:06:28] futilegames: has joined #RubyOnRails
[09:07:08] tribals: has joined #RubyOnRails
[09:08:20] PedramT: has joined #RubyOnRails
[09:08:22] neanderslob: Radar: you're right, the dynamid is a workaround that I'm using to redirect to a page that pertains to a particular element within a set of fields that have been dynamically generated within cocoon
[09:08:49] tribals: how to deal with form select element for many-to-many association?
[09:10:08] tribals: when working with one-to-many, all works well, we just use `related_model_ids` method
[09:10:21] ur5us: has joined #RubyOnRails
[09:11:04] dgncn: has joined #RubyOnRails
[09:11:42] neanderslob: Radar: is there a clear advantage in using the case>when arrangement? (It's certainly much more elegant; that much is clear)
[09:12:34] tribals: but when working with many-to-many, we must show currently related models, and can be able to remove association, so we hold ids of related models in our select element. BUT we also can be able to
[09:12:34] Pupeno: has joined #RubyOnRails
[09:13:55] tribals: add new models, so we must provide ids of actual related model, not our `many-to-many` model
[09:13:59] tribals: ho do that?
[09:16:38] blackmesa: has joined #RubyOnRails
[09:17:20] neanderslob: Radar: either way, thanks for the pointers
[09:17:59] Caerus: has joined #RubyOnRails
[09:22:43] Pupeno: has joined #RubyOnRails
[09:22:43] tildes: fox_mulder_cp: oqui ?
[09:22:45] baweaver: has joined #RubyOnRails
[09:23:56] blackhuey: has joined #RubyOnRails
[09:24:00] b0un7y_: has joined #RubyOnRails
[09:27:05] snowy: has joined #RubyOnRails
[09:30:48] ferr: has joined #RubyOnRails
[09:31:40] moeabdol: has joined #RubyOnRails
[09:36:59] tjbiddle: has joined #RubyOnRails
[09:39:02] tjbiddle: Hey everyone! CDN question. I know some of you made sure once that I had jquery and jquery_ujs included (Which I had), but said that specifically - rather than asking if I had that or included it via a CDN. I've been including all my JS libraries via rails-assets gems so that I could develop offline, but is there some other workflow I'm missing here?
[09:40:18] Pupeno_: has joined #RubyOnRails
[09:40:43] Aswebb_: has joined #RubyOnRails
[09:41:36] sevenseacat: yeah, don't use rails-assets gems or a CDN in development
[09:42:38] sp1rs: has joined #RubyOnRails
[09:42:53] Pupeno_W: has joined #RubyOnRails
[09:45:04] nickjj_: has joined #RubyOnRails
[09:50:35] artto: has joined #RubyOnRails
[09:51:15] bronson: has joined #RubyOnRails
[09:56:27] Ergo^: has joined #RubyOnRails
[09:56:29] pawnbox: has joined #RubyOnRails
[09:57:40] blackmesa: has joined #RubyOnRails
[09:58:36] null__: has joined #RubyOnRails
[10:02:07] b0un7y_: has joined #RubyOnRails
[10:02:26] smoitra: has joined #RubyOnRails
[10:04:10] chipotle: has joined #RubyOnRails
[10:10:16] codelahoma: has joined #RubyOnRails
[10:10:20] PedramT: has joined #RubyOnRails
[10:10:37] moeabdol: has joined #RubyOnRails
[10:16:08] Cork: anyone looked into how the new or query is suppose to work with scopes?
[10:16:13] Cork: (rails 5)
[10:17:43] kailido: has joined #RubyOnRails
[10:18:26] iwada: has joined #RubyOnRails
[10:18:27] siaW: has joined #RubyOnRails
[10:18:39] artto: has joined #RubyOnRails
[10:18:45] mdw: has joined #RubyOnRails
[10:19:01] Pupeno_W: Does anybody know how to run a method when a test fails? I want to generate some debug data.
[10:19:05] n008f4g_: has joined #RubyOnRails
[10:19:35] robbyoconnor: has joined #RubyOnRails
[10:19:45] kailido: render partial: 'improvement_actions/improvement_action', collection: @improvement_action, locals: { tab: "votes" })
[10:19:58] kailido: this is rendering all improvs, how can I render one ?
[10:20:00] mikecmpbll: has joined #RubyOnRails
[10:20:12] kailido: im trying to do this with ajax
[10:24:50] universa1: kailido: render partial: ..., object: whatever, ...
[10:28:13] GriffinHeart: has joined #RubyOnRails
[10:28:53] iwada: I've made changes to devise.en.yml. but those changes arent reflected
[10:29:10] iwada: Please how do i fix this?
[10:29:50] xall: has joined #RubyOnRails
[10:29:53] Janno: did you restart server after you modified them?
[10:30:37] iwada: yes i did
[10:35:31] lxsameer: has joined #RubyOnRails
[10:36:21] srinidhi: has joined #RubyOnRails
[10:36:56] htmldrum: has joined #RubyOnRails
[10:37:56] chipotle: has joined #RubyOnRails
[10:38:21] artto: has joined #RubyOnRails
[10:41:40] robbyoconnor: has joined #RubyOnRails
[10:41:43] artto: has joined #RubyOnRails
[10:46:02] PedramT: has joined #RubyOnRails
[10:46:28] weckl: has joined #RubyOnRails
[10:47:24] robbyoconnor: has joined #RubyOnRails
[10:50:47] pawnbox: has joined #RubyOnRails
[10:52:00] ur5us: has joined #RubyOnRails
[10:52:06] PedramT: has joined #RubyOnRails
[10:52:26] bronson: has joined #RubyOnRails
[10:54:30] Abhijit: has joined #RubyOnRails
[10:55:19] Abhijit: i have my project dir ownership as myuser:root and project dir is /var/www/dir when i do assets:precompile for dev it works. but AILS_ENV=production bundle exec rake assets:precompile just dont do anything. no errors. no output. nothing. how can i solve it?
[10:56:27] universa1: Abhijit: did you clear the public/assets and tmp/assets folders before?
[10:56:42] universa1: Abhijit: there should also be a rake task for doing that
[10:56:49] universa1: rake -T clear might show it to you.
[10:56:58] Abhijit: not individually but i deleted the whole dir/* then ./post-receive again
[10:59:06] Abhijit: universa1, after doing bundle exec rake tmp:clear now when i do production assets precomiple again, still nothing.
[10:59:44] p1k: has joined #RubyOnRails
[11:00:15] universa1: Abhijit: gist console command + output, check if there is anything in log/production.log
[11:00:20] renegadeandy: has joined #RubyOnRails
[11:01:11] Abhijit: universa1, production.log is empty. when i execute this command RAILS_ENV=production bundle exec rake assets:precompile it dont print anything. not a single letter.
[11:01:16] Abhijit: thats the probl.m
[11:01:35] fox_mulder_cp: Abhijit: production.log - log for rails sever
[11:01:49] fox_mulder_cp: not for rake precompile assets
[11:02:00] Abhijit: fox_mulder_cp, yes that one. i delete the project dir and set up fresh one, hence my production.log is empty
[11:02:01] universa1: Abhijit: does it work locally?
[11:02:21] fox_mulder_cp: Abhijit: also, use export RAILS_ENV=production && rails server|rake tasks
[11:02:39] universa1: Abhijit: did you do it through post-receive? or are you actually logged in?
[11:02:55] sp1rs: has joined #RubyOnRails
[11:03:06] fox_mulder_cp: Abhijit: without export - all deeply included scripts can't read this env var, becouse it readable only for upper level script
[11:03:11] GodFather: has joined #RubyOnRails
[11:03:13] Abhijit: universa1, assets:precompile for dev and production works in my computer. but on production vps it works only for dev not for production.
[11:03:40] Abhijit: universa1, post receive ony gets the code there. as of now assets:precompile is not in post-receive.
[11:03:44] Abhijit: i am doing it manualyl.
[11:03:51] Abhijit: by logging to vps.
[11:04:09] fox_mulder_cp: Abhijit: make rake -v assets:precompile 2&>1 /tmp/assets.log
[11:04:40] fox_mulder_cp: and -t for trace
[11:05:49] Abhijit: fox_mulder_cp, RAILS_ENV=production bundle exec rake -v assets:precompile 2&>1 /tmp/assets.log dont create that file
[11:06:08] fox_mulder_cp: Abhijit: export RAILS_ENV=production && bundle exec rake -v assets:precompile 2&>1 > /tmp/assets.log
[11:06:18] fox_mulder_cp: Abhijit: '>' before file
[11:07:03] Abhijit: fox_mulder_cp, empty assets.log
[11:08:14] fox_mulder_cp: export RAILS_ENV=development && bundle exec rake -v assets:precompile
[11:08:14] fox_mulder_cp: (in /opt/w3dhcp)
[11:08:14] fox_mulder_cp: I, [2016-04-28T14:08:08.731657 #14439] INFO -- : Writing /opt/w3dhcp/public/assets/application-2d25b5885ae721d38711653a90f2333e21f20479d62c9406a82fdf12fa3da6a5.js
[11:08:29] Abhijit: this was what i did: export RAILS_ENV=production && bundle exec rake -v -t assets:precompile 2&>1 > /tmp/assets.log
[11:08:38] fox_mulder_cp: Abhijit: as i see i add some unicode symbol
[11:08:39] chipotle: has joined #RubyOnRails
[11:09:22] fishingbuddha: has joined #RubyOnRails
[11:09:26] universa1: bundle exec rake assets:precompile -t -v RAILS_ENV=production -- having it print to the console should be ok for now ;)
[11:09:34] n008f4g_: has joined #RubyOnRails
[11:09:37] Abhijit: you did in developement. mine also work in developement. but not in production
[11:09:53] Abhijit: universa1, yeah but its not printing anything at all
[11:10:09] Abhijit: ok it did now.
[11:10:49] Abhijit: universa1, fox_mulder_cp https://gist.github.com/abhijitnavale/56b07baf945f11e237cd5a4a0e0283fb
[11:10:56] Abhijit: but it still did not actually compiled the assets
[11:11:34] universa1: Abhijit: ls -la public/assets
[11:12:18] navneet: has joined #RubyOnRails
[11:12:41] syath: has joined #RubyOnRails
[11:12:42] Abhijit: there are lots of css, js and other items is public/assets universa1
[11:12:57] fox_mulder_cp: Abhijit: rake assets:clean
[11:13:01] universa1: Abhijit: mv public/assets public/_assets
[11:13:14] fox_mulder_cp: and after it precompile
[11:15:40] Abhijit: fox_mulder_cp, universa1 mved to _assets. now production assets precompile worked. thanks all of you. what was causing it to work on existing assets folder?
[11:15:45] Abhijit: "to not work on"
[11:16:03] srinidhi: has joined #RubyOnRails
[11:16:17] universa1: Abhijit: it checks if it needs to recompile.
[11:16:34] universa1: Abhijit: so if you push a fully precompiled folder, it won't recompile everything.
[11:16:43] universa1: do not check public/assets into version control.
[11:16:57] beauby: has joined #RubyOnRails
[11:17:41] Abhijit: ok will remove it.
[11:20:01] kies: has joined #RubyOnRails
[11:20:38] w1lson: has joined #RubyOnRails
[11:22:06] arnonhongklay: has joined #RubyOnRails
[11:23:18] pawnbox: has joined #RubyOnRails
[11:24:12] baweaver: has joined #RubyOnRails
[11:24:15] chipotle: has joined #RubyOnRails
[11:26:56] GriffinHeart: has joined #RubyOnRails
[11:27:30] navneet: has joined #RubyOnRails
[11:29:22] moeabdol: has joined #RubyOnRails
[11:33:21] adlerdias: has joined #RubyOnRails
[11:34:05] bob434: has joined #RubyOnRails
[11:38:13] sp1rs: has joined #RubyOnRails
[11:38:18] artto: has joined #RubyOnRails
[11:38:53] rodfersou: has joined #RubyOnRails
[11:39:28] tvw: has joined #RubyOnRails
[11:41:41] Aswebb_: has joined #RubyOnRails
[11:43:09] ldnunes: has joined #RubyOnRails
[11:47:08] renegadeandy: has joined #RubyOnRails
[11:47:32] quazimodo: has joined #RubyOnRails
[11:47:35] quazimod1: has joined #RubyOnRails
[11:48:28] bob434: has joined #RubyOnRails
[11:52:38] quazimod2: has joined #RubyOnRails
[11:52:43] quazimod3: has joined #RubyOnRails
[11:52:46] alexhartley: has joined #RubyOnRails
[11:53:06] bronson: has joined #RubyOnRails
[11:55:50] PedramT: has joined #RubyOnRails
[11:56:56] rickmasta: has joined #RubyOnRails
[11:58:29] ZerGabriel: has joined #RubyOnRails
[11:59:31] ZerGabriel: has joined #RubyOnRails
[12:00:30] cabotto: has joined #RubyOnRails
[12:03:34] TheMonster: Can I specify a condition for a scope where the condition is on an associated model. If my model belongs_to human, I want to say in the scope condition (self.human.male: true). Is that possible?
[12:04:02] rvanlieshout: TheMonster: joins(:human).where(humans: { male: true })
[12:04:40] TheMonster: Thanks rvanlieshout :)
[12:06:33] joshkovach: has joined #RubyOnRails
[12:07:18] mikecmpbll: has joined #RubyOnRails
[12:09:53] Talltree: how can i list all avaiable atributes for a model?
[12:10:21] PlasmaStar: has joined #RubyOnRails
[12:10:27] PedramT: has joined #RubyOnRails
[12:10:42] Talltree: i'm having trouble permitting the correct params to a nested form...
[12:11:35] rvanlieshout: Talltree: Foo.new
[12:11:38] rvanlieshout: will show them
[12:11:43] rvanlieshout: but specify them manually
[12:11:56] flashpoint9: has joined #RubyOnRails
[12:12:04] Talltree: so its just the column names rvanlieshout ?
[12:12:20] rvanlieshout: yep, but only the ones you want to permit
[12:13:40] joshkovach: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[12:14:01] AntiSpamMeta: has joined #RubyOnRails
[12:15:09] PedramT: has joined #RubyOnRails
[12:16:35] qejk: has joined #RubyOnRails
[12:17:32] praveen: has joined #RubyOnRails
[12:17:41] bob434: has joined #RubyOnRails
[12:19:04] adlerdias: has joined #RubyOnRails
[12:19:46] AntiSpamMeta: has joined #RubyOnRails
[12:21:12] Talltree: rvanlieshout, worked to begin with, had reject_if: wrong tho, thanks for the help
[12:21:46] Megamos: has joined #RubyOnRails
[12:24:15] AntiSpamMeta: has joined #RubyOnRails
[12:26:13] Detch: has joined #RubyOnRails
[12:26:58] jonny_: has joined #RubyOnRails
[12:27:16] moeabdol: has joined #RubyOnRails
[12:27:27] mdw: has joined #RubyOnRails
[12:29:47] yardenbar: has joined #RubyOnRails
[12:30:41] bob434: has joined #RubyOnRails
[12:31:26] GorillaApe: has joined #RubyOnRails
[12:31:33] tarsek: Hello, I got a strange behavior in my rails app: In my controller in one action I redirect to another action (e.g. new). Then in my server log I see that the new.html.erb got rendered but my browser does not show anything. Only when i refresh the exact same page the content show.
[12:31:48] tarsek: Does anyone know what may cause this behavior?
[12:33:05] GorillaApe: http://pastebin.com/X5bHL5dC Hello
[12:33:29] GorillaApe: I get error with that
[12:33:54] GorillaApe: at start <% if @no_container? %>
[12:34:33] lxsameer: has joined #RubyOnRails
[12:34:33] lxsameer: has joined #RubyOnRails
[12:34:54] epochwolf: GorillaApe: Let me guess, a syntax error perhaps?
[12:35:06] GorillaApe: probably but I cant see it
[12:35:17] epochwolf: Why can't you see it?
[12:36:35] crystal77: has joined #RubyOnRails
[12:36:38] heydonovan: has joined #RubyOnRails
[12:37:52] PedramT: has joined #RubyOnRails
[12:38:12] navneet: has joined #RubyOnRails
[12:38:40] tarsek: No one got an idea?
[12:39:20] sevenseacat: has joined #RubyOnRails
[12:39:53] epochwolf: tarsek: Honestly, I'd need to see the server log and the code for those areas. It's hard to visualize exactly what's going on.
[12:41:16] epochwolf: Unfortunately, I was born defective... I can't read minds. Everyone thinks I should have this ability but I don't.
[12:41:39] tarsek: Here is a server log with both requests
[12:41:42] tarsek: https://gist.github.com/anonymous/dbd945b7f2b995a5594b0653960a40e4
[12:42:08] epochwolf: tarsek: looks like it's not redirecting.
[12:42:13] tarsek: Both are the same but the second one was when I pressed F5 and the content got shown
[12:42:39] tarsek: Oh, before both requests it shows:
[12:42:41] tarsek: Processing by SessionsController#destroy as HTML Redirected to http://127.0.0.1:3000/login
[12:43:18] epochwolf: tarsek: please in include stuff like that in the log. :/
[12:44:23] tarsek: I have never seen a behavior like this
[12:44:26] tarsek: It is so strange
[12:45:04] jlebrech: has joined #RubyOnRails
[12:45:14] tarsek: Now here is the complete gist
[12:45:16] tarsek: https://gist.github.com/anonymous/a8275d31c4af8d335460a3ef84b22730
[12:45:18] epochwolf: tarsek: can you repeat the error with the web inspect open and persisting the log between pages? Maybe there's something crashing in the web browser.
[12:47:03] epochwolf: You should see a redirect and a page load in the web inspector's network tab. If the body of the response includes the proper html, it's a web browser issue.
[12:47:18] epochwolf: or a problem with some assets not loading properly.
[12:47:54] tarsek: Oh ok, I will try
[12:47:57] weckl: has joined #RubyOnRails
[12:47:59] tarsek: Thanks for now
[12:49:19] JakFrist: has joined #RubyOnRails
[12:49:34] PedramT: has joined #RubyOnRails
[12:51:12] tarsek: With persisting the log do you mean a .har-file?
[12:51:37] tildes: GorillaApe: your instance variable @no_container probably shouldn't end with a question mark
[12:52:46] tildes: GorillaApe: if that doesn't solve it, please show the actual error you get
[12:53:09] smoitra: has joined #RubyOnRails
[12:53:27] mikecmpbll: with delayed job, is running `bin/delayed_job -n 2 start` effectively the same as doing `bin/rake jobs:work` twice?
[12:54:28] mikecmpbll: and how do the workers avoid picking up the same jobs?
[12:56:21] kszarlej: I want completly turn my Rails application to log in JSON
[12:56:44] n008f4g_: has joined #RubyOnRails
[12:56:45] kszarlej: I set already Base.logger and ActiveJob.loger to logstashlogger - but still some of the log messages are plaintext.
[12:56:56] kszarlej: Are there any other loggers that should be set to logstashlogger?
[12:58:31] tildes: I would grep rails repo for logger, excluding test cases
[12:58:34] mikecmpbll: kszarlej : are you using lograge? it seems that's a pretty well-used solution
[12:59:01] artto: has joined #RubyOnRails
[12:59:05] mrbubbles: has joined #RubyOnRails
[12:59:36] anagha_: has joined #RubyOnRails
[13:00:24] itsmeduncan: has joined #RubyOnRails
[13:00:36] tildes: ruby might have some rails-independent logging in place (just guessing here)
[13:02:36] mrbubbles: hey folks. apologies for the n00bish nature of this question... I've been playing with the shoppe engine https://github.com/tryshoppe/shoppe - it's great, an e-commerce dashboard system. But if I wanted to add, say, an extra controller and model (for handling static pages) what would be the best way to do this? There don't seem to be any hooks to extend it
[13:03:12] mrbubbles: So, I'm guessing that one would normally clone the repo and then work on it directly? OR build it as part of a separate app - but then the static pages component will be outside of the nice dashboard that shoppe provides
[13:03:26] mrbubbles: Just wondered if there is a "usual" pattern for doing things like this
[13:03:34] mikecmpbll: mrbubbles : it's a rails engine, so it's made to extend an existing app
[13:03:56] mrbubbles: Yep that makes sense. But it has a login system , a dashboard
[13:04:09] mrbubbles: So it seems silly me building another dashboard or login system and then mounting the engien on it
[13:04:18] mikecmpbll: mrbubbles : you can extend it in anyway by overriding views and extending it's classes
[13:04:51] mikecmpbll: (from your main app)
[13:05:00] mrbubbles: Doesn't sound so bad then
[13:05:17] mrbubbles: So, if i wanted to add another field to a model... can I do that?
[13:05:41] mikecmpbll: sure, just write a migration.
[13:06:32] tribals: has joined #RubyOnRails
[13:06:38] tribals: hi there (again)
[13:06:47] sp1rs: has joined #RubyOnRails
[13:07:15] daveomcd: has joined #RubyOnRails
[13:08:55] mrbubbles: mikecmpbll just to get it straight in my head :) if I, say, extend a model... I'll then have to go through each controller where that model is called and replace the reference with one to my new model, no? which means I'll also need to extend those controllers?
[13:09:03] tribals: how inclusion into association checking performed? which is faster, `Post.comments.include?(comment)` or `Post.comment_ids.include?(comment.id)`?
[13:09:38] mikecmpbll: mrbubbles : nope. extend was probably the wrong word for me to have used. you can reopen classes from the engine and override methods or add additional stuff
[13:09:54] mrbubbles: ah got you :) thanks for the tips I'l have a google around
[13:10:12] SeanLazer: has joined #RubyOnRails
[13:10:15] mikecmpbll: so if the engine has a ShoppingCart class, you just write: class ShoppingCart; def my_super_awesome_method; #...; end; end
[13:10:24] arnonhongklay: has joined #RubyOnRails
[13:12:16] mikecmpbll: or you write ShoppingCartExtension and then ShoppingCart.send(:prepend, ShoppingCartExtension)
[13:12:36] daveomcd: I'm trying to run my "rails c" command and it's erroring out. If I comment out my 9th line in my User model it will execute, anyone mind taking a look and seeing if you can perhaps point me in the right direction? https://gist.github.com/daveomcd/072d106d4d18c225a633415ea8e8cc98
[13:12:45] mikecmpbll: the cool thing about that is your extension methods which override existing methods can use super to call the original method
[13:14:09] chipotle: has joined #RubyOnRails
[13:14:22] ramortegui: has joined #RubyOnRails
[13:17:28] dionysus69: has joined #RubyOnRails
[13:18:13] tildes: daveomcd: the error quite literally points to a gem called tiny_tds that doesn't seem to be happy about the way it has been configured
[13:18:18] artto: has joined #RubyOnRails
[13:19:02] tildes: (not sure if that really counts as right direction :) )
[13:19:29] wolfravenous: has joined #RubyOnRails
[13:19:36] daveomcd: tildes, right, so I looked into that. The configuration hasn't changed at all (database.yml) - that's when I noticed line 28 as seen here: https://gist.github.com/daveomcd/072d106d4d18c225a633415ea8e8cc98#file-rails_c_error-txt-L28
[13:20:02] PedramT: has joined #RubyOnRails
[13:20:05] daveomcd: so I'm wondering if the real problem is somewhere with that gem instead. However, I dont see where it's wrong. Didn't know if I was missing something else
[13:21:49] tildes: daveomcd: I would look into tiny_tds/client.rb to see what it expects to find
[13:22:13] daveomcd: tildes, ok thanks I'll look into there
[13:22:59] ncls: has joined #RubyOnRails
[13:23:22] blackmesa: has joined #RubyOnRails
[13:23:47] ncls: Could not create Makefile due to some reason, probably lack of necessary
[13:23:47] ncls: libraries and/or headers. Check the mkmf.log file for more details. You may
[13:23:47] ncls: need configuration options.
[13:23:49] ncls: hi all, I try ton install Ruby On Rails on my mac, never used ruby before, so it seems to be well installed but I run into this error :
[13:23:52] tildes: daveomcd: you could set up a breakpoint in the gem code (byebug), if the gem indeed is a reasonable suspect
[13:23:55] ncls: (see previous lines)
[13:24:20] JakFrist: has joined #RubyOnRails
[13:24:42] daveomcd: tildes, how do i setup byebug in the gem code? I've never really opened up that code before in my project. Always just included the gemfile
[13:24:51] lxsameer: has joined #RubyOnRails
[13:25:23] fox_mulder_cp: i have a class Reseller, which has a virtual property name, based on concatenates of name + surname of anoter sub class
[13:25:35] tildes: daveomcd: I haven't done it either, but I think it can be done (so just take it with a grain of salt ok)
[13:26:12] tildes: in any case, you have the path for the gem in the error trace. then you could perhaps require byebug in the Gemfile for the gem, bundle and voilá ?
[13:26:33] fox_mulder_cp: a want create another class app_server, but in it edit views <%= f.collection_select :reseller_id, @resellers.all, :id, :name %> fails. when try <%= f.collection_select :reseller_id, @resellers.all, :id, :owner %> - all ok
[13:26:41] tildes: I would try it anyway
[13:26:49] fox_mulder_cp: but hash of owner - unreadable
[13:27:28] fox_mulder_cp: how to make this collection_select?
[13:28:03] ncls: I'll try to install it with port
[13:28:34] tildes: daveomcd: one more thought, what about the gem version number? if it isn't pinned down, chances are you got a version that for some reason is not working
[13:29:06] tildes: (pinned down in your project Gemfile that is)
[13:30:15] jmmb: has joined #RubyOnRails
[13:31:52] daveomcd: tildes, i tried updating it without the version constraint I'll look up the version number and see if 4.2 is the latest. thanks
[13:31:56] fmcgeough: has joined #RubyOnRails
[13:32:07] wolfravenous: has joined #RubyOnRails
[13:33:23] tildes: daveomcd if the gem indeed is the culprit, there might have been an earlier version that still worked for the project
[13:33:52] tildes: assuming the code and configs haven't changed, that is
[13:34:16] drbayer: has joined #RubyOnRails
[13:34:43] tildes: daveomcd: do you have access to a working installation?
[13:35:06] Veejay: Hello, is there a way to have the Set-Cookie header only be set for certain paths of the application? i.e. having it set for anything in /admin but not for other paths?
[13:36:58] Veejay: It has to do with caching, where Varnish will not cache anything from the backend server if a Set-Cookie header is set on the response
[13:40:15] artto: has joined #RubyOnRails
[13:52:20] artto: has joined #RubyOnRails
[13:54:05] mdw: has joined #RubyOnRails
[13:54:18] lxsameer: has joined #RubyOnRails
[13:54:42] PedramT: has joined #RubyOnRails
[13:54:54] bronson: has joined #RubyOnRails
[13:57:22] FooMunki: has joined #RubyOnRails
[13:59:00] fox_mulder_cp: hm/ i drop reference and try name as 'name' constant and see, that 2 items in reseller list
[13:59:16] fox_mulder_cp: but database has only one variant
[13:59:27] roamingdog: has joined #RubyOnRails
[13:59:33] p1k: has joined #RubyOnRails
[13:59:41] Ergo: has joined #RubyOnRails
[14:00:43] GodFather: has joined #RubyOnRails
[14:01:32] daveomcd: tildes, sorry back, working install of the project?
[14:03:30] emachnic: has joined #RubyOnRails
[14:06:30] rickmasta: has joined #RubyOnRails
[14:11:38] wolfravenous: has joined #RubyOnRails
[14:12:03] akshat: has joined #RubyOnRails
[14:12:16] rbsx: has joined #RubyOnRails
[14:12:23] M-shine: has joined #RubyOnRails
[14:12:28] crystal77: has joined #RubyOnRails
[14:12:53] rafaelfranca: has joined #RubyOnRails
[14:13:14] heydonovan: has joined #RubyOnRails
[14:13:42] crystal77: has joined #RubyOnRails
[14:13:55] blackmesa: has joined #RubyOnRails
[14:13:56] artto: has joined #RubyOnRails
[14:15:36] yellow5: has joined #RubyOnRails
[14:17:53] roamingdog: has joined #RubyOnRails
[14:18:48] akshat: has joined #RubyOnRails
[14:19:50] ncls: hello, here is my error log for the failed installation of rails on my mac (Yosemite ) : http://pastebin.com/Hd0bgsn9
[14:20:22] ncls: (oh sorry, didn't know that, will use pastie next time)
[14:22:04] ncls: is it linked to xmlParseDoc ?
[14:23:01] robbyoconnor: has joined #RubyOnRails
[14:23:40] tjbiddle: has joined #RubyOnRails
[14:24:52] tjbiddle: sevenseacat: What do you recommend as an alternative to rails-assets gems?
[14:27:19] godzillaenlacasa: has joined #RubyOnRails
[14:28:13] antgel: has joined #RubyOnRails
[14:29:50] srinidhi: has joined #RubyOnRails
[14:30:01] universa1: tjbiddle: why do you need an alternative?
[14:30:10] billy1234: has joined #RubyOnRails
[14:30:26] tjbiddle: universa1: Earlier I had asked something and sevenseacat said to not use them
[14:30:32] tjbiddle: I personally love them, so curious why not
[14:30:42] renegadeandy: hey - why does rake db:migrate dump all data from my test databases?
[14:30:44] dionysus69: has joined #RubyOnRails
[14:31:17] universa1: renegadeandy: you sure that rake db:migrate does this?
[14:31:39] renegadeandy: seems to be every time i run rake db:migrate and add / remove a column, the data in my test database gets deleted
[14:31:56] renegadeandy: im using databasecleaner i don’t know if that osmehow kicks in...
[14:32:41] universa1: renegadeandy: show your setup. but keeping data in the test database is not the usual way anyways...
[14:33:05] renegadeandy: well its just a little destructive
[14:33:12] renegadeandy: when you say show your setup, which file you talking?
[14:33:52] universa1: what is destructive about it? you either load required data for a test from a fixture, or use a factory to generate it. your tests should not depend on some magic state your db might be in.
[14:34:25] renegadeandy: its not a magic state, its because i have static data and a lot of it
[14:34:39] renegadeandy: My tests are fine
[14:34:43] renegadeandy: its just whenever i migrate
[14:34:51] renegadeandy: it blasts the static data in my test db
[14:34:54] renegadeandy: and im wondering why
[14:34:55] universa1: renegadeandy: your tests most likely call: ActiveRecord::Migration.maintain_test_schema! and in turn rake db:test:prepare
[14:35:00] universa1: because it copies over the schema.
[14:35:01] praveen: has joined #RubyOnRails
[14:35:09] renegadeandy: universa1: aha, how can i tell?
[14:35:28] universa1: you can manually run migrations on the test db, so that it does not have to do anything.
[14:36:04] renegadeandy: it seems i do have the maintain_test-schema
[14:36:17] renegadeandy: what would happen if i would remove that?
[14:36:29] universa1: you would have to manually take care of maintaining the test schema.
[14:36:45] renegadeandy: so maintain_test_schema is what causes a prepare?
[14:36:52] renegadeandy: and the prepare recreates everything
[14:37:13] universa1: haven't actually checked the code, so my guess is yes, something along those lines ;)
[14:37:32] renegadeandy: alright thanks mate
[14:37:36] weckl: has joined #RubyOnRails
[14:37:51] praveen: has joined #RubyOnRails
[14:39:14] xcesariox: has joined #RubyOnRails
[14:41:43] chipotle_: has joined #RubyOnRails
[14:42:30] aghalarp: has joined #RubyOnRails
[14:42:45] robbyoconnor: has joined #RubyOnRails
[14:44:08] weckl: has joined #RubyOnRails
[14:45:14] andywww: has joined #RubyOnRails
[14:48:05] LastWhisper____: has joined #RubyOnRails
[14:51:40] suchness: has joined #RubyOnRails
[14:52:46] suchness: What is the proper way to set asset_host in rails 4? I was under the impression that the action_mailer and action_controller asset_host settings were both unified, but everywhere I look I see people setting action_controller.asset_host=, I have done the same, but my mailers are not prepending the correct host.
[14:53:33] suchness: Also, should I just additionally set action_mailer.asset_host= to be the same?
[14:53:50] cabotto: has joined #RubyOnRails
[14:54:01] RegulationD: has joined #RubyOnRails
[14:54:33] hobodave: has joined #RubyOnRails
[14:57:06] Rafcio: has joined #RubyOnRails
[14:57:11] pcpanic: has joined #RubyOnRails
[14:57:32] Rafcio: hey guys, i keep on getting this error once in a while: Missing template public/announcements/index, application/index with {:handlers=>[:erb, :builder, :haml], :formats=>["image/*”]. Does this mean that someone is making a request to get all the images on a page?
[14:58:01] chipotle: has joined #RubyOnRails
[14:58:02] pcpanic: Hello peoples, can anyone spot the reason for this 502 for nginx+unicorn? https://gist.github.com/ysinc88/d2b71574d84992f9b76e2d4ed7ed8684
[14:58:24] ZerGabriel: has joined #RubyOnRails
[14:59:42] ZerGabriel: has joined #RubyOnRails
[15:01:05] codesoda: has joined #RubyOnRails
[15:01:22] billy1235: has joined #RubyOnRails
[15:02:14] S_Waqas: has joined #RubyOnRails
[15:02:42] Megamos: has joined #RubyOnRails
[15:03:28] moep: If I wanted to render model instances in my menu as submenu items, would the "ModelPresenter" be a good place?
[15:05:21] Rafcio_: has joined #RubyOnRails
[15:05:34] Rafcio_: hey guys, i keep on getting this error once in a while: Missing template public/announcements/index, application/index with {:handlers=>[:erb, :builder, :haml], :formats=>["image/*”]. Does this mean that someone is making a request to get all the images on a page?
[15:07:09] artto: has joined #RubyOnRails
[15:07:31] pcpanic: Hello peoples, can anyone spot the reason for this 502 for nginx+unicorn? https://gist.github.com/ysinc88/d2b71574d84992f9b76e2d4ed7ed8684
[15:07:57] roamingdog: has joined #RubyOnRails
[15:08:29] tjbiddle: has joined #RubyOnRails
[15:09:52] fryguy: pcpanic: need more info than that. it says permission failed, so what are the permissions
[15:10:32] billy1234: has joined #RubyOnRails
[15:13:11] smathy: has joined #RubyOnRails
[15:14:59] pcpanic: fryguy: drwxrwxrwx 2 user user 4096 Apr 28 16:07 public
[15:15:17] pcpanic: fryguy: full blown 777
[15:15:28] pcpanic: fryguy: and nothing
[15:15:44] disgrntld: has joined #RubyOnRails
[15:16:22] fryguy: pcpanic: and the parent directories?
[15:16:23] codesoda: has joined #RubyOnRails
[15:17:15] pcpanic: fryguy: default, drwxrwxr-x
[15:17:21] pcpanic: fryguy: do
[15:17:35] pcpanic: fryguy: I need to change the others? which ones?
[15:17:56] fryguy: /home /home/user /home/user/soWed
[15:18:17] berserk_ren: has joined #RubyOnRails
[15:18:38] pcpanic: fryguy: I added the nginx user to my user's group
[15:19:15] DoctorMonocular: has joined #RubyOnRails
[15:19:23] Moeh: has joined #RubyOnRails
[15:19:29] fryguy: ok? and are all of those directories group readable?
[15:19:50] Moeh: Hey guys. One question: is the 'tzinfo-data' gem necessary when running rails on OSX / Ubuntu machines?
[15:24:01] pcpanic: fryguy: yup, i also added the nginx user to my user group
[15:24:39] fryguy: pcpanic: show the perms of /home /home/user and /home/user/soWed
[15:26:54] pcpanic: fryguy: /home drwxr-xr-x | /home/user drwx------ | /home/user/soWed drwxrwxr-x
[15:27:13] fryguy: see /home/user? that's your problem
[15:27:24] pcpanic: fryguy: Let's try :)
[15:27:43] VeryBewitching: has joined #RubyOnRails
[15:29:45] pcpanic: fryguy: You are too kind, THANK YOU :)
[15:30:04] timdotrb: has joined #RubyOnRails
[15:33:59] Talltree: okay this might be a dumb question
[15:34:12] Talltree: but how do i pass more then one "parameter" to link_to
[15:34:42] Talltree: like hotel.rooms and hotel.value in the same link "name"
[15:35:00] Talltree: i used [] but that also displays them in the link, which is ugly :D
[15:35:25] Talltree: i bet there is something that i dont know as a complete ruby/rails noob
[15:36:01] LastWhisper____: hey guys -- I'm trying to return the value of the :message key in this object: {:days_open=>[{:message=>"Please select at least one day"}]}
[15:36:10] LastWhisper____: without specifying the days_open key
[15:36:22] LastWhisper____: that key could be something else down the road
[15:37:50] codesoda: LastWhisper____: you'll need to loop through top level keys and the choose the node which has a message key
[15:38:20] codesoda: LastWhisper____: P.S. if that isn't some legacy data, I'd suggest refactoring the setup into something more predictable
[15:39:04] fox_mulder_cp: i need something, that like is postgresql uniq sequence for int :id's. how to easy to generate it?
[15:40:15] Sadin: has joined #RubyOnRails
[15:43:09] davidw: has joined #RubyOnRails
[15:43:14] aghalarp: has joined #RubyOnRails
[15:44:18] drbayer: has joined #RubyOnRails
[15:44:28] norc_: has joined #RubyOnRails
[15:46:27] jhn: has joined #RubyOnRails
[15:52:39] stardiviner: has joined #RubyOnRails
[15:52:47] jowiar: has joined #RubyOnRails
[15:52:57] idefine: has joined #RubyOnRails
[15:54:46] alexhartley: has joined #RubyOnRails
[15:56:24] dionysus69: has joined #RubyOnRails
[15:56:44] bronson: has joined #RubyOnRails
[15:56:49] LastWhisper____: @codesoda thanks for the heads up
[15:57:02] LastWhisper____: I am struggling to get my form to produce the structure I'd like lol
[15:57:15] LastWhisper____: errors.add(:days_open, message: 'Please select at least one day')
[15:57:22] timdotrb: has joined #RubyOnRails
[15:57:30] LastWhisper____: will give me the format I referenced above...
[15:58:02] LastWhisper____: but my other validates :goal, inclusion: { in: 1..999, message: I18n.t('activemodel.errors.models.availability/booking_goal.attributes.goal.inclusion') } simply returns {:"booking_goals.goal"=>["Goal must be between 1 and 999"]}
[15:58:22] LastWhisper____: just reform things
[15:58:47] shinnya: has joined #RubyOnRails
[16:00:19] kareeoleez_: has joined #RubyOnRails
[16:00:52] kareeoleez_: I have a form in my index route/view and I don't know how to redirect on save
[16:00:56] artto: has joined #RubyOnRails
[16:01:36] kareeoleez: do I use respond_to do |format| on my index action ?
[16:01:41] delon: has joined #RubyOnRails
[16:03:01] mdw: has joined #RubyOnRails
[16:03:28] fox_mulder_cp: kareeoleez: yes
[16:04:01] fox_mulder_cp: kareeoleez: create test new app and in it make rails g scaffold some
[16:04:19] fox_mulder_cp: u have a very inplemented skeletone of code
[16:04:52] fox_mulder_cp: json, html, recirects, views etc
[16:05:28] Rafcio_: has joined #RubyOnRails
[16:06:21] Rafcio_: hey guys, i keep on getting this error once in a while: Missing template public/announcements/index, application/index with {:handlers=>[:erb, :builder, :haml], :formats=>["image/*”]. Does this mean that someone is making a request to get all the images on a page?
[16:07:14] kareeoleez: what are you talking about ?
[16:07:52] AntiSpamMeta: has joined #RubyOnRails
[16:08:40] p1k: has joined #RubyOnRails
[16:10:49] Rafcio: kareeoleez: I get the error above. It happens randomly from 1 specific ip, trying to figure out why/what they’re trying to accomplish that i get this error
[16:13:32] chipotle: has joined #RubyOnRails
[16:14:00] stardiviner: has joined #RubyOnRails
[16:17:47] jowiar: has joined #RubyOnRails
[16:19:17] Cache_Money: has joined #RubyOnRails
[16:25:04] kailido: has joined #RubyOnRails
[16:25:05] kailido: I have 3 tabs the change the order of posts, rendered like this : <%= render partial: 'improvement_actions/improvement_action', collection: @performance_indicator.improvement_actions.order(cached_votes_score: :desc), locals: { tab: "votes" } %>
[16:25:29] praveen: has joined #RubyOnRails
[16:25:31] kailido: how can I call the tabs like this but for different urls
[16:25:35] pawnbox: has joined #RubyOnRails
[16:26:22] User458764: has joined #RubyOnRails
[16:26:40] bphogan_afk: has joined #RubyOnRails
[16:26:58] praveen: has joined #RubyOnRails
[16:26:59] baweaver: has joined #RubyOnRails
[16:27:00] PedramT: has joined #RubyOnRails
[16:27:18] petor: has joined #RubyOnRails
[16:27:31] Rafcio_: has joined #RubyOnRails
[16:27:59] maletor_: has joined #RubyOnRails
[16:28:24] fngr2911: has joined #RubyOnRails
[16:29:02] fngr2911: hi everybody! somebody knows an alternative to jqueryui autocomplete gem? don't like jqueryui ;)
[16:31:20] smathy: fngr2911, might have better luck in a JS channel.
[16:31:35] bronson: has joined #RubyOnRails
[16:31:37] roamingdog: has joined #RubyOnRails
[16:35:19] sypheren: has joined #RubyOnRails
[16:36:33] fngr2911: ok, I'll give it a try @smathy! found this one: https://www.devbridge.com/sourcery/components/jquery-autocomplete/
[16:36:34] manfrin: has joined #RubyOnRails
[16:37:22] kallisti5: anyone know of a way to "custom order an activerecord result set"?
[16:37:38] smathy: kallisti5, the order method?
[16:38:12] pawnbox: has joined #RubyOnRails
[16:38:15] kallisti5: I have an array ["a","c","b"]... I want to order the activerecord results by the values in that array [object[:X] "a", object[:X] "c", object[:X] "b"]
[16:38:20] smathy: kallisti5, !querying
[16:38:20] helpa: kallisti5: http://guides.rubyonrails.org/active_record_querying.html - ActiveRecord Querying Guide by Ryan Bigg
[16:38:36] kallisti5: not a simple order :P
[16:39:09] smathy: I don't know what [object[:X] "a", object[:X] "c", object[:X] "b"] means.
[16:39:30] smathy: Don't give fake code, make a gist of your actual problem.
[16:40:02] drbayer: has joined #RubyOnRails
[16:40:21] kallisti5: https://gist.github.com/avongluck-r1soft/cd398e2fde33240851c90d8e937e4384
[16:40:51] kallisti5: :id is a uuid
[16:41:04] maxx88: has joined #RubyOnRails
[16:41:06] Cohedrin: has joined #RubyOnRails
[16:41:15] pawnbox: has joined #RubyOnRails
[16:41:34] ferr: has joined #RubyOnRails
[16:41:41] kallisti5: I call "sbms" in my model and get a differing order each time which pretty much ruins my day :-)
[16:42:07] kareeoleez: has joined #RubyOnRails
[16:42:09] kallisti5: they have to be ordered by that json as the ordering is important in the application
[16:42:41] godzillaenlacasa: has joined #RubyOnRails
[16:43:04] drbayer: has joined #RubyOnRails
[16:43:45] drbayer: has joined #RubyOnRails
[16:44:55] smathy: Which DB are you using?
[16:47:01] drbayer: has joined #RubyOnRails
[16:47:24] Cohedrin_: has joined #RubyOnRails
[16:47:52] Devalo: has joined #RubyOnRails
[16:49:22] Rafcio_: has joined #RubyOnRails
[16:49:44] drbayer: has joined #RubyOnRails
[16:51:36] JesseH: has joined #RubyOnRails
[16:51:41] The_Phoenix: has joined #RubyOnRails
[16:52:12] JakFrist: has joined #RubyOnRails
[16:52:41] wolfravenous: has joined #RubyOnRails
[16:52:46] Talltree: is it just me or is seeding a db slow?
[16:52:46] The_Phoenix: has joined #RubyOnRails
[16:52:47] drbayer: has joined #RubyOnRails
[16:53:20] roshanavand: has joined #RubyOnRails
[16:54:08] The_Phoenix: has joined #RubyOnRails
[16:55:51] drbayer: has joined #RubyOnRails
[16:55:55] smathy: Just you.
[16:56:35] smathy: #protip - wrap big chunks in a transaction so there's only a single commit to disk.
[16:57:11] Talltree: i dunno what you mean
[16:57:49] Talltree: but i am creating like 100 catergories and 10000 articles and it takes about 10 minutes now...
[16:58:15] jenrzzz: has joined #RubyOnRails
[16:58:54] drbayer: has joined #RubyOnRails
[17:00:12] weaksauce: kallisti5 make an ordered hash with the keys as the id in the json and the value as the active record object
[17:00:14] weaksauce: that's one way
[17:00:14] smathy: Talltree, probably speak to one of the senior members of your team, I think you're out of your depth here.
[17:01:13] Talltree: smathy no team here, just doing stuff on my own...
[17:01:36] smathy: Talltree, seems like it's too soon for that.
[17:01:52] Talltree: learning by doing man ^
[17:01:54] drbayer: has joined #RubyOnRails
[17:02:42] smathy: Talltree, seems to be learning by asking in IRC, man.
[17:03:06] stannard: has joined #RubyOnRails
[17:03:06] Talltree: only after looking for it for an extended period of time^^
[17:03:25] bob434: has joined #RubyOnRails
[17:03:42] smathy: Talltree, good luck.
[17:04:10] weaksauce: kallisti5 https://gist.github.com/anonymous/ea5a9d7f7dc0aa63e359456923d7653f something like that should do it
[17:04:41] tvw: has joined #RubyOnRails
[17:04:57] petor: has joined #RubyOnRails
[17:05:02] drbayer: has joined #RubyOnRails
[17:06:57] epochwolf: Talltree: it's pretty clear you haven't taken the time to sit down and read about rails. I've stop trying to solve the immediate problem and take some time to read the documentation. http://guides.rubyonrails.org/ is a good starting place. There's also some books people can recommend.
[17:07:01] mikecmpbll: has joined #RubyOnRails
[17:07:38] Megamos: has joined #RubyOnRails
[17:07:57] drbayer: has joined #RubyOnRails
[17:08:53] sleungcy: has joined #RubyOnRails
[17:09:10] chouhoulis: has joined #RubyOnRails
[17:10:04] Talltree: maybe i ask too much, i spend quite a bit of time with the rails documentation and videos but i dont have any programming background, so what ever, i will try to ask less stuff.
[17:10:23] srinidhi: has joined #RubyOnRails
[17:10:24] Talltree: also my english isnt the greatest...
[17:10:28] Cohedrin: has joined #RubyOnRails
[17:12:48] roelof: has joined #RubyOnRails
[17:13:11] djbkd: has joined #RubyOnRails
[17:14:55] Megamos: has joined #RubyOnRails
[17:15:45] roelof: Can someone help me with this problem : https://gist.github.com/rwobben/8889aa11375b61972abaf5016eb1d1d5
[17:16:09] roelof: I see this errror message : Capybara::ElementNotFound: Unable to find link "New Project"
[17:16:38] roelof: but it is there on line 50
[17:16:46] epochwolf: Talltree: unfortunately, I don't have any good advice for starting without some basic background. There's a lot of stuff to learn and I don't have the time to teach it.
[17:17:09] rickmasta: has joined #RubyOnRails
[17:18:31] Talltree: epochwolf i did about 80 % of the ruby guide on code academy, i think a lot of stuff is still left to explore by doing... i get better every day, just have stupid questions sometimes :D
[17:19:37] Talltree: and hey, the db actully works at moment, so its not like i did everything wrong
[17:19:40] epochwolf: roelof: the link is named New project and you're clicking New Project. Is capybara case sensitive perhaps?
[17:19:59] Talltree: https://i.imgur.com/4IaHAib.png
[17:20:02] heydonovan: has joined #RubyOnRails
[17:20:55] roelof: epochwolf: thanks, I overlooked that one several times :(
[17:21:00] epochwolf: Talltree: yes but troubleshooting performance issues at a scale of 10,000 entries being inserted requires you to have at least some idea what SQL is, how databases work, and probably how to use the command line tools for the database.
[17:21:39] Talltree: okay, thats something i got just a very basic idea of ^
[17:21:48] Talltree: but its growing, so meh.
[17:22:04] idefine: has joined #RubyOnRails
[17:22:06] epochwolf: Talltree: rails is built on a lot of technologies that you will need to know to be able to solve anything beyond the most basic problems
[17:22:33] epochwolf: It doesn't even handle much in the html/css/js layer.
[17:22:45] Talltree: yeah, backend stuff is new to me
[17:23:40] Talltree: i feel like the learning curve with rails is turning many ppl away from it, i really like the conecepts and the ruby language...
[17:24:00] epochwolf: Talltree: okay, here's the basics of performance, doing things takes time. Doing things in the most straight forward way usually takes more time. Doing lots of things takes lots of time... unless you know a way to make things happen with less work.
[17:24:24] dopamean_: has joined #RubyOnRails
[17:24:58] epochwolf: With database stuff, ActiveRecord is actually pretty slow for lots of things.
[17:25:25] lxsameer: has joined #RubyOnRails
[17:25:38] epochwolf: kallisti5: e?
[17:25:43] Talltree: isnt a caching solution build in with rails, to speed it up? i've saw a video about how to do it, but i would have to look it up.
[17:25:53] roelof: Another question : Does " fill_in "Name", with: "Sublime Text 3" look for this : <%= f.label :name %><br>
[17:26:23] davidw: has joined #RubyOnRails
[17:26:28] roelof: or does it also work with <%= f.text_field :name, class: 'form-control', placeholder: 'Name of the project' %>
[17:26:31] epochwolf: Talltree: Rails caching doesn't help with writes.
[17:26:48] Talltree: my thought process was, taking a random number from 1 to 1000000 shouldnt take much computing power, checking if its valid and inserting it into the db doesnt either, but i guess there is way more to it
[17:27:17] epochwolf: Talltree: "caching" is a very specific thing. You don't know what it does or how it works. You're treating it as magic. You're looking for magic.
[17:27:45] epochwolf: You need to stop hoping the magic works and start trying to understand what things actually do.
[17:28:21] Talltree: thats very true
[17:28:27] tildes: has joined #RubyOnRails
[17:29:00] Talltree: also: Clarke's third law
[17:30:06] roelof: If I have this as html code : <input class="form-control" placeholder="Name of the project" type="text" name="project[name]" id="project_name" />
[17:30:29] roelof: What must I place into fill_in to make it pass ?
[17:30:46] epochwolf: Talltree: generating 1,000,000 random numbers can be very fast or very slow. There's different ways to do it depending on the purpose.
[17:31:15] roelof: I have now this : fill_in "name", with: "Sublime Text 3" and it's failing on Unable to find field "name"
[17:31:15] epochwolf: Also, making a random number is way faster than putting it in the database.
[17:32:35] epochwolf: Talltree: every piece of code takes time to do it's work. Some things take longer than others because they do more or they use parts of the computer that are slower.
[17:32:55] owensong12: has joined #RubyOnRails
[17:33:02] owensong12: Hey! I got a server config question.
[17:33:15] owensong12: I have a Rails API backend and a React frontend app.
[17:33:38] owensong12: I can serve the Rails side using `puma`, but I have no idea how to serve React frontend app using `Puma`
[17:33:48] bronson: has joined #RubyOnRails
[17:33:55] epochwolf: owensong12: the front end is just static files, right?
[17:33:56] owensong12: Is anyone around to help?
[17:33:59] bbrowning: has joined #RubyOnRails
[17:34:02] owensong12: epochwolf: yes
[17:34:13] owensong12: basically just index.html + bundle.js
[17:34:14] epochwolf: owensong12: nginx should serve those files.
[17:34:25] owensong12: so should I have nginx + puma running?
[17:34:25] Talltree: epochwolf well, my pc is usually a monster, so i was kinda checking with irc if it crashed i did something wrong or if its normal that it takes lots of time...
[17:35:03] epochwolf: Talltree: 10 minutes means you're doing it wrong.
[17:35:17] epochwolf: There are exception but they aren't important right now.
[17:35:38] Talltree: http://pastebin.com/5WLPesLZ
[17:35:50] epochwolf: owensong12: Are you a system admin trying to set up rails or a rails dev trying to set up a server?
[17:36:01] owensong12: epochwolf: the latter
[17:36:14] epochwolf: Talltree: helpa is a bot, just use gist the next time. You don't need to fix that one.
[17:36:23] owensong12: And I'd like to use Heroku
[17:36:25] Talltree: http://pastie.org/10816842
[17:36:31] Talltree: done that allready, and i know its a bot ;)
[17:37:05] epochwolf: Talltree: Faker is extremely slow at scale.
[17:37:15] tvw: has joined #RubyOnRails
[17:38:39] heydonovan1: has joined #RubyOnRails
[17:38:55] sid_fules: has joined #RubyOnRails
[17:38:59] Talltree: mhhhh, okay, didnt know that, thought it was neat for creating fake data.
[17:39:20] epochwolf: It's just not something you want to run a lot of a lot of times.
[17:39:42] epochwolf: Your seed file is okay to run once or twice and then reuse the results.
[17:41:11] billy1234: has joined #RubyOnRails
[17:41:22] Talltree: also make the booleans not use the faker version i suppose
[17:44:00] kareeoleez: has joined #RubyOnRails
[17:44:22] blackmesa: has joined #RubyOnRails
[17:44:51] DoctorMonocular: has joined #RubyOnRails
[17:45:14] sid_fules: has joined #RubyOnRails
[17:45:36] bbrowning_: has joined #RubyOnRails
[17:46:24] stannard: has joined #RubyOnRails
[17:47:14] sid_fules: has joined #RubyOnRails
[17:49:26] idefine: has joined #RubyOnRails
[17:50:29] stannard: has joined #RubyOnRails
[17:51:04] sid_fules: has joined #RubyOnRails
[17:51:47] User458764: has joined #RubyOnRails
[17:53:52] rafaelfranca: has joined #RubyOnRails
[17:53:58] rafaelfranca: has joined #RubyOnRails
[17:55:05] FooMunki: has joined #RubyOnRails
[17:55:19] jowiar: has joined #RubyOnRails
[17:56:50] mdw: has joined #RubyOnRails
[17:57:12] sbarg: has joined #RubyOnRails
[17:58:03] rakm: has joined #RubyOnRails
[18:00:54] baweaver: has joined #RubyOnRails
[18:01:57] dionysus69: has joined #RubyOnRails
[18:02:05] AoifeOToole: has joined #RubyOnRails
[18:03:03] jenrzzz: has joined #RubyOnRails
[18:05:45] artto: has joined #RubyOnRails
[18:07:15] sid_fules: has joined #RubyOnRails
[18:09:39] stannard: has joined #RubyOnRails
[18:11:17] diegoaguilar: has joined #RubyOnRails
[18:12:32] yellow5: has joined #RubyOnRails
[18:16:38] futilegames: has joined #RubyOnRails
[18:21:13] billy1234: has joined #RubyOnRails
[18:23:57] jowiar: has joined #RubyOnRails
[18:24:27] yardenbar: has joined #RubyOnRails
[18:24:41] roshanavand: has joined #RubyOnRails
[18:26:37] itsmeduncan: has joined #RubyOnRails
[18:28:49] chouhoulis: has joined #RubyOnRails
[18:29:11] theblang: has joined #RubyOnRails
[18:29:29] treehug88: has joined #RubyOnRails
[18:30:02] emachnic: has joined #RubyOnRails
[18:30:04] chouhoulis: has joined #RubyOnRails
[18:32:10] sid_fules: has joined #RubyOnRails
[18:33:49] davidw: has joined #RubyOnRails
[18:34:24] AoifeOToole: has joined #RubyOnRails
[18:34:37] bronson: has joined #RubyOnRails
[18:35:01] jowiar: has joined #RubyOnRails
[18:35:40] jenrzzz: has joined #RubyOnRails
[18:35:41] jenrzzz: has joined #RubyOnRails
[18:36:00] codesoda: has joined #RubyOnRails
[18:36:33] pawnbox_: has joined #RubyOnRails
[18:36:35] praveen__: has joined #RubyOnRails
[18:37:30] sid_fules: has joined #RubyOnRails
[18:41:15] Pupeno: has joined #RubyOnRails
[18:42:41] abolishme: has joined #RubyOnRails
[18:42:56] smoitra: has joined #RubyOnRails
[18:42:58] PedramT: has joined #RubyOnRails
[18:44:37] emachnic: has joined #RubyOnRails
[18:44:55] yfeldblum: has joined #RubyOnRails
[18:46:57] Weavel: has left #RubyOnRails: ()
[18:47:43] meoblast001: has joined #RubyOnRails
[18:49:26] jenrzzz: has joined #RubyOnRails
[18:50:23] Devalo: has joined #RubyOnRails
[18:51:43] petor: has joined #RubyOnRails
[18:52:47] matthias_: has joined #RubyOnRails
[18:53:57] emachnic: has joined #RubyOnRails
[18:54:24] DoctorMonocular: has joined #RubyOnRails
[18:55:31] RegulationD: has joined #RubyOnRails
[18:56:17] dopamean_: has joined #RubyOnRails
[18:57:00] heydonovan1: has joined #RubyOnRails
[19:00:04] dopamean_: has joined #RubyOnRails
[19:00:09] stannard: has joined #RubyOnRails
[19:02:12] tildes: I'm looking at two logging gems, 'logging' and 'log4rails'. with both I noticed, that after cloning the repositories locally, I still need to add a Gemfile and bundle, before being able to run the tests. I assume there must be a better way to deal with the dependencies, otherwise the gems would surely ship with a Gemfile?
[19:02:21] danman: has joined #RubyOnRails
[19:02:24] jowiar: has joined #RubyOnRails
[19:02:50] tildes: better way => what should I really do after cloning the repo? :D
[19:03:39] diegoviola: has joined #RubyOnRails
[19:04:20] jstransky: has joined #RubyOnRails
[19:05:31] djellemah_: has joined #RubyOnRails
[19:06:00] tubbo: tildes: you don't clone the repos, you install those gems in Gemfile. not sure what you're trying to do here.
[19:06:17] baweaver: has joined #RubyOnRails
[19:06:19] tubbo: tildes: i'd also question why you're looking at logging gems, and what rails' internal logging functionality isn't providing for you?
[19:06:43] tildes: tubbo: I wanted to run test suites for both of the gems
[19:07:03] djellemah_: has joined #RubyOnRails
[19:07:11] tildes: tubbo: I am just curious. some time back somebody asked about being able to split log into multiple outputs based on severity level
[19:07:41] tildes: and now I am looking how you could actually do that with rails
[19:08:01] tildes: log4rails seems to have that, whereas logging doesn't seem to have that
[19:08:06] djellemah__: has joined #RubyOnRails
[19:08:09] epochwolf: tildes: not all gems use bundler for development.
[19:08:11] tubbo: tildes: ah ok. these days i've been doing that kind of stuff with rsyslog and not with rails at all
[19:08:41] tildes: epochwolf: then what else is there
[19:08:53] epochwolf: tildes: the gemspec...
[19:08:56] ZerGabriel: has joined #RubyOnRails
[19:08:58] codesoda: has joined #RubyOnRails
[19:10:17] RegulationD: has joined #RubyOnRails
[19:15:17] Dimik: has joined #RubyOnRails
[19:17:31] iwada: has joined #RubyOnRails
[19:18:11] sbarg: has left #RubyOnRails: ()
[19:19:12] roamingdog: has joined #RubyOnRails
[19:20:02] n008f4g_: has joined #RubyOnRails
[19:21:17] baweaver: has joined #RubyOnRails
[19:22:50] Cohedrin: has joined #RubyOnRails
[19:24:49] DoctorMonocular: has joined #RubyOnRails
[19:25:11] smathy: tildes, https://github.com/TwP/logging#development
[19:27:59] wolfravenous: has joined #RubyOnRails
[19:28:23] tildes: thanks :)
[19:28:32] sid_fules: has joined #RubyOnRails
[19:28:43] roamingdog: has joined #RubyOnRails
[19:29:08] Pumukel: has joined #RubyOnRails
[19:30:35] ponzii: has joined #RubyOnRails
[19:31:35] ponzii: If I use bog standard JS in a default Rails app is it pre-processed for Coffeescript, ie. waste of time, or not?
[19:31:57] tubbo: ponzii: bog?
[19:32:20] ponzii: tubbo: "bog standard" ie. unadorned
[19:32:52] xall: has joined #RubyOnRails
[19:32:57] tubbo: ponzii: what does that mean?
[19:33:55] ponzii: tubbo: Just substitute ES5 in this case for "bog stanard JS"
[19:33:56] bronson: has joined #RubyOnRails
[19:34:06] tubbo: ponzii: wtf is bog man lol
[19:34:14] tubbo: ponzii: nah i'm just kidding
[19:34:29] audy: has joined #RubyOnRails
[19:34:30] p1k: has joined #RubyOnRails
[19:34:33] stannard: has joined #RubyOnRails
[19:34:45] audy: u can't use DATA/__END__ in a rails migration? I get DATA constant not found :<
[19:34:55] tubbo: ponzii: i'm still unsure what you're actually asking. are you asking whether regular old JS, i.e. app/assets/javascripts/something.js, is pre-processed w/CoffeeScript? the answer is no.
[19:34:56] ponzii: tubbo: Should I disable Coffeescript or does it make no difference?
[19:35:12] epochwolf: audy: You mean <<-DATA .... DATA ?
[19:35:18] audy: epochwolf no
[19:35:20] ponzii: tubbo: Yes, that's what I meant.
[19:35:35] tubbo: ponzii: the only difference it would make is you wouldn't have to install CoffeeScript when you `bundle`
[19:35:47] tubbo: because that coffee-rails gem is only really invoked if you have a .coffee file
[19:36:09] adre: has joined #RubyOnRails
[19:36:13] epochwolf: audy: oh, wierd, I didn't even know this was a feature.
[19:36:17] ponzii: tubbo: Ah, so it's the extension that triggers the pre-processing. Duh, figures :)
[19:36:46] sid_fules: has joined #RubyOnRails
[19:36:53] tubbo: audy: ahh that's not the right syntax, it's like __ENDFILE__ or something. (epochwolf: it allows you to write code inside a .rb file that's executed on the command line that isn't evaluated by Ruby, iirc)
[19:37:09] epochwolf: https://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/
[19:37:14] context: its the stuff after __END__
[19:37:59] context: and sadly, i think migration files are loaded in a wierd way thus not allowig DATA. however i could be completely wrong
[19:38:25] tubbo: like in theory this works https://gist.github.com/tubbo/fd12003f15e1efe83ea0fa34fc377e17
[19:38:46] ponzii: tubbo: I think the __END__ stuff is a Perlism. I used it a lot back the early 2000s when Perl was king.
[19:38:56] tubbo: oh yeah, definitely
[19:39:11] ponzii: tubbo: Same with BEGIN/END blocks
[19:39:15] tubbo: also it has to do with ruby being primarily a scripting language, in which a lot of the early code was written in a singel file
[19:39:15] context: data section is awesome for doing one off scripts or something
[19:39:24] tubbo: i forgot about the DATA magic constant
[19:39:26] tubbo: that's p. cool
[19:39:59] ponzii: tubbo: Unlike a lot of Rubyists I actually like what Matz borrowed from Perl.
[19:40:50] tubbo: yeah, i'm a fan
[19:41:00] tubbo: but those $-vars are kind-of annyoing
[19:41:02] tubbo: annoying*
[19:41:04] DoctorMonocular: has joined #RubyOnRails
[19:41:13] tubbo: syntax and the like makes sense, but those globals are just useless.
[19:41:21] tubbo: like $: or something is just an alias for $LOAD_PATH
[19:42:11] DoubleMalt: has joined #RubyOnRails
[19:43:03] tubbo: yeah see i forgot it because it's stupid to use that var when you could use the more understandable $LOAD_PATH haha
[19:43:51] renegadeandy: has joined #RubyOnRails
[19:45:04] stannard: has joined #RubyOnRails
[19:45:34] AoifeOToole: has joined #RubyOnRails
[19:45:49] stannard: has joined #RubyOnRails
[19:46:34] Regulati_: has joined #RubyOnRails
[19:46:45] syath: has joined #RubyOnRails
[19:47:14] sid_fules: has joined #RubyOnRails
[19:47:35] lemur: has joined #RubyOnRails
[19:50:20] pawnbox: has joined #RubyOnRails
[19:50:39] unreal: has joined #RubyOnRails
[19:52:23] rakm: has joined #RubyOnRails
[19:56:24] alexhartley: has joined #RubyOnRails
[19:56:48] djellemah_: has joined #RubyOnRails
[19:56:53] mdw: has joined #RubyOnRails
[19:58:07] stardiviner: has joined #RubyOnRails
[20:00:21] loechel: has joined #RubyOnRails
[20:01:53] sid_fules: has joined #RubyOnRails
[20:03:28] loechel: has joined #RubyOnRails
[20:04:28] jenrzzz: has joined #RubyOnRails
[20:05:07] bbrowning: has joined #RubyOnRails
[20:08:11] mikecmpbll: has joined #RubyOnRails
[20:12:33] sneakerhax: has joined #RubyOnRails
[20:13:10] lemur: has joined #RubyOnRails
[20:14:04] bob434: has joined #RubyOnRails
[20:14:18] chridal: Anyone know if it's possible to sell your RailsConf ticket? Couldn't find info on it
[20:14:54] Limix: has joined #RubyOnRails
[20:15:12] idefine_: has joined #RubyOnRails
[20:15:47] Limix: Hi all, using guard-rake, but when I run the rake task through guard, no models are found, am I missing something with setting environment properly?
[20:17:52] kuroro: has joined #RubyOnRails
[20:18:04] tubbo: Limix: !gist your Guardfile
[20:18:04] helpa: Limix: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[20:18:09] tubbo: chridal: stubhub? haha
[20:18:32] chridal: tubbo: you got my hopes up for a second xD :-D
[20:18:47] kuroro: in rails 4, the stacktrace filepaths have been shortened for library code, how do i make it show the fullpath?
[20:21:51] FooMunki: has joined #RubyOnRails
[20:21:56] djbkd: has joined #RubyOnRails
[20:22:44] baweaver: has joined #RubyOnRails
[20:23:07] kuroro: ah nvm, found it
[20:23:11] rickmasta: has joined #RubyOnRails
[20:24:05] AoifeOToole: has joined #RubyOnRails
[20:25:42] chouhoulis: has joined #RubyOnRails
[20:26:03] sid_fules: has joined #RubyOnRails
[20:26:06] Limix: tubbo: https://gist.github.com/brancusi/c50c34c164e21cc58a11d0163f3a4f29
[20:26:49] Limix: basically working with prawnpdf and I want to make a tweak, have the change picked up and then build it so I can see changes quickly
[20:27:30] tubbo: Limix: ok, and i assume pdf:build is a task you wrote to do that?
[20:27:50] Limix: yes, it just calls a worker
[20:28:05] Limix: so all that runs, but the worker has no access to the dev data
[20:28:14] Limix: Order.all is empty even though there is seed data
[20:28:23] Limix: if I run the rake task manually, all works fine
[20:28:37] Limix: I am also running bundle exec guard
[20:28:46] DoctorMonocular: has joined #RubyOnRails
[20:29:04] Limix: this is a rails app btw, if that matters
[20:29:19] htmldrum: has joined #RubyOnRails
[20:29:49] tubbo: Limix: yeah i figured :)
[20:30:06] tubbo: does that task also preload the :environment btw?
[20:30:11] Limix: added the rake file: https://gist.github.com/brancusi/c50c34c164e21cc58a11d0163f3a4f29
[20:30:14] tubbo: like `task :build => :environment do`
[20:30:32] roamingdog: has joined #RubyOnRails
[20:30:32] snowy: has joined #RubyOnRails
[20:31:09] tubbo: ok just making sure
[20:31:29] Cache_Money: has joined #RubyOnRails
[20:31:36] tubbo: Limix: so your first problem, i think, is that you're calling 'pdf:build', when your task name is called 'pdf:test' :)
[20:32:20] Limix: actually I just tweaked it in the gist, in reality they are both test
[20:32:47] baweaver: has joined #RubyOnRails
[20:34:18] arBmind: has joined #RubyOnRails
[20:34:40] bronson: has joined #RubyOnRails
[20:34:51] xploshioon: has joined #RubyOnRails
[20:36:23] tubbo: Limix: try prepending your command with the env.. `RAILS_ENV=development bundle exec guard` does that fix anything?
[20:36:35] tubbo: other than that i'm gonna have to assume something else is wrong or you're lying about the db:seed thing :D
[20:37:13] xploshioon: hi guys, i am working with delayed jobs to update some contracts table and want to send a flash to the user when this is finished, is there a way to acomplish this without a third party platform like pusher?
[20:37:49] Limix: so is something goofed with my setup that RAILS_ENV=development is not the default?
[20:38:10] tubbo: Limix: could be. try running `echo $RAILS_ENV` to see if it's already set
[20:38:26] Limix: no its empty
[20:38:34] fox_mulder_cp: Limix: export RAILS_ENV=development && rails|rake something
[20:38:55] Limix: thanks guys
[20:39:04] fox_mulder_cp: Limix: w/out export this env var seemed only bu up level applications
[20:39:04] tubbo: Rails.env defaults to 'development', so you shouldn't need to set it
[20:39:32] tubbo: fox_mulder_cp: that's only relevant if you want to run multiple subsequent commands in that environment
[20:39:42] ur5us: has joined #RubyOnRails
[20:39:45] tubbo: but you can prepend environment settings onto any command and have them applied to that command
[20:39:54] srinidhi: has joined #RubyOnRails
[20:40:06] tubbo: xploshioon: depends on whether you care whether the user can see this update without needing to refresh the page :)
[20:40:10] fox_mulder_cp: xploshioon: oh. default way - make model such as log and append messages to it.
[20:40:47] fox_mulder_cp: xploshioon: and when user open's something in layout show him messages filtered bu current_user
[20:41:08] ericmeds: has joined #RubyOnRails
[20:41:17] xploshioon: there is just an user
[20:41:35] xploshioon: is an app in the server of client and just 1 person use this
[20:41:50] tubbo: xploshioon: tell that person to suck it up and refresh the page ;)
[20:41:56] brent__: has joined #RubyOnRails
[20:41:56] fox_mulder_cp: if you make property 'archieve' u can set this flag when user press <x> button to 'archive' it and show it in /archieve, as example
[20:42:03] Limix: tubby, so my last question, when this task runs through guard, even though I change the worker, it reruns the code of the worker when I start guard, the cached version.
[20:42:07] tubbo: xploshioon: or just poll for changes
[20:42:12] Limix: how can bust the cache?
[20:42:28] Limix: tubbo sorry!
[20:42:32] tubbo: xploshioon: i'd keep it simple and make this an ajax request wherein you periodically poll for changes
[20:42:56] tubbo: Limix: !tubby
[20:42:56] helpa: Limix: https://www.youtube.com/watch?v=1EWho15dSjQ
[20:43:30] xploshioon: so I try to see if in delayed jobs are still rows and when no i send the notification?
[20:43:36] tubbo: Limix: do you have config.cache_classes = true in your env?
[20:43:42] xploshioon: sorry for my english
[20:43:49] dionysus69: has joined #RubyOnRails
[20:44:10] Limix: hm in dev: config.cache_classes = false
[20:44:27] Limix: test: config.cache_classes = true
[20:44:39] Limix: going to try to make all of them false
[20:45:37] tubbo: Limix: you should probably have a better understanding of what environment you're on and what to configure rather than just blindly setting config settings all over the place. don't just try shit when you're configuring a rails app, definitely understand what you're doing first.
[20:45:51] tubbo: Limix: you shouldn't need to touch that config setting ever.
[20:46:05] Limix: just to see if that’s causing it, not going to keep that
[20:46:36] tubbo: Limix: it's better to `puts Rails.env` imho because then you know what config to change
[20:46:49] tubbo: like in your worker, right now, so you can know at which env it's executing under
[20:47:18] emachnic_: has joined #RubyOnRails
[20:47:20] tubbo: if it's in development, it's using config/environments/development.rb and nothing else. unless this setting is changed in an initializer (why?), there's no way for it to be any different.
[20:47:21] blackmesa: has joined #RubyOnRails
[20:47:46] Limix: ok nice, that I added that, def running development
[20:48:05] rafaelfranca: has joined #RubyOnRails
[20:48:06] rafaelfranca: has joined #RubyOnRails
[20:48:31] chridal: Seems it was OK for me to sell my ticket to RailsConf. Now for where to sell it... :-D
[20:48:46] chridal: Any boards or something like that where a lot of Railsdevs hang out?
[20:49:54] Jasaka: has joined #RubyOnRails
[20:50:34] DoctorMonocular: has joined #RubyOnRails
[20:50:45] Limix: ya still not sure, it’s definitely false on the config.cache_classes
[20:53:44] roolo: has joined #RubyOnRails
[20:53:51] roshanavand: has joined #RubyOnRails
[20:54:28] stardiviner: has joined #RubyOnRails
[20:58:15] replay: has joined #RubyOnRails
[20:58:36] tvw: has joined #RubyOnRails
[20:58:51] tubbo: Limix: that's probably not the issue, then.
[20:59:02] replay: has joined #RubyOnRails
[20:59:05] idefine: has joined #RubyOnRails
[20:59:20] yfeldblum: has joined #RubyOnRails
[20:59:25] Limix: tubbo, ya bummer, it’s so close
[21:00:03] Limix: do you have any other suggestions for how to quickly make tweaks and see changes?
[21:00:25] Limix: I have to build about 5 manual prawnpdf scripts
[21:00:33] Limix: the workflow is so slow
[21:00:47] sid_fules: has joined #RubyOnRails
[21:00:53] Limix: just want to build and livereload in a page
[21:01:01] petor: has joined #RubyOnRails
[21:02:11] netzfisch: has joined #RubyOnRails
[21:03:56] idefine: has joined #RubyOnRails
[21:03:59] tubbo: Limix: can the PDF be built on demand, like when you request it in the browser?
[21:04:24] Limix: hm I see where you are going with that
[21:04:27] tubbo: then instead of using guard-rake you'd use guard-livereload and add your worker as one of the paths to trigger a page refresh on change
[21:04:28] Limix: ok I like it
[21:04:52] Limix: thank you
[21:04:59] rakm: what's the name of a methods that are called like this?: `class Foo; something 'blah'; end`
[21:05:17] rakm: i want to say singleton methods, but i don't think that's right
[21:05:36] tubbo: rakm: class methods
[21:06:15] tubbo: although sometimes people refer to them as "macros" because typically, they programatically define methods on the class when called.
[21:06:16] rakm: but it's not just a class method right? i.e. how is it different from a class method defined with def self.something; end
[21:06:20] tubbo: s/class/instance.
[21:06:48] tubbo: rakm: it's actually not different at all from Ruby's perspective. it's like how a Presenter is still a Class, but isn
[21:06:51] tubbo: isn't a Model
[21:07:04] tubbo: "macro" defines its role in the universe, not what it technically is
[21:07:26] tubbo: but yeah, Foo.something and `class Foo; something; end` is the same thing to Ruby.
[21:07:40] Cache_Money: has joined #RubyOnRails
[21:07:42] rakm: so what's the argument in this case? it's being called with that argument?
[21:08:04] scepticulous: has joined #RubyOnRails
[21:09:23] smathy: rakm, yes, just 'blah'
[21:09:24] tubbo: rakm: https://gist.github.com/tubbo/f76ac148a4bd6556edce99cf6cad05b8
[21:09:54] crankharder: I've got Elasticsearch::Model::Callbacks on my model
[21:10:31] crankharder: been looking for the place where rails or rack read the Cookie header and do ActionDispatch things to it.. can't seem to find it. any ideas?
[21:10:47] rakm: ok, so it's an instance method that's being called when the class is called into memory (i.e. at runtime). correct?
[21:11:05] tubbo: crankharder: what does headers/action_dispatch have to do with ES models?
[21:11:20] crankharder: up/enter, head, desk.
[21:11:21] tubbo: was that a typo?
[21:11:24] tubbo: durrrrr i'm dumb
[21:11:49] tubbo: it's a few separate places, crankharder. i think if you search the rails docs for the `cookies` method you'll find the objects it gets passed through
[21:11:58] tubbo: api.rubyonrails.com that is
[21:12:30] crankharder: yea, i see a whole lot of Set-Cookie in middlewares for the response, but not much where it gets read in the request
[21:12:36] jstransky: has joined #RubyOnRails
[21:12:37] smathy: rakm, no, it's a class method.
[21:12:40] baweaver: has joined #RubyOnRails
[21:12:59] rakm: smathy ah yeah, my bad. other than that, does that sound right?
[21:13:09] rakm: great, thank you
[21:13:19] smathy: rakm, it is called as the interpreter sees it during the loading of the class.
[21:15:33] snowy: has joined #RubyOnRails
[21:16:57] idefine: has joined #RubyOnRails
[21:17:44] Radar: GOOD MORNING
[21:22:06] scepticulous: has joined #RubyOnRails
[21:22:18] stardiviner: has joined #RubyOnRails
[21:23:04] lemur: has joined #RubyOnRails
[21:30:32] scepticulous: has joined #RubyOnRails
[21:32:27] felltir: has joined #RubyOnRails
[21:33:27] roamingdog: has joined #RubyOnRails
[21:33:48] jtong: has joined #RubyOnRails
[21:35:43] bronson: has joined #RubyOnRails
[21:36:28] scepticulous: has joined #RubyOnRails
[21:38:33] nVd: has joined #RubyOnRails
[21:40:35] jtong: for prerender io, what useragent does it use when it accesses your site?
[21:42:14] smathy: jtong, wrong channel?
[21:42:46] idefine: has joined #RubyOnRails
[21:42:46] CassioAlmeidas: has joined #RubyOnRails
[21:44:47] itsmeduncan: has joined #RubyOnRails
[21:45:09] jtong: ah my bad
[21:48:45] CassioAlmeidas: what the best WYSIWYG editor for rails?
[21:49:44] smathy: CassioAlmeidas, WYSIWYG in what sense?
[21:51:19] CassioAlmeidas: web editor for news content portal.
[21:52:06] tubbo: we use wysiwyg.js but find it somewhat limiting. our next major version is probably going to use basecamp's trix editor.
[21:52:36] smathy: CassioAlmeidas, I don't think there's a canonical one, many of the good ones have rails gems that people have created to make them simple to include.
[21:56:52] idefine: has joined #RubyOnRails
[21:57:11] ensyde: has joined #RubyOnRails
[21:57:56] roamingdog: has joined #RubyOnRails
[21:58:16] roshanavand: has joined #RubyOnRails
[22:00:28] armyriad: has joined #RubyOnRails
[22:00:54] loechel: has joined #RubyOnRails
[22:02:43] pawnbox: has joined #RubyOnRails
[22:03:25] FooMunki: has joined #RubyOnRails
[22:04:17] castlelore: has joined #RubyOnRails
[22:05:02] castlelore: has joined #RubyOnRails
[22:05:17] idefine: has joined #RubyOnRails
[22:05:39] jarib: has joined #RubyOnRails
[22:05:39] jarib: has joined #RubyOnRails
[22:06:15] TheMonster: has joined #RubyOnRails
[22:06:24] roshanavand: has joined #RubyOnRails
[22:07:50] CassioAlmeidas: has left #RubyOnRails: ()
[22:08:11] WhereIsMySpoon_: has joined #RubyOnRails
[22:08:32] theblang: has joined #RubyOnRails
[22:08:49] jokke: has joined #RubyOnRails
[22:09:44] sypheren: has joined #RubyOnRails
[22:10:12] sid_fules: has joined #RubyOnRails
[22:12:06] coffeejunk: has joined #RubyOnRails
[22:16:46] Jasaka: has joined #RubyOnRails
[22:17:37] idefine: has joined #RubyOnRails
[22:18:14] stardiviner: has joined #RubyOnRails
[22:21:16] duderonomy: has joined #RubyOnRails
[22:22:04] drale2k: is there example code for having multiple chat channels with Actioncable ? I can't get the concept around my head
[22:22:41] drale2k: how to make the channel subscription and broadcasting dynamic
[22:22:47] roamingdog: has joined #RubyOnRails
[22:24:30] godzillaenlacasa: has joined #RubyOnRails
[22:25:44] kodnin: has joined #RubyOnRails
[22:27:31] roamingdog: has joined #RubyOnRails
[22:31:24] ArTiSTiX: has joined #RubyOnRails
[22:31:49] htmldrum: has joined #RubyOnRails
[22:32:45] roamingdog: has joined #RubyOnRails
[22:35:53] sid_fules: has joined #RubyOnRails
[22:36:28] bronson: has joined #RubyOnRails
[22:36:58] n008f4g_: has joined #RubyOnRails
[22:38:41] wethu: has joined #RubyOnRails
[22:39:32] brianpWins: has joined #RubyOnRails
[22:39:41] Moeh: has joined #RubyOnRails
[22:40:13] idefine: has joined #RubyOnRails
[22:42:42] phredus: has joined #RubyOnRails
[22:46:50] wethu: has joined #RubyOnRails
[22:48:37] idefine: has joined #RubyOnRails
[22:51:13] bphogan: has joined #RubyOnRails
[22:52:53] baweaver: has joined #RubyOnRails
[22:53:18] sid_fules: has joined #RubyOnRails
[22:54:35] emachnic: has joined #RubyOnRails
[22:54:37] chickenrider: has joined #RubyOnRails
[23:00:23] idefine_: has joined #RubyOnRails
[23:01:11] petor: has joined #RubyOnRails
[23:04:12] smathy: You're here already chipotle
[23:04:19] smathy: Sorry chipotle
[23:04:33] djbkd: has joined #RubyOnRails
[23:06:38] bphogan: has joined #RubyOnRails
[23:07:14] xcesariox: has joined #RubyOnRails
[23:08:21] kinyu: has joined #RubyOnRails
[23:12:39] bphogan_afk: has joined #RubyOnRails
[23:15:35] idefine: has joined #RubyOnRails
[23:17:12] dudepare: has joined #RubyOnRails
[23:18:46] jenrzzz_: has joined #RubyOnRails
[23:21:40] baweaver: has joined #RubyOnRails
[23:24:34] nertzy: has joined #RubyOnRails
[23:25:45] Cache_Money: has joined #RubyOnRails
[23:26:48] dudepare: /msg NickServ VERIFY REGISTER dudepare gvhbcvrdfnuu
[23:27:44] havenwood: dudepare: Pick a new password!
[23:30:34] [gmi]: has joined #RubyOnRails
[23:30:39] emachnic: has joined #RubyOnRails
[23:31:21] havenwood: dudepare: :)
[23:32:41] bphogan: has joined #RubyOnRails
[23:33:35] pawnbox: has joined #RubyOnRails
[23:33:40] dudepare: i didn't have to nickserv my way into #ruby though
[23:36:37] quazimodo: has joined #RubyOnRails
[23:36:38] quazimod1: has joined #RubyOnRails
[23:36:42] quazimod2: has joined #RubyOnRails
[23:37:23] phredus_: has joined #RubyOnRails
[23:37:30] bronson: has joined #RubyOnRails
[23:37:37] adre: has joined #RubyOnRails
[23:41:46] quazimod3: has joined #RubyOnRails
[23:42:46] heydonovan1: has joined #RubyOnRails
[23:43:13] smathy: You didn't here either, it's an outdated message.
[23:45:48] AntiSpamMeta: has joined #RubyOnRails
[23:46:39] idefine: has joined #RubyOnRails
[23:49:44] flashpoint9: has joined #RubyOnRails
[23:50:20] jenrzzz: has joined #RubyOnRails
[23:51:29] neanderslob: hi everyone, I've been using simple_form's date helper and really like how it splits up the date into individual inputs for month day and year but is there a way to make them render as just text fields rather than selects?
[23:53:25] manfrin`laptop: has joined #RubyOnRails
[23:54:59] flashpoint9: has joined #RubyOnRails
[23:55:17] Sawbones: has joined #RubyOnRails
[23:55:58] replay: has joined #RubyOnRails
[23:56:09] sid_fules: has joined #RubyOnRails
[23:56:39] jowiar: has joined #RubyOnRails
[23:57:45] alexhartley: has joined #RubyOnRails
[23:59:38] audy: anyone use handsontable?