state-machines / state_machines

Adds support for creating state machines for attributes on any Ruby class
https://github.com/state-machines/state_machines
MIT License
814 stars 91 forks source link

Localization / input collection #70

Closed seliverstov-maxim closed 5 years ago

seliverstov-maxim commented 5 years ago

Hi. I try to use state_machines for my project. Could you please explain, are there collection_helpers for forms and an integration with I18n?

Thank you.

seliverstov-maxim commented 5 years ago

I gues something like this: some_user.status_transitions.map { |e| [e.to, e.to_name] } for input_collection building

rafaelfranca commented 5 years ago

Thank you for the issue. There are no helpers for that. Neither integration with I18n. You will have to build yourself.