ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

Will Cosgrove

I got tired of writing verbose stimulus data attributes. Helper to the rescue! The return value can be splatted into a data hash, and `mix`ed together if you have multiple controllers.

@willcosgrove oh man, if you don't make this a gem, I will.
This is amazing!

@willcosgrove why is the binding necessary?

This looks awesome

@soulcutter because `for` is a keyword. @joeldrapper taught me this trick. It’s nice when you want a method api that uses reserved words like for, or class.

@willcosgrove ohhhhhhh, that IS a neat trick! Thanks for passing it along