https://github.com/patcito/angularjs_scaffold
A rails plugin for scaffolding views using Angular.js, Twitter bootstrap and font-awesome.
https://github.com/patcito/angularjs_scaffold
Last synced: 16 days ago
JSON representation
A rails plugin for scaffolding views using Angular.js, Twitter bootstrap and font-awesome.
- Host: GitHub
- URL: https://github.com/patcito/angularjs_scaffold
- Owner: patcito
- License: mit
- Created: 2012-10-12T20:44:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-06T16:10:19.000Z (almost 12 years ago)
- Last Synced: 2025-04-10T00:18:13.443Z (16 days ago)
- Language: JavaScript
- Homepage: http://blog.ricodigo.com/blog/2012/10/14/announcing-the-release-of-angularjs-scaffold/
- Size: 1.3 MB
- Stars: 317
- Watchers: 23
- Forks: 41
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
## AngularjsScaffold + CoffeeScript
A rails plugin for scaffolding views using Angular.js, Twitter bootstrap
and font awesomeThis project uses MIT-LICENSE.
First install the gem or add it to your Gemfile:
$ gem install angularjs_scaffold
Second install it, this will add angularjs, bootstrap and fontawesome (there's an option to only install AngularJS)
$ rails g angularjs:install # adds angular.js and a dummy welcome JS controller
options:
--layout-type=fixed [fluid]
--no-jquery
--no-bootstrap
--language=coffeescript [javascript] NOTE: this setting will be set for the entire rails app
and will affect all subsequent 'rails generate angularjs:scaffold <>' commandsRun your usual scaffold command:
$ rails g scaffold Post title:string body:string
$ rake db:migrateNow run the angularjs:scaffold command and it will rewrite everything the AngularJS way:
$ rails g angularjs:scaffold Posts # adds everything needed using AngularJS
Enjoy!