Guest User

Untitled

a guest
Apr 23rd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. r.match(%r{/foo(/:action)?(/:id)?}).defer_to do |request, params|
  2. params.merge!(:controller => "foo", :merbtastic => "Merb rocks") if params[:foo]
  3. end
Add Comment
Please, Sign In to add comment