Permalink
Browse files

README fix for issue#6

  • Loading branch information...
1 parent 98657aa commit 45805ce6ba7de74b8ef93ad5b75cd54d27ca8e04 @Bregor Bregor committed with josevalim Nov 29, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.rdoc
View
6 README.rdoc
@@ -37,7 +37,7 @@ if you want to make a contact form just the following lines are needed (includin
Then you start a script/console and type:
c = ContactForm.new(:name => 'José', :email => 'jose@email.com', :message => 'Cool!')
- c.create
+ c.deliver
Check your inbox and the e-mail will be there, with the sent fields (assuming that
you configured your mailer delivery method properly).
@@ -136,7 +136,7 @@ Examples:
c = ContactForm.new(:nickname => 'not_blank', :email => 'your@email.com', :name => 'José')
c.valid? #=> true
c.spam? #=> true (raises an error in development, to remember you to hide it)
- c.create #=> false (just delivers if is not a spam and is valid)
+ c.deliver #=> false (just delivers if is not a spam and is valid, raises an error in development)
c = ContactForm.new(:email => 'invalid')
c.valid? #=> false
@@ -196,4 +196,4 @@ can be used with localized. Below is an I18n file example file:
If you discover any bug, please use github issues tracker.
-Copyright (c) 2010 Plataforma Tec http://blog.plataformatec.com.br/
+Copyright (c) 2010 Plataforma Tec http://blog.plataformatec.com.br/

0 comments on commit 45805ce

Please sign in to comment.