rails_dash 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +38 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/images/rails_dash/filter.png +0 -0
  5. data/app/assets/images/rails_dash/grid.png +0 -0
  6. data/app/assets/images/rails_dash/shadow.gif +0 -0
  7. data/app/assets/images/rails_dash/tip.png +0 -0
  8. data/app/assets/stylesheets/rails_dash/application.css +13 -0
  9. data/app/assets/stylesheets/rails_dash/autocomplete.sass +24 -0
  10. data/app/assets/stylesheets/rails_dash/content.sass +3 -0
  11. data/app/assets/stylesheets/rails_dash/flash.sass +19 -0
  12. data/app/assets/stylesheets/rails_dash/footer.sass +14 -0
  13. data/app/assets/stylesheets/rails_dash/forms.sass +65 -0
  14. data/app/assets/stylesheets/rails_dash/grid.sass +53 -0
  15. data/app/assets/stylesheets/rails_dash/header.sass +15 -0
  16. data/app/assets/stylesheets/rails_dash/navigation.sass +27 -0
  17. data/app/assets/stylesheets/rails_dash/page.sass +6 -0
  18. data/app/assets/stylesheets/rails_dash/pager.sass +27 -0
  19. data/app/assets/stylesheets/rails_dash/style.sass +42 -0
  20. data/app/controllers/rails_dash/base_controller.rb +23 -0
  21. data/app/controllers/rails_dash/crud_controller.rb +65 -0
  22. data/app/controllers/rails_dash/statics_controller.rb +8 -0
  23. data/app/views/rails_dash/statics/home.html.haml +0 -0
  24. data/config/routes.rb +5 -0
  25. data/lib/generators/dash/install_generator.rb +15 -0
  26. data/lib/generators/dash/resource_generator.rb +17 -0
  27. data/lib/generators/dash/templates/dash.erb +10 -0
  28. data/lib/generators/dash/templates/filter.erb +5 -0
  29. data/lib/generators/dash/templates/form.erb +4 -0
  30. data/lib/generators/dash/templates/index.erb +19 -0
  31. data/lib/generators/dash/templates/layout.erb +40 -0
  32. data/lib/generators/dash/templates/pager.erb +26 -0
  33. data/lib/generators/dash/templates/resource.erb +5 -0
  34. data/lib/rails_dash/engine.rb +7 -0
  35. data/lib/rails_dash/version.rb +5 -0
  36. data/lib/rails_dash.rb +5 -0
  37. data/test/dummy/README.rdoc +261 -0
  38. data/test/dummy/Rakefile +7 -0
  39. data/test/dummy/app/assets/javascripts/application.js +15 -0
  40. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  41. data/test/dummy/app/controllers/application_controller.rb +3 -0
  42. data/test/dummy/app/controllers/dash/photos_controller.rb +5 -0
  43. data/test/dummy/app/controllers/dash_controller.rb +10 -0
  44. data/test/dummy/app/helpers/application_helper.rb +2 -0
  45. data/test/dummy/app/models/photo.rb +13 -0
  46. data/test/dummy/app/views/dash/photos/form.html.haml +4 -0
  47. data/test/dummy/app/views/dash/photos/index.html.haml +19 -0
  48. data/test/dummy/app/views/dash/shared/_filter.html.haml +5 -0
  49. data/test/dummy/app/views/dash/shared/_pager.html.haml +26 -0
  50. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  51. data/test/dummy/app/views/layouts/dash.html.haml +40 -0
  52. data/test/dummy/config/application.rb +63 -0
  53. data/test/dummy/config/boot.rb +10 -0
  54. data/test/dummy/config/database.yml +25 -0
  55. data/test/dummy/config/environment.rb +5 -0
  56. data/test/dummy/config/environments/development.rb +37 -0
  57. data/test/dummy/config/environments/production.rb +67 -0
  58. data/test/dummy/config/environments/test.rb +37 -0
  59. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  60. data/test/dummy/config/initializers/inflections.rb +15 -0
  61. data/test/dummy/config/initializers/mime_types.rb +5 -0
  62. data/test/dummy/config/initializers/secret_token.rb +7 -0
  63. data/test/dummy/config/initializers/session_store.rb +8 -0
  64. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  65. data/test/dummy/config/locales/en.yml +5 -0
  66. data/test/dummy/config/routes.rb +7 -0
  67. data/test/dummy/config.ru +4 -0
  68. data/test/dummy/db/development.sqlite3 +0 -0
  69. data/test/dummy/db/migrate/20130402143213_create_photos.rb +12 -0
  70. data/test/dummy/db/schema.rb +22 -0
  71. data/test/dummy/log/development.log +8089 -0
  72. data/test/dummy/log/test.log +3 -0
  73. data/test/dummy/public/404.html +26 -0
  74. data/test/dummy/public/422.html +26 -0
  75. data/test/dummy/public/500.html +25 -0
  76. data/test/dummy/public/favicon.ico +0 -0
  77. data/test/dummy/script/rails +6 -0
  78. data/test/dummy/tmp/cache/assets/BFB/7E0/sprockets%2F9320085d33b800555194fe929982762b +0 -0
  79. data/test/dummy/tmp/cache/assets/C58/890/sprockets%2F2d7971158b18b431d02989a96e33e812 +0 -0
  80. data/test/dummy/tmp/cache/assets/C5B/F90/sprockets%2F8c7a3bc5548168137aa7392b86284906 +0 -0
  81. data/test/dummy/tmp/cache/assets/C6D/C60/sprockets%2F62a541364d6d42f11830c3426f841a3a +0 -0
  82. data/test/dummy/tmp/cache/assets/C79/E70/sprockets%2F179bde618f75a5099991956a966f6861 +0 -0
  83. data/test/dummy/tmp/cache/assets/C8B/270/sprockets%2F7a0602acfe998896b0d470e151625588 +0 -0
  84. data/test/dummy/tmp/cache/assets/C8F/D20/sprockets%2F2d66fda9c7d8645910e0754749f11544 +0 -0
  85. data/test/dummy/tmp/cache/assets/C99/E60/sprockets%2F064aac0041190c605c1728b86db5e660 +0 -0
  86. data/test/dummy/tmp/cache/assets/C9D/5C0/sprockets%2Fa3870a84599f2900e899d917239fee70 +0 -0
  87. data/test/dummy/tmp/cache/assets/CA3/D40/sprockets%2Fd0c463ae779d0510a7d2a39201475f80 +0 -0
  88. data/test/dummy/tmp/cache/assets/CA6/DD0/sprockets%2F41c60b85ca6aa885732e007b88c05343 +0 -0
  89. data/test/dummy/tmp/cache/assets/CAB/660/sprockets%2F0c2455743e4d9189dd1f0ef250c11394 +0 -0
  90. data/test/dummy/tmp/cache/assets/CB0/680/sprockets%2Fa545b40f4926503219dee13976ba83c7 +0 -0
  91. data/test/dummy/tmp/cache/assets/CB0/DB0/sprockets%2F3b03d1b258e45bf0488808687a3c019f +0 -0
  92. data/test/dummy/tmp/cache/assets/CBD/760/sprockets%2Fcd6bf3159c52152955549982d634f4bc +0 -0
  93. data/test/dummy/tmp/cache/assets/CCB/C40/sprockets%2F6c2c30b00feda0096c1523c4721e8647 +0 -0
  94. data/test/dummy/tmp/cache/assets/CD2/BD0/sprockets%2F68d29301abf7b7892ca072ad232341f2 +0 -0
  95. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  96. data/test/dummy/tmp/cache/assets/CE0/1D0/sprockets%2F95cf9361ed4c73f7736bb1065003c27d +0 -0
  97. data/test/dummy/tmp/cache/assets/CE5/C90/sprockets%2F0e2f9731d66610f311f7d93ee472be92 +0 -0
  98. data/test/dummy/tmp/cache/assets/CEB/150/sprockets%2F21cd9639cd9b6925f1a127192c2959fb +0 -0
  99. data/test/dummy/tmp/cache/assets/CF8/E40/sprockets%2F97e76837bd2bd4d792b34582df74a747 +0 -0
  100. data/test/dummy/tmp/cache/assets/CFD/B30/sprockets%2F0e7126250acecd256a22173a6c69f33c +0 -0
  101. data/test/dummy/tmp/cache/assets/D03/FF0/sprockets%2F6159334a6b4a6011f9e4aca85713deb2 +0 -0
  102. data/test/dummy/tmp/cache/assets/D0C/6D0/sprockets%2F066b73503006b11fe0ca9cf979818bcf +0 -0
  103. data/test/dummy/tmp/cache/assets/D0C/D50/sprockets%2F1e1fb266cbd216d68ad5f460542f8507 +0 -0
  104. data/test/dummy/tmp/cache/assets/D0F/AF0/sprockets%2Fcee92070637e21e6c3b0ae89b5604b96 +0 -0
  105. data/test/dummy/tmp/cache/assets/D13/380/sprockets%2F45ea51d9524b0d78eb92ba6f205e3957 +0 -0
  106. data/test/dummy/tmp/cache/assets/D15/8D0/sprockets%2F576fdac742aaf620938b5586e3e261e3 +0 -0
  107. data/test/dummy/tmp/cache/assets/D15/B80/sprockets%2Fc6e382a83453937ad9d0988e2c12c6aa +0 -0
  108. data/test/dummy/tmp/cache/assets/D1A/0E0/sprockets%2Ffa6065deb98c82544e6bf8960f31801c +0 -0
  109. data/test/dummy/tmp/cache/assets/D22/130/sprockets%2F710e497370aad44a1ad04addbd256204 +0 -0
  110. data/test/dummy/tmp/cache/assets/D2A/A60/sprockets%2F1d0eea7f3b7d8e691998d5a97568514c +0 -0
  111. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  112. data/test/dummy/tmp/cache/assets/D35/120/sprockets%2F0b2424217f6c72fc05df4183dcd169ea +0 -0
  113. data/test/dummy/tmp/cache/assets/D37/950/sprockets%2F60859b54ca0d1dfca7049028bedf2903 +0 -0
  114. data/test/dummy/tmp/cache/assets/D3A/720/sprockets%2Fd2e3289732e11cf54d74e8ea51acd125 +0 -0
  115. data/test/dummy/tmp/cache/assets/D3C/F40/sprockets%2Ff0f0ade9590889033e221c7e60c73afa +0 -0
  116. data/test/dummy/tmp/cache/assets/D3D/F70/sprockets%2Fd09ae614e12f07187afd3458c57a6a4d +0 -0
  117. data/test/dummy/tmp/cache/assets/D3F/DC0/sprockets%2F9bd1780aa8721f46e01a84e7db0e6e56 +0 -0
  118. data/test/dummy/tmp/cache/assets/D41/670/sprockets%2F19274a17da516d46b58baf55fd1c3f58 +0 -0
  119. data/test/dummy/tmp/cache/assets/D45/340/sprockets%2Fd417be808603d0e3a7cb829d55f5a68e +0 -0
  120. data/test/dummy/tmp/cache/assets/D4D/640/sprockets%2Ffea346129509ff08d5d5d8b77ba98b24 +0 -0
  121. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  122. data/test/dummy/tmp/cache/assets/D55/110/sprockets%2F18e497baefd6939772d9cc267d3416ea +0 -0
  123. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  124. data/test/dummy/tmp/cache/assets/D5F/8A0/sprockets%2F0412cd81c0aa11e2ccef0d9e479e7146 +0 -0
  125. data/test/dummy/tmp/cache/assets/D69/4F0/sprockets%2Fb9d37dc41f5268332346adebac1379bb +0 -0
  126. data/test/dummy/tmp/cache/assets/D6A/400/sprockets%2F630afb0339b0ce630663983b8dd2efec +0 -0
  127. data/test/dummy/tmp/cache/assets/D77/080/sprockets%2Fd231e66bef5f5ccb5a92272f714786dd +0 -0
  128. data/test/dummy/tmp/cache/assets/D78/090/sprockets%2F14e4a77f7da894213732ad97befdd4d4 +0 -0
  129. data/test/dummy/tmp/cache/assets/D79/0C0/sprockets%2Fffa7fbddfd8a63f466156a14f4471753 +0 -0
  130. data/test/dummy/tmp/cache/assets/D9B/E00/sprockets%2Fb66a75bd10bef6da5f16f4fa9113926c +0 -0
  131. data/test/dummy/tmp/cache/assets/D9C/9F0/sprockets%2F7c6e5cc58a73cac2d1c900d4a0c589d8 +0 -0
  132. data/test/dummy/tmp/cache/assets/DA2/E80/sprockets%2Fb9b99eb30a9731cc4abcdf42ff951247 +0 -0
  133. data/test/dummy/tmp/cache/assets/DAC/650/sprockets%2Ff8ec2e25f819797cb9a491d0af22ae9b +0 -0
  134. data/test/dummy/tmp/cache/assets/DBA/780/sprockets%2Fe231e0256cb57ae5feac27411bb8cab5 +0 -0
  135. data/test/dummy/tmp/cache/assets/DC0/F90/sprockets%2Fea7b247b3a394fd0a87b9b3f300a1cfd +0 -0
  136. data/test/dummy/tmp/cache/assets/DC6/790/sprockets%2F223d40d7aed38d4da4e2cad0d555ff39 +0 -0
  137. data/test/dummy/tmp/cache/assets/DCD/AB0/sprockets%2Fd7094ece7c1b47b62d4b280aea7e80ef +0 -0
  138. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  139. data/test/dummy/tmp/cache/assets/DEF/100/sprockets%2F8b9d88bfa8f8eed7910469ef2ab8a8c7 +0 -0
  140. data/test/dummy/tmp/cache/assets/DF1/BA0/sprockets%2Ff2aaadaa5f593082c04c59cde41ecc37 +0 -0
  141. data/test/dummy/tmp/cache/assets/E02/5F0/sprockets%2Fc099f7cc09acdb9f0c28860edd9a0ba7 +0 -0
  142. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  143. data/test/dummy/tmp/cache/assets/E29/AA0/sprockets%2F6eaab4ab4dbae1b8b5a6f9286aa966d4 +0 -0
  144. data/test/dummy/tmp/cache/assets/E5D/4B0/sprockets%2Fba31b9d7aabcf86ec3c48fcd7db830e5 +0 -0
  145. data/test/dummy/tmp/cache/assets/E67/970/sprockets%2F39d69c6bafd9cebefdea7015bd7d0a87 +0 -0
  146. data/test/dummy/tmp/cache/assets/E93/600/sprockets%2F2daf7d5f74f8c9ac8be0bedcfae6009c +0 -0
  147. data/test/dummy/tmp/cache/assets/EEE/360/sprockets%2Ff7b473abfbca6ef0bd2bdfdfda3939ee +0 -0
  148. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/autocomplete.sassc +0 -0
  149. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/content.sassc +0 -0
  150. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/flash.sassc +0 -0
  151. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/footer.sassc +0 -0
  152. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/forms.sassc +0 -0
  153. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/grid.sassc +0 -0
  154. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/header.sassc +0 -0
  155. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/navigation.sassc +0 -0
  156. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/page.sassc +0 -0
  157. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/pager.sassc +0 -0
  158. data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/style.sassc +0 -0
  159. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/autocomplete.sassc +0 -0
  160. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/content.sassc +0 -0
  161. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/flash.sassc +0 -0
  162. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/footer.sassc +0 -0
  163. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/forms.sassc +0 -0
  164. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/grid.sassc +0 -0
  165. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/header.sassc +0 -0
  166. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/intro.sassc +0 -0
  167. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/navigation.sassc +0 -0
  168. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/page.sassc +0 -0
  169. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/pager.sassc +0 -0
  170. data/test/dummy/tmp/cache/sass/e22804675e303f28a5c33209e40bad6d47fd67a4/style.sassc +0 -0
  171. data/test/rails_dash_test.rb +9 -0
  172. data/test/test_helper.rb +15 -0
  173. metadata +465 -0
@@ -0,0 +1,67 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'fd81f299f35f41cb343f81dede80bc28a2c8a2f6f49f3b45e684d84bb7c4a3aab2ffe3089addd3bbdd2700f9e2ee3075ad6e21558f59e78830efdd93593ded54'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,7 @@
1
+ Rails.application.routes.draw do
2
+
3
+ namespace :dash do resources :photos end
4
+
5
+ mount RailsDash::Engine => '/dash'
6
+
7
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
Binary file
@@ -0,0 +1,12 @@
1
+ class CreatePhotos < ActiveRecord::Migration
2
+ def up
3
+ create_table :photos do |t|
4
+ t.string :name
5
+ t.timestamps
6
+ end
7
+ end
8
+
9
+ def down
10
+ drop_table :photos
11
+ end
12
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130402143213) do
15
+
16
+ create_table "photos", :force => true do |t|
17
+ t.string "name"
18
+ t.datetime "created_at", :null => false
19
+ t.datetime "updated_at", :null => false
20
+ end
21
+
22
+ end