ryanb / nested_form

Rails plugin to conveniently handle multiple models in a single form.
MIT License
1.79k stars 505 forks source link

adding a 'disabled' class to a link will... disable that link #297

Closed dgbrown closed 10 years ago

dgbrown commented 10 years ago

Needed this functionality for a page I`m working on, thought the solution was decently clean. I would love to hear your thoughts on why this is/is not needed, and if there would be a better way to achieve the same end result.

sunny commented 10 years ago

Did you try adding a disabled argument instead of a class? It should do the same thing and it is standard HTML, will not trigger click events and probably won't need any change inside nested_form.

dgbrown commented 10 years ago

I was not that smart at the time, but I've since started doing things the right way. Thanks for the tip :smile_cat: