cocoon icon indicating copy to clipboard operation
cocoon copied to clipboard

Fix for issue #402 - Change text links to buttons

Open p12y opened this issue 8 years ago • 4 comments

Changed the text links in link_to_remove_association and link_to_add_association to buttons. I also updated the specs to suit this.

p12y avatar Jan 24 '17 18:01 p12y

Thank you for your effort in this PR. I preferred if you had reached out first, because you now just changed all links to buttons, that is not what I had in mind (not clear from the explanation in the issue, I understand).

I am not going to merge this, because this is not backward compatible at all.

You do not see the problem that all methods are called link_to_... and then suddenly generate buttons?

I want the current functionality to remain the same, and if the user wants a button, they should call an alternative method button_to_add_association or button_to_remove_association. I have already started implementing this, trying to duplicate as least code as possible.

If you are willing to work on it further, I would appreciate it. But I understand if it now works perfectly for you. Otherwise I will try to finish it later this week.

nathanvda avatar Jan 24 '17 23:01 nathanvda

... and yes I need to fix the travis ci build, e.g. rubinius is always giving me troubles, and I try to run the build against rails 3 and rails4 (I still have to add rails 5), and against a range of ruby versions, some of which are outdated.

nathanvda avatar Jan 24 '17 23:01 nathanvda

Thanks for the feedback @nathanvda. I understand you completely now. That would make a lot more sense that way for sure. If you don't mind I'll have another stab at it tomorrow and I'll make sure to avoid any unnecessary repetition.

p12y avatar Jan 25 '17 03:01 p12y

@nathanvda Do you think you can use this? I created separate methods for link_to and button_to. I updated the specs which are all passing on my machine.

p12y avatar Jan 27 '17 21:01 p12y