Remember per_page number when updating multiple articles. Closes #36

This commit is contained in:
Benjamin Meichsner 2009-08-13 17:23:14 +02:00
parent fd97c1fc60
commit 27bec1f860
2 changed files with 6 additions and 10 deletions

View file

@ -195,11 +195,11 @@ class ArticlesController < ApplicationController
flash[:error] = 'Keine Aktion ausgewählt!'
end
# action succeded
redirect_to supplier_articles_path(@supplier)
redirect_to supplier_articles_path(@supplier, :per_page => params[:per_page])
rescue => e
flash[:error] = 'Ein Fehler ist aufgetreten: ' + e
redirect_to supplier_articles_path(@supplier)
redirect_to supplier_articles_path(@supplier, :per_page => params[:per_page])
end
# lets start with parsing articles from uploaded file, yeah