Save 36% for Black Friday! Learn more

Ask A Question

Notifications

You’re not receiving notifications from this thread.

[GET] Errors and Locales?

Ja Ku asked in General

So I'm dealing with an interesting but probably simple issue. Working on some Rails 2 stuff that was written by someone who has long been out of reach so I've been dusting it off on my own.

Someone who reviewed this said that since I use I18n and scope everything behind a locale that the routes are having trouble extracting the information needed which is to display a simple form in a modal. I'm not sure how to fix that because it's my first time dealing with internationalization. But I noticed that all the routes that have to do with this app are wrapped inside a code block:

scope "(:locale)", :locale => /en|pt/ do

Here's a GIST of the relevant pieces to this puzzle:
https://gist.github.com/anonymous/44794558ff5f4cc302eb9aac45657549

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.