Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6576051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:27:47+00:00 2026-05-25T15:27:47+00:00

Using: Rails: 3.0.3 Friendly_id: 3.2.1 I am building a website with (currently) two locales,

  • 0

Using:

Rails: 3.0.3
Friendly_id: 3.2.1

I am building a website with (currently) two locales, :se & :en where I am using friendly_id to get SEO-friendly url.

Currently, it works fine but I am trying to get it to work with locales and end up in dead ends all the time.

What does work:

I have created friendly_id for name that currently exist in a cached_slug column. This works fine and I can both use Calculation.find(“calculation-name”) and get url:s with it e.g. domain.com/calculation-name

What doesn’t work:
After implementing this: http://rdoc.info/github/norman/friendly_id/master/FriendlyId/I18n
, I have now two columns slug_en & slug_se with translated versions of each friendly_id. I have also added the indices in that guide.

I can’t get my app to find them (neither by Calculation.find(“this-swedish-translation”) or by url domain.com/this-swedish-translation) though and I have Googled it thoroughly without luck.

I don’t know if I need to alter something in the model. Every attribute related to I18n at has_friendly_id gives me error messages, such as:

  • default_locale
  • locale

I cannot use attributes such as :use => slugged or :use => :locale etc either.

My first guess is that I am using a version that does not support I18n/locales? It is tricky to understand what the documentation is actually referring to…

My big question is though: What is wrong with my assumptions and/or code? Why can I not make my app use the slug_en & slug_es as it is supposed to work?

# Model
has_friendly_id :name, :use_slug => true, :max_length => 255, :approximate_ascii => true, :ascii_approximation_options => :latin
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:27:48+00:00Added an answer on May 25, 2026 at 3:27 pm

    This problem was solved by updating to 4.0.0. I still don’t understand why it didn’t work with the previous version (as far as I understand, it should).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'am using the friendly_id gem in my rails app, to create nice clean url's.
Using Rails ActiveRecord, am wanting to calculate the time between two datetime fields within
Using Rails I'm trying to get an error message like The song field can't
Using Rails, I would like to add: <span class='req'>&bull;</span> within my <label> tags in
I'm building a Rails application using Devise. Devise is all set up even omniauth.
My (rails 3.1) site currently does routing for objects using ids like so: /object/show/:id
I have a Rails blog using friendly_id for creating custom urls. The blog has
Using: Rails 3.0.3 Friendly_id: 4.0.0.beta11 I have create a fully working development version of
I'm using acts_as_taggable_on in rails and I'm trying to get a listing of all
I'm currently using the ruby-bitly gem to shorten links in a Rails app; however,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.