Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

This micro-gem allows you to add AngularJS ng-attributes to Simple Form

License

Notifications You must be signed in to change notification settings

kfyodor/simple_form_angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleFormAngular

This micro-gem allows you to add AngularJS ng-attributes to Simple Form inputs in your Rails app.

Installation

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

Usage

  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

TODO

Write some specs.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

This micro-gem allows you to add AngularJS ng-attributes to Simple Form

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages