Coder Social home page Coder Social logo

Comments (11)

svenfuchs avatar svenfuchs commented on July 18, 2024

which version of routing_filter are you talking about? what's your rails version? and how did you set routing_filter up?

from routing-filter.

webhoernchen avatar webhoernchen commented on July 18, 2024

I use Rails 3.0.0.rc and routing_filter 0.1.6

Given the following Route-File:
AppName::Application.routes.draw do
filter :locale
...
end

from routing-filter.

kuroda avatar kuroda commented on July 18, 2024

Hi, webhoernchen

With Rails 3.0.9 and routinig_filter 0.2.4, I could not reproduce.

I want to know if you have still this problem.

from routing-filter.

watson avatar watson commented on July 18, 2024

Hi, I have the exact same issue. I'm running Rails 3.1.3 and routing-filter 0.3.0

from routing-filter.

macovsky avatar macovsky commented on July 18, 2024

same here: Rails 3.2.1 and routing-filter 0.3.0

from routing-filter.

macovsky avatar macovsky commented on July 18, 2024

but on Rails 3.1.3 + routing-filter 0.2.4 it works fine.

from routing-filter.

kuroda avatar kuroda commented on July 18, 2024

@watson, @macovsky

Thanks.

Reproduced on Rails 3.2.2 + routing-filter 0.3.0. Workaround is not yet found, though.

from routing-filter.

kuroda avatar kuroda commented on July 18, 2024

I found the cause of this issue.

The return value of request.path changed between the version 0.2.4 and 0.3.0.

When I get a page with /en/my/current/page on routing-filter 0.2.4, request.path returns /en/my/current/page. But, on routing-filter 0.3.0, it returns /my/current/page.

Because current_page? helper compares the given path and request.path, we get wrong result on 0.3.0.

Unfortunately, I've not found the way to fix it.

from routing-filter.

mjonuschat avatar mjonuschat commented on July 18, 2024

Could somebody hitting this issue on Rails 3.2 test the fix? According to my tests routing-filter now behaves the same on Rails 3.1 and 3.2

from routing-filter.

corneverbruggen avatar corneverbruggen commented on July 18, 2024

Using Rails 3.2.2 - this fix solves the problem.

Thanks!

from routing-filter.

mjonuschat avatar mjonuschat commented on July 18, 2024

Thanks for the feedback, closing

from routing-filter.

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.