Skip to content

ripan/acts_as_verified

Repository files navigation

ActsAsVerified
==============

Step 1 : Install Plugin
ruby script/plugin install [email protected]:ripan/acts_as_verified.git

Step 2 : Generate Migration
ruby script/generate acts_as_verified_migration

Step 3 : Add to model
acts_as_verified

Example
=======

MODEL
@client = Client.find(params[:id])

To get the verification status
@client.verification_status

To set the verification status
@client.set_as_verified 

To check the verification status
@client.is_verified? 

<%= client.verification_status %>
<%= link_to 'Mark as verified', {:controller => 'clients', :action => 'mark_as_verified', :id => client.id} %>

Copyright (c) 2011 [ripan], released under the MIT license

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages