Skip to content

Commit

Permalink
Few improvement for the README file
Browse files Browse the repository at this point in the history
  • Loading branch information
robin850 committed Jul 20, 2012
1 parent 6aaf49f commit 5914ccf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Expand Up @@ -37,11 +37,11 @@ class ContactForm < MailForm::Base
end
```

Then you start a `script/console` and type:
Then you start a console with `rails console` and type:

```ruby
c = ContactForm.new(:name => 'José', :email => 'jose@email.com', :message => 'Cool!')
c.deliver
>> c = ContactForm.new(:name => 'José', :email => 'jose@email.com', :message => 'Cool!')
>> c.deliver
```

Check your inbox and the e-mail will be there, with the sent fields (assuming that
Expand Down Expand Up @@ -90,13 +90,16 @@ class User < ActiveRecord::Base
end
```

The delivery will be triggered in an after_create hook.
The delivery will be triggered in an `after_create` hook.

## Installation

Install **MailForm** is very easy. It is stored in Gemcutter, so just run the following:
Install **MailForm** is very easy. Just edit your Gemfile adding the following:

`sudo gem install mail_form`
```ruby
gem 'mail_form'
```
Then run `bundle install` to install **MailForm**.

If you want it as plugin, just do:

Expand Down

0 comments on commit 5914ccf

Please sign in to comment.