dust-generators 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dust/version.rb +1 -1
- data/lib/generators/dust/albums/albums_generator.rb +129 -34
- data/lib/generators/dust/albums/templates/app/controllers/albums_controller.rb +24 -18
- data/lib/generators/dust/albums/templates/app/controllers/photos_controller.rb +37 -40
- data/lib/generators/dust/albums/templates/app/controllers/view_albums_controller.rb +6 -7
- data/lib/generators/dust/albums/templates/app/helpers/albums_helper.rb +1 -1
- data/lib/generators/dust/albums/templates/app/helpers/photos_helper.rb +1 -1
- data/lib/generators/dust/albums/templates/app/helpers/view_albums_helper.rb +1 -1
- data/lib/generators/dust/albums/templates/app/models/album.rb +8 -4
- data/lib/generators/dust/albums/templates/app/models/photo.rb +11 -4
- data/lib/generators/dust/albums/templates/app/views/albums/_form.html.erb +48 -18
- data/lib/generators/dust/albums/templates/app/views/albums/_search.html.erb +4 -4
- data/lib/generators/dust/albums/templates/app/views/albums/_upload_script.html.erb +11 -11
- data/lib/generators/dust/albums/templates/app/views/albums/edit.html.erb +3 -3
- data/lib/generators/dust/albums/templates/app/views/albums/index.html.erb +23 -23
- data/lib/generators/dust/albums/templates/app/views/albums/manage.html.erb +65 -0
- data/lib/generators/dust/albums/templates/app/views/albums/new.html.erb +3 -3
- data/lib/generators/dust/albums/templates/app/views/albums/show.html.erb +33 -21
- data/lib/generators/dust/albums/templates/app/views/albums/show.js.erb +1 -0
- data/lib/generators/dust/albums/templates/app/views/photos/_form.html.erb +20 -19
- data/lib/generators/dust/albums/templates/app/views/photos/_photo.html.erb +25 -23
- data/lib/generators/dust/albums/templates/app/views/photos/_search.html.erb +6 -0
- data/lib/generators/dust/albums/templates/app/views/photos/array.js.erb +3 -0
- data/lib/generators/dust/albums/templates/app/views/photos/edit.html.erb +6 -6
- data/lib/generators/dust/albums/templates/app/views/photos/index.html.erb +28 -23
- data/lib/generators/dust/albums/templates/app/views/photos/new.html.erb +4 -4
- data/lib/generators/dust/albums/templates/app/views/photos/show.html.erb +9 -9
- data/lib/generators/dust/albums/templates/app/views/photos/show.js.erb +2 -2
- data/lib/generators/dust/albums/templates/app/views/view_albums/index.html.erb +25 -14
- data/lib/generators/dust/albums/templates/app/views/view_albums/show.html.erb +23 -12
- data/lib/generators/dust/albums/templates/images/save_position.png +0 -0
- data/lib/generators/dust/albums/templates/javascripts/dragsort.js +288 -0
- data/lib/generators/dust/albums/templates/javascripts/dust_album.js +28 -0
- data/lib/generators/dust/albums/templates/{uploadify → javascripts/uploadify}/jquery.uploadify.v2.1.0.js +0 -0
- data/lib/generators/dust/albums/templates/{uploadify → javascripts/uploadify}/swfobject.js +0 -0
- data/lib/generators/dust/albums/templates/{uploadify → javascripts/uploadify}/uploadify.swf +0 -0
- data/lib/generators/dust/albums/templates/migration/albums_migration.rb +39 -0
- data/lib/generators/dust/albums/templates/stylesheets/dust_album.css +16 -0
- data/lib/generators/dust/albums/templates/stylesheets/dust_album_app.css +15 -0
- data/lib/generators/dust/albums/templates/{uploadify.css → stylesheets/uploadify.css} +1 -1
- data/rails_generators/dust_albums/templates/app/controllers/view_albums_controller.rb +1 -1
- data/rails_generators/dust_albums/templates/app/views/albums/show.html.erb +1 -1
- metadata +17 -12
- data/lib/generators/dust/albums/templates/albums_migration.rb +0 -18
- data/lib/generators/dust/albums/templates/dust_album.css +0 -11
- data/lib/generators/dust/albums/templates/jquery-1.4.2.js +0 -6240
- data/lib/generators/dust/albums/templates/photos_migration.rb +0 -20
@@ -1,20 +0,0 @@
|
|
1
|
-
class CreatePhotos < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table :photos do |t|
|
4
|
-
t.string :title
|
5
|
-
t.text :desc
|
6
|
-
t.date :date_shot
|
7
|
-
t.string :location
|
8
|
-
t.integer :album_id
|
9
|
-
t.string :file_file_name
|
10
|
-
t.string :file_content_type
|
11
|
-
t.integer :file_file_size
|
12
|
-
t.datetime :file_updated_at
|
13
|
-
t.timestamps
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
def self.down
|
18
|
-
drop_table :photos
|
19
|
-
end
|
20
|
-
end
|