Giter Site home page Giter Site logo

Comments (6)

kjvarga avatar kjvarga commented on July 16, 2024

That's pretty odd.

The problem seems to be with the numbers helpers that I use from ActionView. You say that you're running Rails 3.0.3 but from the trace it is using actionpack 3.0.1. So that may be the problem.

See if uninstalling the other actionpack gems solves the prob. I will have to just copy the helper code or something because it's a pain relying on them for each version of Rails which are slightly different in their implementation.

from sitemap_generator.

koichirose avatar koichirose commented on July 16, 2024

Yes, I'm sorry, that was a typo.
I was using Rails 3.0.1 (with actionpack 3.0.1, so no need to uninstall the older ones).
I tried bumping up to 3.0.3 but the whole website stops working ( I get a weird undefined method `to_sym' for #User:0x7f21e9c81a10 ).
So I tried going back to 3.0.0 but I have the same error as with 3.0.1 .

Any suggestions?

from sitemap_generator.

kjvarga avatar kjvarga commented on July 16, 2024

That's really odd. I setup a clean rails 3.01 environment running REE and didn't run into any problems with a simple test.

What version of Ruby are you running? It looks like it could be a ruby/rails bug.

Can you try run it again with the failing case and modify the gem source (rvm info will tell you your gem dir if you're using rvm):
I want to see the value of 'filesize' in the summary method of lib/sitemap_generator/builder/sitemap_file.rb

Whatever that value is, it seems to be causing the problem.

I've released v1.3.8 which should work regardless.

from sitemap_generator.

koichirose avatar koichirose commented on July 16, 2024

Hi, I think I discovered the cause of the problem and already opened an issue on the gem page: https://github.com/svenfuchs/routing-filter/issues#issue/19 .
Hope I manage to solve it.

Thanks, let me know if you need anything else to fix this, but I'm pretty sure it's not your fault :)

from sitemap_generator.

kjvarga avatar kjvarga commented on July 16, 2024

Ok cool, good to know. I hate all the changing dependencies when Rails gets updated...I wish we had built it framework-agnostic from the start and then added the Rails integration after...but oh well :)

from sitemap_generator.

koichirose avatar koichirose commented on July 16, 2024

Hi, just wanted to tell you that I had a problem with my routes.
svenfuchs helped me fix it.
If someone else has the same problem, you can find more details here:
https://github.com/svenfuchs/routing-filter/issues/closed#issue/19

from sitemap_generator.

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.