oliver__

Activity Graph

Page 1 of 1

2016-05-02

[03:14:29] oliver__: has joined #RubyOnRails
[03:14:29] oliver__: has joined #ruby

2016-04-25

[05:37:18] oliver__: has joined #RubyOnRails
[05:37:18] oliver__: has joined #ruby
[06:45:09] oliver__: Ping timeout: 276 seconds

2016-03-21

[04:47:32] oliver__: has joined #RubyOnRails
[04:47:32] oliver__: has joined #ruby

2016-03-20

[03:31:08] oliver__: has joined #RubyOnRails
[03:31:08] oliver__: has joined #ruby
[03:47:54] oliver__: Remote host closed the connection
[07:30:49] oliver__: has joined #RubyOnRails
[07:30:49] oliver__: has joined #ruby
[14:50:23] oliver__: Remote host closed the connection

2016-02-19

[06:46:24] oliver__: has joined #RubyOnRails
[06:46:24] oliver__: has joined #ruby

2015-08-09

[08:21:09] oliver__: has joined #RubyOnRails
[08:21:09] oliver__: has joined #ruby
[09:30:37] oliver__: Remote host closed the connection
[12:21:42] oliver__: has joined #RubyOnRails
[12:21:42] oliver__: has joined #ruby
[13:35:02] oliver__: Remote host closed the connection
[13:53:20] oliver__: has joined #ruby
[13:53:21] oliver__: has joined #RubyOnRails

2013-09-14

[10:40:38] oliver__: DaniG2k: I think it should be builder.text_field
[10:40:45] oliver__: and builder. ... etc
[10:40:51] oliver__: in edit.html.erb
[10:41:16] oliver__: but if that is correct, then also saving educational experiences shouldn't work
[10:44:52] oliver__: nope, it should see the _destroy attribute passed in
[10:45:04] oliver__: and you have allow_destroy in your accepts_nested_attributes
[10:45:17] oliver__: so thats the model/controller part seems ok
[10:45:30] oliver__: you could inspect the DOM after you click remove
[10:45:40] oliver__: find the hidden destroy input and check if its value is really getting set to 1
[10:46:06] oliver__: pretty much everywhere where its like "f."
[10:46:09] oliver__: inside the fields_for block
[10:46:22] oliver__: jammanbo: yeah but weird that saving is working right?
[10:48:12] oliver__: its 5'oclock somewhere right?
[10:48:41] oliver__: DaniG2k: yeah that looks better
[10:48:44] oliver__: lemme see what could be wrong
[10:49:25] oliver__: yeah that seems to be correct
[10:51:01] oliver__: DaniG2k: try to convince yourself now its not the JS
[10:51:17] oliver__: add like alert inside the $(document).on 'click', 'form .remove_fields', (event) ->
[10:51:21] oliver__: make sure its getting fired
[10:51:31] oliver__: maybe jquery isn't loading for some reason
[10:51:56] oliver__: check the post that rails is receiving, make sure _destroy is really set to 1 in the params
[10:52:50] oliver__: that could be it... but i think 'hidden' elements will still post
[10:53:58] oliver__: jammanbo might have a point
[10:54:05] oliver__: worth a try
[10:54:17] oliver__: but then the link will have to be moved as well in order for it to still work with the JS
[10:54:41] oliver__: can you paste the result of a post from that form?
[10:54:53] oliver__: where you have tried to remove a element?
[10:55:18] oliver__: I want to see something like {... _destroy => 1} in it
[10:55:44] oliver__: started POST for ...
[10:55:48] oliver__: something along those lines
[10:56:04] oliver__: and there will be a line with the params that rails is receiving
[10:56:57] oliver__: interesting
[10:57:22] oliver__: i havent messed around with rails 4 yet
[11:01:07] oliver__: probably both
[11:04:24] oliver__: Do a migration to add comment_id:integer on comments
[11:04:42] oliver__: And then has_many :replies, class_name: "Comments", foreign_key: "comment_id"
[11:04:59] oliver__: and belongs_to :comment, class_name: "Comment", foreign_key: "comment_id"
[11:05:06] oliver__: might be some typos there
[11:05:30] oliver__: DaniG2k: cool cool :) good luck
[11:18:21] oliver__: inline translation editing by injecting ajax forms into the t() method when in some kind of administrator mode
[11:18:42] oliver__: maybe already exists
[11:19:06] oliver__: maybe i already have it in a tangled up form and i wish there was a nice gem for it