« Back to channel list

#RubyOnRails - 17 March 2016

« Back 1 day Forward 1 day »
[00:00:18] Radar: _bogus_: I can't help you, sorry. This is not a 15 minute thing.
[00:00:27] cabinB: has joined #RubyOnRails
[00:00:30] _bogus_: ok thanks anyway
[00:01:51] OpCuzao: How can I render to a variable? Inside an action of my controller I need to render a template to my variable. I need to do something like: @my_html = render_to_var('my_template.erb', :locals => { :collection1 => @collection1 }), so my collection will be visible to be iterated in the rendering function/template
[00:02:15] jm3: has joined #RubyOnRails
[00:03:37] smathy: OpCuzao, go to http://api.rubyonrails.org/ and type render_to_ in the search and I bet you'll find the method.
[00:05:14] OpCuzao: smathy, thank you, but what args are it expecting?
[00:06:50] pragmatism: has joined #RubyOnRails
[00:07:00] uglybandersnatch: has joined #RubyOnRails
[00:07:34] timdotrb: Thanks guys for the help guys
[00:07:46] alevy: has joined #RubyOnRails
[00:07:50] pragmatism: has joined #RubyOnRails
[00:08:09] DLSteve: has joined #RubyOnRails
[00:08:15] [afk]chocoelho: has joined #RubyOnRails
[00:09:48] baweaver: has joined #RubyOnRails
[00:09:54] crdpink2: has joined #RubyOnRails
[00:10:19] pramodv: has joined #RubyOnRails
[00:11:11] helpa: We're not all guys here - while you probably didn't mean to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[00:11:43] Pathfinder: Hi on a has one relationship e.g. where a driver has one car and the car belongs to a driver. How can I create a named scope on driver.rb that returns all cars that have a driver?
[00:13:07] Klumben: has joined #RubyOnRails
[00:13:40] bronson: has joined #RubyOnRails
[00:15:09] SteenJobs: has joined #RubyOnRails
[00:15:58] Ropeney: Pathfinder, on cars `.joins(:driver)` ?
[00:16:20] Pathfinder: I tried placing something like this on driver.rb `scope :with_drivers, -> { where( car: true)}` :/
[00:17:40] Pathfinder: Ropeney: How exactly do I place a joins in the scope. Sorry I am quite a beginner
[00:17:47] Ropeney: Pathfinder, that would be "with_car" and would better to be { where('car_id IS NOT NULL') }
[00:18:15] Ropeney: Pathfinder, replace the where, but on cars.rb
[00:19:02] Pathfinder: I would like the scope in the driver.rb and not the car.rb so that it is usable on the activeadmin driver resource
[00:19:30] Ropeney: then do the IS NUT NULL
[00:20:09] smathy: has joined #RubyOnRails
[00:20:57] Ropeney: Pathfinder, i think you can also do scope :with_cars, -> { where.not(car: nil) }
[00:21:39] jottr: has joined #RubyOnRails
[00:22:57] Pathfinder: Thanks alot Ropeney, I just did not understand how to query a child from a parent's scope
[00:23:07] DmitryBochkarev: has joined #RubyOnRails
[00:23:23] gavit: has joined #RubyOnRails
[00:23:52] Ropeney: VeryBewitching, won't that just eager load car for records that do have one?
[00:24:20] jenrzzz: can anyone here tell me a story about the history of ruby web servers? looks like WEBrick came out in the early 2000s and became part of ruby with v1.8 in 2003. then mongrel showed up around 2006, and we got rack in 2007. was there anything going on in between?
[00:24:26] kdough: has joined #RubyOnRails
[00:24:37] VeryBewitching: Ropeney: If you're looking for drivers that have cars, that's helpful.
[00:25:16] pwnd_nsfw: I wish MyLife.includes(:car)
[00:25:44] jenrzzz: i'm trying to understand what was going on in the community that caused rack to come in to existence
[00:25:51] jenrzzz: it's good stuff
[00:26:57] Papierkorb: jenrzzz: every problem in programming can be solved by adding another layer of abstraction. Guessing, but with the advent of new servers server devs likely wanted to be able to run rails/whatever on their server without patching everything all the time
[00:27:03] Pathfinder: VeryBewitching: If it is eager loading, how useful is that in a has one relationship. I though includes is usually good when you are iterating looking for multiple hits e,g in a has_many association
[00:27:11] eggoez: has joined #RubyOnRails
[00:27:42] VeryBewitching: Pathfinder: You didn't specify you're looking for one record.
[00:28:53] jenrzzz: Papierkorb: yeah, I think rails started to get big around then so some smart people decided they ought to get their shit together
[00:29:26] jenrzzz: i suppose #rack would be a good place to ask
[00:29:39] Ropeney: VeryBewitching, he did say he wants all that have a car, filtering those that don't.
[00:30:08] Pathfinder: yeah I get now. I think I even got mixed up in what I was asking. I wanted to know how to get all drivers that have a car but as a scope in the driver.rb. I think Ropeney also suffices for this
[00:30:16] VeryBewitching: Ropeney: I wasn't claiming that your advice was incorrect :)
[00:30:38] Ropeney: VeryBewitching, okay coolies simple misunderstanding :D
[00:31:15] VeryBewitching: Mostly, I was suggesting that Pathfinder look at includes (Pathfinder said they were new to Rails)
[00:31:54] Pathfinder: Thanks VeryBewitching
[00:32:30] VeryBewitching: Once you do find records through a join, the likely hood that you're going to select data is reasonably high :D
[00:33:45] uglybandersnatch: has joined #RubyOnRails
[00:33:59] dalbuschat: has joined #RubyOnRails
[00:36:11] mices: has left #RubyOnRails: ("Cycling")
[00:36:11] mices: has joined #RubyOnRails
[00:36:31] ensyde: has joined #RubyOnRails
[00:36:35] mices: hello yes i am trying to work with ruby on railways but i cant find where to download the server program???
[00:36:39] mices: im only finding the source code
[00:37:01] baweaver: has joined #RubyOnRails
[00:37:09] pwnd_nsfw: dat troll dough
[00:37:12] mices: er, wrong channel, obviously
[00:37:15] Ropeney: mices, where have you found the sourcode?
[00:37:21] Pathfinder: mices: How have you installed your ruby
[00:37:34] pwnd_nsfw: ACTION laughs loudly.
[00:37:34] mices: has left #RubyOnRails: ()
[00:37:44] Pathfinder: If you have successfully installed ruby just do, gem install rails
[00:37:45] Ropeney: ACTION scratches head
[00:38:10] Arcaire: has joined #RubyOnRails
[00:38:24] Pathfinder: And it is ruby on rails :)
[00:38:35] Arcaire: What's ruby on rails?
[00:40:20] bronson: Anyone use anything simpler than Capistrano to deploy?
[00:40:28] Pathfinder: Ropeney so the scope does not work. ActiveRecord returns: SQLite3::SQLException: no such column:drivers.driver_id: SELECT COUNT(*) FROM “drivers" WHERE (“drivers”."driver_id" IS NOT NULL)
[00:40:34] Ropeney: bronson, bash script
[00:40:56] Ropeney: Pathfinder, car_id ?
[00:41:00] bronson: I've been using mislav's git-deploy, looking a little dead.
[00:41:02] Radar: https://github.com/mipearson/gofer
[00:41:16] Radar: ^ coupled with a custom build script
[00:41:20] Pathfinder: And here is our scope on the driver.rb scope :with_driver, -> { where.not( car: nil)}
[00:41:27] bronson: Ropeney: hm... write code to migrate, generate assets, log, recover gracefully myself?
[00:41:41] Ropeney: bronson, u did ask :(
[00:42:03] Pathfinder: bronson: Why would you not like to use capistrano?
[00:42:16] bronson: Ropeney: haha. and "wrote them myself" or "don't need them" is a perfectly good answer too.
[00:42:36] bronson: Pathfinder: because I've burned days on its needless complexity in the past.
[00:42:53] bronson: maybe it's better now but whoooo boy, when stuff goes wrong, that code is immense and weird.
[00:43:36] Ropeney: Pathfinder, your gunna have to gist code because something your doing isn't making sense from here
[00:44:39] bronson: Radar: gofer looks like a good start. not seeing a Rails template though. You just wrote the asset and migration stuff yourself?
[00:44:57] Radar: bronson: we literally call gofer commands to run 'rake db:migrate' on the server.
[00:45:03] Pathfinder: bronson: Have you seen http://deploybot.com/
[00:45:05] lessless: has joined #RubyOnRails
[00:45:11] Radar: There's no Rails template. What it'll do it is enable you to connect to a server and run commands on it.
[00:45:14] Radar: From there, you have to build your own.
[00:45:22] Ropeney: gogo ansible?
[00:45:22] Radar: It's pretty lightweight.
[00:46:13] bronson: Pathfinder: wow... I thought that was a joke at first, like http://www.shutdownify.com/
[00:47:16] gambl0re: has joined #RubyOnRails
[00:47:23] pawnbox: has joined #RubyOnRails
[00:47:31] Pathfinder: A friend of mine likes using it to deploy laravel apps so the flow has got to be similar if not simpler :)
[00:47:46] pwnd_nsfw: ACTION cringes
[00:48:01] tomatoes: has joined #RubyOnRails
[00:48:58] xhoy: has joined #RubyOnRails
[00:49:30] bronson: Radar, just curious about your gofer setup: are the migrations automatic, or do you need to remember to run them?
[00:49:40] RTG`: has joined #RubyOnRails
[00:49:51] _Tariq: has joined #RubyOnRails
[00:50:17] Radar: bronson: 1) we clone the new version of the app to a directory 2) we run bundle install 3) we then run `"bundle exec rake db:migrate"
[00:50:31] Radar: bronson: this happens every deploy, regardless of if there are migrations to run or not.
[00:51:01] bronson: yep, that makes sense. I assume an assets:precompile is in there too?
[00:51:08] Radar: Yup, it's one of the next steps.
[00:51:25] Radar: We could check the diff of db/migrate since the last deployment and only run rake db:migrate if that's changed, but we don't.
[00:51:43] jhack: has joined #RubyOnRails
[00:52:41] emachnic: has joined #RubyOnRails
[00:54:14] lemur: has joined #RubyOnRails
[00:54:53] Ropeney: Radar, have you looked at ansible to replace that? seems easier and looks like it could do alot more hosts cleaner??
[00:55:21] Radar: Ropeney: Yes, I've used Ansible before for this kind of thing. Gofer is just what we use now and to rewrite the build script would take too long.
[00:56:12] Ropeney: fair point
[00:59:56] _Tariq: has joined #RubyOnRails
[01:01:15] twilling: has joined #RubyOnRails
[01:03:14] ianmethyst: has joined #RubyOnRails
[01:07:17] diegoviola: has joined #RubyOnRails
[01:16:02] stannard: has joined #RubyOnRails
[01:17:13] pawnbox: has joined #RubyOnRails
[01:17:28] _Tariq: has joined #RubyOnRails
[01:18:43] Uo9er_: has joined #RubyOnRails
[01:20:07] uglybandersnatch: has joined #RubyOnRails
[01:20:07] Darmani: has joined #RubyOnRails
[01:20:12] _Tariq: has joined #RubyOnRails
[01:20:34] siaW: has joined #RubyOnRails
[01:22:23] Uber|Dragon: has joined #RubyOnRails
[01:22:48] nerium: has joined #RubyOnRails
[01:24:31] jtdowney: has joined #RubyOnRails
[01:24:31] jtdowney: has joined #RubyOnRails
[01:24:39] mattwithoos: has joined #RubyOnRails
[01:25:12] Devalo: has joined #RubyOnRails
[01:26:16] gbgdev_: has joined #RubyOnRails
[01:30:24] ur5us: has joined #RubyOnRails
[01:32:26] kies: has joined #RubyOnRails
[01:32:45] sneakerhax: has joined #RubyOnRails
[01:34:04] greengriminal: has joined #RubyOnRails
[01:34:48] sleungcy: has joined #RubyOnRails
[01:38:21] mattwithoos: has joined #RubyOnRails
[01:38:42] ianmethyst_: has joined #RubyOnRails
[01:39:10] gormandy: has joined #RubyOnRails
[01:47:32] pawnbox: has joined #RubyOnRails
[01:49:46] y2mq37: has joined #RubyOnRails
[01:56:13] jm3: has joined #RubyOnRails
[01:56:21] uglybandersnatch: has joined #RubyOnRails
[01:57:13] triptec: has joined #RubyOnRails
[01:57:21] eljimmy: has joined #RubyOnRails
[01:58:13] Xentil: has joined #RubyOnRails
[02:01:51] i8igmac: has joined #RubyOnRails
[02:02:38] bronson: has joined #RubyOnRails
[02:04:13] DoctorMonocular: has joined #RubyOnRails
[02:06:46] SteenJobs: has joined #RubyOnRails
[02:12:52] triptec: has joined #RubyOnRails
[02:14:18] i8igmac: im working on a server set event with the actioncontroller::live module and some jquery for the browser side.
[02:14:36] tercenya: has joined #RubyOnRails
[02:14:44] i8igmac: when the browser is closed or the connection is lost, can i have this task continue running?
[02:15:38] i8igmac: when the connection is lost, the rails controller will stop the thread
[02:17:11] pawnbox: has joined #RubyOnRails
[02:18:00] DmitryBochkarev: has joined #RubyOnRails
[02:18:06] stannard: has joined #RubyOnRails
[02:20:55] treaki__: has joined #RubyOnRails
[02:21:47] gbgdev: has joined #RubyOnRails
[02:25:05] htmldrum: has joined #RubyOnRails
[02:25:20] eyeamaye: has joined #RubyOnRails
[02:25:20] PlasmaStar: has joined #RubyOnRails
[02:25:20] adre: has joined #RubyOnRails
[02:25:20] Spami_: has joined #RubyOnRails
[02:25:20] Isthar: has joined #RubyOnRails
[02:25:20] Didac: has joined #RubyOnRails
[02:25:20] andrew-l: has joined #RubyOnRails
[02:25:20] Cork: has joined #RubyOnRails
[02:25:20] bachmann: has joined #RubyOnRails
[02:25:20] Puffball: has joined #RubyOnRails
[02:25:20] nibbo: has joined #RubyOnRails
[02:25:20] JonasOSDever: has joined #RubyOnRails
[02:25:20] llakey: has joined #RubyOnRails
[02:25:20] jlpeters: has joined #RubyOnRails
[02:25:20] crankharder: has joined #RubyOnRails
[02:25:21] sdn90: has joined #RubyOnRails
[02:25:21] RubyNewbey_____: has joined #RubyOnRails
[02:25:21] czetter: has joined #RubyOnRails
[02:25:58] Puffball: has joined #RubyOnRails
[02:26:01] PlasmaStar: has joined #RubyOnRails
[02:26:31] cabinB: I have userprofiles as a resource. It has its own series of show, edit, index views. I want admin users (a role I set in database and in controllers) to be able to edit all userprofile fields for all users, and non-admin users to only be able to edit a subset of fields. How do i redirect certain users to certain views when editing? In other words, Admins should use a form based on view "edit", all others user view "edit2".
[02:26:53] DoctorMonocular: has joined #RubyOnRails
[02:27:00] chagel: has joined #RubyOnRails
[02:27:30] llakey: has joined #RubyOnRails
[02:30:08] benlieb: has joined #RubyOnRails
[02:34:31] Radar: cabinB: Refer to Chapter 7 of Rails 4 in Action, which covers namespacing controllers.
[02:34:32] jm3: has joined #RubyOnRails
[02:34:51] Radar: cabinB: You'll want to namespace the views so that admins are presented with certain fields and users are presented with other fields.
[02:35:39] cabinB: Radar, thanks. I'll look into namespacing views
[02:35:50] helpa: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[02:38:10] ElSif: has joined #RubyOnRails
[02:39:12] crystal77: has joined #RubyOnRails
[02:40:53] Uber|Dragon: has joined #RubyOnRails
[02:43:10] aloneintheworld: has joined #RubyOnRails
[02:43:29] mattwithoos: has joined #RubyOnRails
[02:44:00] diegoviola: has joined #RubyOnRails
[02:44:54] htmldrum: has joined #RubyOnRails
[02:45:06] kies: has joined #RubyOnRails
[02:45:06] tomatoes: has joined #RubyOnRails
[02:45:34] tjbiddle: has joined #RubyOnRails
[02:47:09] pawnbox: has joined #RubyOnRails
[02:47:20] aloneintheworld: has joined #RubyOnRails
[02:47:27] jenrzzz: has joined #RubyOnRails
[02:47:35] sleungcy: has joined #RubyOnRails
[02:47:48] diegoviola: has joined #RubyOnRails
[02:47:48] sonofdirt: has joined #RubyOnRails
[02:48:41] P4Titan: has left #RubyOnRails: ("ERC Version 5.3 (IRC client for Emacs)")
[02:49:16] aloneintheworld: has joined #RubyOnRails
[02:52:15] gbgdev_: has joined #RubyOnRails
[02:52:44] Trynemjoel: has joined #RubyOnRails
[02:54:35] ruind: has joined #RubyOnRails
[02:55:00] triptec: has joined #RubyOnRails
[02:55:16] baweaver: has joined #RubyOnRails
[02:56:09] blackmesa: has joined #RubyOnRails
[02:58:38] baweaver: has joined #RubyOnRails
[02:59:56] [afk]chocoelho: has left #RubyOnRails: ()
[03:02:22] sevenseacat: has joined #RubyOnRails
[03:04:22] smoitra: has joined #RubyOnRails
[03:06:07] uglybandersnatch: has joined #RubyOnRails
[03:07:09] DoctorMonocular: has joined #RubyOnRails
[03:09:24] IrishGringo: has joined #RubyOnRails
[03:09:53] jenrzzz: has joined #RubyOnRails
[03:10:37] triptec: has joined #RubyOnRails
[03:11:41] Spami: has joined #RubyOnRails
[03:12:13] Spami: has joined #RubyOnRails
[03:14:42] shpoont: has joined #RubyOnRails
[03:17:28] pawnbox: has joined #RubyOnRails
[03:18:53] U7se6: has joined #RubyOnRails
[03:19:11] Spami: has joined #RubyOnRails
[03:19:11] mrgreenfur: has joined #RubyOnRails
[03:25:33] sadaf2605: has joined #RubyOnRails
[03:26:01] chandlerbing: has joined #RubyOnRails
[03:26:46] Devalo: has joined #RubyOnRails
[03:27:02] pwn: has joined #RubyOnRails
[03:27:07] pwn: What does this line do: @sid = "#{@session[16..-1]}"
[03:33:25] bronson: has joined #RubyOnRails
[03:34:17] uglybandersnatch: has joined #RubyOnRails
[03:34:55] w0rd-driven: has joined #RubyOnRails
[03:35:09] triptec: has joined #RubyOnRails
[03:36:15] OpCuzao: pwn, #{} evaluates value and 16..-1 is a slice
[03:36:18] OpCuzao: Read the docs
[03:36:22] baweaver: has joined #RubyOnRails
[03:36:42] pwn: you read the docs, and then explain them to me
[03:37:50] benlieb: has joined #RubyOnRails
[03:37:53] rrrepsaj: has joined #RubyOnRails
[03:41:49] duncannz: has joined #RubyOnRails
[03:43:18] mattwithoos: has joined #RubyOnRails
[03:43:22] y2mq37: has joined #RubyOnRails
[03:46:12] baweaver: pwn: be nice. OpCuzao: same
[03:46:47] pwn: yes, be nice you little bitch, and dont piss me off.
[03:47:00] OpCuzao: baweaver, I am nice, I give the directions. He that didn take it easy lol
[03:47:19] ChanServ: +o baweaver
[03:47:24] OpCuzao: pwn boqueteiro filho da puta do caralho auhahuauhahuauh e estúpido ainda
[03:47:36] pwn: lets all calm down
[03:47:55] OpCuzao: baweaver, take it easy too. pwn is brazilian, brazilian is know for their hu3 br thing
[03:48:31] pwn: hehueuhe
[03:48:39] helpa: Treat people in a considerate manner, as they are volunteering their time to help you. If you're helping, do so in a kind and considerate manner; you were a newbie once too. If you're being annoying or rude you may be muted by one of the channel ops.
[03:48:47] greenride: has joined #RubyOnRails
[03:50:00] OpCuzao: pwn, did you listen? baweaver is asking me to treat you like the grande corno lazarento that you are
[03:50:48] triptec: has joined #RubyOnRails
[03:51:26] uglybandersnatch: has joined #RubyOnRails
[03:51:28] baweaver: Keep it on topic
[03:51:35] baweaver: or go to #ruby-offtopic
[03:52:30] Arcaire: wtf am i reading
[03:52:30] tercenya_: has joined #RubyOnRails
[03:55:38] wasane: has joined #RubyOnRails
[03:56:13] _Tariq: has joined #RubyOnRails
[03:56:55] tercenya: has joined #RubyOnRails
[03:57:29] pawnbox: has joined #RubyOnRails
[03:58:28] IFrank00: has joined #RubyOnRails
[04:00:26] Miron: has joined #RubyOnRails
[04:00:35] rrrepsaj: has joined #RubyOnRails
[04:01:57] greenride: When using header tokens with Devise in a Rails api, what gems are useful for managing these tokens? Users need multiple active tokens, and support for token expiration/invalidation would be helpful.
[04:02:10] sonofdirt: has joined #RubyOnRails
[04:05:39] triptec: has joined #RubyOnRails
[04:14:02] braincrash: has joined #RubyOnRails
[04:15:36] pawnbox: has joined #RubyOnRails
[04:18:02] pawnbox: has joined #RubyOnRails
[04:18:17] tjbiddle: has joined #RubyOnRails
[04:18:26] bungoman: has joined #RubyOnRails
[04:18:53] arup_r: has joined #RubyOnRails
[04:25:10] DmitryBochkarev: has joined #RubyOnRails
[04:25:44] d5sx43: has joined #RubyOnRails
[04:25:54] sysodaff: has joined #RubyOnRails
[04:26:43] blackmesa: has joined #RubyOnRails
[04:26:51] tjbiddle: has joined #RubyOnRails
[04:27:01] alex88: has joined #RubyOnRails
[04:29:05] uglybandersnatch: has joined #RubyOnRails
[04:29:14] treaki_: has joined #RubyOnRails
[04:29:53] DmitryBochkarev: has joined #RubyOnRails
[04:34:16] drupald: has joined #RubyOnRails
[04:34:46] bronson: has joined #RubyOnRails
[04:35:17] SteenJobs: has joined #RubyOnRails
[04:35:38] IrishGringo: has joined #RubyOnRails
[04:35:41] IFrank00: has joined #RubyOnRails
[04:40:12] sevenseacat: has joined #RubyOnRails
[04:42:05] krz: has joined #RubyOnRails
[04:43:34] akosednar: has joined #RubyOnRails
[04:44:45] chagel: has joined #RubyOnRails
[04:44:51] OpCuzao: Arcaire, you were probably reading some sorte of dor no cu, since OpCuzao means a lot about Op
[04:45:04] OpCuzao: Gotta sleep :)
[04:45:42] triptec: has joined #RubyOnRails
[04:45:54] Arcaire: *squints a lot*
[04:46:08] Arcaire: I don't even understand that response.
[04:46:17] pfg: has joined #RubyOnRails
[04:46:57] bricker: has joined #RubyOnRails
[04:47:09] fedexo: has joined #RubyOnRails
[04:49:46] chagel: has joined #RubyOnRails
[04:52:44] kirillzh: has joined #RubyOnRails
[04:56:25] chagel: has joined #RubyOnRails
[04:57:33] sp1rs: has joined #RubyOnRails
[04:57:40] tercenya: has joined #RubyOnRails
[05:00:16] norc: has joined #RubyOnRails
[05:01:18] triptec: has joined #RubyOnRails
[05:01:25] chagel: has joined #RubyOnRails
[05:06:17] arup_r: has joined #RubyOnRails
[05:08:04] chagel: has joined #RubyOnRails
[05:08:18] jottr: Hi all. I need to store some json data from an external source in my database for later retrieval (to be specific, we retrieve a wordpress blogs posts as json) Is there a convention of how to name tables holding json data?
[05:10:43] ruind: has joined #RubyOnRails
[05:13:17] merida: has joined #RubyOnRails
[05:14:14] ruid: has joined #RubyOnRails
[05:14:23] capin: happy st patrick's day everyone ;)
[05:18:24] marienz: has joined #RubyOnRails
[05:19:17] Uo9er_: has joined #RubyOnRails
[05:20:04] liquid-silence: has joined #RubyOnRails
[05:20:04] liquid-silence: has joined #RubyOnRails
[05:20:26] crystal77: has joined #RubyOnRails
[05:21:40] sevenseacat: has joined #RubyOnRails
[05:28:21] Devalo: has joined #RubyOnRails
[05:34:43] Devalo: has joined #RubyOnRails
[05:38:08] chagel: has joined #RubyOnRails
[05:38:53] Xentil: has joined #RubyOnRails
[05:41:44] triptec: has joined #RubyOnRails
[05:43:06] chagel: has joined #RubyOnRails
[05:46:37] greengriminal: has joined #RubyOnRails
[05:50:49] chagel: has joined #RubyOnRails
[05:51:44] siaW: has joined #RubyOnRails
[05:55:48] chagel: has joined #RubyOnRails
[05:56:15] pawnbox: has joined #RubyOnRails
[05:57:13] blackmesa: has joined #RubyOnRails
[05:57:19] triptec: has joined #RubyOnRails
[05:58:34] mattwithoos_: has joined #RubyOnRails
[05:58:48] tvw: has joined #RubyOnRails
[06:01:35] alfie_max15: has joined #RubyOnRails
[06:01:48] smoitra_: has joined #RubyOnRails
[06:02:03] alfie_max15: i'm trying to block/allow users to my application based on their ip address
[06:02:20] alfie_max15: any suggestions on how i could do that?
[06:02:26] alfie_max15: i was checking http://dev.maxmind.com/geoip/geoip2/geolite2/
[06:02:50] alfie_max15: this seems promising, but i was wondering if there is a better cost free way to do the same
[06:02:56] bePolite: has joined #RubyOnRails
[06:07:53] dionysus69: has joined #RubyOnRails
[06:09:55] liquid-silence: has joined #RubyOnRails
[06:09:55] liquid-silence: has joined #RubyOnRails
[06:11:49] Macaveli: has joined #RubyOnRails
[06:13:49] _bogus_: Am I doing something wrong? why the before_save method isnt being called? https://gist.github.com/andreycwb/42fb1a41e5efb288976c I tried before_validation also to see if it was not saving because of validation but it didnt work either... This model belongs to model Mapa, and thats what Im saving but I guess this shouldnt prevent the before_save method of being called..
[06:16:41] chagel: has joined #RubyOnRails
[06:16:53] siaW: has joined #RubyOnRails
[06:17:07] sevenseacat: _bogus_: how are you calling it?
[06:19:45] siaW: has joined #RubyOnRails
[06:23:44] ziyadb: has joined #RubyOnRails
[06:26:21] ur5us: has joined #RubyOnRails
[06:28:27] raunicolae: has joined #RubyOnRails
[06:29:58] RegulationD: has joined #RubyOnRails
[06:30:01] chagel: has joined #RubyOnRails
[06:34:05] bscott_: has joined #RubyOnRails
[06:35:03] chagel: has joined #RubyOnRails
[06:35:22] bronson: has joined #RubyOnRails
[06:38:33] adre: has joined #RubyOnRails
[06:38:44] triptec: has joined #RubyOnRails
[06:40:11] chagel: has joined #RubyOnRails
[06:45:16] ur5us: has joined #RubyOnRails
[06:45:44] _bogus_: sevenseacat, on before_save
[06:47:18] SteenJobs: has joined #RubyOnRails
[06:49:29] alfie_max15: _bogus_, i think what he meant was when do you expect it to be run? are you creating a record? updating it? which code is it that you expect to trigger the before_save method
[06:49:55] rogue_koder: has joined #RubyOnRails
[06:50:18] _bogus_: alfie_max15, actually im updating a Mapa record, but I expect it to work on create/update. I expect the check_blank method to be called before saving the model to db
[06:51:29] ur5us: has joined #RubyOnRails
[06:52:42] rnda: has joined #RubyOnRails
[06:53:33] Uber|Dragon: has joined #RubyOnRails
[06:53:35] rogue_koder: has joined #RubyOnRails
[06:54:35] arup_r: has joined #RubyOnRails
[06:57:02] alfie_max15: _bogus_, what's the input that is provided?
[06:58:32] alfie_max15: and is it possible that one of your validations fail because of the input that's given?
[06:59:28] _bogus_: alfie_max15, i thought of this too, but even if I change before_save to before_validate it doesnt be called
[07:02:12] alfie_max15: rails version?
[07:04:01] Rahul_Roy: has joined #RubyOnRails
[07:04:30] rvanlieshout: has joined #RubyOnRails
[07:05:15] solars: has joined #RubyOnRails
[07:07:20] JohnBat26: has joined #RubyOnRails
[07:08:24] alfie_max15: _bogus_, on a different note, you might want to use validates_length_of, validates_inclusion_of validation helpers instead
[07:08:37] alfie_max15: you can find a whole list of helpers here : http://apidock.com/rails/ActiveModel/Validations/HelperMethods
[07:08:46] sevenseacat: has joined #RubyOnRails
[07:09:30] alfie_max15: and can you like remove your validations for a while and try if the callback is triggered
[07:09:54] scepticulous: has joined #RubyOnRails
[07:10:50] bscott__: has joined #RubyOnRails
[07:11:51] emilkarl: has joined #RubyOnRails
[07:12:51] scepticulous: has joined #RubyOnRails
[07:13:24] moei: has joined #RubyOnRails
[07:14:15] nocontrol: has joined #RubyOnRails
[07:15:20] _bogus_: alfie_max15, oh but I actually want to set persona_avatar nil only if all those fields are blank, anyway, they're allowed to be blank
[07:15:46] htmldrum: has joined #RubyOnRails
[07:15:56] alfie_max15: i get that, i was just suggesting that we rule out that its not the validations that are causing an error
[07:16:01] moeabdol: has joined #RubyOnRails
[07:18:51] manfrin: has joined #RubyOnRails
[07:18:55] ryze_: has joined #RubyOnRails
[07:19:50] hello9: has joined #RubyOnRails
[07:20:18] arup_r: _bogus_: also add the error in a gist with the code you attempted?
[07:20:32] hello9: is there a convenient way to highlight a field that has an error like form_for, when using form_tag?
[07:20:59] _bogus_: arup_r, no error actually, only its not calling my check_blank method
[07:21:12] U7se6: has joined #RubyOnRails
[07:21:55] tjbiddle: has joined #RubyOnRails
[07:21:59] arup_r: it shouldn't happen.. you mean https://gist.github.com/andreycwb/42fb1a41e5efb288976c#file-persona-rb-L26 is not printing?
[07:22:14] arup_r: _bogus_: Did you try it in rails console?
[07:22:15] gingray: has joined #RubyOnRails
[07:22:23] Disavowed: has joined #RubyOnRails
[07:22:25] _bogus_: arup_r, neither byebug pausing the server
[07:22:36] _bogus_: arup_r, not yet, ill try that
[07:22:43] arup_r: _bogus_: remove byebug.. let's try rails console
[07:23:19] arup_r: _bogus_: the only content keep inside the callback method is `raise 1.inspect` and see if it throws runtime error or not
[07:23:40] arup_r: _bogus_: please use either save! or create!
[07:23:48] arup_r: while trying in console
[07:23:56] Nuck: has joined #RubyOnRails
[07:24:55] ryze_: i there a rails beginner screencast?
[07:24:59] jwang: has joined #RubyOnRails
[07:25:27] djbkd: has joined #RubyOnRails
[07:26:15] bruce_lee: has joined #RubyOnRails
[07:27:47] blackmesa: has joined #RubyOnRails
[07:28:22] pyemkey: has joined #RubyOnRails
[07:29:06] lxsameer: has joined #RubyOnRails
[07:29:06] lxsameer: has joined #RubyOnRails
[07:29:09] alfie_max15: _bogus_, any luck?
[07:29:40] _bogus_: yes, with raise 1.inspect i got a Runtime Error: 1 , both when trying to create Persona and when trying to create new Mapa with Persona
[07:29:47] ferr: has joined #RubyOnRails
[07:29:52] _bogus_: also tried the original code and it works when creating Persona
[07:29:53] _bogus_: via console
[07:30:27] alfie_max15: what about when you try to update an existing record?
[07:30:30] _bogus_: also notice that both objects had empty fields (they're allowed to be blank on both methods)
[07:30:30] rogue_koder: has joined #RubyOnRails
[07:30:37] _bogus_: both models*
[07:30:49] RegulationD: has joined #RubyOnRails
[07:32:02] _bogus_: updating existing record also gave me runtime error 1
[07:32:30] liquid-silence: has joined #RubyOnRails
[07:32:31] liquid-silence: has joined #RubyOnRails
[07:32:37] arup_r: _bogus_: then your callback is getting called
[07:32:58] arup_r: so problem is in other place..
[07:33:10] _bogus_: right .. then it must be some problem somewhere... strange, the form was working fine before...
[07:33:16] rvanlieshout: what's the issue?
[07:34:24] sp1rs: has joined #RubyOnRails
[07:35:04] alfie_max15: hey, i've got a question
[07:35:08] sonofdirt: has joined #RubyOnRails
[07:35:36] alfie_max15: i have a few before_filters in my controller, but i only want them to be run in production
[07:35:59] alfie_max15: if using if: proc {|c| Rails.env.production?} and it works
[07:36:13] alfie_max15: is there a better way(rails way) of doing the same
[07:36:29] bronson: has joined #RubyOnRails
[07:37:13] hahuang61: has joined #RubyOnRails
[07:38:52] darutoko: has joined #RubyOnRails
[07:38:57] rogue_koder: has joined #RubyOnRails
[07:39:56] rvanlieshout: alfie_max15: that's the only way, but i doubt there is a sane reason to do so
[07:40:27] rvanlieshout: back in a few min
[07:40:33] alfie_max15: im doing ip filtering, and my client is in the US and i'm from india :)
[07:41:50] pawnbox: has joined #RubyOnRails
[07:43:15] Chagel_: has joined #RubyOnRails
[07:43:28] davee_: has joined #RubyOnRails
[07:44:02] htmldrum: has joined #RubyOnRails
[07:45:17] agit0: has joined #RubyOnRails
[07:48:45] _bogus_: very strange.. when I save the model with something inside the fields I get the raise 1.inspection , but when I save with all fields blank I get nothing..
[07:49:18] _bogus_: even if its an existing model and im updating its fields... the fields are saved tho.
[07:50:31] pyemkey: has joined #RubyOnRails
[07:50:37] pawnbox: has joined #RubyOnRails
[07:51:17] Palsson: has joined #RubyOnRails
[07:51:25] srinidhi: has joined #RubyOnRails
[07:54:00] merida: has joined #RubyOnRails
[07:54:12] _bogus_: but I guess ill get to sleep, my head is exploding , cant see one more line of code
[07:54:22] _bogus_: thanks for helping!
[07:55:00] sp1rs: has joined #RubyOnRails
[07:57:23] bricker: has joined #RubyOnRails
[07:57:58] pawnbox: has joined #RubyOnRails
[08:00:08] defsdoor: has joined #RubyOnRails
[08:02:38] Macaveli: has joined #RubyOnRails
[08:03:49] Macaveli: has joined #RubyOnRails
[08:04:41] kirillzh: has joined #RubyOnRails
[08:06:26] andrew-l: has joined #RubyOnRails
[08:06:54] DoubleMalt: has joined #RubyOnRails
[08:08:13] AimlessRAven: has joined #RubyOnRails
[08:08:52] htmldrum: has joined #RubyOnRails
[08:09:04] djbkd: has joined #RubyOnRails
[08:09:16] futilegames: has joined #RubyOnRails
[08:09:29] AimlessRAven: hi all, i wanna make meta title, ok i do for my all views but in ocassion when i render partial like %a{"data-toggle" => "tab", :href => "#security"} Security
[08:09:33] ur5us: has joined #RubyOnRails
[08:09:35] AimlessRAven: how to change meta titles
[08:11:12] jenrzzz: has joined #RubyOnRails
[08:13:08] rvanlieshout: AimlessRaven: just wrap it in an if with your conditions
[08:13:43] Pazician: has joined #RubyOnRails
[08:14:03] AimlessRAven: rvanlieshout: can i set if statement in my meta_helper ?
[08:14:23] jas02: has joined #RubyOnRails
[08:15:59] greenride: has left #RubyOnRails: ()
[08:16:05] AimlessRAven: ok but i mean how for example if filter == "#security" ?
[08:16:36] rvanlieshout: what is filter?
[08:16:52] rvanlieshout: you're linking to anchros
[08:17:13] moeabdol: has joined #RubyOnRails
[08:17:55] AimlessRAven: rvanlieshout: yea i have 1 view.. and just rend #partials
[08:18:12] AimlessRAven: isnot posible to change meta titles when rend different partial
[08:18:31] rvanlieshout: you don't render a different partial
[08:18:39] rvanlieshout: you just link to an other anchor and do stuff in js to display it
[08:19:00] rvanlieshout: so rails isn't touched there
[08:19:06] rvanlieshout: so no rendering
[08:19:12] Axy: has joined #RubyOnRails
[08:19:16] aganov: has joined #RubyOnRails
[08:19:26] AimlessRAven: but is not possible to change meta titles ?
[08:19:36] scepticulous: has joined #RubyOnRails
[08:20:28] rvanlieshout: but those changes are not used by the browser
[08:20:31] rvanlieshout: cause you don't leave the page
[08:22:34] quazimodo: has joined #RubyOnRails
[08:22:49] jm3: has joined #RubyOnRails
[08:26:02] arup_r: has joined #RubyOnRails
[08:29:21] ayoros: has joined #RubyOnRails
[08:29:30] alfie_max15: morning quazimodo
[08:31:41] triptec_: has joined #RubyOnRails
[08:34:10] baweaver: has joined #RubyOnRails
[08:35:16] rogue_koder: has joined #RubyOnRails
[08:37:12] siaW: has joined #RubyOnRails
[08:38:40] jas02: has joined #RubyOnRails
[08:40:49] liquid-silence: has joined #RubyOnRails
[08:40:49] liquid-silence: has joined #RubyOnRails
[08:41:39] Uber|Dragon: has joined #RubyOnRails
[08:43:09] duderonomy: has joined #RubyOnRails
[08:43:21] cheeti: has joined #RubyOnRails
[08:44:29] pawnbox: has joined #RubyOnRails
[08:46:36] cheeti: hi i am hosting rails application in aws apache web server but it getting index of/ page how to solve this?
[08:47:28] jenrzzz: has joined #RubyOnRails
[08:47:31] AntiSpamMeta: has joined #RubyOnRails
[08:47:56] sp1rs: has joined #RubyOnRails
[08:51:41] mfaeh: has joined #RubyOnRails
[08:52:59] d0nn1e: has joined #RubyOnRails
[08:54:27] marr: has joined #RubyOnRails
[08:57:46] Cohedrin: has joined #RubyOnRails
[08:57:48] blackmesa: has joined #RubyOnRails
[08:59:01] gbgdev: has joined #RubyOnRails
[08:59:31] merida: has joined #RubyOnRails
[09:00:20] norc: has joined #RubyOnRails
[09:02:50] ur5us: has joined #RubyOnRails
[09:08:19] xhoy: hi, i am looking for a verry simple HTML editor (webbased) that does basic stuff like syntax highliting and closing <p> tags and stuff :P
[09:08:57] voidDotClass: has joined #RubyOnRails
[09:09:00] xhoy: but all i can seem to find is WYSIWYG editors... :(
[09:09:10] alfie_max15: tried tinymce?
[09:09:10] xhoy: (with verry bad "source" implementations
[09:09:48] voidDotClass: How can i include a custom attribute / method inside the render :json output?
[09:09:48] jsrn: has joined #RubyOnRails
[09:09:51] xhoy: no syntax higlighting and no code completion
[09:10:01] alfie_max15: there are plugins for that
[09:10:03] voidDotClass: E.g I have a model Foo with a `def bar` method which returns a string
[09:10:11] xhoy: alfie_max15: ow rly never tought about that
[09:10:19] voidDotClass: But if I do render :json, myFoo, include: :bar
[09:10:19] xhoy: voidDotClass: good question :)
[09:10:31] tjbiddle: has joined #RubyOnRails
[09:10:31] voidDotClass: then i get the error 'undefined method `serializable_hash' for "101-1001":String'
[09:10:36] voidDotClass: here 101-1001 is the output of bar
[09:10:47] xhoy: i love to here the anwser :)
[09:10:51] FLeiXiuS: has joined #RubyOnRails
[09:10:55] tvw: has joined #RubyOnRails
[09:11:03] xhoy: alfie_max15: thanks il look into plugins etc
[09:11:19] alfie_max15: xhoy, https://github.com/christiaan/tinymce-codemirror
[09:11:28] alfie_max15: here's one that i just found
[09:12:13] roshanavand: has joined #RubyOnRails
[09:12:16] voidDotClass: gotcha, had to use :methods and not :include
[09:12:26] xhoy: voidDotClass: ow rly thanks!
[09:12:36] quazimodo: has joined #RubyOnRails
[09:12:41] voidDotClass: are you being sarcastic xhoy ?
[09:13:53] bigmac_: has joined #RubyOnRails
[09:15:19] jas02: has left #RubyOnRails: ()
[09:16:22] drptbl: has joined #RubyOnRails
[09:17:25] roshanavand: has joined #RubyOnRails
[09:19:56] Uo9er_: has joined #RubyOnRails
[09:21:05] arup_r: has joined #RubyOnRails
[09:22:21] krz: has joined #RubyOnRails
[09:22:54] sevenseacat: has joined #RubyOnRails
[09:23:16] xhoy: voidDotClass: no i am not
[09:23:16] davee_: has joined #RubyOnRails
[09:23:38] xhoy: voidDotClass: i really wonderd how i would do that, since by default rails does a lot of magic and this kinda falls outside that magic
[09:23:55] xhoy: voidDotClass: so i was sensearly interested in the solotion
[09:24:02] sonofdirt: has joined #RubyOnRails
[09:24:06] xhoy: (did i write that correct?)
[09:24:37] xhoy: thanks :)
[09:24:58] adre: has joined #RubyOnRails
[09:26:43] Ergo: has joined #RubyOnRails
[09:27:16] gbgdev: has joined #RubyOnRails
[09:31:56] RegulationD: has joined #RubyOnRails
[09:32:03] alfie_max15: i have a rails+react app
[09:32:09] alfie_max15: and trying to deploy to heroku
[09:33:25] alfie_max15: how can i get it to run gulp before heroku builds the rails app (asset precompiling is run)
[09:34:05] alfie_max15: any help is appreciated, i've been stuck with this for a long time now
[09:34:27] universa1: alfie_max15: http://www.sitepoint.com/deploying-heroku-using-gulp-node-git/ -- you read this?
[09:34:37] universa1: disclaimer: neither using heroku nor gulp
[09:35:01] alfie_max15: already went through that
[09:35:50] hackeron_: has joined #RubyOnRails
[09:35:51] universa1: so what did you do? what is the current state? ....
[09:36:09] chagel: has joined #RubyOnRails
[09:37:34] alfie_max15: well, i obviously would have two builpacks, ruby and nodejs
[09:38:21] alfie_max15: but when push to heroku, the ruby buildpack runs and the js file that the gulp task would generate isn't created and the rails asset pipeline fails as the file is missing
[09:39:15] bronson: has joined #RubyOnRails
[09:39:17] hahuang61: has joined #RubyOnRails
[09:39:38] universa1: alfie_max15: so you inserted the gulp buildpack before the ruby buildpack?
[09:39:39] uglybandersnatch: has joined #RubyOnRails
[09:41:06] alfie_max15: does the order have importance?
[09:41:20] alfie_max15: when i list the buildpacks using `heroku buildpacks`
[09:41:22] universa1: you need the gulp stuff to run before the ruby stuff...
[09:41:30] alfie_max15: it shows ruby first then nodejs
[09:41:42] alfie_max15: ok, let me give that a try
[09:43:57] roshanavand: has joined #RubyOnRails
[09:45:01] quazimodo: has joined #RubyOnRails
[09:45:49] Cervajz_: has joined #RubyOnRails
[09:47:18] hello9: has joined #RubyOnRails
[09:51:53] Cervajz: has joined #RubyOnRails
[09:54:23] arBmind: has joined #RubyOnRails
[09:54:44] apotry: has joined #RubyOnRails
[09:56:35] sadaf2605: has joined #RubyOnRails
[09:59:10] bricker: has joined #RubyOnRails
[09:59:53] Pazician: has joined #RubyOnRails
[10:03:04] EdwardIII: hrm, i'm confused. the docs (http://www.rubydoc.info/gems/money/Money/Formatting) say you can do `Money.new(100, "USD") #=> "$1.00"` but `Money.new(100, "USD")` gives me *** ArgumentError Exception: wrong number of arguments (given 1, expected 0)
[10:03:15] freedrul1: has joined #RubyOnRails
[10:03:23] freedrul1: has left #RubyOnRails: ()
[10:03:28] EdwardIII: and i looked up the constructor of the object in ~/.gems and it does say this so it looks like it should work: def initialize(obj, currency = Money.default_currency, bank = Money.default_bank)
[10:03:47] freedrull: has joined #RubyOnRails
[10:03:50] EdwardIII: when i do it in irb it works, so i think something in rails is causing an issue
[10:04:33] freedrull: can i boot a rails app from a script? seems like requiring 'config/environment' would do it
[10:04:47] universa1: freedrull: what are you trying to do?
[10:05:46] EdwardIII: damnit i needed to restart the server, stupid heh
[10:05:47] arup_r: EdwardIII: seems error from some where else.. pay attention to the error **ArgumentError Exception: wrong number of arguments (given 1, expected 0) **
[10:05:51] EdwardIII: but how come a Money object already exists?
[10:06:33] arup_r: you gave Money#initialize 2 arguments.. and the error is saying you gave 1
[10:06:35] krz: has joined #RubyOnRails
[10:06:49] arup_r: so that ensures error is from some where else...
[10:07:33] universa1: EdwardIII: because you have a Money class defined somewhere in your code?!
[10:07:47] jds: has joined #RubyOnRails
[10:07:55] EdwardIII: universa1: not in my code
[10:08:05] EdwardIII: universa1: but i'm guessing somewhere in one of the deps. maybe rails itself?
[10:08:50] arup_r: EdwardIII: Add the long stack trace in a gist..'
[10:09:06] EdwardIII: i think this is the culprit: /Users/edward/.gem//ruby/2.3.0/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/postgresql/oid/money.rb
[10:09:28] EdwardIII: *was* the culprit
[10:09:28] universa1: EdwardIII: do you use pry?
[10:09:36] EdwardIII: the real culprit was not restarting my server
[10:09:43] EdwardIII: universa1: yeah, with byebug (byebug uses pry i think?)
[10:09:52] universa1: EdwardIII: show-source Money ;)
[10:10:30] norc: EdwardIII: Also you neglected to show the full stack trace of the error message.
[10:10:38] roshanavand: has joined #RubyOnRails
[10:10:41] norc: The stack trace would tell you exactly where the problem is.
[10:11:02] universa1: norc: sshhhhh, not the simple solutions ;)
[10:11:50] drptbl: has joined #RubyOnRails
[10:11:57] EdwardIII: norc: ah i didn't get a stack trace from byebug, i'll make sure i figure out how to get it and gist it next time
[10:12:05] EdwardIII: well, or just read it
[10:12:45] norc: EdwardIII: How about you take your time to read the documentation of your tool before you come in here all the time, asking us things you should have read about first.
[10:12:57] norc: What makes you think your time is more precious than ours?
[10:13:03] alfie_max15: universa1, thanks, that worked
[10:14:02] EdwardIII: norc: nothing at all, if anything i consider your time more valuable than mine
[10:14:12] norc: Reality begs to differ.
[10:14:40] norc: But that is fine, I stopped indulging you a while ago.
[10:14:50] EdwardIII: norc: i'm not used to naming collisions like this, and because i don't know what i don't know, i had no idea what to read to figure it out
[10:14:50] emilkarl: Using Nginx + Passenger to deploy a rails app on Ubuntu. I have set passenger_env_var in the vhost conf but it doesnt seem to be loaded into the app. It is there if I do "rails c" but not when I go trough the web server.
[10:15:07] emilkarl: Any thoughts on that?
[10:15:15] universa1: emilkarl: !gist
[10:15:15] helpa: emilkarl: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[10:15:33] EdwardIII: norc: maybe i've been a big ask-happy - i'm sorry i offended you
[10:17:08] Ergo: has joined #RubyOnRails
[10:17:25] emilkarl: universa1 https://gist.github.com/emilkarl/28d91c6ddf2b207d438e
[10:17:54] emilkarl: that is my nginx chost conf
[10:18:05] universa1: emilkarl: what version of passenger are you using?
[10:18:05] arup_r: EdwardIII: when you ask for help, and then someone is trying to help you by giving some tips/hints.. you should try that and tell that person, that worked/not worked etc.. You were simple ignoring.. and keep saying yours..
[10:18:23] emilkarl: Phusion Passenger version 4.0.48
[10:18:33] universa1: emilkarl: https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_env_var
[10:18:38] universa1: emilkarl: see the since field ;)
[10:19:03] Ergo^: has joined #RubyOnRails
[10:19:46] emilkarl: Would it be safe to upgrade (its a staging and prodution server atm)
[10:19:54] beauby: has joined #RubyOnRails
[10:20:13] universa1: emilkarl: i don't know. given that you said it works when you do rails c
[10:20:28] universa1: emilkarl: isn't https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_load_shell_envvars an option?
[10:21:12] norc: EdwardIII: Lets put it this way. If you want people to work for you, so you do not have to follow the same route as everybody else and learn yourself - then better be ready to pay them.
[10:23:12] EdwardIII: norc: well, i'm apologise - that wasn't my intention and i don't expect special treatment
[10:24:34] Pazician: has joined #RubyOnRails
[10:25:59] nop_: has joined #RubyOnRails
[10:28:33] Ergo: has joined #RubyOnRails
[10:29:05] zarubin: has joined #RubyOnRails
[10:30:19] chagel: has joined #RubyOnRails
[10:30:59] workmad3: has joined #RubyOnRails
[10:31:12] zarubin: has joined #RubyOnRails
[10:33:06] marr: has joined #RubyOnRails
[10:33:18] zarubin: has joined #RubyOnRails
[10:34:13] zarubin: has joined #RubyOnRails
[10:34:30] srinidhi: has joined #RubyOnRails
[10:35:19] baweaver: has joined #RubyOnRails
[10:39:21] mikecmpbll: has joined #RubyOnRails
[10:39:42] zarubin: has joined #RubyOnRails
[10:41:11] mikecmpbll: is the left hand side of an activerecord where query sql safe?
[10:41:27] mikecmpbll: Foo.where(params[:omgattack] => 'foo') is okay?
[10:42:09] gbgdev: has joined #RubyOnRails
[10:42:16] snowy: has joined #RubyOnRails
[10:43:30] FooMunki: has joined #RubyOnRails
[10:45:26] rvanlieshout: mikecmpbll: hmm. not sure. try it
[10:46:06] mikecmpbll: rvanlieshout: had a little play around, don't feel like i know enough about the potential attack vector to tell if it is or not!
[10:46:35] mikecmpbll: Import.where("(select id from imports)" => "foo") => SELECT `imports`.* FROM `imports` WHERE `imports`.`(select id from imports)` = 'foo'
[10:46:36] rvanlieshout: where("'\"" => :foo)
[10:47:07] mikecmpbll: "SELECT `imports`.* FROM `imports` WHERE `imports`.`'\"` = 'foo'"
[10:47:25] raunico3: has joined #RubyOnRails
[10:47:37] rvanlieshout: hm. that doesn't look ok to me
[10:47:50] mikecmpbll: it backticks it
[10:47:52] liquid-silence: has joined #RubyOnRails
[10:47:52] liquid-silence: has joined #RubyOnRails
[10:48:28] rvanlieshout: puts Product.where("';\"" => "';\"").to_sql
[10:48:31] rvanlieshout: SELECT "products".* FROM "products" WHERE "products"."';""" = ''';"'
[10:48:41] rails316: has joined #RubyOnRails
[10:48:45] rvanlieshout: left and right side are different
[10:48:45] arup_r: has joined #RubyOnRails
[10:48:47] rvanlieshout: wouldn't expect that
[10:48:52] rvanlieshout: so you might want to sanitize that param
[10:49:47] arup_r: mikecmpbll: some people keep a hash of columns...and they match Hash against the params
[10:50:17] rvanlieshout: and it's questionable if you want all columns to be available
[10:50:22] norc: rvanlieshout: That sounds reporting worthy.
[10:50:25] mikecmpbll: arup_r: right on, I can validate against the columns.
[10:50:48] arup_r: like DYNAMIC_COLUMN = { name: :name, ... }
[10:50:59] rvanlieshout: norc: it's debatable if you want that sanitized
[10:51:13] rvanlieshout: cause where('UPPER(name)' => 'FOO' is a valid case
[10:51:26] norc: rvanlieshout: Ah.
[10:51:53] chagel: has joined #RubyOnRails
[10:52:01] tamole: has joined #RubyOnRails
[10:56:09] siaW: has joined #RubyOnRails
[10:57:19] mikecmpbll: rvanlieshout : interestingly, that won't work for me.
[10:57:28] mikecmpbll: Mysql2::Error: Unknown column 'imports.UPPER(name)' in 'where clause': SELECT `imports`.* FROM `imports` WHERE `imports`.`UPPER(name)` = 'FOO'
[10:57:37] rvanlieshout: mikecmpbll: ah
[10:58:15] pawnbox: has joined #RubyOnRails
[11:03:12] Xentil: has joined #RubyOnRails
[11:04:30] rodfersou: has joined #RubyOnRails
[11:05:49] ziyadb: has joined #RubyOnRails
[11:06:46] snowy: has joined #RubyOnRails
[11:06:53] stannard: has joined #RubyOnRails
[11:10:56] Macaveli: has joined #RubyOnRails
[11:12:08] Macaveli: has joined #RubyOnRails
[11:12:56] sonofdirt: has joined #RubyOnRails
[11:12:59] spiman: has joined #RubyOnRails
[11:18:21] hello9: has joined #RubyOnRails
[11:19:50] pawnbox: has joined #RubyOnRails
[11:19:57] U7se6: has joined #RubyOnRails
[11:23:35] Pazician: has joined #RubyOnRails
[11:24:19] n008f4g_: has joined #RubyOnRails
[11:25:03] spiman_: has joined #RubyOnRails
[11:26:59] crdpink: has joined #RubyOnRails
[11:27:39] sp1rs: has joined #RubyOnRails
[11:31:07] mwlang: has joined #RubyOnRails
[11:32:46] trinaldi: has joined #RubyOnRails
[11:32:57] mwlang: *sigh* Is there a way to have the convenience of database_cleaner purging test data between runs w/o explicit setup/teardown, but only cleaning/scrubbing tables actually touched in a spec suite? I’ve started a new Rails project on a legacy database and it has over 300 tables, so right off the bat, one test spec suite takes about 10 seconds to run with database_cleaner in the mix.
[11:33:38] RegulationD: has joined #RubyOnRails
[11:33:48] mwlang: in the test specs, I’m only touching 5 tables, so only need to scrub those five.
[11:33:59] sevenseacat: use transactions instead?
[11:34:08] sevenseacat: they'll be much quicker
[11:34:22] sevenseacat: also, use deletion instead of truncation, when you do need database cleaner
[11:35:33] deavid: has joined #RubyOnRails
[11:36:33] mwlang: I’ve got truncation on already. Let me see about using transactions.
[11:36:45] mwlang: (and skipping db cleaner...)
[11:36:54] ldnunes: has joined #RubyOnRails
[11:37:26] noway_: has joined #RubyOnRails
[11:37:49] sevenseacat: great, so change it for turbo speeeeeedz http://sevenseacat.net/2015/02/01/use_database_cleaners_deletion_strategy.html
[11:38:49] Detch: has joined #RubyOnRails
[11:41:13] bronson: has joined #RubyOnRails
[11:41:40] EdwardIII: that's interesting
[11:44:09] Sylario: has joined #RubyOnRails
[11:44:29] EdwardIII: and it looks like with mysql, if you have no FKs it'll drop & recreate the table, but if you have FKs it does delete from <each table> - was seeing this weirdness on another project
[11:44:57] Sylario: Is there some way, in devise, to have a second set of view for login and login failed?
[11:44:59] Spami: has joined #RubyOnRails
[11:45:35] Sylario: You can easily integrate a login screen wherever you want, but the "wrong password" page is unique
[11:45:38] sevenseacat: i dont use mysql, so i cant comment on that
[11:46:47] silverdust: What does !~ mean? I saw this foo !~ some_regex
[11:48:01] stannard: has joined #RubyOnRails
[11:53:08] pwnd_nsfw: https://www.udemy.com/8-beautiful-ruby-on-rails-apps-in-30-days/learn/?couponCode=3days
[11:53:14] pwnd_nsfw: For anyone interested, it's free
[11:55:14] sevenseacat: > hire expensive developers ($2K+/per project)
[11:55:17] sevenseacat: loooooooooooooool
[11:56:32] stannard: has joined #RubyOnRails
[11:56:50] sevenseacat: I don't believe it's possible to cover that much material in 16 houts
[11:57:00] sevenseacat: not to a usable level
[11:58:55] arup_r: has joined #RubyOnRails
[11:59:24] pwnd_nsfw: that's nothing
[11:59:32] pwnd_nsfw: sevenseacat, I haven't looked into it *shrugs*
[11:59:37] pwnd_nsfw: obviously haha.
[11:59:55] sevenseacat: but hey, for free, can't complain
[12:00:26] pwnd_nsfw: The questions/comments inside of the course are basically all mices
[12:00:27] Snowy_: has joined #RubyOnRails
[12:00:44] sevenseacat: unless I'm blind, I don't see a date on the course, which is a little weird - like what versions of things does it use
[12:00:45] arup_r: silverdust: hop into Ruby String documentation and you will see a nice examples of that method
[12:01:49] silverdust: arup_r: I got help from #ruby
[12:02:04] silverdust: It's regex negation opposite of =~
[12:02:12] bricker: has joined #RubyOnRails
[12:02:25] arup_r: ACTION looking for some highspeed broadband providers in his area, so that he can see some awesome videos over youtube.. currently not :/
[12:02:31] arup_r: silverdust: true
[12:02:45] arup_r: I am there, so didn't know your were helped :D
[12:05:19] pwnd_nsfw: Enter to win a the super popular Sublime Text License Giveaway!
[12:05:26] pwnd_nsfw: I wonder if they have winrar license giveaway too
[12:06:28] Pazician: has joined #RubyOnRails
[12:07:08] sp1rs: has joined #RubyOnRails
[12:13:27] htmldrum_: has joined #RubyOnRails
[12:14:43] mrbubbles: has joined #RubyOnRails
[12:16:02] mwlang: all the projects used in the course seem to be on the instructor’s github account (just googled his name).
[12:17:30] rvanlieshout: which makes sense
[12:17:47] rvanlieshout: didn't follow the conversation, but as an instructor you want to know what you're teaching
[12:17:50] rvanlieshout: so make a fork
[12:18:21] arup_r: mwlang: hi :)
[12:18:38] mwlang: arup_r: yo
[12:19:10] ruid: has joined #RubyOnRails
[12:21:36] arup_r: I have a question to you experts. If you go to this site, http://gobgob.com/en/#/ .. I see `#/` . What is the purpose of this?
[12:22:49] workmad3: arup_r: # is the delimiter that starts the 'uri fragment' or 'anchor' in the same way as `?` starts the query parameters
[12:22:49] godzillaenlacasa: has joined #RubyOnRails
[12:23:40] workmad3: arup_r: it's sometimes used for JS routing in sites that don't use the history API, which appears to be the case there (fragment routing typically puts something that looks like a url in the fragment, #/ would then be the root of the site)
[12:24:27] sp1rs: has joined #RubyOnRails
[12:26:06] AimlessRAven: has joined #RubyOnRails
[12:26:10] jottr: has joined #RubyOnRails
[12:26:34] AimlessRAven: hi all i have https://gist.github.com/anonymous/bdc61391bd1fa1b29cd4 theese links
[12:26:52] AimlessRAven: and i wanna separate each of them by ", " except last
[12:26:58] srinidhi: has joined #RubyOnRails
[12:26:58] AimlessRAven: how to do that
[12:27:11] arup_r: workmad3: yeah makes sense. I find this small answer also http://stackoverflow.com/a/2484682/2767755 .. seems they used it for i18n
[12:28:00] arup_r: thanks workmad3 for the pointer. i was not aware of what to write in google to search the topic. :D
[12:28:06] tomatoes: has joined #RubyOnRails
[12:28:06] workmad3: arup_r: yeah... the useful feature of the fragment is that it isn't sent to the server... so you can play around with it locally as much as you want and not trigger refreshes or mess up server-side state
[12:28:24] arup_r: hm. got it
[12:28:52] mwlang: AimlessRaven: just a suggestion: "#{brand.category.name}" doesn’t need to be wrapped. brand.category.name will yield same result.
[12:30:13] AimlessRAven: mwlang: yea good :)
[12:30:16] AimlessRAven: but separator ..
[12:30:21] AimlessRAven: i dont know how to set
[12:31:13] bleda: has joined #RubyOnRails
[12:31:26] mwlang: AimlessRaven: to do what you want, I would create a helper method to build the links as an Array and then in the view call the helper and join(‘,”) on it’s result.
[12:31:49] Pazician_: has joined #RubyOnRails
[12:32:05] sonOfRa: has joined #RubyOnRails
[12:32:17] AimlessRAven: mwlang yea thats good but if i have category name, and not ocassions and target
[12:32:24] AimlessRAven: category.name,
[12:32:49] bePolite: has joined #RubyOnRails
[12:33:27] tknz: has joined #RubyOnRails
[12:34:34] RegulationD: has joined #RubyOnRails
[12:36:04] _Tariq: has joined #RubyOnRails
[12:36:11] baweaver: has joined #RubyOnRails
[12:36:34] mwlang: AimlessRaven: see your gist…I added a comment for how-to.
[12:37:31] mwlang: oops, fixed a typo #each => #map
[12:38:49] nocontrol: has joined #RubyOnRails
[12:39:25] workmad3: AimlessRaven: `= safe_join(array_of_links, ",")`
[12:39:54] mwlang: hmmm….how does rails/rspec know to load fixtures/*.yml files and how is it doing this apparently outside the confines of my test suites?
[12:39:57] workmad3: (.join(",") doesn't play nicely with html_safe strings)
[12:40:15] nocontrol: Can someone tell me an opinion about a rails app that goes slow as hell in dev env but pretty fast in production? I've tried with config.assets.debug = true/false but doesn't improve much
[12:40:24] mwlang: workmad3: nice. learned something new today.
[12:41:00] mwlang: nocontrol: look in local dev log files and see where the processing/benchmarks are breaking down.
[12:41:19] nocontrol: mwlang: I see the webrick that shows things like "Completed 200 OK in 8883ms (Views: 8763.0ms | ActiveRecord: 3.8ms)"
[12:41:38] workmad3: nocontrol: does the app have fragment caching in views?
[12:41:43] mwlang: nocontrol: looks like the view rendering is the issue.
[12:41:51] workmad3: nocontrol: because that's typically disabled in dev
[12:42:07] nocontrol: mwlang: it seems that views take 2-8sec to render but the whole app is based on angular
[12:42:15] bronson: has joined #RubyOnRails
[12:42:50] IFrank00: has joined #RubyOnRails
[12:42:53] nocontrol: workmad3: no
[12:42:56] mwlang: nocontrol: could be that your assets take a while to compile
[12:43:19] mwlang: in production, assets are pre-compiled and are just served up.
[12:43:23] nocontrol: workmad3: actually the data are fetched by angular and then displayed by angular templates
[12:43:43] nocontrol: mwlang: so it's logical to take 15seconds or more to load a page ?
[12:44:31] mwlang: nocontrol: I’m just speculating…but if there’s a *lot* of scss, coffeescript, etc., then it can take a performance hit.
[12:45:03] Ergo: has joined #RubyOnRails
[12:45:08] nocontrol: mwlang: there are things but it's not huffingtonpost
[12:45:51] nocontrol: I mean I am watching a page that shows a few things but uses angular and other assets
[12:46:03] nocontrol: If it compiles everything on each request, then it makes sense
[12:46:18] nocontrol: Isn't there any way to precompile assets for development environment ?
[12:47:09] tjvc: has joined #RubyOnRails
[12:47:14] mwlang: nocontrol: I think so, but I’m no expert there. I usually just figure out how to optimize away bloat.
[12:47:15] universa1: nocontrol: there is: rake assets:precompile
[12:47:18] gormandy: has joined #RubyOnRails
[12:47:24] meoblast001: has joined #RubyOnRails
[12:47:30] nocontrol: universa1: this is for production right ?
[12:47:49] universa1: nocontrol: nope, for production it would have had RAILS_ENV=production ;)
[12:47:53] arup_r: nocontrol: you can do it locally too
[12:48:11] universa1: nocontrol: but assets should be cached after the first request.
[12:48:19] universa1: so the first one might take a while, the following should be ok.
[12:48:27] roobienoobie: has joined #RubyOnRails
[12:49:07] arup_r: I sometimes use rake assets:precompile RAILS_ENV=production in dev machine and then boot rails s -e production .. many bugs I fixed it like that.. no idea if it is a good approach or not.
[12:49:15] universa1: for further hints, we would need to know more ;)
[12:49:28] universa1: rails will also use precompiled assets in dev mode.
[12:49:42] nocontrol: universa1: do I need rake assets:precompile RAILS_ENV=development ?
[12:49:48] nocontrol: to specify the environment ?
[12:50:13] nocontrol: I did it, it precompiled them by it still takes 29 seconds to load the page when in production loads in 1.5s
[12:50:23] yxejamir: has joined #RubyOnRails
[12:50:24] universa1: nocontrol: development is the default
[12:50:32] universa1: so no, it wouldn't be necessary, but it doesn't hurt
[12:50:49] universa1: nocontrol: can you gist the full log of one slow request.
[12:51:21] nocontrol: universa1: does it matter config.assets.debug = false/true ?
[12:52:01] JulienITARD: has joined #RubyOnRails
[12:52:34] universa1: nocontrol: no clue ;)
[12:52:39] tamole: has joined #RubyOnRails
[12:52:39] universa1: never touched that setting
[12:53:05] nocontrol: universa1: is caching functional for development also or is it just getting disabled automatically ?
[12:53:28] scepticulous: has joined #RubyOnRails
[12:53:37] universa1: nocontrol: compiled assets should be cached in development, it automatically checks for changes.
[12:53:42] universa1: and recompiles them iirc
[12:53:55] nocontrol: universa1: thank you
[12:54:39] norc: nocontrol: the main factor behind that flag is the compression of assets.
[12:54:54] norc: (And concatenation)
[12:55:39] norc: Turning debugging on there has the potential to aid you in debugging some JS scenarios.
[12:57:12] chagel: has joined #RubyOnRails
[12:58:15] mrbubbles: has joined #RubyOnRails
[13:00:47] Sero: has joined #RubyOnRails
[13:01:52] sonofdirt: has joined #RubyOnRails
[13:02:43] aegis3121: has joined #RubyOnRails
[13:03:22] stannard: has joined #RubyOnRails
[13:06:00] akshat: has joined #RubyOnRails
[13:06:19] SeanLazer: has joined #RubyOnRails
[13:06:21] FooMunki: has joined #RubyOnRails
[13:06:52] IFrank004: has joined #RubyOnRails
[13:07:18] Pazician: has joined #RubyOnRails
[13:09:27] _Tariq: has joined #RubyOnRails
[13:09:28] Macaveli: has joined #RubyOnRails
[13:10:34] rickmasta: has joined #RubyOnRails
[13:11:42] Didac: has joined #RubyOnRails
[13:11:53] mfaeh: has joined #RubyOnRails
[13:12:28] pawnbox: has joined #RubyOnRails
[13:13:28] bruce_lee: has joined #RubyOnRails
[13:13:28] bruce_lee: has joined #RubyOnRails
[13:18:14] AimlessRAven: mwlang you comment works but produce me <a href = .....
[13:18:27] AimlessRAven: not name of links
[13:19:53] Uo9er_: has joined #RubyOnRails
[13:19:57] mwlang: AimlessRaven: as workmad3 pointed out, safe_join(compile_links)
[13:20:11] mwlang: or join(“, “).html_safe
[13:20:56] rvanlieshout: don't use html_safe
[13:21:08] mwlang: I would go with workmad3’s suggestion over my usual, though.
[13:22:23] hello9: has joined #RubyOnRails
[13:22:41] pawnbox: has joined #RubyOnRails
[13:23:06] quazimodo: has joined #RubyOnRails
[13:23:11] AimlessRAven: mwlang: yea but i cant use .join(", ") for safe buffer
[13:23:28] hello9: how can I prevent rails errors from resizing the text input boxes? (i am using bootstrap 3)
[13:23:41] hello9: everything else default AFAIK
[13:24:12] Guest34101: has joined #RubyOnRails
[13:24:29] AimlessRAven: has joined #RubyOnRails
[13:24:40] tbuehlmann: this might work: http://stackoverflow.com/a/5268065/384293
[13:24:44] AimlessRAven: so i cant use .join(", ") in safe buffer
[13:25:43] yellow5: has joined #RubyOnRails
[13:25:45] rvanlieshout: AimlessRaven: no. did you even try that safe_join?
[13:26:00] mwlang: AimlessRaven: did you try = safe_join(compile_links, ‘, ‘)
[13:26:11] AimlessRAven: w8 ill try now
[13:26:59] AimlessRAven: now its work thanks so much!
[13:27:05] pwnd_nsfw: mash_together(compile_links, ", ")
[13:27:11] flashpoint9: has joined #RubyOnRails
[13:27:13] arup_r: you are so late to apply it
[13:27:39] crystal77: has joined #RubyOnRails
[13:28:39] umdstu: has joined #RubyOnRails
[13:30:21] umdstu: i'm trying to get assert_routing to work with an optional parameter, that isn't in routes.rb, but it fails; rails 3.2, ruby 1.9.3
[13:30:53] MuffinPimp: has joined #RubyOnRails
[13:31:07] pwnd_nsfw: get with the times bru
[13:31:16] universa1: umdstu: !code
[13:31:16] helpa: umdstu: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[13:31:32] universa1: code, error trace, test...
[13:33:56] hahuang65: has joined #RubyOnRails
[13:34:38] gingray: has joined #RubyOnRails
[13:34:49] umdstu: universa1: https://gist.github.com/umdstu/983c68c2ef966e2f4697
[13:34:51] Pazician: has joined #RubyOnRails
[13:36:20] IrishGringo: has joined #RubyOnRails
[13:37:00] mwlang: umdstu: I think you need to tell Rails to match :id on letters. dynamic-segments: http://guides.rubyonrails.org/routing.html#dynamic-segments
[13:37:47] universa1: umdstu: output?
[13:38:07] umdstu: universa1: already updated gist
[13:39:07] universa1: umdstu: so where should in /docs/pdf/aaaaa "blah blah" come from...
[13:39:17] universa1: and since this smells hard like fake code...
[13:39:18] helpa: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[13:39:30] umdstu: universa1: it's not fake, but it is typed from another network
[13:39:44] universa1: umdstu: so your rails app is called App
[13:39:58] universa1: your test is called test...
[13:40:00] universa1: yeah sure...
[13:40:05] universa1: so not App...
[13:40:21] umdstu: it's irrelevant in this example.
[13:40:29] umdstu: like i said my only option is to type
[13:40:30] universa1: ok. it might very well be.
[13:40:32] umdstu: no copy/past
[13:40:49] universa1: but then i'm not interested in helping you, sorry.
[13:41:00] umdstu: oh wow. alright thanks
[13:41:16] umdstu: anyone else mind stepping off their high horse to help?
[13:41:39] universa1: umdstu: so where should in /docs/pdf/aaaaa "blah blah" come from...
[13:41:42] universa1: already asked you that...
[13:42:08] universa1: http://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_routing
[13:42:42] umdstu: it would be /docs/pdf/aaaaaa?opt=blah%20blah
[13:42:53] universa1: but you are not testing for that.
[13:43:08] universa1: you want /docs/pdf/aaaaa to generate an option opt: ...
[13:43:13] stannard: has joined #RubyOnRails
[13:43:22] umdstu: meaning, assert_routing isn't meant to test that
[13:43:23] universa1: first line in the docs: Asserts that path and options match both ways; in other words, it verifies that path generates options and then that options generates path.
[13:43:24] herpless: has joined #RubyOnRails
[13:43:41] roshanavand: has joined #RubyOnRails
[13:43:50] umdstu: so dont test the opt param in those tests
[13:44:38] umdstu: thank you for helping me. i realize it's not as easy, but like i said i have one hand tied behind my back
[13:44:41] voidDotClass: has joined #RubyOnRails
[13:44:55] Meow-J: has joined #RubyOnRails
[13:44:58] umdstu: much appreciated universa1
[13:45:17] tamole: has joined #RubyOnRails
[13:48:57] n008f4g_: has joined #RubyOnRails
[13:53:54] dgncn: has joined #RubyOnRails
[13:54:06] griffindy: has joined #RubyOnRails
[13:54:30] krz: has joined #RubyOnRails
[13:57:39] quazimodo: has joined #RubyOnRails
[14:00:27] nfk|laptop: has joined #RubyOnRails
[14:00:56] Ergo^: has joined #RubyOnRails
[14:01:34] jtong: has joined #RubyOnRails
[14:02:12] tamole: has joined #RubyOnRails
[14:02:38] IrishGringo: has joined #RubyOnRails
[14:03:59] bricker: has joined #RubyOnRails
[14:05:24] mwlang: what is rspec’s equivalent to assert_no_difference ?
[14:07:10] mwlang: found it: expect to_not change{…}.by()
[14:07:40] workmad3: mwlang: no `by()` for a not_to change{} construct
[14:07:54] Pazician: has joined #RubyOnRails
[14:08:15] workmad3: mwlang: but otherwise, yeah... `expect{ something }.not_to change{ something_else }` (I like that feature :) )
[14:08:30] tjvc: has joined #RubyOnRails
[14:08:44] mwlang: hmmm…got it from the relish docs: expect{Counter.increment}.to_not change{Counter.count}.by(1)
[14:09:00] mwlang: but I don’t mind leaving off the by(1) :-)
[14:10:24] workmad3: mwlang: hmm... pretty sure that raises a warning or error in rspec nowadays (it used to be accepted, but a bunch of negations now don't expect modifiers because it makes things more complicated)
[14:12:01] axl_: has joined #RubyOnRails
[14:14:48] kiss: has joined #RubyOnRails
[14:15:01] flashpoint9: has joined #RubyOnRails
[14:15:33] tvw: has joined #RubyOnRails
[14:15:49] arup_r: mwlang: that's a standard API in Rspec to test #create and #destroy :) .by(1) and .by(-1)
[14:17:39] kgutteridge: has joined #RubyOnRails
[14:17:55] tbuehlmann: I often read `.by(+1)` to further emphasize intention
[14:18:10] nfk|laptop: i fucking hate PHP
[14:18:13] bigmac_: has left #RubyOnRails: ()
[14:18:21] quazimodo: has joined #RubyOnRails
[14:18:29] quazimod1: has joined #RubyOnRails
[14:18:35] n008f4g_: has joined #RubyOnRails
[14:18:39] nfk|laptop: enough to murder the brain dead asshole who came up with the very idea of using \ for namespacing
[14:18:40] arup_r: nive tbuehlmann
[14:19:27] arup_r: nfk|laptop: careful. you may get muted :p .. say them, not us.. hehe
[14:19:59] xhoy: is it possible to access scopes in liquid?
[14:20:29] xhoy: in my liquid_methods i have methods but i cant seem to access scopes ...
[14:20:44] arup_r: xhoy: you mean the shopify thing xhoy ?
[14:20:55] johnflux: has joined #RubyOnRails
[14:21:02] xhoy: arup_r: jep
[14:21:07] tbuehlmann: xhoy: why not make a variable/drop accessible that has methods?
[14:21:38] xhoy: tbuehlmann: how do you mean?
[14:21:59] tbuehlmann: do you have an explicit example?
[14:22:07] xhoy: moment let me create a gist :)
[14:22:12] nfk|laptop: arup_r, at this point I have concluded that the average PHP developer is 15 yo windows user, you'd have better success talking to a wall
[14:22:30] xhoy: nfk|laptop: jep
[14:22:54] tbuehlmann: I once was a 15 year old windows user, could be worse
[14:23:08] nfk|laptop: obviously he wasn't a php developer
[14:23:13] tbuehlmann: in fact, I still use windows on a daily basis
[14:23:24] tbuehlmann: I did wrote some php in the past as well :p
[14:23:50] gingray: has joined #RubyOnRails
[14:23:54] nfk|laptop: some code probably didn't scratch the surface of how awful is PHP
[14:23:56] nfk|laptop: anyway, work
[14:24:10] nfk|laptop: also, is there some channel for ranting? i feel like i'll need it a lot
[14:24:13] tbuehlmann: hope you feel better now
[14:24:28] nfk|laptop: i do, at least my heart has calmed down
[14:24:52] nfk|laptop: yep, php is so awful it's trying to kill me
[14:25:09] mrgreenfur: has joined #RubyOnRails
[14:25:09] [Tyrant]: has joined #RubyOnRails
[14:25:18] xhoy: https://gist.github.com/xhoy/c04d207c3fe1bc466fe7
[14:25:32] mwlang: while on the topic of rspec matchers…is there a better way check response.body? I typically just use: expect(response.body).to include "Email can&#39;t be blank"
[14:25:33] daivyk: has joined #RubyOnRails
[14:26:12] nfk|laptop: and documentation is just phenomenal, on one hand it's easy to get going, which i like, but on the other hand there's no explanation about anything else like does enabling bar require foo or on the opposite clashes with it?
[14:26:18] xhoy: seems the i cannot access the "scope" late
[14:26:31] mwlang: nfk|laptop: #ruby-offtopic
[14:26:45] arup_r: mwlang: if those errors are sent via `flash`, then you can test the content of flash
[14:27:33] arup_r: or use feature spec to check html content
[14:27:44] tbuehlmann: xhoy, liquid_methods isn't supported in Liquid anymore. might wanna change things
[14:27:45] arup_r: mwlang: Are you switching to Rspec? :D
[14:27:57] xhoy: tbuehlmann: rly? it does work :P
[14:28:01] berserk_ren: has joined #RubyOnRails
[14:28:18] mwlang: arup_r: long time rspec user…actually translating some unit::test specs at the moment to rspec.
[14:28:32] arup_r: oh.. good. :)
[14:28:33] workmad3: mwlang: you can also do something like `subject(:body) { response.body }; it { is_expected.to include "blah blah blah" } etc`
[14:29:09] arup_r: I think mwlang was looking for some thing better then `response.body` .. may be.
[14:29:14] xhoy: tbuehlmann: i cant find anything about what else i should use?
[14:29:47] mwlang: actually, looking for something better like workmad3’s example. :-) but was also wondering about “include” being best matcher to use.
[14:30:37] bricker: has joined #RubyOnRails
[14:31:03] sondnm_: has joined #RubyOnRails
[14:31:24] tbuehlmann: xhoy: what about having a RelationDrop class with all the relation stuff needed in liquid and let it have #invoices and #late_invoices methods
[14:31:43] xhoy: http://www.rubydoc.info/gems/liquid/Module <<
[14:31:57] workmad3: mwlang: I'd personally want to test response bodies with something more aware of the content type... if it was JSON, I'd parse it and use hash matchers, for HTML I quite like using capybara and having scoped matchers for specific parts of the page, etc.
[14:32:00] xhoy: tbuehlmann: feels like a lot of work? :)
[14:32:39] arup_r: workmad3: scope matcher means?
[14:33:07] mwlang: workmad3: I tend to save capybara for JS specs, but yeah, scoped matching there is good.
[14:33:11] workmad3: arup_r: `within("[data-role='header']") { expect(page).to have_content "Something in the header" }`
[14:33:20] ppnlo: has joined #RubyOnRails
[14:33:48] workmad3: arup_r: so the test can not only check that content is in the page, but also in roughly the right area (I like to use `data-role` attributes for that so I'm not depending on arbitrary presentation styles)
[14:34:53] arup_r: got it, I used that `within` a lot. Just couldn't catch it while you said it. but thanks again
[14:35:53] jgpawletko: has joined #RubyOnRails
[14:36:09] RegulationD: has joined #RubyOnRails
[14:36:10] uglybandersnatch: has joined #RubyOnRails
[14:36:50] baweaver: has joined #RubyOnRails
[14:37:05] moeabdol: has joined #RubyOnRails
[14:37:27] tbuehlmann: xhoy: https://gist.github.com/tbuehlmann/f9b588d93813384fa6a3
[14:40:54] shpoont: has joined #RubyOnRails
[14:41:24] polishdub: has joined #RubyOnRails
[14:41:51] Sero: has joined #RubyOnRails
[14:42:28] dionysus69: has joined #RubyOnRails
[14:43:31] davekiss: Does anyone have an opinion on how you might model an architecture for third party app preferences?
[14:44:03] davekiss: For example, if a Guest subscribes to a Blog, perform x, y, and z, but xyz are unrelated and each have their own settings
[14:45:51] davekiss: I was trying to use polymorphism and say that the Blog has_many Preferences, and each Preference has a `preferenceable_type` and `preferenceable_id`, along with a jsonb `options` column for that particular integration... but the forms are becoming a nightmare
[14:46:13] triptec: has joined #RubyOnRails
[14:46:22] davekiss: Wondering if I should stop trying to reuse so much and just make a controller and model for each third party app
[14:47:12] sp1rs: has joined #RubyOnRails
[14:47:15] deavid: has joined #RubyOnRails
[14:48:38] matthias_: has joined #RubyOnRails
[14:49:51] [Tyrant]: has joined #RubyOnRails
[14:50:28] bricker: has joined #RubyOnRails
[14:51:23] adavia: has joined #RubyOnRails
[14:51:42] matthias_: has joined #RubyOnRails
[14:52:35] renanoronfle: has joined #RubyOnRails
[14:54:23] arup_r: davekiss: classic example of polymorphism is say you can comment on questions and answers both. so you will make comment model and enable polymorphism on it, and connect it to question and answer model
[14:54:33] msyvich: has joined #RubyOnRails
[14:54:59] msyvich: .rbenv-vars do not load when running `rails test` via Spring
[14:55:15] msyvich: Anyone have any tips on how to stub out ENV inside `rails test` ?
[14:55:23] mostlybadfly: has joined #RubyOnRails
[14:55:23] DmitryBochkarev: has joined #RubyOnRails
[14:57:07] wolfravenous: has joined #RubyOnRails
[14:58:06] pwnd_nsfw: msyvich, https://github.com/laserlemon/figaro
[15:01:32] VeryBewitching: has joined #RubyOnRails
[15:01:46] aegis3121: has joined #RubyOnRails
[15:01:48] diegoviola: has joined #RubyOnRails
[15:02:07] Scient: there is something that bothers me about using UUIDs instead of id-s in URLs...
[15:02:22] Scient: but using IDs seems silly for some stuff :P
[15:02:50] bePolite: has joined #RubyOnRails
[15:03:51] mustmodify: has joined #RubyOnRails
[15:04:03] SteenJobs: has joined #RubyOnRails
[15:04:18] mustmodify: I just found that `I18n.locale = nil` raises an error in the console but not in the controller in development. Anyone know why?
[15:04:27] D9: has joined #RubyOnRails
[15:07:24] jds: has joined #RubyOnRails
[15:07:43] nullwarp_: has left #RubyOnRails: ()
[15:07:55] crystal77: has joined #RubyOnRails
[15:07:56] nullwarp: has joined #RubyOnRails
[15:08:39] nullwarp: has left #RubyOnRails: ("WeeChat 1.0.1")
[15:11:12] meoblast001: has joined #RubyOnRails
[15:13:09] gbgdev: has joined #RubyOnRails
[15:13:19] wolfravenous: has joined #RubyOnRails
[15:15:33] disgrntld: has joined #RubyOnRails
[15:16:11] flashpoint9: has joined #RubyOnRails
[15:21:42] n008f4g_: has joined #RubyOnRails
[15:22:57] krz: has joined #RubyOnRails
[15:23:37] wolfravenous: has joined #RubyOnRails
[15:24:04] pawnbox: has joined #RubyOnRails
[15:24:57] Guest34101: has joined #RubyOnRails
[15:26:13] nocontrol: has joined #RubyOnRails
[15:26:32] xhoy: tbuehlmann: thanks!
[15:26:42] kgutteridge: has joined #RubyOnRails
[15:26:43] shpoont: has joined #RubyOnRails
[15:26:50] xhoy: tbuehlmann: i found the issue. liquid creates drops, but only for instances of objects
[15:27:12] sp1rs: has joined #RubyOnRails
[15:27:15] xhoy: tbuehlmann: @object.scope doesnt work ofcz since it should be Model.scope :)
[15:27:58] TvL2386: has joined #RubyOnRails
[15:28:52] PedramT: has joined #RubyOnRails
[15:37:03] bronson: has joined #RubyOnRails
[15:37:58] krz: has joined #RubyOnRails
[15:38:00] arup_r: xhoy: yay!
[15:40:02] pawnbox: has joined #RubyOnRails
[15:42:29] Pazician: has joined #RubyOnRails
[15:43:42] alex88: has joined #RubyOnRails
[15:45:11] zave: has joined #RubyOnRails
[15:45:49] D9: has joined #RubyOnRails
[15:46:06] Oliphaunte: has joined #RubyOnRails
[15:46:17] shpoont: has joined #RubyOnRails
[15:53:42] baweaver: has joined #RubyOnRails
[15:55:56] JakFrist: has joined #RubyOnRails
[15:56:09] tvw: has joined #RubyOnRails
[15:57:03] gbgdev: has joined #RubyOnRails
[15:59:03] sp1rs: has joined #RubyOnRails
[15:59:29] shmilan: has joined #RubyOnRails
[16:00:38] Pazician: has joined #RubyOnRails
[16:01:22] msyvich: has joined #RubyOnRails
[16:03:43] tamole: has joined #RubyOnRails
[16:03:50] djbkd: has joined #RubyOnRails
[16:03:56] Pazician: has joined #RubyOnRails
[16:05:30] sp1rs: has joined #RubyOnRails
[16:06:05] rakm: has joined #RubyOnRails
[16:07:20] bePolite: has joined #RubyOnRails
[16:07:36] urbanmonk: has joined #RubyOnRails
[16:07:40] gormandy: has joined #RubyOnRails
[16:09:42] benlieb: has joined #RubyOnRails
[16:11:05] gingray: has joined #RubyOnRails
[16:13:33] marr: has joined #RubyOnRails
[16:14:03] msyvich: Is there a way for puma to support a graceful reload, versus a restart that drops connections?
[16:14:12] msyvich: In the ubuntu / upstart pattern
[16:14:35] msyvich: sudo service puma restart == 4 seconds of 502 response codes (puma is down behind nginx reverse proxy)
[16:15:08] DylanJ: In Rails 5 how do I send a JSON body in a feature test?
[16:15:23] Pazician: has joined #RubyOnRails
[16:15:24] DylanJ: post "/some/route", { foo: 'bar' }.to_json # is deprecated
[16:17:52] arup_r: has joined #RubyOnRails
[16:18:05] adaedra: msyvich: I think there's something through pumactl
[16:18:17] [Butch]: has joined #RubyOnRails
[16:18:51] adaedra: msyvich: otherwise, looks like SIGUSR1 would do the trick
[16:18:59] PedramT: has joined #RubyOnRails
[16:20:49] PedramT: has joined #RubyOnRails
[16:22:46] beauby: has joined #RubyOnRails
[16:24:10] Devalo: has joined #RubyOnRails
[16:26:25] dopamean_: has joined #RubyOnRails
[16:26:55] tamole: has joined #RubyOnRails
[16:29:00] KensoDev: has joined #RubyOnRails
[16:29:18] DoctorMonocular: has joined #RubyOnRails
[16:30:28] Maletor: has joined #RubyOnRails
[16:34:13] Dreamer3: has joined #RubyOnRails
[16:34:23] enitiz: has joined #RubyOnRails
[16:34:59] pawnbox: has joined #RubyOnRails
[16:36:19] Dreamer3: has joined #RubyOnRails
[16:37:14] RegulationD: has joined #RubyOnRails
[16:37:18] pawnbox: has joined #RubyOnRails
[16:38:00] shpoont: has joined #RubyOnRails
[16:39:47] crystal77: has joined #RubyOnRails
[16:42:09] shinnya: has joined #RubyOnRails
[16:43:22] agit0: has joined #RubyOnRails
[16:43:50] roshanavand: has joined #RubyOnRails
[16:44:46] d0nn1e: has joined #RubyOnRails
[16:49:14] mrgreenfur: has joined #RubyOnRails
[16:50:54] bronson: has joined #RubyOnRails
[16:52:25] gormandy: has joined #RubyOnRails
[16:53:46] Macaveli: has joined #RubyOnRails
[16:54:24] flashpoint9: has joined #RubyOnRails
[16:56:16] roshanavand: has joined #RubyOnRails
[16:58:12] sleungcy: has joined #RubyOnRails
[16:58:25] rnda: has joined #RubyOnRails
[16:59:35] griffindy: has joined #RubyOnRails
[17:00:32] agit0: has joined #RubyOnRails
[17:03:02] bronson: has joined #RubyOnRails
[17:04:34] baweaver: has joined #RubyOnRails
[17:07:29] choke: has joined #RubyOnRails
[17:10:47] mrgreenfur: has joined #RubyOnRails
[17:11:22] msyvich: adaedra, thanks a bunch
[17:11:31] msyvich: adaedra, pumactl looks like it should do the trick
[17:13:56] jtong: has joined #RubyOnRails
[17:14:02] shpoont: has joined #RubyOnRails
[17:14:22] jmarinelli: has joined #RubyOnRails
[17:17:26] flashpoint9: has joined #RubyOnRails
[17:17:46] jtong: has joined #RubyOnRails
[17:17:53] rogue_koder: has joined #RubyOnRails
[17:18:45] IFrank004: has joined #RubyOnRails
[17:19:54] elcontrastador: has joined #RubyOnRails
[17:20:05] JakFrist: has joined #RubyOnRails
[17:20:36] markalanevans: has joined #RubyOnRails
[17:20:39] matthias_: has joined #RubyOnRails
[17:23:38] shmilan: has joined #RubyOnRails
[17:26:35] jtong: has joined #RubyOnRails
[17:27:21] Guest34101: has joined #RubyOnRails
[17:27:34] SteenJobs: has joined #RubyOnRails
[17:27:37] joshkovach: has joined #RubyOnRails
[17:30:19] ktchup: has joined #RubyOnRails
[17:30:35] bePolite: has joined #RubyOnRails
[17:31:48] sp1rs: has joined #RubyOnRails
[17:32:23] siaW: has joined #RubyOnRails
[17:33:45] shpoont: has joined #RubyOnRails
[17:34:02] kirillzh: has joined #RubyOnRails
[17:34:34] benlieb: has joined #RubyOnRails
[17:35:20] choke: has joined #RubyOnRails
[17:35:48] PedramT: has joined #RubyOnRails
[17:38:19] tomatoes: has joined #RubyOnRails
[17:38:56] morfin: has joined #RubyOnRails
[17:39:30] pwnd_nsfw: "I'm actually pretty experienced with ruby and Rails, but haven't done much with with complex forms before."
[17:40:10] PedramT: has joined #RubyOnRails
[17:40:18] smathy: has joined #RubyOnRails
[17:43:32] mustmodify: pwnd_nsfw: it's all relative.
[17:44:59] rnda: has joined #RubyOnRails
[17:45:52] _djbkd: has joined #RubyOnRails
[17:45:55] moeabdol: has joined #RubyOnRails
[17:46:21] yellow5: has joined #RubyOnRails
[17:47:00] kirillzh: has joined #RubyOnRails
[17:53:10] broman: has joined #RubyOnRails
[17:53:52] chouhoulis: has joined #RubyOnRails
[17:53:56] broman: can anyone please help me? I'm using rails 3.2 and need to make an adjustment so "routing error" could be redirected to public/404 file ... what can I do to make this happen?
[17:54:10] ktchup: has joined #RubyOnRails
[17:54:24] ascarter: has joined #RubyOnRails
[17:54:32] sp1rs: has joined #RubyOnRails
[17:55:09] pragmatism: has joined #RubyOnRails
[17:55:35] pwnd_nsfw: broman, http://apidock.com/rails/ActionController/Rescue/ClassMethods/rescue_from
[17:57:02] broman: pwnd_nsfw, can't get this to work: rescue_from(ActionController::RoutingError) render :template => 'errors/404'
[17:57:41] pwnd_nsfw: I do't have enough info to help you
[18:00:40] pwnd_nsfw: broman, looks like syntax is wrong to begin with
[18:01:02] _bogus_: has joined #RubyOnRails
[18:01:02] _bogus_: has joined #RubyOnRails
[18:01:11] agit0: has joined #RubyOnRails
[18:01:27] broman: pwnd_nsfw, can't get this to work: rescue_from(ActionController::RoutingError) { render :template => 'errors/404' }
[18:01:34] pwnd_nsfw: broman, looks like syntax is wrong to begin with
[18:01:34] broman: is it ok now?
[18:01:46] pwnd_nsfw: look at the docs
[18:04:31] bronson: has joined #RubyOnRails
[18:04:56] HalcyonicStorm: has joined #RubyOnRails
[18:05:01] HalcyonicStorm: has left #RubyOnRails: ()
[18:05:25] broman: pwnd_nsfw, the link you gave me: The last existing version (v2.1.0) is shown here. **** I'm using rails 3.2
[18:05:48] bricker: has joined #RubyOnRails
[18:06:45] fmcgeough: has joined #RubyOnRails
[18:06:48] davee_: has joined #RubyOnRails
[18:07:04] mikecmpbll: has joined #RubyOnRails
[18:07:14] workmad3: broman: "These similar methods exist in ..."
[18:08:17] roshanavand: has joined #RubyOnRails
[18:08:19] fox_mulder_cp: ACTION start use rails 5 b3 in my new app
[18:11:09] openstruct: has joined #RubyOnRails
[18:11:09] arup_r: has joined #RubyOnRails
[18:11:45] tamole: has joined #RubyOnRails
[18:12:21] sayhi: has joined #RubyOnRails
[18:12:29] baweaver: has joined #RubyOnRails
[18:12:52] sayhi: hey, #capistrano seems quite liveless - could anyone here answer a capistrano3 related question?
[18:13:15] umdstu: da_wunder: hah. ironically i AM using that. thats where i access the data. i hadn't even considered peeking at the toParams to further narrow thath down
[18:13:25] mwlang: sayhi: I’d put money on someone being able to.
[18:13:44] umdstu: sayhi: can't hurt to ask
[18:14:42] nogic: has joined #RubyOnRails
[18:15:25] nogic: has joined #RubyOnRails
[18:15:50] sayhi: using capistrano 3.4.0 and ruby 2.3.0 on rvm.. cap production deploy - tries to /usr/bin/env mkdir /some/folder .. but i dont have an env
[18:15:57] sayhi: and i dont have permission to write an env
[18:16:10] sayhi: managed dedicated server
[18:16:42] sayhi: im using it to *dont hit me* deploy php
[18:16:54] Guest4184______: has joined #RubyOnRails
[18:17:06] mwlang: sayhi: I hear ppl use cap for lots of projects other than Ruby
[18:17:18] mwlang: so I wouldn’t worry about ducking so swiftly.
[18:17:19] sayhi: ye.. just php.. *sigh*
[18:17:46] sayhi: so i need capistrano to .. omit the env bit..
[18:17:46] mwlang: do you have permission to mkdir in any folder?
[18:17:46] umdstu: i use cap for my rails/angular app
[18:18:08] y2mq37: has joined #RubyOnRails
[18:18:13] umdstu: just seems like you dont have permission to /usr/bin/env, which im not entirely surprised for a managed server
[18:18:31] umdstu: you could try putting a ticket in with your host
[18:18:44] sayhi: umdstu: /usr/local/bin/ would be better i think.. or not?
[18:18:51] intrigueD: has joined #RubyOnRails
[18:19:45] umdstu: yes, /usr/local/bin is more open permission wise in my experience, but env binary is not located there
[18:20:33] sayhi: i dont know how to change that in cap3..
[18:21:34] ascarter: has joined #RubyOnRails
[18:24:49] jgt: has joined #RubyOnRails
[18:24:57] sayhi: umdstu: i think you're right though.. and i should contact the hosting company to enable env
[18:26:38] Oliphaunte: has joined #RubyOnRails
[18:26:53] umdstu: sayhi: it's your best bet
[18:27:20] smathy: sayhi, what OS is this that has no /usr/bin/env ?
[18:27:29] pawnbox: has joined #RubyOnRails
[18:27:41] patrick99e99: has joined #RubyOnRails
[18:27:54] sayhi: smathy its just.. minimum requirement /usr/bin/ in the setup phase of a managed host
[18:27:55] umdstu: smathy: i believe his account doesn't have permissions, not that it doesn't exist
[18:28:10] sayhi: so.. im just not allowed to use it
[18:28:29] smathy: Sorry, I missed that. I thought you didn't have permission to WRITE it.
[18:28:32] bronson: has joined #RubyOnRails
[18:28:35] smathy: ACTION goes back to slumber
[18:28:53] patrick99e99: Hey everyone.. Has anyone seen this error before: Asset logical path has no extension: bootstrap/.js ?
[18:29:00] baweaver: has joined #RubyOnRails
[18:29:07] smathy: (still crazy to have a machine that you can't use env on btw, I'd complain to your provider)
[18:29:17] patrick99e99: it says the error is coming from /app/assets/stylesheets/application.css.scss.erb
[18:29:27] patrick99e99: why is a scss file looking at .js ?
[18:29:40] sayhi: ok, thanks umdstu
[18:29:46] sayhi: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[18:30:16] umdstu: sayhi: did you try manually running that command?
[18:30:37] umdstu: haha, nvm
[18:33:41] DoctorMonocular: has joined #RubyOnRails
[18:33:50] srinidhi: has joined #RubyOnRails
[18:34:00] pawnbox: has joined #RubyOnRails
[18:35:41] Guest34101: has joined #RubyOnRails
[18:36:58] tubbo: patrick99e99: !gist your application.css.scss.erb please
[18:36:58] helpa: patrick99e99: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[18:38:03] uglybandersnatch: has joined #RubyOnRails
[18:38:09] patrick99e99: tubbo: https://gist.github.com/patrick99e99/c5fe1b8934942d5ef492
[18:38:52] RegulationD: has joined #RubyOnRails
[18:39:09] mustmodify: has left #RubyOnRails: ()
[18:40:32] manfrin: has joined #RubyOnRails
[18:40:34] tubbo: patrick99e99: well the short answer to your question is that an scss file can't be "looking at .js"...so sprockets might be telling you the wrong place for the error. can you add the full backtrace of the error you're getting to that gist please?
[18:41:39] srinidhi: has joined #RubyOnRails
[18:41:48] patrick99e99: tubbo: unfortunately I don't get much of a stack trace.. it just goes to my application controller, and then "./app/views/layouts/application.html.haml:9:in `_app_views_layouts_application_html_haml___1469036755418030039_70134206628180"
[18:42:06] patrick99e99: where line 9 is: " = stylesheet_link_tag 'application', media: 'all'"
[18:42:21] patrick99e99: so.... it's breaking during css compilation stuff
[18:42:23] zarubin: has joined #RubyOnRails
[18:42:25] arup_r: what is the error?
[18:42:29] arup_r: yes.. true
[18:42:42] tubbo: patrick99e99: you're gonna need to add the full backtrace to the gist or else there's no more reliable help that i can give.
[18:42:59] arup_r: generally when you have .scss , not need to use .erb .. but that's not the reason. just saying
[18:43:18] tubbo: patrick99e99: what tells you that "the error is coming from application.css.scss.erb"?
[18:43:51] qejk: has joined #RubyOnRails
[18:43:58] arup_r: ruby interpreter couldn't move after that..
[18:44:04] jstransky: has joined #RubyOnRails
[18:44:24] tubbo: i'm calling bullshit :)
[18:44:40] tubbo: backtraces are typically not one line long
[18:44:52] patrick99e99: tubbo: refresh the gist.. that's all i get
[18:45:01] patrick99e99: actually i should look at my test.log
[18:45:50] tubbo: patrick99e99: is this happening in 'test'?
[18:45:53] tubbo: or just in development?
[18:46:08] patrick99e99: in test.. feature specs
[18:46:20] tubbo: patrick99e99: try running `rails server` and visiting the page, it'll give you a better error.
[18:46:26] tamole: has joined #RubyOnRails
[18:46:58] netzfisch: has joined #RubyOnRails
[18:50:03] zarubin: has joined #RubyOnRails
[18:50:11] treehug88: has joined #RubyOnRails
[18:50:18] patrick99e99: tubbo: ok, yeah.. i had to run the server in test to get the stack trace... https://gist.github.com/patrick99e99/fa1fec6fd97d768c4880
[18:51:03] tubbo: patrick99e99: interesting. so this doesn't happen when you run `rails server`, only `rails server -e test`?
[18:54:03] patrick99e99: correct tubbo
[18:56:56] baweaver: has joined #RubyOnRails
[18:58:42] patrick99e99: hmmm tubbo, nevermind.. i am not sure what happened but I just did git reset on this branch and now everything is ok........
[18:59:13] jtong: has joined #RubyOnRails
[18:59:48] arup_r: git is lifesaver
[18:59:58] sneakerhax: has joined #RubyOnRails
[19:00:16] SteenJobs: has joined #RubyOnRails
[19:02:33] intrigueD: has joined #RubyOnRails
[19:03:58] Devalo: has joined #RubyOnRails
[19:04:05] zarubin: has joined #RubyOnRails
[19:04:51] kirillzh: has joined #RubyOnRails
[19:05:44] yellow5: has joined #RubyOnRails
[19:13:35] gingray: has joined #RubyOnRails
[19:18:31] siaW: this is my repo
[19:18:42] siaW: i have a file that contains api keys. that i want to use in ruby.rb
[19:18:54] siaW: how do i require it to ruby.rb
[19:18:55] siaW: https://github.com/siaw23/mini_twitter_api/blob/master/ruby.rb
[19:19:14] siaW: currently i’m getting ruby.rb:6:in `load': cannot load such file -- keys (LoadError)
[19:19:24] arBmind: has joined #RubyOnRails
[19:20:07] tubbo: siaw: where's keys.rb?
[19:20:12] siaW: i’m git ignoring the file with my keys. but i’m not sure how to call the file with the keys
[19:20:17] siaW: it’s in the root folder
[19:20:19] siaW: so i have
[19:20:38] siaW: folder which contains. keys.rb and ruby.rb
[19:21:03] tubbo: siaw: ok just making sure :)
[19:21:59] gingray_: has joined #RubyOnRails
[19:22:02] tubbo: siaw: i think you might have to specify the relative location since 'keys' isn't in ruby's $LOAD_PATH
[19:22:09] tubbo: siaw: so try `load './keys'`.
[19:22:43] tubbo: siaw: you can also use `require` here fwiw, require just makes sure the the code can only be loaded once.
[19:23:03] siaW: yeah i know about that
[19:23:08] siaW: but both options are giving me
[19:23:16] siaW: ruby.rb:6:in `load': cannot load such file -- ./keys (LoadError)
[19:23:20] _djbkd: has joined #RubyOnRails
[19:23:48] arup_r: has joined #RubyOnRails
[19:24:52] Macaveli: has joined #RubyOnRails
[19:25:28] tubbo: siaw: i just copied your code and it worked for me when using "load './keys.rb'", but i feel like that shouldn't be necessary
[19:25:42] sp1rs: has joined #RubyOnRails
[19:25:50] Sephyros: has joined #RubyOnRails
[19:26:34] tubbo: siaw: when i used `$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))` at the top of the file and then `require 'keys'`, that also worked.
[19:26:35] baweaver: has joined #RubyOnRails
[19:26:48] meoblast001: has joined #RubyOnRails
[19:27:00] siaW: `load './keys.rb'` works fine
[19:27:10] siaW: i didn’t add .rb extension in the beginning
[19:28:01] tubbo: siaw: https://gist.github.com/428fa92b8e315f14a007 is what i did
[19:28:03] jottr_: has joined #RubyOnRails
[19:28:05] bronson: has joined #RubyOnRails
[19:28:58] siaW: cool trick :D
[19:30:29] smoitra: has joined #RubyOnRails
[19:31:04] siaW: tubbo: if i have a variable in keys.rb, how can i make those variables ‘visibile’ in a method in ruby.rb?
[19:31:18] tubbo: siaw: they're local variables?
[19:31:21] Sephyros: Anyone know a good way to search using pg_search the field "TYPE"? i have some models with type but i need to search the translated name of this type
[19:31:27] siaW: tubbo: yes
[19:31:34] tubbo: siaw: try making them methods instead
[19:31:43] Sephyros: i cannot use trigram*
[19:31:46] mdw: has joined #RubyOnRails
[19:32:13] siaW: tubbo: so like in keys.rb i’d make somethin glike def key; a = “b”; end
[19:32:26] tubbo: siaw: yeah, or maybe make them constants
[19:32:32] tubbo: siaw: AWS_ACCESS_KEY_ID=''
[19:32:39] siaW: i’d use constants instead
[19:33:08] flashpoint9: has joined #RubyOnRails
[19:33:17] tubbo: siaw: ruby's lexical scoping, iirc, will consider local variables local to the main module in keys.rb, which is different from the main module in ruby.rb
[19:33:34] tubbo: that's why you have to mixin methods to Kernel in order to build a top-level ruby DSL
[19:36:37] leofrozenyogurt: has joined #RubyOnRails
[19:37:13] leofrozenyogurt: hey guys quick question, so for some reason perform_async runs the worker live and not on sidekiq
[19:37:15] _bogus_: has joined #RubyOnRails
[19:37:39] siaW: tubbo: thank
[19:37:43] leofrozenyogurt: as well if anyone knows how I can do a pry inside a worker that would be great
[19:37:44] siaW: working fine ;)
[19:39:52] RegulationD: has joined #RubyOnRails
[19:40:50] Scient: leofrozenyogurt: pry-remote?
[19:41:22] blackmesa: has joined #RubyOnRails
[19:41:25] leofrozenyogurt: Scient: any reason why locally the worker wouldnt be running?
[19:41:26] shmilan: has joined #RubyOnRails
[19:41:32] bricker: has joined #RubyOnRails
[19:41:52] JakFrist: has joined #RubyOnRails
[19:42:28] baweaver: has joined #RubyOnRails
[19:43:26] jottr: has joined #RubyOnRails
[19:44:16] _djbkd: has joined #RubyOnRails
[19:45:02] ascarter: has joined #RubyOnRails
[19:46:13] _djbkd: has joined #RubyOnRails
[19:46:30] flashpoi_: has joined #RubyOnRails
[19:47:53] rattatmatt: has joined #RubyOnRails
[19:48:28] baweaver: has joined #RubyOnRails
[19:48:52] tubbo: leofrozenyogurt: does config.active_job.queue_adapter = :sidekiq in config/environments/production.rb? http://edgeguides.rubyonrails.org/active_job_basics.html#setting-the-backend
[19:48:53] tvw: has joined #RubyOnRails
[19:49:11] norc: has joined #RubyOnRails
[19:51:16] PedramT: has joined #RubyOnRails
[19:53:25] kt2: has joined #RubyOnRails
[19:53:42] tomatoes: has joined #RubyOnRails
[19:54:25] [Tyrant]: looking for grassroots senior and junior devs for startup.. again hope this is not against any chan rules for asking...
[19:56:10] anjen: has joined #RubyOnRails
[19:56:51] siaW: has left #RubyOnRails: ()
[19:57:14] roshanavand: has joined #RubyOnRails
[19:59:22] jottr_: has joined #RubyOnRails
[19:59:25] tubbo: [Tyrant]: the rules are located at https://gist.github.com/radar/996779, and it doesn't seem you've violated any of them :)
[20:00:36] tubbo: [Tyrant]: have you posted this job on any job boards?
[20:00:52] [Tyrant]: i keep it underground and personal
[20:00:54] tubbo: if it's a job at all that is
[20:01:02] tubbo: [Tyrant]: sounds like a red flag :)
[20:01:32] [Tyrant]: my father always said: “Never let them see you coming."
[20:05:03] [Tyrant]: im ceo, cto masters in dba, prototype in place, new handmade design half way on look and feel. Food Startup.
[20:05:44] Papierkorb: [Tyrant]: Letting people know which country/region the company is located would be helpful I guess
[20:05:49] DoctorMonocular: has joined #RubyOnRails
[20:05:54] [Tyrant]: need a little more proof of concept for investors
[20:06:10] [Tyrant]: I am east coast north Jersey/NYC
[20:06:30] [Tyrant]: but this will be international
[20:06:35] n008f4g_: has joined #RubyOnRails
[20:06:43] [Tyrant]: we have over 20 ip addresses now
[20:06:50] smathy: Remote/distributed ftw.
[20:06:56] Aherin: has joined #RubyOnRails
[20:07:52] [Tyrant]: my past cofounder just won best place to work in phlly award
[20:08:00] [Tyrant]: and he will be on board of directors
[20:08:05] Papierkorb: smathy: Well I have a time offset of 6-8hrs to [Tyrant], so even with remote work that's something to keep in mind
[20:08:36] [Tyrant]: ever not drive a tesla
[20:08:39] tubbo: [Tyrant]: haha who's your past co-founder?
[20:08:44] tubbo: the guys from revzilla?
[20:08:56] leofrozenyogurt: jersey represent!
[20:09:04] tubbo: [Tyrant]: those guys are p. cool, they spun off the company i work for now called WebLinc
[20:09:18] [Tyrant]: thats where they left from
[20:09:28] flashpoint9: has joined #RubyOnRails
[20:09:39] snowy: has joined #RubyOnRails
[20:09:50] tubbo: actually "spun off" is kind-of a misnomer
[20:09:57] tubbo: they basically jumped ship
[20:10:02] smathy: Papierkorb, yeah, definitely doing distributed/async has its own challenges.
[20:10:10] shmilan: has joined #RubyOnRails
[20:10:15] smathy: Papierkorb, so much to gain though.
[20:10:32] Papierkorb: smathy: Sure, I'm not against it :)
[20:10:33] tubbo: i can see why, but the dudes from revzilla and our leadership were like really good friends for a long time
[20:10:48] hahuang65: has joined #RubyOnRails
[20:11:02] [Tyrant]: they left on peace
[20:11:03] brendan-: has joined #RubyOnRails
[20:11:11] tubbo: yeah :) depends on who you talk to
[20:11:24] tubbo: personally i believe that as well
[20:11:39] [Tyrant]: how is weblinc doing
[20:11:45] [Tyrant]: its been a while
[20:12:02] [Tyrant]: i almost worked there
[20:12:04] tubbo: great, we're a rails shop now and just bought orderbot
[20:12:12] tubbo: [Tyrant]: we're still hiring rails devs ;)
[20:12:23] ciree: can I have a model without a primary key?
[20:12:23] [Tyrant]: im a ui/ux designer before they called it that
[20:12:25] tubbo: this is the best job i've had so far
[20:12:35] ciree: for things like join tables, or has_one relationships
[20:13:11] tubbo: ciree: check out has_many :through to build a "join model".
[20:13:15] TheCubeLord: has joined #RubyOnRails
[20:13:18] tubbo: ciree: it still has a primary key you just don't really use it
[20:13:24] [Tyrant]: i have a question: when did freenode become the spot
[20:13:37] [Tyrant]: im efnet oldschool 98 mofo
[20:13:39] Papierkorb: For programming stuff?
[20:13:40] tubbo: a few years ago...maybe like 2008?
[20:14:15] ciree: but im explicitly in my migration
[20:14:17] ciree: saying no
[20:14:26] ciree: is there any reason this is a bad idea?
[20:14:36] tubbo: ciree: !gist your migration.
[20:14:36] helpa: ciree: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[20:14:55] tubbo: can't see how it would be a bad idea, but i also don't see the point in doing it in the first place
[20:15:06] tubbo: like why do you care what the primary key is? you never need it.
[20:15:16] smathy: ciree, no, all models must have a primary key.
[20:15:31] arup_r: yes, use HABTM no P_key
[20:15:32] smathy: ciree, you can have a *table* without a primary key, but it won't have a model.
[20:15:43] tubbo: yeah you could use HABTM
[20:15:48] smathy: No model though.
[20:16:27] arup_r: smathy: so, if I have table without id, evenif I have a model.rb it wouldn't detect the table?
[20:16:40] arup_r: asking for self knowledge..
[20:16:51] ciree: tubbo: https://gist.github.com/elech/a951f1dbc2990d5a9142
[20:17:41] arup_r: ciree: so you want primary key but it should not be the `id` right? https://gist.github.com/elech/a951f1dbc2990d5a9142#file-gistfile1-txt-L4
[20:17:43] tubbo: ciree: iirc, you can do `create_table :sites, uuid: true` and get rid of the `t.string :uuid` jawn
[20:18:15] KensoDev: has joined #RubyOnRails
[20:18:28] arup_r: and insid the model mention self.primary_key = :uuis ( IS this needed? )
[20:19:03] ciree: tubbo: im on rails 3
[20:19:29] ciree: the site_data, I guess technically the site_uuid would be the primary key?
[20:19:30] arup_r: ciree: rails -v
[20:19:35] ciree: even though its the foreign key
[20:19:57] tubbo: yeah i thought you could change what the primary key is
[20:20:47] mrgreenfur: has joined #RubyOnRails
[20:21:14] [Tyrant]: i wish i kept on learning this stuff
[20:21:22] [Tyrant]: i was on track but fell off
[20:25:23] Ergo: has joined #RubyOnRails
[20:25:43] zave: has joined #RubyOnRails
[20:27:43] rasalghul: has joined #RubyOnRails
[20:28:25] dgncn: has joined #RubyOnRails
[20:29:02] alaing: has joined #RubyOnRails
[20:30:24] ziyadb: has joined #RubyOnRails
[20:31:07] jstransky: has joined #RubyOnRails
[20:31:30] alaing: has joined #RubyOnRails
[20:31:58] JakFrist: has joined #RubyOnRails
[20:32:30] alaing: hi, i'm trying to build a form builder method. how do i get the method to add extra css classes to the label element if they want too. https://gist.github.com/aliuk2012/3df6ee820c48b3857971
[20:36:05] kies: has joined #RubyOnRails
[20:36:34] jtong: has joined #RubyOnRails
[20:36:54] [Tyrant]: alaign: dynamic ?
[20:38:59] [Tyrant]: God i can’t wait for a ruben tonight and a pint
[20:39:01] alaing: this form builder is to create html in a standard why for our services and so the css classes would be standard
[20:39:14] epochwolf: [Tyrant]: that sounds amazing.
[20:39:31] epochwolf: Unfortunately, I'm going to settle for some frozen pizza and cheap wine.
[20:39:39] [Tyrant]: irish/german mofo east coast
[20:40:03] [Tyrant]: i dont think i can ship it to you and have it good
[20:40:08] SteenJobs: alaing: just throw in :style => “your styles"
[20:40:27] SteenJobs: *why not just throw in
[20:40:34] diegoviola: has joined #RubyOnRails
[20:40:40] epochwolf: [Tyrant]: ship me over instead. I'm in Ohio, it's not too far.
[20:40:53] [Tyrant]: i have 4 open rooms
[20:41:02] [Tyrant]: i own my own house
[20:41:21] [Tyrant]: do you smell bad?
[20:41:23] alaing: eg in a view it would be called like f.text_field :attr, class="MyCoolClass" the html woudl output a label that has class="form-label MyCoolClass"
[20:41:24] ktchup: has joined #RubyOnRails
[20:41:46] SteenJobs: ah ah gotcha
[20:41:53] alaing: SteenJobs: inline styles not ideal
[20:42:10] alaing: i bet its somethign simple
[20:42:23] alaing: the point is the label should always have a class of form-label
[20:42:33] SteenJobs: yea, seems like it’s just a matter of finding the right syntax
[20:42:46] Radar: GOOD MORNING
[20:42:53] alaing: and the developer can extend it if they need too
[20:43:04] VeryBewitching: ACTION admonishes the morning "BAD MORNING"
[20:44:12] [Tyrant]: speaking of, Very, I read a huge reddit post about future job carreers
[20:44:39] [Tyrant]: and i think i saw something on HN as well about it
[20:44:58] [Tyrant]: going back to low level and automation
[20:45:05] Radar: alaing: you could have an option called :label_class and extract it
[20:45:07] Radar: alaing: https://gist.github.com/aliuk2012/3df6ee820c48b3857971#file-form_builder-rb-L3
[20:45:10] Radar: alaing: options[:label_class]
[20:45:26] [Tyrant]: Hey Radar, remember me?
[20:45:28] Cohedrin: has joined #RubyOnRails
[20:45:34] [Tyrant]: how ya been
[20:45:38] Radar: [Tyrant]: How could I forget?
[20:45:58] [Tyrant]: do i make that much of an inpression ?
[20:46:01] [Tyrant]: its been a while
[20:46:17] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2015-04-29#3111412
[20:46:20] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2015-04-29#3111475
[20:46:24] Radar: I have ways of remembering.
[20:46:30] c355E3B: has joined #RubyOnRails
[20:47:04] Radar: https://gist.github.com/radar/231f410a39bc3b463c2f
[20:47:11] Radar: And that would explain why I feel like banning you already.
[20:47:55] alaing: Radar: ah, and then just concat the values onto the class in L5
[20:48:03] Radar: alaing: Correct.
[20:48:12] alaing: sweet, thank you :-)
[20:48:31] SteenJobs: alaing: not sure i fully get it - your code seems to already do it, you just need to pass whatever arguments you get into the class: in “label"
[20:48:35] SteenJobs: oh ha yea you just said that
[20:48:46] choke: has joined #RubyOnRails
[20:49:49] alaing: SteenJobs: sorry I'm still new to rais one of these days I'll get the terminology right
[20:50:06] jenrzzz: has joined #RubyOnRails
[20:50:15] SteenJobs: cool cool. yea you basically had it which is why i was confused
[20:50:22] SteenJobs: wait…what were you doing before rails?
[20:50:36] alaing: like someone says attributes and I straight away think HTML element attributes
[20:50:56] alaing: SteenJobs: ORACLE Application Express developer
[20:51:03] alaing: APEX for short
[20:51:13] sdwrage: has joined #RubyOnRails
[20:51:17] SteenJobs: nice. i thought for a hot second that i’ve seen your name in the iOS chat
[20:51:48] [Tyrant]: how hot was it
[20:51:51] Radar: alaing: You've been in this channel for a while.
[20:52:00] alaing: i get around but iOS is not a room I normally hang out in
[20:52:24] Radar: http://logs.ryanbigg.com/p/alaing/activity But looks like you took a long break at the end of 2014
[20:52:25] [Tyrant]: i need iOS devs too
[20:52:29] kgutteridge: has joined #RubyOnRails
[20:52:52] jtong: has joined #RubyOnRails
[20:53:00] SteenJobs: i’m an iOS and Rails dev, who would’ve thunk
[20:53:02] Radar: [Tyrant]: You have 3 messages to get the point.
[20:53:02] Radar: After that, I ban you _permanently_.
[20:53:02] Radar: For wasting everyone's time.
[20:53:05] [Tyrant]: i have 1 million in cash
[20:53:14] Radar: [Tyrant]: One.
[20:53:19] [Tyrant]: ya just one
[20:53:22] alaing: Radar: ok thats scary
[20:53:27] ChanServ: +q *!*@pool-173-63-161-177.nwrknj.fios.verizon.net
[20:53:32] Radar: Bye [Tyrant]
[20:53:35] _djbkd: has joined #RubyOnRails
[20:53:39] SteenJobs: ah the eternal debate, is it on 3 or is it after 3?
[20:53:51] SteenJobs: Radar is of the on 3 positioin it appears
[20:53:53] ChanServ: +b *!*@pool-173-63-161-177.nwrknj.fios.verizon.net
[20:53:53] ChanServ: ChanServ kicked [Tyrant]: is banned from this channel
[20:54:13] Radar: now waiting for the PM abuse
[20:54:21] Radar: because that always works
[20:54:22] alaing: I think most of that activity would have been in the jquery channel
[20:54:28] Radar: He sounds too much like a startup bro and I just cannot tolerate that.
[20:54:58] VeryBewitching: Idiots don't discriminate. Flood all the channels!
[20:55:03] jtong: has joined #RubyOnRails
[20:56:13] SteenJobs: alaing: ah that could be. we’ve definitely crossed paths before on here ha
[20:56:13] pawnbox: has joined #RubyOnRails
[20:56:16] Radar: VeryBewitching: Any other channels that they're spamming?
[20:56:28] Disavowed: has joined #RubyOnRails
[20:56:35] SteenJobs: haha ‘startup bro’
[20:57:03] Radar: "Oh shit son this app takes 30 seconds to boot which gives me enough time to do 10 pushups (one handed of course lol) and then crush this can of Red Bull"
[20:57:17] Radar: backwards cap, sunglasses inside, polo shirt with collar up
[20:57:18] arup_r: Radar: it was happening since last 3 days..:)
[20:57:20] VeryBewitching: Radar: No, not that I've seen, but would you put it past him/her?
[20:57:41] Radar: arup_r: yeah I just saw :(
[20:57:47] Radar: arup_r: shouldn't happen again
[20:58:11] arup_r: first day it was interesting.. but after that I got annoyed..
[20:59:19] arup_r: as he said job, and asked me to PM, I did. On skype, he was talking with me .. and then I felt he is a stupid.. and drunk heavily. I didn't hesitate to cut the call and delete him
[20:59:33] jtong: has joined #RubyOnRails
[20:59:34] Radar: Today they stepped it up a notch.
[20:59:34] Radar: Their IP is banned (but that can change) and their nick is banned.
[20:59:34] Radar: Ban might be removed by one of us, but Chanserv won't forget ;)
[20:59:57] arup_r: it was so LOUD, omg! but you did a good job.. thanks
[21:00:29] Radar: hahaha I didn't know he would skype people
[21:01:17] sdwrage: has joined #RubyOnRails
[21:01:22] arup_r: yeah.. who knows who is what. I got to know when came to call.. anyway he was drunk.. I gurantee today also.
[21:01:50] arup_r: he didn't remember me at all.. that i tested here.. anyway leave it
[21:02:12] arup_r: as you said, *he is wasting others time*
[21:02:17] arup_r: that's true
[21:02:19] _djbkd: has joined #RubyOnRails
[21:02:23] VeryBewitching: He's PM'd me before, about half a year ago.
[21:02:35] ur5us: has joined #RubyOnRails
[21:02:38] VeryBewitching: He was trying to get me to do work for "shares"
[21:02:50] alaing: how do i pass args to super?
[21:03:29] arup_r: VeryBewitching: hm :)
[21:03:36] Radar: alaing: super(args)
[21:03:37] alaing: like another css class so it would be options[:field_class]
[21:05:10] arup_r: Radar: he got banned, but still is he able to see the the IRC logs ? just asking..
[21:05:38] IrishGringo: has joined #RubyOnRails
[21:06:56] alaing: Radar: super(options)? its throwing an error "undefined method `{:class=>"form-control"}"
[21:07:18] alaing: f.text_field :first_name, class: "form-control"
[21:08:28] kirillzh: has joined #RubyOnRails
[21:09:22] baweaver: has joined #RubyOnRails
[21:09:35] lemur: has joined #RubyOnRails
[21:09:57] jtong: has joined #RubyOnRails
[21:11:51] VeryBewitching: And then.. arup_r sends me a PM and the disconnects.
[21:12:01] netzfisch: has joined #RubyOnRails
[21:12:21] PedramT: has joined #RubyOnRails
[21:14:58] uglybandersnatch: has joined #RubyOnRails
[21:15:00] tubbo: Radar: fix yer encoding bruv
[21:15:45] dnewkerk: has joined #RubyOnRails
[21:16:31] jtong: has joined #RubyOnRails
[21:21:55] intrigueD: has joined #RubyOnRails
[21:23:47] agit0: has joined #RubyOnRails
[21:26:44] fryguy: i'm having a weird iptables problem
[21:27:07] fryguy: have a set of rules with an ACCEPT followed by a REJECT, and the accept isn't happening, it just falls through to the reject, but only for some types of traffic
[21:28:34] ensyde_: has joined #RubyOnRails
[21:32:33] srinidhi: has joined #RubyOnRails
[21:34:29] manfrin: has joined #RubyOnRails
[21:35:16] uglybandersnatch: has joined #RubyOnRails
[21:36:49] kallisti5: Agent.all.each do |agent| agent.reset_counters(:recovery_points) end
[21:36:55] kallisti5: starting to use counter_cache
[21:37:12] kallisti5: I can Agent.reset_counters("UUID", :recovery_points)
[21:37:15] kallisti5: ... is there a better way?
[21:39:27] kallisti5: nevermind.. Agent.find_each { |agent| Agent.reset_counters(agent.id, :recovery_points) }
[21:39:45] kallisti5: once set up, counter_cache should update that record automagically... right?
[21:41:05] RegulationD: has joined #RubyOnRails
[21:42:39] mdw7: has joined #RubyOnRails
[21:44:45] ktchup: has joined #RubyOnRails
[21:44:53] WilfredTheGreat: has joined #RubyOnRails
[21:50:33] IrishGringo: has joined #RubyOnRails
[21:52:31] kirillzh: has joined #RubyOnRails
[21:57:18] ftj: has joined #RubyOnRails
[21:57:47] Miron: has joined #RubyOnRails
[21:57:57] stannard: has joined #RubyOnRails
[21:58:06] pawnbox: has joined #RubyOnRails
[21:58:35] nibbo: has joined #RubyOnRails
[22:01:19] mdw: has joined #RubyOnRails
[22:03:54] _djbkd: has joined #RubyOnRails
[22:06:31] manfrin: has joined #RubyOnRails
[22:07:14] ktchup: has joined #RubyOnRails
[22:13:19] claytonzaugg: has joined #RubyOnRails
[22:13:47] shmilan: has joined #RubyOnRails
[22:14:31] stannard: has joined #RubyOnRails
[22:14:44] roshanavand: has joined #RubyOnRails
[22:15:22] baweaver: has joined #RubyOnRails
[22:15:57] jaequery: has joined #RubyOnRails
[22:16:55] acetoxy: has joined #RubyOnRails
[22:18:23] htmldrum: has joined #RubyOnRails
[22:19:08] gbgdev: has joined #RubyOnRails
[22:24:52] sevenseacat: has joined #RubyOnRails
[22:27:31] Technodrome: has joined #RubyOnRails
[22:27:43] Technodrome: need a very simple blog section, roll my own or try one of these engines?
[22:27:54] Technodrome: only fear of these engines is that they are doing too much and might get in the way
[22:28:14] Arcaire: [2015-04-29T16:50:13+1000] <[tyrant]> i like ror
[22:28:14] Arcaire: [2015-04-29T16:50:18+1000] <Radar> Ok, going on ignore now.
[22:28:21] Arcaire: The one truly unacceptable thing in Radar's world: Liking RoR.
[22:28:39] ensyde_: has joined #RubyOnRails
[22:28:46] Ropeney: has joined #RubyOnRails
[22:28:49] drale2k: Ruby is missing completely from the Stackoverflow developer survey 2016, damn https://stackoverflow.com/research/developer-survey-2016
[22:28:49] baweaver: welcome to enlightenment Arcaire
[22:28:59] Radar: drale2k: RIP Ruby
[22:29:09] drale2k: time for java
[22:29:13] drale2k: see you in #java
[22:29:13] lxsameer: has joined #RubyOnRails
[22:29:13] lxsameer: has joined #RubyOnRails
[22:29:35] Radar: I'll be over in #elixir-lang when you finally realise in 5yrs time it is the best language.
[22:29:55] Arcaire: drale2k: ...?
[22:29:58] baweaver: ACTION is already in #scala and #apache-spark
[22:30:03] Arcaire: 8.9%. It's second-to-last.
[22:30:29] Arcaire: It was 8.0% in 2015.
[22:30:37] drale2k: Arcaire: i just saw it in "Technologies"
[22:30:42] passion8: has joined #RubyOnRails
[22:30:54] drale2k: was missing from "Most Popular Technologies per Dev Type"
[22:31:02] akshat: has joined #RubyOnRails
[22:31:20] roshanavand: has joined #RubyOnRails
[22:31:32] snowy: has joined #RubyOnRails
[22:31:39] drale2k: Radar: you serious about elixir? It looked good when i watched a tutorial on YT a year ago or so
[22:32:54] sevenseacat: elixir is awesome.
[22:33:07] sevenseacat: ACTION lurks in #elixir-lang
[22:33:24] Arcaire: Elixir is ok.
[22:33:28] drale2k: they list JS and AngularJS separately ?
[22:33:28] Arcaire: ACTION also lurks in #elixir-lang
[22:34:17] ascarter: has joined #RubyOnRails
[22:34:27] jorrin: has joined #RubyOnRails
[22:35:02] banister: has joined #RubyOnRails
[22:35:15] Arcaire: https://stackoverflow.com/research/developer-survey-2016#technology-desktop-operating-system
[22:35:17] Arcaire: ayyyyyyyyy
[22:35:41] manfrin: has joined #RubyOnRails
[22:35:51] voidDotClass: has joined #RubyOnRails
[22:35:57] jottr_: has joined #RubyOnRails
[22:35:59] sevenseacat: yeah its sprising
[22:36:02] sevenseacat: surprising even
[22:36:28] sevenseacat: though its really only because windows is becoming more fragmented, that will consolidate over time to windows 10
[22:37:06] Arcaire: Probably, yeah.
[22:37:42] aloneintheworld: has joined #RubyOnRails
[22:38:01] sevenseacat: also, fucking windows XP people - MOVE ON
[22:38:19] baweaver: most correlated: Javascript, AngularJS
[22:38:22] baweaver: you don't say
[22:39:01] baweaver: second only to JavaScript, Node.js
[22:39:18] sevenseacat: I am happy to see linux with such a high percentage
[22:39:27] sevenseacat: even though thats also fragmented between distros
[22:41:05] baweaver: 10% of respondents self-identified as Ninjas. Real ninjas don’t tell you they’re ninjas. They just sneak up on you and slit your throat, which generally constitutes "hostile workplace environment."
[22:41:32] drale2k: top paying tech worldwide "Dart" on 2nd place rly? That's just Google paying here or
[22:41:58] baweaver: Google has some pretty dang high salaries
[22:43:16] jstransky: has joined #RubyOnRails
[22:43:23] golgaroth: has joined #RubyOnRails
[22:43:30] quazimodo: has joined #RubyOnRails
[22:43:32] sevenseacat: I was also surprised at the breakdown of years of experience - i thought most people would be in the 11+ bracket, though that may be my bias
[22:43:36] quazimod1: has joined #RubyOnRails
[22:43:51] BBHoss: has joined #RubyOnRails
[22:44:07] Cache_Money: has joined #RubyOnRails
[22:44:43] drale2k: sevenseacat: haha naa
[22:44:56] _djbkd: has joined #RubyOnRails
[22:45:14] drale2k: wtf Notepad ++ is the most popluar Dev Environment https://stackoverflow.com/research/developer-survey-2016#technology-development-environments
[22:45:17] _djbkd: has joined #RubyOnRails
[22:46:24] sevenseacat: I know a lot of people that use it.
[22:47:21] Ropeney: its so good, i use Wine and notepad++ on linux
[22:47:42] VeryBewitching: ACTION cringes.
[22:47:56] uglybandersnatch: has joined #RubyOnRails
[22:47:59] VeryBewitching: If I'm on Windows, Sublime 3, on Linux an IDE or Kate
[22:48:43] Arcaire: Ropeney: What?
[22:48:46] Arcaire: You can't be serious.
[22:49:31] pluralism: has joined #RubyOnRails
[22:49:48] Ropeney: gotta use what ya love
[22:50:38] Arcaire: Atom best.
[22:51:12] _Tariq: has joined #RubyOnRails
[22:52:29] drale2k: Notepad :D
[22:54:27] Arcaire: >a text editor where tabs are tabs
[22:56:26] choke: has joined #RubyOnRails
[22:57:04] Arcaire: sevenseacat: lol
[22:57:14] sevenseacat: Arcaire: yeah
[22:57:19] sevenseacat: ACTION rebel
[22:59:13] Arcaire: sevenseacat: no ops there?
[22:59:22] sevenseacat: dont really care tbh.
[22:59:42] Devalo: has joined #RubyOnRails
[23:01:22] trosborn: has joined #RubyOnRails
[23:02:15] mdw: has joined #RubyOnRails
[23:10:21] hnanon: has joined #RubyOnRails
[23:10:29] jottr_: has joined #RubyOnRails
[23:11:01] mdw: has joined #RubyOnRails
[23:11:26] hnanon: I'm trying to do this within a div tag: style="background: url(<%= image_path 'map-city.png' %>);
[23:11:51] hnanon: However, the image is not being displayed. I do see the path in the url, though.
[23:12:58] Linell: has joined #RubyOnRails
[23:13:02] RickHull: has joined #RubyOnRails
[23:13:03] mdw: has joined #RubyOnRails
[23:13:06] sevenseacat: sounds like a css issue
[23:13:17] RickHull: has left #RubyOnRails: ()
[23:13:26] hnanon: The source shows:
[23:13:34] hnanon: style=" background:="" url(="" assets="" map-city-20510966bf616d62bca071598df1dc207d32cf12811ecb3272c6a2d470ef7c63.png);"=""
[23:13:45] Arcaire: what the fuck
[23:13:49] sevenseacat: thats not correct
[23:14:00] sevenseacat: please gist your code
[23:14:01] Linell: I'm using rails as an API for a react front end, with Devise for authentication. How can I change the link for resetting the user passwords?
[23:14:04] hnanon: I'm not sure what's causing it.
[23:14:08] Linell: And then how should I format the request to actually set the passwords? It looks like a GET request, but I can't seem to figure ou the right params.
[23:14:21] Arcaire: Linell: POST.
[23:14:37] Arcaire: Any interaction that mutates data should always, always be a POST request.
[23:14:54] sevenseacat: mutates data or changes state
[23:14:56] PedramT: has joined #RubyOnRails
[23:15:02] Linell: POST to auth/password/edit ? With password, password_confirmation, and the token?
[23:15:11] Linell: Awesome, thanks!
[23:15:21] y2mq37: has joined #RubyOnRails
[23:15:22] kirillzh: has joined #RubyOnRails
[23:15:46] hnanon: should I be using the image_path helper for that?
[23:15:55] Linell: What about changing the URL that it directs to? I'd like it to direct to somewhere on the front end with that token for them to send back to me later.
[23:16:07] drale2k: what about PUT? PUT mutates
[23:16:16] sevenseacat: hnanon: please gist your code
[23:16:28] sevenseacat: drale2k: browsers do not support PUT.
[23:17:51] rickmasta: has joined #RubyOnRails
[23:17:54] hnanon: sevenseacat: https://gist.github.com/anonymous/ebdd56d41a1087f8ae4f
[23:18:08] hnanon: No...thank you.
[23:18:39] sevenseacat: hnanon: you're including a style attribute inside a class attribute. thats not valid.
[23:18:48] sevenseacat: style is a separate attribute.
[23:19:01] hnanon: Yes, of course. Thanks for catching that.
[23:19:05] Arcaire: Is there any reason why you're taking this route instead of more or less hard-coding this?
[23:19:09] sevenseacat: the syntax highlighting was a nice giveaway that something wasnt right :)
[23:19:12] Arcaire: There's no reason for this Erb preprocessing.
[23:19:26] hnanon: Arcaire: the background will be dynamic.
[23:21:13] bePolite: has joined #RubyOnRails
[23:22:00] Arcaire: To be honest I'd use JavaScript for that.
[23:22:12] sevenseacat: i wouldn't. what hnanon is doing is okay.
[23:22:24] euphoriaa: has joined #RubyOnRails
[23:22:31] Linell: So when issuing that POST, I get a route not defined error. I've made a gist of `rake routes | grep password`
[23:22:34] Linell: https://gist.github.com/Linell/199b10e170702cc4477b
[23:22:37] euphoriaa: Hi everyone, I understand it is best practice to store datetimes in UTC within the models. I am writing a calendar for appointments and want to display all times from my models in EST. Is it possible to ignore DST and always be UTC - 5 hours (so appointments aren't off by 1 hour) or am i missing something?
[23:22:49] Radar: "ignore DST"
[23:22:51] Linell: I inherited this codebase and I'm not postive what all has been done. Is something with devise just jacked up?
[23:22:55] Radar: What could possible go wrong
[23:23:56] VeryBewitching: Linell: There's no POST to that route
[23:24:09] VeryBewitching: Linell: It's a GET route
[23:24:13] Linell: Right. Earlier someone mentioned that to reset the password I should be POSTing to it.
[23:24:49] VeryBewitching: You can PATCH or PUT, those might be the routes you're seeking.
[23:25:49] Linell: Huh. Earlier I must have been doing something wrong, the get request didn't do anything then. Now it attempts to redirect to /omniauth/password.
[23:25:53] Linell: VeryBewitching: thank you for your help!
[23:26:06] VeryBewitching: You can POST to the same URI you can PATCH/PUT to. I would read about https://github.com/plataformatec/devise
[23:27:42] VeryBewitching: If you're Devise install is configured for omniauth, I don't know how Devise handles a password update (if at all.)
[23:28:00] VeryBewitching: Man my English is terrible today. s/you're/your
[23:29:23] Oliphaunte: has joined #RubyOnRails
[23:29:52] awasum_: has joined #RubyOnRails
[23:30:12] Linell: From what I can tell, issuing a POST to /auth/password with the email and a redirect_url actually sends the email. Which is great, because that was going to be my next question.
[23:30:36] Linell: Buuut that still doesn't actually let me reset it, once I have the token. It's probably something in the omniauth stuff.
[23:31:21] awasum__: has joined #RubyOnRails
[23:32:52] VeryBewitching: I'm willing to bet that the password is changed through the provider.
[23:33:36] beauby: has joined #RubyOnRails
[23:34:22] Linell: Well you have the ability to sign up via LinkedIn _or_ through local auth
[23:34:34] Linell: but I bet that's what that /omniauth/password is attempting to do
[23:36:30] awasum: has joined #RubyOnRails
[23:39:16] pex: has joined #RubyOnRails
[23:39:39] baweaver: has joined #RubyOnRails
[23:40:36] pex: Hi guys. Following case: `1.week.ago.utc #=> 2016-03-11 00:36:49 UTC` and `1.minute.ago.utc #=> 2016-03-17 23:35:54 UTC` why the heck is `1.week.ago.utc` in wrong timezone?
[23:41:04] pex: I am using Rails version 4.2.5.1
[23:42:35] sevenseacat: its not, it's UTC?
[23:42:37] RegulationD: has joined #RubyOnRails
[23:43:28] one_zero: has joined #RubyOnRails
[23:44:11] pex: Why should one minute ago in utc be … 23:36 and one week ago in utc be … 00:37
[23:44:54] DLSteve: has joined #RubyOnRails
[23:45:03] sevenseacat: is your local timezone experiencing a DST switch?
[23:45:42] sevenseacat: then remove the utc part and compare the times
[23:46:08] speakingcode: has joined #RubyOnRails
[23:46:27] sevenseacat: honestly, the world should just not use dst imo
[23:46:58] pex: there's no dst currently. It's either in april or september
[23:47:13] pex: plus: utc shouldnt care
[23:47:27] sevenseacat: utc doesnt care, but the conversion from your local timezone to utc does
[23:47:37] sevenseacat: so you're not actually experiencing a DST switch?
[23:47:39] uglybandersnatch: has joined #RubyOnRails
[23:47:51] choke: has joined #RubyOnRails
[23:47:55] sevenseacat: in the last week
[23:48:38] pex: Wait a seconds.. afaik the application runs in zone PDT
[23:49:01] sevenseacat: ok, whatever timezone the app is running in, have *they* experienced a dst switch in the last week?
[23:49:06] pex: let me check US time zones
[23:49:25] VeryBewitching: We went ahead one hour.
[23:49:31] VeryBewitching: In EST anyway, PDT is likely the same.
[23:49:57] VeryBewitching: Also, UTC is a standard, not a time zone.
[23:50:09] pex: You saved my day. I was almost giving up. Such a fuckup...
[23:50:11] sevenseacat: there we go. 1.week.ago is actually one week plus or minus that extra hour
[23:50:27] sevenseacat: pex: timezones and DST will kill the best of us, don't worry.
[23:50:50] pex: Still strange: 1.week.ago.utc should really not care about the application's time zone
[23:51:14] sevenseacat: it does, because 1.week.ago is in the app's timezone, then it converts it to DST
[23:51:16] quazimodo: has joined #RubyOnRails
[23:51:17] quazimod1: has joined #RubyOnRails
[23:51:48] sevenseacat: and the app has moved timezone offsets :D
[23:52:07] pex: Ok, thanks guys!
[23:52:27] sevenseacat: ...and there goes my good mood at having helped someone.
[23:53:18] pwnd_nsfw: poor sevenseacat
[23:53:31] fedexo: has joined #RubyOnRails
[23:54:04] akshat: has joined #RubyOnRails