This micro-gem allows you to add AngularJS ng-attributes to Simple Form inputs in your Rails app.
Add this line to your application's Gemfile:
gem 'angularjs-rails'
gem 'simple_form'
gem 'simple_form_angular'
And then execute:
$ bundle
Or install it yourself as:
$ gem install simple_form_angular
simple_form_for Entry.new, ng: { submit: 'addEntry()', controller: 'EntriesController' } do |f|
f.input :title, ng: { model: 'newEntry.title' }
f.input :description, ng: { model: 'newEntry.description' }
end
Write some specs.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request