Sha256: 2adf00227f774bbcdcaa4f7555509a3ae8130fd30b92551b62783dd1e5c618ba

Contents?: true

Size: 903 Bytes

Versions: 2

Compression:

Stored size: 903 Bytes

Contents

#Hungryform Rails [![Build Status](https://travis-ci.org/andrba/hungryform-rails.svg?branch=master)](https://travis-ci.org/andrba/hungryform-rails)

This gem is an adaptor between the [HungryForm](http://github.com/andrba/hungryform) gem and Rails. 

##Installation:

Add the hungryform gem to your Gemfile:
```ruby
gem "hungryform-rails"
```

Add the Hungryform require to your application.js:
```
//= require hungryform
```

Add the Hungryform require to your application.css:
```
//= require hungryform
```

Use the following helper to generate the form in your views:

```ruby
<%= hungry_form_for(@form) %>
```

##Configuration

This gem extends the configuration options provided by Hungryform. Create initializer in ```config/initializers/hungryform.rb``` and place the configuration code inside:

```ruby
Hungryform.configure do |config|
  config.rails.elements_templates = 'hungryform'
end
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hungryform-rails-0.0.5 README.md
hungryform-rails-0.0.4 README.md