Skip to content

Commit

Permalink
add uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
barthezslavik committed Dec 20, 2012
1 parent a8e1f26 commit 4d9af90
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -22,6 +22,7 @@ group :assets do
end end


gem 'jquery-rails' gem 'jquery-rails'
gem "jquery-fileupload-rails"


# To use ActiveModel has_secure_password # To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0' # gem 'bcrypt-ruby', '~> 3.0.0'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -49,6 +49,9 @@ GEM
hike (1.2.1) hike (1.2.1)
i18n (0.6.1) i18n (0.6.1)
journey (1.0.4) journey (1.0.4)
jquery-fileupload-rails (0.4.0)
actionpack (>= 3.1)
railties (>= 3.1)
jquery-rails (2.1.4) jquery-rails (2.1.4)
railties (>= 3.0, < 5.0) railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0) thor (>= 0.14, < 2.0)
Expand Down Expand Up @@ -112,6 +115,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
coffee-rails (~> 3.2.1) coffee-rails (~> 3.2.1)
haml-rails haml-rails
jquery-fileupload-rails
jquery-rails jquery-rails
mysql2 mysql2
rails (= 3.2.9) rails (= 3.2.9)
Expand Down
11 changes: 11 additions & 0 deletions app/assets/javascripts/application.js
Expand Up @@ -13,3 +13,14 @@
//= require jquery //= require jquery
//= require jquery_ujs //= require jquery_ujs
//= require_tree . //= require_tree .

//= require jquery-fileupload
//=require jquery-fileupload/vendor/jquery.ui.widget
//=require jquery-fileupload/vendor/load-image
//=require jquery-fileupload/vendor/canvas-to-blob
//=require jquery-fileupload/vendor/tmpl
//=require jquery-fileupload/jquery.iframe-transport
//=require jquery-fileupload/jquery.fileupload
//=require jquery-fileupload/jquery.fileupload-fp
//=require jquery-fileupload/jquery.fileupload-ui
//=require jquery-fileupload/locale
2 changes: 2 additions & 0 deletions app/assets/stylesheets/application.css
Expand Up @@ -11,3 +11,5 @@
*= require_self *= require_self
*= require_tree . *= require_tree .
*/ */

//= require jquery.fileupload-ui
13 changes: 4 additions & 9 deletions app/views/samples/show.html.haml
@@ -1,12 +1,7 @@
%p#notice= notice %p#notice= notice


%p %h2= @sample.name
%b Name: %p= @sample.description
= @sample.name
%p
%b Description:
= @sample.description


= link_to 'Edit', edit_sample_path(@sample) /= link_to 'Edit', edit_sample_path(@sample)
\| /= link_to 'Back', samples_path
= link_to 'Back', samples_path

0 comments on commit 4d9af90

Please sign in to comment.