Skip to content

Instantly share code, notes, and snippets.

@meltzerj
Created May 1, 2011 05:28
Show Gist options
  • Select an option

  • Save meltzerj/950276 to your computer and use it in GitHub Desktop.

Select an option

Save meltzerj/950276 to your computer and use it in GitHub Desktop.
module SignedUsersHelper
def create_invitation(user)
@invitation_url = "http://dreamstill.com/?id=" + rand(10000000000).to_s
user.invitation.create(:invitation_url => @invitation_url)
end
end
@seungjin
Copy link
Copy Markdown

seungjin commented May 1, 2011

why didn't you use uuid instead of rand() ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment