Giter Site home page Giter Site logo

Comments (7)

kjvarga avatar kjvarga commented on July 16, 2024

Thanks for the report Brian.

I've released v1.3.4 that fixes the problem.

from sitemap_generator.

barmstrong avatar barmstrong commented on July 16, 2024

Hi kjvarga,

FYI, I went to install this on another Rails project today and got a "no such file to load" when running "rake sitemap:install"

https://gist.github.com/735876

I reverted sitemap_generator_tasks.rake back to it's prior version from a few days ago and that fixed it. I had it installed as a plugin, so maybe something about the rescue at the top of the file that used to be there? Wanted to let you know.

from sitemap_generator.

barmstrong avatar barmstrong commented on July 16, 2024

Actually v1.3.5 didn't generate any links in the sitemap file either on my Rails 2.2.2 project.

I had to revert back to v1.3.4 and it worked again.

For anyone else who runs into this, you can install the plugin with an earlier version by adding it manually, and then checking out the right version:

cd vender/plugins
git clone git://github.com/kjvarga/sitemap_generator.git
cd sitemap_generator
git checkout v1.3.4
cd ../../..
rake sitemap:install

Hope it helps someone! Again, this is using the plugin instead of the gem, and on rails 2.2.2 so not sure if it is affecting others as well.

from sitemap_generator.

barmstrong avatar barmstrong commented on July 16, 2024

P.S. The plugin is really awesome - it has saved me a ton of time to just wanted to say thanks for posting and maintaining it!

from sitemap_generator.

kjvarga avatar kjvarga commented on July 16, 2024

Hi Brian, thanks for the support. It's good to hear from people who use it and that they find it useful :)

That's really weird that it throws a "no such file to load" exception. I run my tests on a plugin and a gem install, and my expectation was that if it's installed as a plugin, then 'require sitemap_generator' should always work, because I would have expected it to be in the load path or something...evidently that's not the case.

I guess it loads the tasks but doesn't require the library? So you have to require the whole rails environment for every task if running as a plugin. I think it's odd that Rails would work that way. But I'm testing on 2.3.8, so it may be down to a different in the Rails version.

Looks like I'll have to add that rescue back in.

from sitemap_generator.

kjvarga avatar kjvarga commented on July 16, 2024

Hey Brian, can you try out v1.3.6? It should be working. I also fixed a problem with a missing 'pluralize' method, not sure why you didn't have a problem with that...

Cheers,
Karl

from sitemap_generator.

barmstrong avatar barmstrong commented on July 16, 2024

Hi Karl,

Yep ran into the pluralize one too but forgot to mention it.

Ok just tried 1.3.6 and worked perfectly from install to refresh - no errors. You rule! Thanks for the update.
Brian

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.