Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethelo/citizen_budget_model
The Citizen Budget budget simulation model
https://github.com/ethelo/citizen_budget_model
Last synced: 7 days ago
JSON representation
The Citizen Budget budget simulation model
- Host: GitHub
- URL: https://github.com/ethelo/citizen_budget_model
- Owner: Ethelo
- License: mit
- Created: 2014-08-22T00:01:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-22T03:40:25.000Z (almost 9 years ago)
- Last Synced: 2024-09-17T03:06:45.227Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 264 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Citizen Budget: Model
[![Gem Version](https://badge.fury.io/rb/citizen_budget_model.svg)](http://badge.fury.io/rb/citizen_budget_model)
[![Build Status](https://secure.travis-ci.org/opennorth/citizen_budget_model.png)](http://travis-ci.org/opennorth/citizen_budget_model)
[![Dependency Status](https://gemnasium.com/opennorth/citizen_budget_model.png)](https://gemnasium.com/opennorth/citizen_budget_model)
[![Coverage Status](https://coveralls.io/repos/opennorth/citizen_budget_model/badge.png?branch=master)](https://coveralls.io/r/opennorth/citizen_budget_model)
[![Code Climate](https://codeclimate.com/github/opennorth/citizen_budget_model.png)](https://codeclimate.com/github/opennorth/citizen_budget_model)## Usage
In `Gemfile`:
gem 'citizen_budget_model'
In `config/routes.rb`:
mount CitizenBudgetModel::Engine => '/'
In `config/environments/production.rb`:
config.action_mailer.default_url_options = {host: ENV['ACTION_MAILER_HOST']}
If you are using the engine's admin views:
gem 'jquery-rails'
### Internationalization
Set your locales in `config/application.rb`, for example:
config.i18n.available_locales = ['en-CA', 'fr-CA']
config.i18n.default_locale = 'en-CA'
config.i18n.fallbacks = {'en-CA' => ['en-CA', :en, 'fr-CA', :fr], 'fr-CA' => ['fr-CA', :fr, 'en-CA', :en]}
config.i18n.enforce_available_locales = falseTo fully support multiple languages, in `Gemfile`:
gem 'gettext'
gem 'rails-i18n', '~> 4.0.0'
gem 'devise-i18n', '~> 0.10.4'You can then add translations to the Redis backend:
bundle exec rake citizen_budget_model:translations CONFIRM=true
### Deployment
heroku apps:create
heroku config:set SECRET_KEY_BASE=`bundle exec rake secret`
heroku config:set ACTION_MAILER_HOST=www.example.com
heroku config:set [email protected]## Testing
bundle exec rake db:drop RAILS_ENV=test
bundle exec rake db:create RAILS_ENV=test
bundle exec rake db:migrate RAILS_ENV=test
bundle exec rake
bundle exec guardCopyright (c) 2014 Open North Inc., released under the MIT license