Comments (11)
Done: https://github.com/shioyama/friendly_id-mobility
Gem: https://rubygems.org/gems/friendly_id-mobility
very lightly tested. Needs some specs. Please try it out and report back, it has only a few lines of code (that's all it seem Mobility needed to work, but I haven' tested it much).
from mobility.
It's not on the roadmap currently, so no plans to integrate it.
I would consider it, but FriendlyId does not appear to be currently maintained. Right?
from mobility.
The last changes were 2 months ago but i don't know of a better alternative yet.
from mobility.
Hmm ok, I saw the last commit dated Sep 2016, but you're right there's been action since then merging some commits.
Still, it's not very high priority TBH. If someone wants to give it a go, I could help with issues on the Mobility side. But my experience with Globalize makes me very hesitant to maintain gems with complex dependencies, and AR + (half-maintained) FriendlyId seems a bit risky to me.
from mobility.
Closing, if there is more interest in this I could re-open it.
from mobility.
Support for Friendly ID would be great!
from mobility.
Ok, I just released 0.2.0, which now includes slightly more than the first version. I've added tests to ensure that it should work as expected, both with untransalted base attribute (like the SimpleI18n module included by default with FriendlyId) and translated base attribute (like Globalize). Also, the integration supports any Mobility backend since it only depends on the common interface (so you could e.g. use it with jsonb-translated attributes, etc.)
I'm closing this since it's done 😄 If you see issues with the gem please post issues over there.
from mobility.
Okee i will go and test it on monday.
Thanks a lot ^^
from mobility.
@stevenwoudstra I realized that actually FriendlyId is a nice first extension for Mobility, since it's quite simple to do and a lot of people use it
from mobility.
I implemented the new gem yesterday and it is working like a charm thanks a lot ^^
from mobility.
Great to hear!
from mobility.
Related Issues (20)
- Error when ordering and selecting distinct on translated resource HOT 2
- Marks object as dirty even if nothing was changed in RichTextTranslation fields HOT 5
- Cache issue with JSONb (+locale_accessors) & ActiveRecord HOT 2
- Using a query method block does not automatically scope to i18n HOT 1
- Translated inputs are empty after failed form validation in a specific setup HOT 1
- Automatic ActionText `rich_text` detection failing when operating on locale-dependent mobility field HOT 1
- Any accepted way to store images working with active storage ? HOT 1
- Unique Validation didn't work with locale_accessors on every locales HOT 1
- Not compatible with FastGettext - request for string available locale support HOT 2
- Error when installing on Vitess MySQL db HOT 4
- The presence plugin doesn't work as expected HOT 1
- Destruction of record+translations fails, when model IDs are of the type "varchar(36)" (a UUID string) HOT 3
- accessor super method doesn't work with arguments like class.value(locale: :de) HOT 1
- ordering by specific locale HOT 2
- Add type checking plugin reference HOT 3
- eager_load and pluck builds the wrong query HOT 1
- `i18n` scope incompatible with `exists?` HOT 1
- validates presence: true failing with cache active HOT 3
- Empty content row is created in translation table. HOT 1
- No fixtures are generated / No doc on how to make them ourselves HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobility.