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 7698879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:20:49+00:00 2026-05-31T22:20:49+00:00

I have a little problem with my application rails and locale params. I successfully

  • 0

I have a little problem with my application rails and locale params.

I successfully enabled all my controllers’ routes in the routes.rb file with my :locale value between domain and controller in the URL.

When the controller need to show a sorting of many datas from one Table with the method “Data.find(:all)” or “Data.all” or custom condition to see all, I get a routing error.

If there is only une data filtered by an ID or ONE parameter to render only ONE data, all works fine.

In the logs I only see “500 internal error” and the error as I see on my site (development mod).

Here is the full error code:

No route matches {:action=>"edit", :controller=>"translation_english_words", :locale=>#<TranslationEnglishWord id: 1, data: "song", transvalue: "choubidoubop">}

The URL is: “http://domain/fr/translation_english_words&#8221; (:domain/:locale/:controller)

My controller is “translation_english_words” and has a table with same name in my database.

The table has 3 column, id:autoincrement, data:string, transvalue:string

I saw the part “:locale” in the route doesn’t contain the “fr” or “en” or other locale is must contain. and it just not contain data begining with “ and finishing with “ as all other params like “:action” and “:controller”

Actually I need locale just for detect the wished language.

Not using any “t(:value)” for translation atm.

This error is not only on this controller, but on EACH controllers that require sorting more than one UNIQUE scoped data from any table.

Someone have any idea about how to solve my problem?

  • 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-31T22:20:50+00:00Added an answer on May 31, 2026 at 10:20 pm

    Ok everyone, I found “why” the route failed.

    It seem this caused the route to break:

    Controller:

    <pre>
        def index
        @translation_english_word = TranslationEnglishWord.all
        end
    </pre>
    

    View:

    <pre>
        &lt;% for translation_english_word in @translation_english_word %&gt;
        &lt;%= link_to "Edit", 
        edit_translation_english_word_path(translation_english_word) %&gt;&lt;br /&gt;
        &lt;% end %&gt;
        &lt;%= link_to "New English Translation", new_translation_english_word_path %&gt;
    </pre>
    

    The paths that call edit_translation_english_word_path and new_translation_english_word_path seem to break the route.
    I don’t know Why, but removing them, resolved my issue, but it still isn’t clear why this happens, and I’d like to understand why if anyone can comment to me?

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

Sidebar

Related Questions

I have a little problem with a query. I'm selecting data using the between
i have little problem in using my application application having msaccess database if i
I have multithreaded application and I've got a little problem when application ends: I
I'm currently developing a web application and have run into a little problem. I'm
I've got yet another deployment problem. What I have: little Windows Forms application that
I have little problem with my iphone application. I have such classes and interfaces:
I have a little problem with AlertDialogs in my application. So here is my
I have little problem in my iPhone application code but can not identify. please
I have a little problem with a simple console application in which i would
I have a little problem when I try to run my Android application. The

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.