[Rails] Re: Add .html extension by default

2009-02-24 Thread Rimantas Liubertas
> why is it a "very bad" idea? i don't think that would be harmfull in > any way. But if i can't find an easy way to do it i will have to fix > it with wget... Well, sorry, but hacking application to get the result for the _external_ application (the same result you can get by adding two characte

[Rails] Re: Add .html extension by default

2009-02-24 Thread gerold
why is it a "very bad" idea? i don't think that would be harmfull in any way. But if i can't find an easy way to do it i will have to fix it with wget... On Feb 24, 1:48 pm, Rimantas Liubertas wrote: > > i would like to add the .html extension by default to all my > > resources. What is the best

[Rails] Re: Add .html extension by default

2009-02-24 Thread Rimantas Liubertas
> i would like to add the .html extension by default to all my > resources. What is the best way to do that? The reason for this is > that i need to download the generated sites via wget and i need > the .html extension for the downloaded files. Also it would be nice if > the link_to would automat

[Rails] Re: Add .html extension by default

2009-02-24 Thread gerold
i also figured that but i would really like to use resources... On Feb 24, 1:30 pm, MaD wrote: > sounds a little bit silly, bit i just tried a route like >   map.connect ':controller/:action.html' > that is actually working for me >  http://localhost:3000/bla/index.html --~--~-~--~~-

[Rails] Re: Add .html extension by default

2009-02-24 Thread MaD
sounds a little bit silly, bit i just tried a route like map.connect ':controller/:action.html' that is actually working for me http://localhost:3000/bla/index.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Re: Add .html extension by default

2009-02-24 Thread gerold
Maybe i was a little too unspecific with my description. Let me try again: The website has multiple nested pages and i can address them with e.g. /pages/first /pages/first/subpage Now when i want to wget all of the pages the downloaded files are called first and subpage but i'd like them to be ca

[Rails] Re: Add .html extension by default

2009-02-24 Thread MaD
how about a before/after_save callback? i guess that would work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To