Giter Club home page Giter Club logo

Comments (11)

shioyama avatar shioyama commented on May 12, 2024 2

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.

shioyama avatar shioyama commented on May 12, 2024

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.

stevenwoudstra avatar stevenwoudstra commented on May 12, 2024

The last changes were 2 months ago but i don't know of a better alternative yet.

from mobility.

shioyama avatar shioyama commented on May 12, 2024

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.

shioyama avatar shioyama commented on May 12, 2024

Closing, if there is more interest in this I could re-open it.

from mobility.

Rwobbema avatar Rwobbema commented on May 12, 2024

Support for Friendly ID would be great!

from mobility.

shioyama avatar shioyama commented on May 12, 2024

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.

stevenwoudstra avatar stevenwoudstra commented on May 12, 2024

Okee i will go and test it on monday.

Thanks a lot ^^

from mobility.

shioyama avatar shioyama commented on May 12, 2024

@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 😄 Thanks for the suggestion.

from mobility.

stevenwoudstra avatar stevenwoudstra commented on May 12, 2024

I implemented the new gem yesterday and it is working like a charm thanks a lot ^^

from mobility.

shioyama avatar shioyama commented on May 12, 2024

Great to hear!

from mobility.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.