-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add dynamic helper instance methods #5
base: develop
Are you sure you want to change the base?
Conversation
Oh hi, globalize-accessors |
04817f4
to
aa50d9d
Compare
405ce5e
to
8a9dc4f
Compare
I've picked a few of the more generic fixes and updates into the develop branch. A rebase skipping those should get this into a state that could be merged. I like the idea of the dynamic accessor but personally I don't have a use case at the moment. If you think it's stable feel free to merge. Use in a form: Why not treat the hstore column like any other object/relation and make use of nested form/attributes? |
I just poked around, and this is another endeavor entirely. The main reason is that the locale is lower in the hierarchy than the attribute. So, with the stock form helpers, it would mean If we want to do that that means rolling out our own |
8a9dc4f
to
6de7354
Compare
I was trying to make a translation page (two languages side by side in a form) and I realized it was not possible to give
title_i18n["fr"]
to the form helper. So I set out on this great quest to make some dynamic helpers so I could usetitle_fr
whenI18n.locale == :en
, alas it's not that simple.So here it is, in all its WIP glory, so you can give your comments and maybe make this a real feature.