Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Jan 19, 2010
1 parent b7dda1c commit d6727f9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.markdown
@@ -0,0 +1,25 @@
Secure url storage.

Install
=======
- As gem: ` sudo gem install url_store `
- As Rails plugin: ` script/plugin install git://github.com/grosser/url_store.git `


Usage
=====
# View:
<%= link_to 'paid', :controller=>:payments, :action=>:paid, :data=>UrlStore.encode(:id=>1, :status=>'paid')%>

# Controller:
if data = UrlStore.decode(params[:data])
Payment.find(data[:id]).update_attribute(:status, data[:status])
else
raise 'FRAUD!'
end

Author
=======
[Michael Grosser](http://pragmatig.wordpress.com)
grosser.michael@gmail.com
Hereby placed under public domain, do what you want, just do not hold me accountable...

0 comments on commit d6727f9

Please sign in to comment.