Sha256: 491ba187f9a94d311362418c11e93a5a890d53855d012277153444458acfaee5

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

Data securely stored in urls.

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...

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
url_store-0.1.0 README.markdown