Sha256: 139d83ecd0a82ed3bde3906601bc7d172093098de21b3a13b24d84de46306861

Contents?: true

Size: 910 Bytes

Versions: 4

Compression:

Stored size: 910 Bytes

Contents

 _____ 
| RenderCow |
 ----- 
      \   ^__^
       \  (oo)\_______
          (__)\       )\/\
              ||----w |
              ||     ||

RenderCow cowpatches the Rails render method to allow you to directly use cowsay. 
Have you ever wanted to just render a cow?
Well now you can!


## Usage

In your controller, replace calls with `render plain:` to `render cowsay:` or `render cow:`.

```ruby
class ApplicationController < ActionController::Base
  def index
    render cowsay: "Moo"
  end

  def show
    render cow: "Mooo"
  end
end
```

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'render_cow'
```

And then execute:
```bash
$ bundle
```

Or install it yourself as:
```bash
$ gem install render_cow
```

## Contributing
Feel free to contribute. 

## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
render_cow-0.3.0 README.md
render_cow-0.2.0 README.md
render_cow-0.1.1 README.md
render_cow-0.1.0 README.md