Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
unders committed Mar 30, 2012
1 parent 27532a8 commit 38908d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ And it will only return the trusted attributes.
``` ruby
params = { "event" =>
{ "title" => "A title",
"location" => "I am not trusted"
"attendees_attributes" => {
"0" => { "_destroy"=>"false",
"id" => "2",
Expand All @@ -62,7 +63,7 @@ params = { "event" =>
}

class EventsController < ApplicationController
trust :title, :location, for: :event
trust :title, for: :event
trust :start, for: "event.attendees_attributes"

def create
Expand Down

0 comments on commit 38908d4

Please sign in to comment.