[openstreetmap-website] Refactor user creation actions (#405)

John Firebaugh notifications at github.com
Thu Aug 1 00:04:09 UTC 2013


Create a separate #create action that handles POSTs to
/user/new. This simplifies the other actions and ensures that the URL is
/user/new when validation errors occur, rather than /user/terms.

Fixes #398
You can merge this Pull Request by running:

  git pull https://github.com/osmlab/openstreetmap-website user-new

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/405

-- Commit Summary --

  * Refactor user creation actions

-- File Changes --

    M app/controllers/user_controller.rb (108)
    M app/views/user/new.html.erb (2)
    M config/routes.rb (3)
    M test/functional/user_controller_test.rb (26)
    M test/integration/user_creation_test.rb (34)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/405.patch
https://github.com/openstreetmap/openstreetmap-website/pull/405.diff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130731/83fa9a3d/attachment.html>


More information about the rails-dev mailing list