rails_filemanager 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +6 -3
- data/app/models/rails_filemanager/user_file.rb +1 -1
- data/lib/rails_filemanager/version.rb +1 -1
- metadata +15 -205
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -59
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -8
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +0 -25
- data/test/dummy/log/development.log +0 -30483
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/system/filemanager/user_files/files/000/000/011/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc +0 -0
- data/test/dummy/public/system/filemanager/user_files/files/000/000/025/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc +0 -0
- data/test/dummy/public/system/filemanager/user_files/files/000/000/026/original/IMG_3660.JPG +0 -0
- data/test/dummy/public/system/filemanager/user_files/files/000/000/026/thumb/IMG_3660.JPG +0 -0
- data/test/dummy/public/system/filemanager/user_files/files/000/000/027/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc +0 -0
- data/test/dummy/public/system/filemanager/user_files/files/000/000/028/original/IMG_3656.JPG +0 -0
- data/test/dummy/public/system/filemanager/user_files/files/000/000/028/thumb/IMG_3656.JPG +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/dummy/tmp/cache/assets/C5F/EC0/sprockets%2F880366a0bce7c9c5292702588476435f +0 -0
- data/test/dummy/tmp/cache/assets/C6A/DE0/sprockets%2F11a82d4684357f6f717f08e46c098778 +0 -0
- data/test/dummy/tmp/cache/assets/C6D/A00/sprockets%2F112ec2383d5105372c2408cc3128d97a +0 -0
- data/test/dummy/tmp/cache/assets/C79/1E0/sprockets%2F209bc293146537bc0a249d55192880ae +0 -0
- data/test/dummy/tmp/cache/assets/C8A/610/sprockets%2F811e3769e0b859039f92c3444b713a6f +0 -0
- data/test/dummy/tmp/cache/assets/C93/ED0/sprockets%2F9b1d694876ab498743ca94f375237e20 +0 -0
- data/test/dummy/tmp/cache/assets/CA5/770/sprockets%2F1f866a6f42b4b00b590787039e3a0a61 +0 -0
- data/test/dummy/tmp/cache/assets/CBD/CC0/sprockets%2F731b260e4f8d0a86866cb985e8b56009 +0 -0
- data/test/dummy/tmp/cache/assets/CC5/DC0/sprockets%2F6f80f5fe33757574deaf6288356020e9 +0 -0
- data/test/dummy/tmp/cache/assets/CCC/950/sprockets%2F40434ca07d3ca9d31fcd186e23844040 +0 -0
- data/test/dummy/tmp/cache/assets/CD0/750/sprockets%2F81210801a5c3ca83edd6f584290a154d +0 -0
- data/test/dummy/tmp/cache/assets/CE6/030/sprockets%2F69e2b36d4fa4273ba371a568250d96f8 +0 -0
- data/test/dummy/tmp/cache/assets/CE9/890/sprockets%2Fb3d4f6d7e9561f7d7f93ab3164082721 +0 -0
- data/test/dummy/tmp/cache/assets/CEE/3A0/sprockets%2F2668fe88997c30a44a561c08c13dfd84 +0 -0
- data/test/dummy/tmp/cache/assets/CFB/3A0/sprockets%2F258475698df1076d80fb8cd658af64d6 +0 -0
- data/test/dummy/tmp/cache/assets/D0F/120/sprockets%2F05459b187ab2c86a3c195fe8ae6b5017 +0 -0
- data/test/dummy/tmp/cache/assets/D11/FD0/sprockets%2Fb6d29af21842f75df78e2c51b30c4960 +0 -0
- data/test/dummy/tmp/cache/assets/D15/EF0/sprockets%2Fc5e6bef89e8e03bc700286c0f3434376 +0 -0
- data/test/dummy/tmp/cache/assets/D1C/130/sprockets%2F2ab864347b2a99a969439cd4bfc605a9 +0 -0
- data/test/dummy/tmp/cache/assets/D1D/1A0/sprockets%2F6bfc8aab36196213ed962e869108fe65 +0 -0
- data/test/dummy/tmp/cache/assets/D29/020/sprockets%2Fd9379b9d0775497c6048a89d1edfd2a5 +0 -0
- data/test/dummy/tmp/cache/assets/D2C/8B0/sprockets%2F69495222d42fe056ce10aaec1b46bb32 +0 -0
- data/test/dummy/tmp/cache/assets/D2C/F00/sprockets%2F4f53320e377bda8d02208223bedfa81b +0 -0
- data/test/dummy/tmp/cache/assets/D2E/580/sprockets%2F6a85c68100ba73af3b00cd415b75ed29 +0 -0
- data/test/dummy/tmp/cache/assets/D30/7F0/sprockets%2Fbbe02f5dab0d3ab27b587377341635f1 +0 -0
- data/test/dummy/tmp/cache/assets/D3D/240/sprockets%2Fddd47cd167d0d7286407f30aa282df19 +0 -0
- data/test/dummy/tmp/cache/assets/D47/180/sprockets%2Fe33fd6ae7ba55d67934060f7e1066fc7 +0 -0
- data/test/dummy/tmp/cache/assets/D49/090/sprockets%2F87c9281980d8bb8e44fd82be3e233e0a +0 -0
- data/test/dummy/tmp/cache/assets/D4D/FC0/sprockets%2F82dd43d39335afd1e3d7e3eb955828e5 +0 -0
- data/test/dummy/tmp/cache/assets/D4D/FF0/sprockets%2F8dfd773d893ef344047215b8b75cfa4c +0 -0
- data/test/dummy/tmp/cache/assets/D50/9E0/sprockets%2Ffa1cf49cb129c117f314b2aa8b30140c +0 -0
- data/test/dummy/tmp/cache/assets/D5D/580/sprockets%2F16cd145bab80a8321dd4d5b71af46a48 +0 -0
- data/test/dummy/tmp/cache/assets/D5E/F20/sprockets%2Fb93042ac5aac052d8d58d1a5e6358c0c +0 -0
- data/test/dummy/tmp/cache/assets/D64/860/sprockets%2F65032e4c6533b3d5e5d85320b9bdcdbc +0 -0
- data/test/dummy/tmp/cache/assets/D6B/0E0/sprockets%2Fa75c71f484a96c6fb73a2b2c5bc3b247 +0 -0
- data/test/dummy/tmp/cache/assets/D72/340/sprockets%2Fbc87e84bee94406c3832a2a4a2f58cb8 +0 -0
- data/test/dummy/tmp/cache/assets/D84/9E0/sprockets%2Fbdc112fccee313104d395cf0d45a35b3 +0 -0
- data/test/dummy/tmp/cache/assets/D87/600/sprockets%2Fbfc05d5cd967cc99e8795bbe37c88014 +0 -0
- data/test/dummy/tmp/cache/assets/D88/7E0/sprockets%2F0bff1ed120033fc8672bc1fc25641dcc +0 -0
- data/test/dummy/tmp/cache/assets/D89/9C0/sprockets%2F862cf6cf34133f79fc4fd9899e046cad +0 -0
- data/test/dummy/tmp/cache/assets/D94/8C0/sprockets%2F18b85e0d8d7a0e305ac6ea0a6f68b05d +0 -0
- data/test/dummy/tmp/cache/assets/D97/5F0/sprockets%2F0db86ea255bd0675ddcf830a143e5fc5 +0 -0
- data/test/dummy/tmp/cache/assets/DA1/200/sprockets%2Fc92cdb1f518fe55a9d5ca3fe910186d2 +0 -0
- data/test/dummy/tmp/cache/assets/DB5/C70/sprockets%2F5af6b67c5bde8b9f62dff65a715c9168 +0 -0
- data/test/dummy/tmp/cache/assets/DBA/5A0/sprockets%2F21d037a2b4cfec7d2b905adf2d3ac077 +0 -0
- data/test/dummy/tmp/cache/assets/DBB/940/sprockets%2Fda934135c092e4eca0e1fb526c3cdce1 +0 -0
- data/test/dummy/tmp/cache/assets/DC1/1F0/sprockets%2F29c336caa3694c97d0ecfabb531ac0a8 +0 -0
- data/test/dummy/tmp/cache/assets/DD1/410/sprockets%2F2d759fac23bbdb18a90f55edd6c9b823 +0 -0
- data/test/dummy/tmp/cache/assets/DD1/640/sprockets%2F54da5eee473163abf496a02cdc98c5de +0 -0
- data/test/dummy/tmp/cache/assets/DE8/A70/sprockets%2Fad4d54d9b01d36cb8832bc7ac0dd1c0c +0 -0
- data/test/dummy/tmp/cache/assets/DF2/070/sprockets%2F4a41bda1734f1a6ebb92fe3e2dfa7f16 +0 -0
- data/test/dummy/tmp/cache/assets/DFA/F40/sprockets%2Fc7b7f476843ca25acbfae5ec04b80ef2 +0 -0
- data/test/dummy/tmp/cache/assets/DFE/9E0/sprockets%2F5fcd3f6477f9b0c1b1bf2c9cf2f7ac32 +0 -0
- data/test/dummy/tmp/cache/assets/E00/060/sprockets%2Fb7a28dfe5a9af2b826aae54cfb5935a5 +0 -0
- data/test/dummy/tmp/cache/assets/E06/240/sprockets%2F5f98c3eb3018aa35fce27844afeff0ff +0 -0
- data/test/dummy/tmp/cache/assets/E0A/4A0/sprockets%2Fabb2fe775e5afd3cf58fa8ec33e37744 +0 -0
- data/test/dummy/tmp/cache/assets/E29/B80/sprockets%2Fed1bcdf52dd44b2a95dee1795a5a7bf0 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0916acb471ddf7f3286c6e4e52b0180900c2809f
|
4
|
+
data.tar.gz: 4372d973673693259c8827afc3333894375ee740
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f82c0c500862fa960e1ccfd1125ea4f17bf48ba94b599fce8d8ab6f7f67aa615ee03a3dd3dbda92f906008dda5090397f19d56858a6dc13ede2ec47d6f0abbb
|
7
|
+
data.tar.gz: 148a5a5df8d0337b18a80ffb194fc3c394d305445c585c70fcbb14b964fc90d73f2584cfb4072f3f986ace2226dc325a10bbc66c46521b127386c4efbe5a25ec
|
data/README.rdoc
CHANGED
@@ -69,9 +69,9 @@ Say, if your app speaks spanish, you could use this example:
|
|
69
69
|
|
70
70
|
rails_filemanager:
|
71
71
|
upload: "Upload archivos"
|
72
|
-
delete: "Eliminar %{filename}?"
|
72
|
+
delete: "¿Eliminar %{filename}?"
|
73
73
|
|
74
|
-
==
|
74
|
+
== Roadmap
|
75
75
|
|
76
76
|
* Organize in folders
|
77
77
|
* Custom javascript callback
|
@@ -80,7 +80,10 @@ Say, if your app speaks spanish, you could use this example:
|
|
80
80
|
== License
|
81
81
|
|
82
82
|
This project rocks and uses MIT-LICENSE.
|
83
|
+
<<<<<<< HEAD
|
83
84
|
|
84
85
|
Uploadify: http://www.uploadify.com/mit-license/
|
85
86
|
|
86
|
-
Paperclip: https://github.com/thoughtbot/paperclip#license
|
87
|
+
Paperclip: https://github.com/thoughtbot/paperclip#license
|
88
|
+
=======
|
89
|
+
>>>>>>> baf16fe1f2677143989f07591bd3b265dcd2b844
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aske Hansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: paperclip
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: This is a filemanager for ruby on rails that works right away with CKEditor
|
@@ -59,6 +59,9 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- MIT-LICENSE
|
63
|
+
- README.rdoc
|
64
|
+
- Rakefile
|
62
65
|
- app/assets/images/rails_filemanager/delete.png
|
63
66
|
- app/assets/images/rails_filemanager/file.png
|
64
67
|
- app/assets/images/rails_filemanager/uploadify-cancel.png
|
@@ -81,108 +84,10 @@ files:
|
|
81
84
|
- lib/generators/rails_filemanager/install/install_generator.rb
|
82
85
|
- lib/generators/rails_filemanager/install/templates/create_rails_filemanager_user_files.rb
|
83
86
|
- lib/generators/rails_filemanager/install/templates/rails_filemanager.rb
|
87
|
+
- lib/rails_filemanager.rb
|
84
88
|
- lib/rails_filemanager/engine.rb
|
85
89
|
- lib/rails_filemanager/version.rb
|
86
|
-
- lib/rails_filemanager.rb
|
87
90
|
- lib/tasks/filemanager_tasks.rake
|
88
|
-
- MIT-LICENSE
|
89
|
-
- Rakefile
|
90
|
-
- README.rdoc
|
91
|
-
- test/dummy/app/assets/javascripts/application.js
|
92
|
-
- test/dummy/app/assets/stylesheets/application.css
|
93
|
-
- test/dummy/app/controllers/application_controller.rb
|
94
|
-
- test/dummy/app/helpers/application_helper.rb
|
95
|
-
- test/dummy/app/views/layouts/application.html.erb
|
96
|
-
- test/dummy/config/application.rb
|
97
|
-
- test/dummy/config/boot.rb
|
98
|
-
- test/dummy/config/database.yml
|
99
|
-
- test/dummy/config/environment.rb
|
100
|
-
- test/dummy/config/environments/development.rb
|
101
|
-
- test/dummy/config/environments/production.rb
|
102
|
-
- test/dummy/config/environments/test.rb
|
103
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
104
|
-
- test/dummy/config/initializers/inflections.rb
|
105
|
-
- test/dummy/config/initializers/mime_types.rb
|
106
|
-
- test/dummy/config/initializers/secret_token.rb
|
107
|
-
- test/dummy/config/initializers/session_store.rb
|
108
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
109
|
-
- test/dummy/config/locales/en.yml
|
110
|
-
- test/dummy/config/routes.rb
|
111
|
-
- test/dummy/config.ru
|
112
|
-
- test/dummy/db/development.sqlite3
|
113
|
-
- test/dummy/db/schema.rb
|
114
|
-
- test/dummy/log/development.log
|
115
|
-
- test/dummy/public/404.html
|
116
|
-
- test/dummy/public/422.html
|
117
|
-
- test/dummy/public/500.html
|
118
|
-
- test/dummy/public/favicon.ico
|
119
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/011/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc
|
120
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/025/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc
|
121
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/026/original/IMG_3660.JPG
|
122
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/026/thumb/IMG_3660.JPG
|
123
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/027/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc
|
124
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/028/original/IMG_3656.JPG
|
125
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/028/thumb/IMG_3656.JPG
|
126
|
-
- test/dummy/Rakefile
|
127
|
-
- test/dummy/README.rdoc
|
128
|
-
- test/dummy/script/rails
|
129
|
-
- test/dummy/tmp/cache/assets/C5F/EC0/sprockets%2F880366a0bce7c9c5292702588476435f
|
130
|
-
- test/dummy/tmp/cache/assets/C6A/DE0/sprockets%2F11a82d4684357f6f717f08e46c098778
|
131
|
-
- test/dummy/tmp/cache/assets/C6D/A00/sprockets%2F112ec2383d5105372c2408cc3128d97a
|
132
|
-
- test/dummy/tmp/cache/assets/C79/1E0/sprockets%2F209bc293146537bc0a249d55192880ae
|
133
|
-
- test/dummy/tmp/cache/assets/C8A/610/sprockets%2F811e3769e0b859039f92c3444b713a6f
|
134
|
-
- test/dummy/tmp/cache/assets/C93/ED0/sprockets%2F9b1d694876ab498743ca94f375237e20
|
135
|
-
- test/dummy/tmp/cache/assets/CA5/770/sprockets%2F1f866a6f42b4b00b590787039e3a0a61
|
136
|
-
- test/dummy/tmp/cache/assets/CBD/CC0/sprockets%2F731b260e4f8d0a86866cb985e8b56009
|
137
|
-
- test/dummy/tmp/cache/assets/CC5/DC0/sprockets%2F6f80f5fe33757574deaf6288356020e9
|
138
|
-
- test/dummy/tmp/cache/assets/CCC/950/sprockets%2F40434ca07d3ca9d31fcd186e23844040
|
139
|
-
- test/dummy/tmp/cache/assets/CD0/750/sprockets%2F81210801a5c3ca83edd6f584290a154d
|
140
|
-
- test/dummy/tmp/cache/assets/CE6/030/sprockets%2F69e2b36d4fa4273ba371a568250d96f8
|
141
|
-
- test/dummy/tmp/cache/assets/CE9/890/sprockets%2Fb3d4f6d7e9561f7d7f93ab3164082721
|
142
|
-
- test/dummy/tmp/cache/assets/CEE/3A0/sprockets%2F2668fe88997c30a44a561c08c13dfd84
|
143
|
-
- test/dummy/tmp/cache/assets/CFB/3A0/sprockets%2F258475698df1076d80fb8cd658af64d6
|
144
|
-
- test/dummy/tmp/cache/assets/D0F/120/sprockets%2F05459b187ab2c86a3c195fe8ae6b5017
|
145
|
-
- test/dummy/tmp/cache/assets/D11/FD0/sprockets%2Fb6d29af21842f75df78e2c51b30c4960
|
146
|
-
- test/dummy/tmp/cache/assets/D15/EF0/sprockets%2Fc5e6bef89e8e03bc700286c0f3434376
|
147
|
-
- test/dummy/tmp/cache/assets/D1C/130/sprockets%2F2ab864347b2a99a969439cd4bfc605a9
|
148
|
-
- test/dummy/tmp/cache/assets/D1D/1A0/sprockets%2F6bfc8aab36196213ed962e869108fe65
|
149
|
-
- test/dummy/tmp/cache/assets/D29/020/sprockets%2Fd9379b9d0775497c6048a89d1edfd2a5
|
150
|
-
- test/dummy/tmp/cache/assets/D2C/8B0/sprockets%2F69495222d42fe056ce10aaec1b46bb32
|
151
|
-
- test/dummy/tmp/cache/assets/D2C/F00/sprockets%2F4f53320e377bda8d02208223bedfa81b
|
152
|
-
- test/dummy/tmp/cache/assets/D2E/580/sprockets%2F6a85c68100ba73af3b00cd415b75ed29
|
153
|
-
- test/dummy/tmp/cache/assets/D30/7F0/sprockets%2Fbbe02f5dab0d3ab27b587377341635f1
|
154
|
-
- test/dummy/tmp/cache/assets/D3D/240/sprockets%2Fddd47cd167d0d7286407f30aa282df19
|
155
|
-
- test/dummy/tmp/cache/assets/D47/180/sprockets%2Fe33fd6ae7ba55d67934060f7e1066fc7
|
156
|
-
- test/dummy/tmp/cache/assets/D49/090/sprockets%2F87c9281980d8bb8e44fd82be3e233e0a
|
157
|
-
- test/dummy/tmp/cache/assets/D4D/FC0/sprockets%2F82dd43d39335afd1e3d7e3eb955828e5
|
158
|
-
- test/dummy/tmp/cache/assets/D4D/FF0/sprockets%2F8dfd773d893ef344047215b8b75cfa4c
|
159
|
-
- test/dummy/tmp/cache/assets/D50/9E0/sprockets%2Ffa1cf49cb129c117f314b2aa8b30140c
|
160
|
-
- test/dummy/tmp/cache/assets/D5D/580/sprockets%2F16cd145bab80a8321dd4d5b71af46a48
|
161
|
-
- test/dummy/tmp/cache/assets/D5E/F20/sprockets%2Fb93042ac5aac052d8d58d1a5e6358c0c
|
162
|
-
- test/dummy/tmp/cache/assets/D64/860/sprockets%2F65032e4c6533b3d5e5d85320b9bdcdbc
|
163
|
-
- test/dummy/tmp/cache/assets/D6B/0E0/sprockets%2Fa75c71f484a96c6fb73a2b2c5bc3b247
|
164
|
-
- test/dummy/tmp/cache/assets/D72/340/sprockets%2Fbc87e84bee94406c3832a2a4a2f58cb8
|
165
|
-
- test/dummy/tmp/cache/assets/D84/9E0/sprockets%2Fbdc112fccee313104d395cf0d45a35b3
|
166
|
-
- test/dummy/tmp/cache/assets/D87/600/sprockets%2Fbfc05d5cd967cc99e8795bbe37c88014
|
167
|
-
- test/dummy/tmp/cache/assets/D88/7E0/sprockets%2F0bff1ed120033fc8672bc1fc25641dcc
|
168
|
-
- test/dummy/tmp/cache/assets/D89/9C0/sprockets%2F862cf6cf34133f79fc4fd9899e046cad
|
169
|
-
- test/dummy/tmp/cache/assets/D94/8C0/sprockets%2F18b85e0d8d7a0e305ac6ea0a6f68b05d
|
170
|
-
- test/dummy/tmp/cache/assets/D97/5F0/sprockets%2F0db86ea255bd0675ddcf830a143e5fc5
|
171
|
-
- test/dummy/tmp/cache/assets/DA1/200/sprockets%2Fc92cdb1f518fe55a9d5ca3fe910186d2
|
172
|
-
- test/dummy/tmp/cache/assets/DB5/C70/sprockets%2F5af6b67c5bde8b9f62dff65a715c9168
|
173
|
-
- test/dummy/tmp/cache/assets/DBA/5A0/sprockets%2F21d037a2b4cfec7d2b905adf2d3ac077
|
174
|
-
- test/dummy/tmp/cache/assets/DBB/940/sprockets%2Fda934135c092e4eca0e1fb526c3cdce1
|
175
|
-
- test/dummy/tmp/cache/assets/DC1/1F0/sprockets%2F29c336caa3694c97d0ecfabb531ac0a8
|
176
|
-
- test/dummy/tmp/cache/assets/DD1/410/sprockets%2F2d759fac23bbdb18a90f55edd6c9b823
|
177
|
-
- test/dummy/tmp/cache/assets/DD1/640/sprockets%2F54da5eee473163abf496a02cdc98c5de
|
178
|
-
- test/dummy/tmp/cache/assets/DE8/A70/sprockets%2Fad4d54d9b01d36cb8832bc7ac0dd1c0c
|
179
|
-
- test/dummy/tmp/cache/assets/DF2/070/sprockets%2F4a41bda1734f1a6ebb92fe3e2dfa7f16
|
180
|
-
- test/dummy/tmp/cache/assets/DFA/F40/sprockets%2Fc7b7f476843ca25acbfae5ec04b80ef2
|
181
|
-
- test/dummy/tmp/cache/assets/DFE/9E0/sprockets%2F5fcd3f6477f9b0c1b1bf2c9cf2f7ac32
|
182
|
-
- test/dummy/tmp/cache/assets/E00/060/sprockets%2Fb7a28dfe5a9af2b826aae54cfb5935a5
|
183
|
-
- test/dummy/tmp/cache/assets/E06/240/sprockets%2F5f98c3eb3018aa35fce27844afeff0ff
|
184
|
-
- test/dummy/tmp/cache/assets/E0A/4A0/sprockets%2Fabb2fe775e5afd3cf58fa8ec33e37744
|
185
|
-
- test/dummy/tmp/cache/assets/E29/B80/sprockets%2Fed1bcdf52dd44b2a95dee1795a5a7bf0
|
186
91
|
- test/filemanager_test.rb
|
187
92
|
- test/fixtures/rails_filemanager/user_files.yml
|
188
93
|
- test/functional/rails_filemanager/files_controller_test.rb
|
@@ -199,116 +104,21 @@ require_paths:
|
|
199
104
|
- lib
|
200
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
201
106
|
requirements:
|
202
|
-
- -
|
107
|
+
- - ">="
|
203
108
|
- !ruby/object:Gem::Version
|
204
109
|
version: '0'
|
205
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
111
|
requirements:
|
207
|
-
- -
|
112
|
+
- - ">="
|
208
113
|
- !ruby/object:Gem::Version
|
209
114
|
version: '0'
|
210
115
|
requirements: []
|
211
116
|
rubyforge_project:
|
212
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.4.1
|
213
118
|
signing_key:
|
214
119
|
specification_version: 4
|
215
120
|
summary: A ruby on rails filemanager
|
216
121
|
test_files:
|
217
|
-
- test/dummy/app/assets/javascripts/application.js
|
218
|
-
- test/dummy/app/assets/stylesheets/application.css
|
219
|
-
- test/dummy/app/controllers/application_controller.rb
|
220
|
-
- test/dummy/app/helpers/application_helper.rb
|
221
|
-
- test/dummy/app/views/layouts/application.html.erb
|
222
|
-
- test/dummy/config/application.rb
|
223
|
-
- test/dummy/config/boot.rb
|
224
|
-
- test/dummy/config/database.yml
|
225
|
-
- test/dummy/config/environment.rb
|
226
|
-
- test/dummy/config/environments/development.rb
|
227
|
-
- test/dummy/config/environments/production.rb
|
228
|
-
- test/dummy/config/environments/test.rb
|
229
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
230
|
-
- test/dummy/config/initializers/inflections.rb
|
231
|
-
- test/dummy/config/initializers/mime_types.rb
|
232
|
-
- test/dummy/config/initializers/secret_token.rb
|
233
|
-
- test/dummy/config/initializers/session_store.rb
|
234
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
235
|
-
- test/dummy/config/locales/en.yml
|
236
|
-
- test/dummy/config/routes.rb
|
237
|
-
- test/dummy/config.ru
|
238
|
-
- test/dummy/db/development.sqlite3
|
239
|
-
- test/dummy/db/schema.rb
|
240
|
-
- test/dummy/log/development.log
|
241
|
-
- test/dummy/public/404.html
|
242
|
-
- test/dummy/public/422.html
|
243
|
-
- test/dummy/public/500.html
|
244
|
-
- test/dummy/public/favicon.ico
|
245
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/011/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc
|
246
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/025/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc
|
247
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/026/original/IMG_3660.JPG
|
248
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/026/thumb/IMG_3660.JPG
|
249
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/027/original/Ace_Ventura_-_Pet_Detective_(1994)__ENG___DVDrip_.avi___PutLocker.webloc
|
250
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/028/original/IMG_3656.JPG
|
251
|
-
- test/dummy/public/system/filemanager/user_files/files/000/000/028/thumb/IMG_3656.JPG
|
252
|
-
- test/dummy/Rakefile
|
253
|
-
- test/dummy/README.rdoc
|
254
|
-
- test/dummy/script/rails
|
255
|
-
- test/dummy/tmp/cache/assets/C5F/EC0/sprockets%2F880366a0bce7c9c5292702588476435f
|
256
|
-
- test/dummy/tmp/cache/assets/C6A/DE0/sprockets%2F11a82d4684357f6f717f08e46c098778
|
257
|
-
- test/dummy/tmp/cache/assets/C6D/A00/sprockets%2F112ec2383d5105372c2408cc3128d97a
|
258
|
-
- test/dummy/tmp/cache/assets/C79/1E0/sprockets%2F209bc293146537bc0a249d55192880ae
|
259
|
-
- test/dummy/tmp/cache/assets/C8A/610/sprockets%2F811e3769e0b859039f92c3444b713a6f
|
260
|
-
- test/dummy/tmp/cache/assets/C93/ED0/sprockets%2F9b1d694876ab498743ca94f375237e20
|
261
|
-
- test/dummy/tmp/cache/assets/CA5/770/sprockets%2F1f866a6f42b4b00b590787039e3a0a61
|
262
|
-
- test/dummy/tmp/cache/assets/CBD/CC0/sprockets%2F731b260e4f8d0a86866cb985e8b56009
|
263
|
-
- test/dummy/tmp/cache/assets/CC5/DC0/sprockets%2F6f80f5fe33757574deaf6288356020e9
|
264
|
-
- test/dummy/tmp/cache/assets/CCC/950/sprockets%2F40434ca07d3ca9d31fcd186e23844040
|
265
|
-
- test/dummy/tmp/cache/assets/CD0/750/sprockets%2F81210801a5c3ca83edd6f584290a154d
|
266
|
-
- test/dummy/tmp/cache/assets/CE6/030/sprockets%2F69e2b36d4fa4273ba371a568250d96f8
|
267
|
-
- test/dummy/tmp/cache/assets/CE9/890/sprockets%2Fb3d4f6d7e9561f7d7f93ab3164082721
|
268
|
-
- test/dummy/tmp/cache/assets/CEE/3A0/sprockets%2F2668fe88997c30a44a561c08c13dfd84
|
269
|
-
- test/dummy/tmp/cache/assets/CFB/3A0/sprockets%2F258475698df1076d80fb8cd658af64d6
|
270
|
-
- test/dummy/tmp/cache/assets/D0F/120/sprockets%2F05459b187ab2c86a3c195fe8ae6b5017
|
271
|
-
- test/dummy/tmp/cache/assets/D11/FD0/sprockets%2Fb6d29af21842f75df78e2c51b30c4960
|
272
|
-
- test/dummy/tmp/cache/assets/D15/EF0/sprockets%2Fc5e6bef89e8e03bc700286c0f3434376
|
273
|
-
- test/dummy/tmp/cache/assets/D1C/130/sprockets%2F2ab864347b2a99a969439cd4bfc605a9
|
274
|
-
- test/dummy/tmp/cache/assets/D1D/1A0/sprockets%2F6bfc8aab36196213ed962e869108fe65
|
275
|
-
- test/dummy/tmp/cache/assets/D29/020/sprockets%2Fd9379b9d0775497c6048a89d1edfd2a5
|
276
|
-
- test/dummy/tmp/cache/assets/D2C/8B0/sprockets%2F69495222d42fe056ce10aaec1b46bb32
|
277
|
-
- test/dummy/tmp/cache/assets/D2C/F00/sprockets%2F4f53320e377bda8d02208223bedfa81b
|
278
|
-
- test/dummy/tmp/cache/assets/D2E/580/sprockets%2F6a85c68100ba73af3b00cd415b75ed29
|
279
|
-
- test/dummy/tmp/cache/assets/D30/7F0/sprockets%2Fbbe02f5dab0d3ab27b587377341635f1
|
280
|
-
- test/dummy/tmp/cache/assets/D3D/240/sprockets%2Fddd47cd167d0d7286407f30aa282df19
|
281
|
-
- test/dummy/tmp/cache/assets/D47/180/sprockets%2Fe33fd6ae7ba55d67934060f7e1066fc7
|
282
|
-
- test/dummy/tmp/cache/assets/D49/090/sprockets%2F87c9281980d8bb8e44fd82be3e233e0a
|
283
|
-
- test/dummy/tmp/cache/assets/D4D/FC0/sprockets%2F82dd43d39335afd1e3d7e3eb955828e5
|
284
|
-
- test/dummy/tmp/cache/assets/D4D/FF0/sprockets%2F8dfd773d893ef344047215b8b75cfa4c
|
285
|
-
- test/dummy/tmp/cache/assets/D50/9E0/sprockets%2Ffa1cf49cb129c117f314b2aa8b30140c
|
286
|
-
- test/dummy/tmp/cache/assets/D5D/580/sprockets%2F16cd145bab80a8321dd4d5b71af46a48
|
287
|
-
- test/dummy/tmp/cache/assets/D5E/F20/sprockets%2Fb93042ac5aac052d8d58d1a5e6358c0c
|
288
|
-
- test/dummy/tmp/cache/assets/D64/860/sprockets%2F65032e4c6533b3d5e5d85320b9bdcdbc
|
289
|
-
- test/dummy/tmp/cache/assets/D6B/0E0/sprockets%2Fa75c71f484a96c6fb73a2b2c5bc3b247
|
290
|
-
- test/dummy/tmp/cache/assets/D72/340/sprockets%2Fbc87e84bee94406c3832a2a4a2f58cb8
|
291
|
-
- test/dummy/tmp/cache/assets/D84/9E0/sprockets%2Fbdc112fccee313104d395cf0d45a35b3
|
292
|
-
- test/dummy/tmp/cache/assets/D87/600/sprockets%2Fbfc05d5cd967cc99e8795bbe37c88014
|
293
|
-
- test/dummy/tmp/cache/assets/D88/7E0/sprockets%2F0bff1ed120033fc8672bc1fc25641dcc
|
294
|
-
- test/dummy/tmp/cache/assets/D89/9C0/sprockets%2F862cf6cf34133f79fc4fd9899e046cad
|
295
|
-
- test/dummy/tmp/cache/assets/D94/8C0/sprockets%2F18b85e0d8d7a0e305ac6ea0a6f68b05d
|
296
|
-
- test/dummy/tmp/cache/assets/D97/5F0/sprockets%2F0db86ea255bd0675ddcf830a143e5fc5
|
297
|
-
- test/dummy/tmp/cache/assets/DA1/200/sprockets%2Fc92cdb1f518fe55a9d5ca3fe910186d2
|
298
|
-
- test/dummy/tmp/cache/assets/DB5/C70/sprockets%2F5af6b67c5bde8b9f62dff65a715c9168
|
299
|
-
- test/dummy/tmp/cache/assets/DBA/5A0/sprockets%2F21d037a2b4cfec7d2b905adf2d3ac077
|
300
|
-
- test/dummy/tmp/cache/assets/DBB/940/sprockets%2Fda934135c092e4eca0e1fb526c3cdce1
|
301
|
-
- test/dummy/tmp/cache/assets/DC1/1F0/sprockets%2F29c336caa3694c97d0ecfabb531ac0a8
|
302
|
-
- test/dummy/tmp/cache/assets/DD1/410/sprockets%2F2d759fac23bbdb18a90f55edd6c9b823
|
303
|
-
- test/dummy/tmp/cache/assets/DD1/640/sprockets%2F54da5eee473163abf496a02cdc98c5de
|
304
|
-
- test/dummy/tmp/cache/assets/DE8/A70/sprockets%2Fad4d54d9b01d36cb8832bc7ac0dd1c0c
|
305
|
-
- test/dummy/tmp/cache/assets/DF2/070/sprockets%2F4a41bda1734f1a6ebb92fe3e2dfa7f16
|
306
|
-
- test/dummy/tmp/cache/assets/DFA/F40/sprockets%2Fc7b7f476843ca25acbfae5ec04b80ef2
|
307
|
-
- test/dummy/tmp/cache/assets/DFE/9E0/sprockets%2F5fcd3f6477f9b0c1b1bf2c9cf2f7ac32
|
308
|
-
- test/dummy/tmp/cache/assets/E00/060/sprockets%2Fb7a28dfe5a9af2b826aae54cfb5935a5
|
309
|
-
- test/dummy/tmp/cache/assets/E06/240/sprockets%2F5f98c3eb3018aa35fce27844afeff0ff
|
310
|
-
- test/dummy/tmp/cache/assets/E0A/4A0/sprockets%2Fabb2fe775e5afd3cf58fa8ec33e37744
|
311
|
-
- test/dummy/tmp/cache/assets/E29/B80/sprockets%2Fed1bcdf52dd44b2a95dee1795a5a7bf0
|
312
122
|
- test/filemanager_test.rb
|
313
123
|
- test/fixtures/rails_filemanager/user_files.yml
|
314
124
|
- test/functional/rails_filemanager/files_controller_test.rb
|
data/test/dummy/README.rdoc
DELETED
@@ -1,261 +0,0 @@
|
|
1
|
-
== Welcome to Rails
|
2
|
-
|
3
|
-
Rails is a web-application framework that includes everything needed to create
|
4
|
-
database-backed web applications according to the Model-View-Control pattern.
|
5
|
-
|
6
|
-
This pattern splits the view (also called the presentation) into "dumb"
|
7
|
-
templates that are primarily responsible for inserting pre-built data in between
|
8
|
-
HTML tags. The model contains the "smart" domain objects (such as Account,
|
9
|
-
Product, Person, Post) that holds all the business logic and knows how to
|
10
|
-
persist themselves to a database. The controller handles the incoming requests
|
11
|
-
(such as Save New Account, Update Product, Show Post) by manipulating the model
|
12
|
-
and directing data to the view.
|
13
|
-
|
14
|
-
In Rails, the model is handled by what's called an object-relational mapping
|
15
|
-
layer entitled Active Record. This layer allows you to present the data from
|
16
|
-
database rows as objects and embellish these data objects with business logic
|
17
|
-
methods. You can read more about Active Record in
|
18
|
-
link:files/vendor/rails/activerecord/README.html.
|
19
|
-
|
20
|
-
The controller and view are handled by the Action Pack, which handles both
|
21
|
-
layers by its two parts: Action View and Action Controller. These two layers
|
22
|
-
are bundled in a single package due to their heavy interdependence. This is
|
23
|
-
unlike the relationship between the Active Record and Action Pack that is much
|
24
|
-
more separate. Each of these packages can be used independently outside of
|
25
|
-
Rails. You can read more about Action Pack in
|
26
|
-
link:files/vendor/rails/actionpack/README.html.
|
27
|
-
|
28
|
-
|
29
|
-
== Getting Started
|
30
|
-
|
31
|
-
1. At the command prompt, create a new Rails application:
|
32
|
-
<tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
|
33
|
-
|
34
|
-
2. Change directory to <tt>myapp</tt> and start the web server:
|
35
|
-
<tt>cd myapp; rails server</tt> (run with --help for options)
|
36
|
-
|
37
|
-
3. Go to http://localhost:3000/ and you'll see:
|
38
|
-
"Welcome aboard: You're riding Ruby on Rails!"
|
39
|
-
|
40
|
-
4. Follow the guidelines to start developing your application. You can find
|
41
|
-
the following resources handy:
|
42
|
-
|
43
|
-
* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
|
44
|
-
* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
|
45
|
-
|
46
|
-
|
47
|
-
== Debugging Rails
|
48
|
-
|
49
|
-
Sometimes your application goes wrong. Fortunately there are a lot of tools that
|
50
|
-
will help you debug it and get it back on the rails.
|
51
|
-
|
52
|
-
First area to check is the application log files. Have "tail -f" commands
|
53
|
-
running on the server.log and development.log. Rails will automatically display
|
54
|
-
debugging and runtime information to these files. Debugging info will also be
|
55
|
-
shown in the browser on requests from 127.0.0.1.
|
56
|
-
|
57
|
-
You can also log your own messages directly into the log file from your code
|
58
|
-
using the Ruby logger class from inside your controllers. Example:
|
59
|
-
|
60
|
-
class WeblogController < ActionController::Base
|
61
|
-
def destroy
|
62
|
-
@weblog = Weblog.find(params[:id])
|
63
|
-
@weblog.destroy
|
64
|
-
logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
The result will be a message in your log file along the lines of:
|
69
|
-
|
70
|
-
Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
|
71
|
-
|
72
|
-
More information on how to use the logger is at http://www.ruby-doc.org/core/
|
73
|
-
|
74
|
-
Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
|
75
|
-
several books available online as well:
|
76
|
-
|
77
|
-
* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
|
78
|
-
* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
|
79
|
-
|
80
|
-
These two books will bring you up to speed on the Ruby language and also on
|
81
|
-
programming in general.
|
82
|
-
|
83
|
-
|
84
|
-
== Debugger
|
85
|
-
|
86
|
-
Debugger support is available through the debugger command when you start your
|
87
|
-
Mongrel or WEBrick server with --debugger. This means that you can break out of
|
88
|
-
execution at any point in the code, investigate and change the model, and then,
|
89
|
-
resume execution! You need to install ruby-debug to run the server in debugging
|
90
|
-
mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
|
91
|
-
|
92
|
-
class WeblogController < ActionController::Base
|
93
|
-
def index
|
94
|
-
@posts = Post.all
|
95
|
-
debugger
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
So the controller will accept the action, run the first line, then present you
|
100
|
-
with a IRB prompt in the server window. Here you can do things like:
|
101
|
-
|
102
|
-
>> @posts.inspect
|
103
|
-
=> "[#<Post:0x14a6be8
|
104
|
-
@attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
|
105
|
-
#<Post:0x14a6620
|
106
|
-
@attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
|
107
|
-
>> @posts.first.title = "hello from a debugger"
|
108
|
-
=> "hello from a debugger"
|
109
|
-
|
110
|
-
...and even better, you can examine how your runtime objects actually work:
|
111
|
-
|
112
|
-
>> f = @posts.first
|
113
|
-
=> #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
|
114
|
-
>> f.
|
115
|
-
Display all 152 possibilities? (y or n)
|
116
|
-
|
117
|
-
Finally, when you're ready to resume execution, you can enter "cont".
|
118
|
-
|
119
|
-
|
120
|
-
== Console
|
121
|
-
|
122
|
-
The console is a Ruby shell, which allows you to interact with your
|
123
|
-
application's domain model. Here you'll have all parts of the application
|
124
|
-
configured, just like it is when the application is running. You can inspect
|
125
|
-
domain models, change values, and save to the database. Starting the script
|
126
|
-
without arguments will launch it in the development environment.
|
127
|
-
|
128
|
-
To start the console, run <tt>rails console</tt> from the application
|
129
|
-
directory.
|
130
|
-
|
131
|
-
Options:
|
132
|
-
|
133
|
-
* Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
|
134
|
-
made to the database.
|
135
|
-
* Passing an environment name as an argument will load the corresponding
|
136
|
-
environment. Example: <tt>rails console production</tt>.
|
137
|
-
|
138
|
-
To reload your controllers and models after launching the console run
|
139
|
-
<tt>reload!</tt>
|
140
|
-
|
141
|
-
More information about irb can be found at:
|
142
|
-
link:http://www.rubycentral.org/pickaxe/irb.html
|
143
|
-
|
144
|
-
|
145
|
-
== dbconsole
|
146
|
-
|
147
|
-
You can go to the command line of your database directly through <tt>rails
|
148
|
-
dbconsole</tt>. You would be connected to the database with the credentials
|
149
|
-
defined in database.yml. Starting the script without arguments will connect you
|
150
|
-
to the development database. Passing an argument will connect you to a different
|
151
|
-
database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
|
152
|
-
PostgreSQL and SQLite 3.
|
153
|
-
|
154
|
-
== Description of Contents
|
155
|
-
|
156
|
-
The default directory structure of a generated Ruby on Rails application:
|
157
|
-
|
158
|
-
|-- app
|
159
|
-
| |-- assets
|
160
|
-
| |-- images
|
161
|
-
| |-- javascripts
|
162
|
-
| `-- stylesheets
|
163
|
-
| |-- controllers
|
164
|
-
| |-- helpers
|
165
|
-
| |-- mailers
|
166
|
-
| |-- models
|
167
|
-
| `-- views
|
168
|
-
| `-- layouts
|
169
|
-
|-- config
|
170
|
-
| |-- environments
|
171
|
-
| |-- initializers
|
172
|
-
| `-- locales
|
173
|
-
|-- db
|
174
|
-
|-- doc
|
175
|
-
|-- lib
|
176
|
-
| `-- tasks
|
177
|
-
|-- log
|
178
|
-
|-- public
|
179
|
-
|-- script
|
180
|
-
|-- test
|
181
|
-
| |-- fixtures
|
182
|
-
| |-- functional
|
183
|
-
| |-- integration
|
184
|
-
| |-- performance
|
185
|
-
| `-- unit
|
186
|
-
|-- tmp
|
187
|
-
| |-- cache
|
188
|
-
| |-- pids
|
189
|
-
| |-- sessions
|
190
|
-
| `-- sockets
|
191
|
-
`-- vendor
|
192
|
-
|-- assets
|
193
|
-
`-- stylesheets
|
194
|
-
`-- plugins
|
195
|
-
|
196
|
-
app
|
197
|
-
Holds all the code that's specific to this particular application.
|
198
|
-
|
199
|
-
app/assets
|
200
|
-
Contains subdirectories for images, stylesheets, and JavaScript files.
|
201
|
-
|
202
|
-
app/controllers
|
203
|
-
Holds controllers that should be named like weblogs_controller.rb for
|
204
|
-
automated URL mapping. All controllers should descend from
|
205
|
-
ApplicationController which itself descends from ActionController::Base.
|
206
|
-
|
207
|
-
app/models
|
208
|
-
Holds models that should be named like post.rb. Models descend from
|
209
|
-
ActiveRecord::Base by default.
|
210
|
-
|
211
|
-
app/views
|
212
|
-
Holds the template files for the view that should be named like
|
213
|
-
weblogs/index.html.erb for the WeblogsController#index action. All views use
|
214
|
-
eRuby syntax by default.
|
215
|
-
|
216
|
-
app/views/layouts
|
217
|
-
Holds the template files for layouts to be used with views. This models the
|
218
|
-
common header/footer method of wrapping views. In your views, define a layout
|
219
|
-
using the <tt>layout :default</tt> and create a file named default.html.erb.
|
220
|
-
Inside default.html.erb, call <% yield %> to render the view using this
|
221
|
-
layout.
|
222
|
-
|
223
|
-
app/helpers
|
224
|
-
Holds view helpers that should be named like weblogs_helper.rb. These are
|
225
|
-
generated for you automatically when using generators for controllers.
|
226
|
-
Helpers can be used to wrap functionality for your views into methods.
|
227
|
-
|
228
|
-
config
|
229
|
-
Configuration files for the Rails environment, the routing map, the database,
|
230
|
-
and other dependencies.
|
231
|
-
|
232
|
-
db
|
233
|
-
Contains the database schema in schema.rb. db/migrate contains all the
|
234
|
-
sequence of Migrations for your schema.
|
235
|
-
|
236
|
-
doc
|
237
|
-
This directory is where your application documentation will be stored when
|
238
|
-
generated using <tt>rake doc:app</tt>
|
239
|
-
|
240
|
-
lib
|
241
|
-
Application specific libraries. Basically, any kind of custom code that
|
242
|
-
doesn't belong under controllers, models, or helpers. This directory is in
|
243
|
-
the load path.
|
244
|
-
|
245
|
-
public
|
246
|
-
The directory available for the web server. Also contains the dispatchers and the
|
247
|
-
default HTML files. This should be set as the DOCUMENT_ROOT of your web
|
248
|
-
server.
|
249
|
-
|
250
|
-
script
|
251
|
-
Helper scripts for automation and generation.
|
252
|
-
|
253
|
-
test
|
254
|
-
Unit and functional tests along with fixtures. When using the rails generate
|
255
|
-
command, template test files will be generated for you and placed in this
|
256
|
-
directory.
|
257
|
-
|
258
|
-
vendor
|
259
|
-
External libraries that the application depends on. Also includes the plugins
|
260
|
-
subdirectory. If the app has frozen rails, those gems also go here, under
|
261
|
-
vendor/rails/. This directory is in the load path.
|