1. 25 4月, 2012 1 次提交
    • J
      Remove default match without specified method · 56cdc81c
      Jose and Yehuda 提交于
      In the current router DSL, using the +match+ DSL
      method will match all verbs for the path to the
      specified endpoint.
      
      In the vast majority of cases, people are
      currently using +match+ when they actually mean
      +get+. This introduces security implications.
      
      This commit disallows calling +match+ without
      an HTTP verb constraint by default. To explicitly
      match all verbs, this commit also adds a
      :via => :all option to +match+.
      
      Closes #5964
      56cdc81c
  2. 24 4月, 2012 3 次提交
  3. 17 4月, 2012 3 次提交
  4. 12 4月, 2012 1 次提交
  5. 09 4月, 2012 3 次提交
  6. 06 4月, 2012 1 次提交
  7. 05 4月, 2012 2 次提交
  8. 02 4月, 2012 1 次提交
  9. 01 4月, 2012 2 次提交
  10. 30 3月, 2012 1 次提交
  11. 29 3月, 2012 9 次提交
  12. 28 3月, 2012 4 次提交
  13. 27 3月, 2012 6 次提交
  14. 26 3月, 2012 1 次提交
    • J
      Allow a defining custom member field on resources · 3e67e45d
      Jamie Macey 提交于
      By default, resources routes are created with :resource/:id. A model
      defining to_param can make prettier urls by using something more
      readable than an integer ID, but since the route picks it up as :id you
      wind up with awkward User.find_by_username(params[:id]) calls.
      
      By overriding the key to be used in @request.params you can be more
      obvious in your intent.
      3e67e45d
  15. 23 3月, 2012 2 次提交