#RubyOnRails - 15 October 2017
« Back 1 day Forward 1 day »
[03:40:37] Technodrome: anyone here use react or vue with a rails app regularly? what can I expect here?
[10:32:26] dionysus69: I am migrating existing database to a new database, do I have to use same devise secret key for the passwords to properly decrypt?
[11:39:24] arefaslani: Who have been used jsonapi-rails gem to generate JSON API spec compatible API?
[15:47:49] gr33nw00d: Hi guys. Is it possible to use strong params in a CREATE to create a resource and a child resource? For example, I'd like to create a "Train Terminal" and a location in one request, like so: https://gist.github.com/otang/325269594c59b2210ef26aa0e6a106bc
[15:52:34] tbuehlmann: gr33nw00d: there's accepts_nested_attributes_for for your model and fields_for for your form
[16:20:39] gr33nw00d: tbuehlmann - I guess accepts_nested_attributes_for only works for creating? Ie. you can't patch one field on a nested accepts_nested_attributes_for model?
[16:24:44] gr33nw00d: Hmmm, this test is throwing other validation errors, like: "location.state can't be blank". https://gist.github.com/otang/e6a27dc9e976fa5bfd662340fd61118b
[16:28:06] gr33nw00d: This also works: `accepts_nested_attributes_for :location, update_only: true, allow_destroy: true`
[16:32:30] harrycs: Hi all, total noob here. I'm working on getting video upload to work via some js: https://www.codementor.io/tips/3348027127/upload-video-files-with-rails-paperclip-and-jquery-upload-file-library
[16:32:57] harrycs: I have it working, more or less, but the json response (more specifically, what i'm supposed to do with it) in the controller has confounded me
[16:33:49] harrycs: i render some json in the controller, but when the upload completes i get redirected to a page that just has the json as plaintext. i am sure i'm supposed to render that somehow, but i'm not really sure how
[16:35:09] harrycs: I think my JS file, which has an onSuccess function, is supposed to parse it and redirect, but i can't get it working
[20:44:15] upsy_9: hi what does this 'prefixes = [prefixes] if String === prefixes' what do the  mean?
[21:58:34] desnudopenguino: i'm having an interesting issue with form submission. I have a form as a partial on a view, If I try to submit it, nothing happens (the submit button appears active but doesn't do anything), but if I refresh the page it works fine the next time. And this keeps happening, so if I go back to the page again to enter more info, I have to refresh the page again before the form will actually submit