Skip to content
Rails 3 - Ajax Upload + Crop with Paperclip
JavaScript Ruby
Find file
Latest commit d350af7 May 8, 2011 @apneadiving Merge pull request #1 from bokmann/master
small changes
Failed to load latest commit information.
app Works fine, needs error handling + picture delete Feb 7, 2011
config shifted to jquery upload (works only on chrome now...) Feb 7, 2011
db removed the User model reference that didn't seem relevant May 8, 2011
doc works fine Jan 16, 2011
lib/tasks
public Works fine, needs error handling + picture delete Feb 7, 2011
script
test
vendor/plugins works fine Jan 16, 2011
.DS_Store works fine Jan 16, 2011
.gitignore
Gemfile proceeding Feb 7, 2011
Gemfile.lock proceeding Feb 7, 2011
README.rdoc corrected url in documentation May 8, 2011
Rakefile works fine Jan 16, 2011
config.ru

README.rdoc

Rails 3 - Ajax Upload + Crop with Paperclip

Branch Master:

Using this great plugin: github.com/blueimp/jQuery-File-Upload

Still needs error handling + delete picture.

Branch Uploadify:

Implementation of Uploadify in Rails3 + crop in Ajax.

To make it work:

  • clone it from github

  • install all dependencies with 'bundle install'

  • create the database with 'rake db:migrate'

  • fire it up with 'rails server'

  • visit localhost:3000/

Uploadify works well for multiple files handling.

  • in profiles/_form, set multi to true

  • in pictures controller, remove the test of previous picture existence in create

You'll see that all pictures are stored (I didn't bothered to display them for now)

More info:

I added 'ADD THIS' in the relevant files It's NOT a social app so user model is a fake as well as profile

Something went wrong with that request. Please try again.