kevr

Activity Graph

Page 1 of 2 | Next »

2016-07-29

[02:30:40] kevr: Ping timeout: 250 seconds
[04:03:12] kevr: has joined #RubyOnRails
[04:29:49] kevr: Ping timeout: 252 seconds
[06:16:34] kevr: has joined #RubyOnRails
[07:51:05] kevr: Quit: WeeChat 1.5

2016-07-28

[04:50:28] kevr: has joined #RubyOnRails
[04:50:40] kevr: for some reason every single action happening in the rails server log is showing that it's happening twice
[04:50:49] kevr: rendering, database queries, everything
[04:51:07] kevr: is there a known fix to something like this, or why could this happen?
[04:51:31] kevr: i'm not sure, that's what im trying to find out
[04:51:40] kevr: there aren't any duplicate elements or anything
[04:52:43] kevr: yeah, the timestamps are exactly the same
[04:54:21] kevr: i think it might be a heroku thing
[05:00:12] kevr: pontiki: it was rails_12factor gem causing the issue
[05:00:23] kevr: so im only running it during production
[05:00:30] kevr: for heroku, and now its fine
[07:29:03] kevr: Ping timeout: 240 seconds
[07:38:12] kevr: has joined #RubyOnRails
[08:57:00] kevr: Ping timeout: 276 seconds
[16:08:31] kevr: has joined #RubyOnRails
[16:29:16] kevr: Ping timeout: 264 seconds
[17:32:58] kevr: has joined #RubyOnRails
[19:17:56] kevr: Read error: Connection reset by peer
[19:48:40] kevr: has joined #RubyOnRails
[20:38:15] kevr: Ping timeout: 250 seconds
[23:11:21] kevr: has joined #RubyOnRails

2016-07-19

[01:44:24] kevr: Ping timeout: 276 seconds
[03:03:49] kevr: has joined #RubyOnRails
[03:38:03] kevr: Ping timeout: 240 seconds
[03:57:19] kevr: has joined #RubyOnRails
[04:03:37] kevr: Ping timeout: 250 seconds
[04:06:26] kevr: has joined #RubyOnRails
[04:11:18] kevr: Ping timeout: 276 seconds

2016-07-18

[01:04:21] kevr: Ping timeout: 276 seconds
[01:05:29] kevr: has joined #RubyOnRails
[02:00:15] kevr: Ping timeout: 276 seconds
[04:12:59] kevr: has joined #RubyOnRails
[04:25:32] kevr: Ping timeout: 260 seconds
[04:30:27] kevr: has joined #RubyOnRails
[05:34:39] kevr: Ping timeout: 244 seconds
[05:44:56] kevr: has joined #RubyOnRails
[07:31:58] kevr: Ping timeout: 258 seconds
[15:22:33] kevr: has joined #RubyOnRails
[16:04:56] kevr: A question about rails + angular, angular is doing something behind the scenes and looking for angular.min.js.map, but i only have an angular.min.js, so it's not finding it
[16:05:06] kevr: what am i supposed to be doing here to use angular properly inside of rails (4)?
[16:20:39] kevr: maybe it's just using it while i'm using the development stage of the project
[19:59:49] kevr: So, I'm writing a small rest api for my application, and some of the routes take a POST request and return partials, this is so i can swap partials in and out of places dynamically using angular/ajax
[20:00:09] kevr: but when i request a partial, it doesn't have the csrf tokens in <head>, how should i go about providing csrf tokens in partials?
[20:01:12] kevr: or, can i do that somehow inside the controller action where i render the partial
[20:03:30] kevr: (i can pass a csrf token, just not sure what exact params to use)
[20:24:49] kevr: cnk: i guess the issue here was that angular wasn't submitting the needed token data, so there's a stackoverflow solution of storing a cookie of the token
[20:24:55] kevr: which seems clean and worked out
[20:25:14] kevr: cnk: i tried the helpers already :P

2016-07-17

[04:46:53] kevr: has joined #RubyOnRails
[04:55:13] kevr: I have this controller here. http://ix.io/14Aw/ruby
[04:55:56] kevr: And in there, args = { title: "blah", description: "blah", priority: 1 }
[04:56:47] kevr: I'm trying to understand why I receive a ForbiddeenAttributesError when I pass the data structure alone, but not when i 1. specifically pass each parameter manually or 2. do the same exact thing in rails console that's in the create action
[04:57:07] kevr: seems to only raise that error when it's being passed via form
[04:57:22] kevr: i've compared the data structures i've tested, and they seem to be absolutely the same
[04:57:55] kevr: (and yes, in the task model, title is a string, description is a string, and priority is an integer
[04:59:22] kevr: (i'm doing the conversion here for priority, because i have a <select> with options of values 0,1,2 and they're strings when passed
[04:59:34] kevr: so i changed it into an integer for proper typing)
[05:03:03] kevr: The exception gives me absolutely no context as to what failed, which is somewhat alarming
[06:19:51] kevr: Ping timeout: 276 seconds
[07:12:11] kevr: has joined #RubyOnRails
[10:27:32] kevr: Ping timeout: 260 seconds
[10:30:59] kevr: has joined #RubyOnRails
[11:26:16] kevr: Ping timeout: 252 seconds
[21:01:13] kevr: has joined #RubyOnRails
[21:19:04] kevr: What's wrong with this? http://ix.io/14Oj/ruby
[21:19:23] kevr: where params[:query] is "signed_in"
[22:05:15] kevr: Read error: Connection reset by peer
[22:43:50] kevr: has joined #RubyOnRails
[23:16:11] kevr: morning homie
[23:41:14] kevr: Ping timeout: 258 seconds
[23:47:57] kevr: has joined #RubyOnRails

2016-07-15

[01:17:33] kevr: has joined #RubyOnRails
[01:17:49] kevr: How can I remove a sunspot_solr installation?
[01:25:20] kevr: Ping timeout: 258 seconds
[03:11:08] kevr: has joined #RubyOnRails
[03:36:33] kevr: Ping timeout: 276 seconds
[04:03:53] kevr: has joined #RubyOnRails
[04:10:19] kevr: Ping timeout: 252 seconds
[04:20:03] kevr: has joined #RubyOnRails
[04:25:57] kevr: Ping timeout: 276 seconds
[04:32:52] kevr: has joined #RubyOnRails
[04:37:16] kevr: Ping timeout: 252 seconds
[06:05:08] kevr: has joined #RubyOnRails
[06:32:32] kevr: Ping timeout: 250 seconds

2016-07-14

[02:20:06] kevr: Ping timeout: 276 seconds
[06:14:36] kevr: has joined #RubyOnRails
[07:02:12] kevr: Ping timeout: 276 seconds
[07:07:33] kevr: has joined #RubyOnRails
[08:37:11] kevr: Ping timeout: 240 seconds

2016-07-13

[00:00:15] kevr: Ping timeout: 258 seconds
[00:27:51] kevr: has joined #RubyOnRails
[00:52:11] kevr: What would I look into to find out how to disable specific actions from a base controller in a derived controller?
[02:29:22] kevr: Ping timeout: 258 seconds
[03:56:54] kevr: has joined #RubyOnRails
[05:12:21] kevr: Ping timeout: 246 seconds
[14:46:28] kevr: has joined #RubyOnRails
[16:50:20] kevr: Ping timeout: 258 seconds
[17:46:18] kevr: has joined #RubyOnRails
[17:59:16] kevr: Ping timeout: 264 seconds
[18:22:40] kevr: has joined #RubyOnRails
[19:04:04] kevr: Ping timeout: 240 seconds
[19:05:24] kevr: has joined #RubyOnRails
[19:10:52] kevr: Ping timeout: 252 seconds
[19:26:10] kevr: has joined #RubyOnRails
[20:49:54] kevr: Ping timeout: 276 seconds
[21:17:21] kevr: has joined #RubyOnRails
[21:39:57] kevr: Ping timeout: 276 seconds
[21:47:24] kevr: has joined #RubyOnRails
[22:28:03] kevr: Ping timeout: 276 seconds
[22:38:08] kevr: has joined #RubyOnRails

2016-07-12

[01:54:58] kevr: has joined #RubyOnRails
[02:07:06] kevr: Ping timeout: 272 seconds
[02:11:59] kevr: has joined #RubyOnRails
[03:03:25] kevr: So, I'm trying to implement some fulltext searches in two of my models. One is an Ingredient model, which has a name. the other is a Recipe model, which has many ingredients. I'd like to fulltext search recipes with a list of ingredients and return recipes that have at least the list provided in their ingredients collection
[03:03:47] kevr: I've done it without fulltext searching, but i haven't been able to find fulltext implementations of this
[03:03:54] kevr: maybe i'm just looking with the wrong criteria on google
[03:24:11] kevr: Ping timeout: 240 seconds
[03:30:23] kevr: has joined #RubyOnRails
[04:10:46] kevr: Ping timeout: 258 seconds
[04:18:22] kevr: has joined #RubyOnRails
[04:53:51] kevr: Ping timeout: 240 seconds
[05:01:50] kevr: has joined #RubyOnRails
[05:12:40] kevr: Ping timeout: 272 seconds
[05:21:38] kevr: has joined #RubyOnRails
[05:35:59] kevr: Ping timeout: 244 seconds
[06:57:53] kevr: has joined #RubyOnRails
[07:21:52] kevr: Ping timeout: 272 seconds
[07:24:01] kevr: has joined #RubyOnRails
[08:25:23] kevr: Ping timeout: 250 seconds
[08:27:00] kevr: has joined #RubyOnRails
[08:46:07] kevr: Ping timeout: 244 seconds
[22:58:54] kevr: has joined #RubyOnRails
[22:59:17] kevr: Hello. How can I setup a route based on the group? i.e. in the Gemfile i can obviously `group :development do ... end`
[23:00:18] kevr: SteenJobs: indeed, thank you very much.
[23:01:59] kevr: > when i send :q, :w, and :wq everywhere because vim is ingrained in me. zzz
[23:50:07] kevr: baash05: usually it's better to just ask your question and see if anybody knows
[23:52:33] kevr: baash05: use a pastebin website, to show people your code
[23:52:51] kevr: baash05: that way your code pastes don't end up clobbering the channel, and it's in an organized place for people to view over time

2016-07-11

[00:23:15] kevr: has joined #RubyOnRails
[00:24:53] kevr: I'm passing a path, create_address_path, to a partial via <%= render "some/partial", data: create_address_path %>, and its actually working in an identical situation elsewhere, but for some reason in this area it's passing &#39; instead of a single quote
[00:24:57] kevr: which creates issues
[00:27:01] kevr: actually, i guess using raw(data) when referring to it in the partial works out, but i'm wondering why i need to use raw here and not in the other situation
[00:43:21] kevr: all the extensions are .html.erb, the full name of the partial is addresses/_search.html.erb
[00:44:00] kevr: I can use erb in the _search partial, i'm including it in two different locations at the moment, one of which works fine, the other fails
[00:46:09] kevr: Sure, but give me a minute, I think I might know why the issue is occuring, so I'm going to investigate for a minute
[00:49:49] kevr: jeromelanteri: I always give my thanks, but I don't give thanks until the conversation is coming to a close, so please don't assume that i'm not grateful, it's just that the conversation didn't come to an end yet.
[01:47:01] kevr: Read error: Connection reset by peer
[03:18:07] kevr: has joined #RubyOnRails
[05:02:42] kevr: Ping timeout: 276 seconds
[05:39:23] kevr: has joined #RubyOnRails
[05:53:02] kevr: Ping timeout: 260 seconds
[15:58:00] kevr: has joined #RubyOnRails
[19:46:42] kevr: Ping timeout: 276 seconds
[21:41:17] kevr: has joined #RubyOnRails
[22:33:27] kevr: Ping timeout: 260 seconds

2016-07-10

[00:39:45] kevr: How can I ensure that one javascript file is loaded before another one in assets, that is, b.js depends on a.js, and i think b.js is being loaded first
[00:42:08] kevr: matthewd: ah, indeed, i thought i wasn't supposed to mess with application.js much, but i can completely manage my dependencies there
[00:42:10] kevr: thank you
[00:42:18] kevr: good to know ;)
[00:42:20] kevr: all is well
[00:43:49] kevr: matthewd: is there a place where i should be placing javascript files that aren't inside the /app/assets/javascripts tree? i don't want to be loading this file twice for no reason
[00:44:12] kevr: actually, i can just look for where jquery_ujs is located.
[00:44:40] kevr: Hm, looks like it's not even in the project tree
[00:48:46] kevr: oh, fantastic.
[00:48:55] kevr: thanks for all your help, matthewd.
[01:52:06] kevr: Ping timeout: 246 seconds
[03:14:24] kevr: has joined #ruby
[03:14:24] kevr: has joined #RubyOnRails
[03:49:07] kevr: Ping timeout: 260 seconds
[03:52:57] kevr: has joined #ruby
[03:52:57] kevr: has joined #RubyOnRails
[05:30:00] kevr: Ping timeout: 272 seconds
[06:01:33] kevr: has joined #ruby
[06:01:33] kevr: has joined #RubyOnRails
[06:20:33] kevr: Ping timeout: 246 seconds
[06:56:34] kevr: has joined #ruby
[06:56:34] kevr: has joined #RubyOnRails
[07:41:06] kevr: Ping timeout: 272 seconds
[08:59:14] kevr: has joined #ruby
[08:59:14] kevr: has joined #RubyOnRails
[11:14:34] kevr: Quit: WeeChat 1.5

2016-07-09

[00:20:26] kevr: has joined #ruby
[00:20:26] kevr: has joined #RubyOnRails
[01:23:31] kevr: Ping timeout: 240 seconds
[02:52:38] kevr: has joined #ruby
[02:52:38] kevr: has joined #RubyOnRails
[03:27:00] kevr: Ping timeout: 276 seconds
[03:31:59] kevr: has joined #ruby
[03:31:59] kevr: has joined #RubyOnRails
[03:38:15] kevr: Ping timeout: 246 seconds
[04:03:42] kevr: has joined #RubyOnRails
[04:03:43] kevr: has joined #ruby
[04:34:39] kevr: Ping timeout: 244 seconds
[05:49:43] kevr: has joined #ruby
[05:49:43] kevr: has joined #RubyOnRails
[06:26:24] kevr: Ping timeout: 276 seconds
[07:35:56] kevr: has joined #ruby
[07:35:56] kevr: has joined #RubyOnRails
[08:50:52] kevr: Ping timeout: 264 seconds
[22:27:31] kevr: has joined #ruby
[22:27:31] kevr: has joined #RubyOnRails
[23:35:36] kevr: Ping timeout: 246 seconds
[23:37:49] kevr: has joined #ruby
[23:37:49] kevr: has joined #RubyOnRails

2016-07-08

[00:59:09] kevr: has joined #RubyOnRails
[00:59:21] kevr: has joined #ruby
[04:09:28] kevr: Ping timeout: 264 seconds
[06:05:58] kevr: has joined #ruby
[06:05:58] kevr: has joined #RubyOnRails
[07:32:52] kevr: Ping timeout: 264 seconds
[07:41:12] kevr: has joined #ruby
[07:41:12] kevr: has joined #RubyOnRails
[08:09:43] kevr: Ping timeout: 252 seconds
[20:56:30] kevr: has joined #RubyOnRails
[20:56:33] kevr: has joined #ruby
[23:01:17] kevr: Ping timeout: 260 seconds
[23:31:18] kevr: has joined #ruby
[23:31:18] kevr: has joined #RubyOnRails
[23:32:13] kevr: So, I want to define a class that has an internal Hash object, but I want the class to be able to read just like the Hash does
[23:32:41] kevr: let's say that the internal Hash is { :key => "value" }, I can access the key by Hash.key
[23:33:01] kevr: let's say that Object is the class that i'm wrapping around Hash, I'd like to be able to access Hash.key by Object.key
[23:33:14] kevr: but only for reading purposes, not modifying
[23:33:18] kevr: How can I achieve this?
[23:42:07] kevr: havenwood: thanks sir
[23:42:56] kevr: havenwood: however, one little issue, if i forward the whole method set it'll be able to behave as a hash, i assume, but i'd like to make it read-only, does def_delegator have a read-only setting?
[23:53:31] kevr: Ping timeout: 252 seconds

2016-07-07

[01:44:11] kevr: Ping timeout: 240 seconds
[03:22:06] kevr: has joined #RubyOnRails
[06:07:40] kevr: Ping timeout: 264 seconds
[06:13:58] kevr: has joined #RubyOnRails
[07:21:44] kevr: Quit: WeeChat 1.5

2016-07-06

[01:50:45] kevr: Ping timeout: 246 seconds
[22:42:56] kevr: has joined #RubyOnRails

2016-07-05

[20:50:07] kevr: Ping timeout: 252 seconds
[21:24:53] kevr: has joined #RubyOnRails
[21:53:21] kevr: Ping timeout: 244 seconds
[22:35:56] kevr: has joined #RubyOnRails