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 called first.html and subpage.html so i figured the easiest way to do that is to just add .html at the end of all pages by default. So when i add a resource to routes.rb like resources :pages i can call /pages/1 and i get the first page but again if i download it the file would be called 1 instead of 1.html... Also if i use link_to or url_for i get the links generated without the .html at the end... i tried resources :pages, :format => :html but i think the problem here is that html is the default mimetype and so it's ignored. One sollution could be to set another mimetype as default so i would have to add the html format for every link i generate which would be ok for me... On Feb 24, 12:28 pm, MaD <[email protected]> wrote: > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

