Importable

An engine for importing spreadsheets (or ActiveResources) into a Rails app, easily.

Synopsis

TODO

Usage

Add it to your Gemfile

gem 'importable'

Bundle it up

bundle install

Install the migrations and apply them

rake importable:install:migrations
rake db:migrate

Mount the engine

mount Importable::Engine => '/import'

You can use the included generator to copy the views if you'd like to customize them

rails generate importable:views

You can also create mapper specific views. This is especially useful if you want the form to provide extra info to the mapper. The generator can create these views for you if you pass the name of the mapper.

rails generate importable:view widgets

Write an import mapper

TODO

Control redirection after upload

TODO

Accept extra attributes from the import form

TODO

Start using the UI to import data

TODO

Testing import mappers

TODO

Working with ActiveResources

TODO

TODO

Resources have some flash on success functionally that spreadsheets don't

Moves strings to en.yaml

DSL to make mappers cleaner

Make database optional

Add support for other file types that roo can give us for free

Back button specs

Figure out how to allow overriding map specific templates in app/views/importable/spreadsheets/foos rather than app/views/foos/importable/spreadsheets

Initializer for configuration, should allow setting the file upload path

Underscored attribute aliases to incoming names with spaces

Allow views to be in a directories named 'import', possibly whatever the engine is mounted as

Importer#imported_items_ready? smells funny