def user_type_routes 
      user_types_to_route.each do |user_type|
        name_user_types = user_type.pluralize
        if read_routes_file =~ /devise_for :#{name_user_types}/          
          debug! "removing old devise routing for: #{name_user_types}"
          File.remove_content_from routes_file, :where => /devise_for :#{name_user_types}/
        end
      end

      debug! "performing devise role routing for: #{user_types_to_route}"

      user_types_to_route.map do |user_type| 
        name_user_types = user_type.pluralize     
        name_user_type = user_type.underscore.gsub('/', '_')
          %Q{            
  devise_for :#{name_user_types}, :class_name => '#{user_type.classify}', :controllers => {:registrations => 'devise/registrations', :sessions => 'main'} do
    match "/#{name_user_types}/sign_in" => "devise/sessions#new", :as => :#{name_user_type}_signin
    match "/#{name_user_types}/sign_up" => "devise/registrations#new", :as => :#{name_user_type}_signup
  end
  }
      end.join("\n")
    end
def user_type_routes 
      user_types_to_route.each do |user_type|
        name_user_types = user_type.pluralize
        if read_routes_file =~ /devise_for :#{name_user_types}/          
          debug! "removing old devise routing for: #{name_user_types}"
          File.remove_content_from routes_file, :where => /devise_for :#{name_user_types}/
        end
      end

      debug! "performing devise role routing for: #{user_types_to_route}"

      user_types_to_route.map do |user_type| 
        name_user_types = user_type.pluralize     
        name_user_type = user_type.underscore.gsub('/', '_')
          %Q{            
  devise_for :#{name_user_types}, :class_name => '#{user_type.classify}', :controllers => {:registrations => 'devise/registrations', :sessions => 'main'} do
    match "/#{name_user_types}/sign_in" => "devise/sessions#new", :as => :#{name_user_type}_signin
    match "/#{name_user_types}/sign_up" => "devise/registrations#new", :as => :#{name_user_type}_signup
  end
  }
      end.join("\n")
    end
match '/sign_in' => 'main#index'
 match '/log_in'  => 'main#index'
 devise_for :#{name_default_users} do
   get '/sign_in'  => 'main#index', :as => :new_user_session
 end