Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Main data catalog
JavaScript Ruby ASP PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
autotest
config
db
doc
features
lib
public
script
spec
vendor/plugins
.gitignore
.rspec
.rvmrc
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
config.ru

README.rdoc

OpenMissouri Project

OpenMissouri is a simple application that runs openmissouri.org.

OpenMissouri.org helps connect you to data that's stored offline by state and local government agencies. We make it easy for you to find, request and share information about these hundreds of offline data sets.

The OpenMissouri Project is built with Rails 3 and Ruby 1.9.2.

Some gems that are used

Initializers you might want to modify

  • config.rb - loads configuration for current Rails environment to the configatron, so you can access them like configatron.app_name

  • devise.rb - setup devise options, mailer_sender and pepper from config

  • formtastic.rb - setup formtastic options

  • tabletastic.rb - setup tabletastic options, by default all actions rendered in the list

  • mailer.rb - setup default hosts for mailer from configuration

  • simple_navigation.rb - setup simple navigation options

  • time_formats.rb - setup default time formats, so you can use them like object.create_at.to_s(:us_time)

  • requires.rb - automatically requires everything in lib/ & lib/extensions

Quick start

  • clone repository

  • tune gemspec name in the .rvmrc

  • tune config/config.yml

  • tune in the sources application name: s/Rails3Base/YouApplicationName/g

  • tune config/database.yml.example and copy it to the config/database.yml

  • bundle install

  • rake cucumber

  • for autotest run in the shell “export AUTOFEATURE=true” and than run autotest command

Authorization

We use Devise for login based auth because it's modular and has good community support. Take a look at config/initializers/devise.rb if you want customize it. You can also view the Customizing Devise railscast.

We use Omniauth for authentication over OAuth with Twitter. Please configure key & secret token in the config/config.yml If you don't want to use omniauth simply comment its configuration in the config/initializers/devise.rb. Alternatively if you're deploying to Heroku you can use the Heroku config vars.

Scaffolding

Scaffold generator will create: model with rspec, factory, controller based on inherited resources, views based on formtastic & tabletastic.

$ rails g scaffold post title:string text:text

Cucumber:feature generator will create: cucumber feature for scaffold resource

$ rails g cucumber:feature post title:string text:text
Something went wrong with that request. Please try again.