Don't erase old publcations, so that the relations don't disappear.
[redakcja_redmine.git] / routes.rb
index d1cf057..8752c69 100644 (file)
--- a/routes.rb
+++ b/routes.rb
@@ -6,8 +6,5 @@ connect 'publications/:action.:format',
        :controller => 'publications' 
 
 connect 'publications/:action/:pub', 
-       :controller => 'publications',
-       :format => 'html'
-       
-connect 'publications/:action/:pub.:format', 
-       :controller => 'publications' 
+       :controller => 'publications', :format => 'json',
+     :pub => /[^\/?]+/