Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rake routes with multiple paramaters
- bug_info /bugs/:pr/:scope/info(.:format) {:controller=>"bugs", :action=>"info"}
- match 'bugs/:pr/:scope/info' => 'bugs#info', :as=>:bug_info
- Railstest::Application.routes.draw do
- match 'test' => 'bugs#test', :as=>:bug_test
- match 'bugs/:pr/:scope/info' => 'bugs#info', :as=>:bug_info
- end
- class BugsController < ApplicationController
- def test
- end
- def info
- end
- end
- <%= bug_info_path(:pr=>1,:scope=>2) %>
- <%= params %>
Add Comment
Please, Sign In to add comment