diff options
Diffstat (limited to 'app/controllers/networks_controller.rb')
| -rw-r--r-- | app/controllers/networks_controller.rb | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb index aabdadaf4..b911ab603 100644 --- a/app/controllers/networks_controller.rb +++ b/app/controllers/networks_controller.rb @@ -12,6 +12,16 @@ class NetworksController < ChouetteController      show!    end +  def index     +    index! do |format| +      format.html { +        if collection.out_of_bounds? +          redirect_to params.merge(:page => 1) +        end +      } +    end        +  end +    protected    def collection     | 
