Changeset 38

Show
Ignore:
Timestamp:
02/13/06 22:41:40 (7 years ago)
Author:
dema
Message:

Fixed the repository selection from causing DoubleRenderException?.

Location:
branches/adapt/app/controllers
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/adapt/app/controllers/application.rb

    r37 r38  
    3838  def verify_repo 
    3939    if @session['repo'].nil? or @session['repo'].blank? 
    40       redirect_to :controller => 'repository', :action => 'select_repo' 
     40      redirect_to :controller => 'repository', :action => 'select_repo' and return false 
    4141    else 
    4242      set_repo 
  • branches/adapt/app/controllers/repository_controller.rb

    r17 r38  
    1414        begin 
    1515          set_repo 
    16           redirect_to :controller => 'nav_class', :action => 'list' 
     16          redirect_to :controller => 'nav_class', :action => 'list' and return 
    1717        rescue => ex 
    1818          flash['notice'] = 'Invalid username/password/repository combination.'