We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Changed :receive_guess to :receive_guest. Pretty sure that's a spelling error.
Lack of checking return value from save method. Caching of guest_user instead of fetching it every time.
Updated How To: Create a guest user (markdown)
saves session[:guest_user_id] on create_guest_user method, to avoid multiple user creations in same session
Added instruction to make method available to views
Use `||=` idiom to create a guest user.
Had an extra 'end' (copy-paste error)
Added some (commented out) logging_in example code. Made logging_in private.
change generated email address to 'example.com' per RFC2606
Changed u.save(false) to u.save(:validate => false) for rails 3 compability
The first approach really has many bugs (for example ApplicationHelper should be used from the view), it's just wasting time for other people
Created How To: Create a guest user (markdown)