error message

1
2
3
4
Routing Error

No route matches "/nl/" with {:method=>:get}

application controller

1
2
3
4
5
6
7
8
9
10
  before_filter :check_correct_route

  def check_correct_route
    if params[:locale] == "nl" || params[:locale] == "fr"
      redirect_to :controller => :sites
    else
      redirect_to :controller => :splash
    end
  end