you want to generate a nonce (number used once), i have seen this behavior,
i think devise uses a similar approach for token authentication, what you do
is
you create a route that catches the token
match "blah/:token"
to create
Token.create(:nonce=>Digest::MD5.hexdigest(rand(9)))
I've been developing an application in Rails 3.0.3 using Ruby 1.9.2.
It is one of my first applications using Rails 3 and I am quite
pleased with the progress thus far. However, I am wanting to add a
feature that I have thought through, but I am not sure where to really
begin.
Essentially, I am b
2 matches
Mail list logo