Guest User

Untitled

a guest
Jan 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. match '/login' => 'admin/calendars#index' # this one should actually work, but fails:
  2.  
  3. The recognized options <{"controller"=>"errors", "action"=>"handle404", "a"=>"login"}> did not match <{"controller"=>"go", "action"=>"index"}>, difference: <{"controller"=>"go", "action"=>"index", "a"=>"login"}>.
  4.  
  5. # the specific controller#route does exist. However, even if it didn't it should fail in the same way the next one does, considering that the specified route there ('calendars#index') does not exist. But that doesn't matter -- it's only supposed to test that the mapping works.
  6.  
  7. match '/login' => 'calendars#index' #this one fails as expected:
  8.  
  9. The recognized options <{"controller"=>"calendars", "action"=>"index"}> did not match <{"controller"=>"go", "action"=>"index"}>, difference: <{"controller"=>"go"}>
Add Comment
Please, Sign In to add comment