Giter Club home page Giter Club logo

Comments (6)

ajb avatar ajb commented on September 3, 2024

Alright, rather than stealthily editing my first post, I'll amend it here:

It looks like I might be misinformed about the instance variables, and it's actually the current request's parameters that are implicitly passed to the path helpers. The issue still stands, though! :D

from fortitude.

ageweke avatar ageweke commented on September 3, 2024

This definitely is a bug! Got a working test case repro’ing it — let me fix.

from fortitude.

ajb avatar ajb commented on September 3, 2024

Sweet, thanks!

from fortitude.

ageweke avatar ageweke commented on September 3, 2024

OK, all fixed. It’s on a weird branch (ageweke/rails_generator_support), but I’ll merge that into master once it’s green on Travis. Fix is here.

Ironically, this issue was caused by exactly some of the stuff we were talking about in the caching thread — Rails.application.routes.url_helpers (which is a Module) was being include'd directly into Fortitude::Widget, causing those methods to end up run in the context of the widget (and thus didn’t have access to the incoming request), rather than on that magic/special helpers object that Rails creates, where they belong.

from fortitude.

ajb avatar ajb commented on September 3, 2024

Awesome, thanks for the quick turnaround!

from fortitude.

ajb avatar ajb commented on September 3, 2024

If you get a chance, it would be great to have this on Rubygems :)

from fortitude.

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.