Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8237701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:33:32+00:00 2026-06-07T19:33:32+00:00

I just finished upgrading from rails 2.3.5 to rails 3.2.6, I’m using ruby 1.8.7

  • 0

I just finished upgrading from rails 2.3.5 to rails 3.2.6, I’m using ruby 1.8.7 on Windows and my current routes are no longer working. Can somebody please guide me on the new format for 3.2.6, I’m a bit confused on how match works.

ActionController::Routing::Routes.draw do |map|
  map.resources :uom_conversions
  map.connect 'delete_old_data/delete_data', :controller => "items", :action => "delete_data"
  map.connect 'delete_old_data', :controller => "items", :action => "delete_old_data"
  map.connect 'pricelist_import', :controller => "items", :action => "pricelist_import"
  map.connect 'pricelist_import/match_pricelist_columns', :controller => "items", :action => "match_pricelist_columns"
  map.connect 'commit_pricelist', :controller => "items", :action => "commit_pricelist"
  map.connect 'pricelist_tool', :controller => "items", :action => "pricelist_tool"
  map.connect 'cross_reference_import', :controller => "items", :action => "cross_reference_import"
  map.connect 'commit_cross_references', :controller => "items", :action => "commit_cross_references"
  map.connect 'import_file/commit_import', :controller => "items", :action => "commit_import"
  map.connect 'import_file', :controller => "items", :action => "import_file"
  map.connect 'import_file/match_columns', :controller => "items", :action => "match_columns"
  map.connect 'set_default_matches', :controller => "items", :action => "set_default_matches"
  map.connect 'save_default_matches', :controller => "items", :action => "save_default_matches"
  map.connect 'search', :controller => "items", :action => "search"
  map.connect 'search/import_search_file', :controller => "items", :action => "import_search_file"
  map.connect 'search/import_search_file/pick_search_column', :controller => "items", :action => "pick_search_column"
  map.connect 'items/create_uom', :controller => "items", :action => "create_uom"
  map.connect 'items/remove_uom/:uom_id', :controller => "items", :action => "remove_uom"
  map.connect 'items/show_cross_references/:id', :controller => "items", :action => "show_cross_references"


  map.resources :items

  map.resources :vendors

  map.resources :manufacturers

  map.resources :sub_categories

  map.resources :categories

  map.resources :hospitals

  map.resources :ministry_organizations

  map.resources :agreements



  map.connect 'users/change_password', :controller => "users", :action => "change_password"
  map.connect 'users/update_password', :controller => "users", :action => "update_password"
  map.resources :users

  map.logout '/logout', :controller => 'login', :action => 'logout'
  map.logout '/switch_admin', :controller => 'login', :action => 'switch_admin'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:33:33+00:00Added an answer on June 7, 2026 at 7:33 pm

    map.resources :items becomes resources :items

    All lines matching this format:

    map.connect 'delete_old_data/delete_data', :controller => "items", :action => "delete_data"
    

    become

    match 'delete_old_data/delete_data', :to => "items#delete_data"
    

    This:

    map.logout '/logout', :controller => 'login', :action => 'logout'
    

    would become

    match "/logout", :to => "login#logout", :as => :logout
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just in the middle of upgrading a large application from Rails 3 to
Just finished up my first mvc4 app. Everything is working great until I deploy
I just finished converting one of our in-house framework projects from ant to maven.
I just finished a script to import data from an XML file to MySQL,
I just finished using Linq to Sql to map our existing Database structure for
Just finished my code to use the default Media Player from Android, pretty pleased
I just finished my website, using codeigniter, i uploaded the site to a bluehost
Just finished my project in Eclipse, using Sphinx for voice recognition. In eclipse the
I just finished creating a Point class and was working on a Line class
I just finished my first assignment using arrays and I feel like it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.