Skip to content

History / How To: Create a guest user

Revisions

  • Updated How To: Create a guest user (markdown)

    @Judahmeek Judahmeek committed Feb 16, 2016
  • fix small grammatical error for clarification

    @shrugs shrugs committed Jan 5, 2016
  • Updated How To: Create a guest user (markdown)

    @johnknapp johnknapp committed Dec 22, 2015
  • Rails still has the associations to the guest_user cached after calling 'logging_in'. If the User model has a 'dependent: :destroy' parameter the associations will be deleted even if the user is changed. Reloading the guest user before destroying makes sure rails pick up the changes.

    @arkirchner arkirchner committed Nov 18, 2015
  • rm unnecessary profanity

    @bhaity bhaity committed Mar 2, 2015
  • Updated How To: Create a guest user (markdown)

    @victorhazbun victorhazbun committed Feb 26, 2015
  • the guest user code has two bugs: 1. with the warden strategy, it's possible for the current_user to be the guest_user, thus we need to check whether guest_user_id is equal to current_user.id to prevent it from being destroyed. 2. there is a possibility that we are unnecessarily creating then destroying a guest user

    @evie404 evie404 committed Oct 18, 2014
  • Fix `rand` in code so the upper bound is 99 instead of 98

    @roryokane roryokane committed Jul 19, 2014
  • Finder in authentication strategy could raise when guest record doesn't exist

    @RKushnir RKushnir committed Jun 17, 2014
  • Adds in a method for authenticating the guest user

    @Nejuf Nejuf committed Jun 9, 2014
  • Updated How To: Create a guest user (markdown)

    @betamax betamax committed May 6, 2014
  • Wrapped guest_user function in begin block for rescue. Additionally signed in guest user in the guest user function

    @cleathers cleathers committed Mar 25, 2014
  • Changed :receive_guess to :receive_guest. Pretty sure that's a spelling error.

    @holgersindbaek holgersindbaek committed Sep 8, 2013
  • Lack of checking return value from save method. Caching of guest_user instead of fetching it every time.

    @RobinDaugherty RobinDaugherty committed Mar 8, 2013
  • Updated How To: Create a guest user (markdown)

    @alexesDev alexesDev committed Feb 17, 2013
  • Updated How To: Create a guest user (markdown)

    @alexesDev alexesDev committed Feb 17, 2013
  • saves session[:guest_user_id] on create_guest_user method, to avoid multiple user creations in same session

    @monovaldes monovaldes committed Jan 21, 2013
  • Added instruction to make method available to views

    @chrise86 chrise86 committed Dec 11, 2012
  • Use `||=` idiom to create a guest user.

    hollowspace committed Oct 22, 2012
  • Had an extra 'end' (copy-paste error)

    mbrookes committed Jun 8, 2012
  • Added some (commented out) logging_in example code. Made logging_in private.

    mbrookes committed Jun 8, 2012
  • change generated email address to 'example.com' per RFC2606

    mbrookes committed Jun 8, 2012
  • Changed u.save(false) to u.save(:validate => false) for rails 3 compability

    @mjansing mjansing committed Apr 1, 2012
  • Updated How To: Create a guest user (markdown)

    @richardkmichael richardkmichael committed Dec 21, 2011
  • Updated How To: Create a guest user (markdown)

    @richardkmichael richardkmichael committed Dec 21, 2011
  • The first approach really has many bugs (for example ApplicationHelper should be used from the view), it's just wasting time for other people

    @xiphias xiphias committed Aug 16, 2011
  • Updated How To: Create a guest user (markdown)

    @kingsleyh kingsleyh committed Aug 10, 2011
  • Updated How To: Create a guest user (markdown)

    @kingsleyh kingsleyh committed Aug 10, 2011
  • Updated How To: Create a guest user (markdown)

    @kingsleyh kingsleyh committed Aug 10, 2011
  • Created How To: Create a guest user (markdown)

    @rdpoor rdpoor committed Apr 14, 2011