Permalink
Browse files

Fix some Atom feeds

  • Loading branch information...
1 parent c6d8a3c commit 0cd0bf689c9273a93b973be1b7b99b94873160c4 @nono nono committed May 28, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 app/controllers/sections_controller.rb
  2. +5 −5 app/controllers/users_controller.rb
View
2 app/controllers/sections_controller.rb
@@ -7,7 +7,7 @@ def index
def show
@section = Section.find(params[:id])
- path = section_path(@section)
+ path = section_path(:id => @section, :format => params[:format])
redirect_to path, :status => 301 and return if request.path != path
@sections = Section.published
@order = params[:order]
View
10 app/controllers/users_controller.rb
@@ -3,7 +3,7 @@ class UsersController < ApplicationController
before_filter :find_user
def show
- path = user_path(@user)
+ path = user_path(:id => @user, :format => params[:format])
redirect_to path, :status => 301 and return if request.path != path
find_nodes(Diary)
respond_to do |wants|
@@ -13,7 +13,7 @@ def show
end
def news
- path = news_user_path(@user)
+ path = news_user_path(:id => @user, :format => params[:format])
redirect_to path, :status => 301 and return if request.path != path
find_nodes(News)
respond_to do |wants|
@@ -23,7 +23,7 @@ def news
end
def posts
- path = posts_user_path(@user)
+ path = posts_user_path(:id => @user, :format => params[:format])
redirect_to path, :status => 301 and return if request.path != path
find_nodes(Post)
respond_to do |wants|
@@ -33,13 +33,13 @@ def posts
end
def suivi
- path = suivi_user_path(@user)
+ path = suivi_user_path(:id => @user, :format => params[:format])
redirect_to path, :status => 301 and return if request.path != path
find_nodes(Tracker)
end
def comments
- path = comments_user_path(@user)
+ path = comments_user_path(:id => @user, :format => params[:format])
redirect_to path, :status => 301 and return if request.path != path
@dont_index = true
@comments = @user.comments.published.order('created_at DESC').page(params[:page])

0 comments on commit 0cd0bf6

Please sign in to comment.