Giter Site home page Giter Site logo

lazy_registration_demos's Introduction

Lazy Registration Demo

Lazy Registration Demo using:

  • Ruby 2.0 (ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0])
  • Rails 4 (Rails 4.0.0.beta1)
  • Devise (3.0.0.rc 4e2cdc2)

Information

I had a lot of trouble piecing together how to do lazy registration (gradual engagement) with Rails and Devise. The blogs and advice that was out there did not include working examples and both the Rails and Devise API evolved over time, outdating much of the information that did exist. This is a working demo built upon Rails 4, Ruby 2, and Devise 3.0.

Lazy Registration or Gradual Engagement aims to collect as little information at the start of the engagement as possible. In this demo, we only ask for an email address before showing protected content (which is to be confirmed later). This example doesn't cover guest account access, which provides even more gradual engagement than this demo. An excellent example of using Guest User accounts can be found on Railscast Episode #393 and this more closely follows [Sign up Forms Must Die] (http://alistapart.com/article/signupforms) presented by [Luke Wroblewski] (http://alistapart.com/author/lwroblewski).

This demo resides in "email_only" sub-folder because it is my intent to do a Guest User Lazy Registration as well in which a User instance is always available and thus Sign Up is delayed until as long as possible. However, this demo came first because its what the client needed!

Enjoy, and feel free to comment on anything in this project, or better yet, make it better by forking and improving!

TODO

  • Guest User demo
  • Test cases

References

Contributing

If you'd like to improve this demo, simply fork, implement, and submit a pull request.

Contributors

  • You could be the first contributor!

Maintainers

License

This work is licensed under a Creative Commons Attribution 3.0 Unported License Creative Commons

lazy_registration_demos's People

Contributors

mwlang avatar

Watchers

Brittany Johns avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.