Guest User

Untitled

a guest
Nov 23rd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.57 KB | None | 0 0
  1. In config/routes.rb
  2.  
  3.   scope ":db" do
  4.         resources :boxes
  5.   end
  6.  
  7.  
  8. From the logs:
  9.  
  10. Started GET "/multidb_two/boxes" for 127.0.0.1 at 2011-09-12 15:47:09 -0600
  11.   Processing by BoxesController#index as HTML
  12.   Parameters: {"db"=>"multidb_two"}
  13.   Box Load (0.5ms)  SELECT `boxes`.* FROM `boxes`
  14. Rendered boxes/index.html.erb within layouts/application (118.6ms)
  15. Completed 500 Internal Server Error in 228ms
  16.  
  17. ActionView::Template::Error (No route matches {:action=>"show", :controller=>"boxes", :db=>#<Box id: 2, name: "bonjour", created_at: nil, updated_at: nil>}):
Add Comment
Please, Sign In to add comment