Page 1 of 1
[16:53:31] godzirra: Hey guys. If I have an app/views/organizations/index.html.erb, and a `def index; end`, why would I not be rendering it? It's telling me server can't connect, even though I see in the server logs that it's conencting and returning a 204.
[16:55:37] godzirra: It's like it's caching when the server had a problem before, and won't stop it. It's weird.
[16:57:41] godzirra: It's returning a 204, but not the index.html.erb in app/views/orginzations/index.html.erb
[17:11:06] godzirra: Yeah, I've been googling, but I haven't found anything. I'm likely not searching for the right things.
[17:12:29] godzirra: Hmm.. looks like it may be a rails 5 thing where it returns a 204 if you don't have a render method?
[17:14:32] godzirra: Okay. That's the only thing I've really found so far. I'm so confused, this seems like it should be super trivial.
[17:16:05] godzirra: When I add a 'render :index', I get a 200 now, but I still don't get my template. :/
[17:19:54] godzirra: It doesn't apparently matter what I add after render, it always returns a 304 with no content
[18:41:30] godzirra: Can anyone tell me why I'm not getting my view rendered when I go to the endpoint? The gist of the controller and logs is here: https://gist.github.com/slooker/6a26071a2fb239a995aa09fa2e13d547 The directory structure for my view is here: https://www.dropbox.com/s/j0wqiu0z5wl7xz5/Screenshot%202018-03-26%2013.00.47.png?dl=0
[01:54:25] godzirra: Hey guys. How come DateTime.parse("10/13/1994") says invalid date, but 10/12/1994 doesn't/
[01:55:43] godzirra: Is there a way to tell it it's actually doing month/day/year because american dates are dumb?
[01:58:20] godzirra: Nevermind, I figured it out. Pretty much as soon as I realized it was day/month/year...
[18:29:16] godzirra: If I want to do something to data I'm returning as part of a render json call, how do I do that? I'm just trying to format the date in the object I'm returning.
[18:38:55] godzirra: slash_nick: Its an AR object that I'm rendering with render :json. I tried just d oing inspection.date = inspection.date.gsub!(/T.*/, '')
[18:44:24] godzirra: So if I have a methods: special_date_format, how does it know to transform inspection.date?
[19:11:24] godzirra: Can anyone suggest a trivial way to serve up the date in an object formatted with strftime?
[19:12:39] godzirra: Here's my json and my code: http://pastebin.com/1tJYbRTf I just can't figure out how to fix the date before rendering.
[19:25:43] godzirra: https://gist.github.com/slooker/eea907dbcd5afc256b82 is my paste. Can anyone tell me a trivial way to format a date that is part of an object before rendering the object in json?
[19:46:49] godzirra: bricker`work: I'm still reading through, but how do I render the json after I put it through jbuilder?
[03:27:38] godzirra: aAnyone have any idea what channel I'd go to for help figuring out a DNS issue?
[03:28:06] godzirra: Yeah, I'm a volunteer for a volunteer organization. That's not going to happen.
[05:05:18] godzirra: Can anyone tell me how to allow an id with a period in it? I'm trying to pass a latitude longitude but its not working. Do I need to do it as a post instead of a get?
[05:32:11] godzirra: Not sure if anyone's alive. I've not seen anyone talk in 25 minutes since I joined.
[05:32:47] godzirra: Can anyone tell me how to allow an id with a period in it? I'm trying to pass a latitude longitude but its not working. Do I need to do it as a post instead of a get?
[03:45:19] godzirra: Hi guys. Can anyone take a look at http://pastie.org/8504430 and tell me what I'm doing wrong? It keeps telling me "uninitialized constant FashionController::Collection", even though I've got a Collections.rb model that is "class Collections < ActiveRecord::Base", Do I need to require my models rb files in my controller or something?
[04:01:33] godzirra: s2013 & Scient, that was the problem, thank you. Is there a way to tell why I'm getting a constraint error on insert for my model though?
[04:03:31] godzirra: https://gist.github.com/anonymous/d3757dddbc312d7079d4 is the error and the code that it says its erroring on.
[04:05:26] godzirra: Because I need the id from the actual json query I'm doing, not the id its assigning automagically.
[04:06:25] godzirra: The only thing on the table I'm doing out of the ordinary is setting an index on the id