Skip to content
This repository has been archived by the owner on Aug 17, 2017. It is now read-only.

Commit

Permalink
Add installation/usage instructions
Browse files Browse the repository at this point in the history
Since you need to do more than just `bundle install` to get it working.
  • Loading branch information
tilsammans committed Aug 2, 2012
1 parent 1d88507 commit 6d2add0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.rdoc
Expand Up @@ -35,6 +35,19 @@ You can also use permit on nested parameters, like:

Thanks to Nick Kallen for the permit idea!

== Installation

In Gemfile:

gem 'strong_parameters'

and then run `bundle`. To activate the strong parameters, you need to include this module in
every model you want protected.

class Post < ActiveRecord::Base
include ActiveModel::ForbiddenAttributesProtection
end

== Todos

* Automatically permit parameters coming from a signed form [Yehuda]
Expand Down

0 comments on commit 6d2add0

Please sign in to comment.