A simple Rails 3.2.13 application. Displays the ability to upload a file to a Grape API endpoint using Pure AJAX.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.DS_Store
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Rails + GrapeAPI and AJAX file Upload

A simple Rails 3.2.13 application. Displays the ability to upload a file to a Grape API endpoint using Pure AJAX.

Before running this app on your local machine:

  • bundle install: This will mainly install Rails 3.2.13 (which I've tested), GrapeAPI, SQLite and Paperclip

  • create your database, and migrate using:

     rake db:drop #just in case
     rake db:create
     rake db:migrate
  • launch the server rails s and upload a file using the form. You can even view Firebug's console

  • Open your .railsapp/public folder and check the "uploads" folder. You should get your upload right in there.

Contact me