Guest User

Untitled

a guest
Aug 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. rake routes with multiple paramaters
  2. bug_info /bugs/:pr/:scope/info(.:format) {:controller=>"bugs", :action=>"info"}
  3.  
  4. match 'bugs/:pr/:scope/info' => 'bugs#info', :as=>:bug_info
  5.  
  6. Railstest::Application.routes.draw do
  7. match 'test' => 'bugs#test', :as=>:bug_test
  8. match 'bugs/:pr/:scope/info' => 'bugs#info', :as=>:bug_info
  9. end
  10.  
  11. class BugsController < ApplicationController
  12. def test
  13. end
  14.  
  15. def info
  16. end
  17. end
  18.  
  19. <%= bug_info_path(:pr=>1,:scope=>2) %>
  20.  
  21. <%= params %>
Add Comment
Please, Sign In to add comment