jquery-nested_attributes
jquery-nested_attributes copied to clipboard
Turn this into a gem
Are you guys keen on turning this into a gem? Would makes it easier to promote as a substitute to nested_form. I am willing to do it :D
@lulalala This was on the roadmap a while back, but then https://github.com/nathanvda/cocoon reached a point of maturity where I wasn't able to justify what new/different features we'd be bringing to the table with jquery-nested_attributes
...
I liked the fact that jquery-nested_attributes
is unobtrusive, which means I won't need a custom version of form_for
or link_to
for it to work. I think cocoon is not like this?
I am willing to gemify it, so it is just up to you :)
@lulalala sorry for the delay in getting back to you! Are you thinking we would just use the gem as a means to distribute the JS file, or are there other integrations with Rails you had in mind?
I was thinking in terms of ease of distribution and updates. I think its charm is that I don't need to write code that's obtrusive.
@lulalala Thoughts on using bower + rails-assets for this?
Oh I think it is an excellent suggestion!
@lulalala Are you up for preparing this repo for bower submission? Once its up there we can update README
to recommend rails-assets
as preferred method of installation
Sure, I am not very familiar with the JS-side of things though. Currently I am trying to find out if it allowed using coffeescript as the main file or not.
By the way, what's your standard procedure for generating Javascript from Coffeescript?
@lulalala @patbenatar hey guys, are there still any advantages of this lib over cocoon
gem? I'm out of the context, sorry. The cocoon
gem is working 100% ok, especially if they will accept my PR https://github.com/nathanvda/cocoon/pull/301.
@lulalala what is the actual unobtrusive part here?
I really prefer this over cocoon for its simplicity. And I need to get it from bower, so I forked and pushed it: https://github.com/zavan/jquery-nested_attributes http://bower.io/search/?q=jquery-nested_attributes
I kept all of the attributions.
If you'd prefer to push it yourself just tell me and I will unregister it so you can do it :smile:
@killthekitten the fact that cocoon_nested_fields_for
is needed.
@zavan Nice, @patbenatar I think we are good to go?
@lulalala wow this one came out of the past! :)
Where are we good to go with this?
@patbenatar you mentioned that once this is on bower, the readme can be updated to recomment installing it through rails-assets as a gem right?
Ah right! @zavan thanks for pushing it to bower (and sorry I missed your message 2 years ago 👻). If you'd like to open a PR adding your bower link and rails-assets instructions to the README, I'd happily merge it in!