edifice 0.0.5 → 0.5.0

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 (54) hide show
  1. data/.DS_Store +0 -0
  2. data/lib/edifice/form_model.rb +28 -0
  3. data/lib/edifice/helper.rb +16 -0
  4. data/lib/edifice/railtie.rb +10 -0
  5. data/lib/edifice/responder.rb +13 -0
  6. data/lib/edifice/version.rb +1 -1
  7. data/lib/edifice.rb +12 -2
  8. data/lib/public/javascripts/edifice/ajax_form.js +114 -174
  9. data/lib/public/javascripts/edifice/form.js +105 -0
  10. data/lib/tasks/edifice.rake +6 -0
  11. data/test/rails3/.gitignore +4 -0
  12. data/test/rails3/Gemfile +33 -0
  13. data/test/rails3/Gemfile.lock +75 -0
  14. data/test/rails3/README +256 -0
  15. data/test/rails3/Rakefile +7 -0
  16. data/test/rails3/app/controllers/application_controller.rb +3 -0
  17. data/test/rails3/app/controllers/posts_controller.rb +15 -0
  18. data/test/rails3/app/helpers/application_helper.rb +2 -0
  19. data/test/rails3/app/models/post.rb +10 -0
  20. data/test/rails3/app/views/layouts/application.html.erb +14 -0
  21. data/test/rails3/app/views/posts/new.html.erb +17 -0
  22. data/test/rails3/config/application.rb +50 -0
  23. data/test/rails3/config/boot.rb +6 -0
  24. data/test/rails3/config/database.yml +22 -0
  25. data/test/rails3/config/environment.rb +5 -0
  26. data/test/rails3/config/environments/development.rb +26 -0
  27. data/test/rails3/config/environments/production.rb +49 -0
  28. data/test/rails3/config/environments/test.rb +35 -0
  29. data/test/rails3/config/initializers/backtrace_silencers.rb +7 -0
  30. data/test/rails3/config/initializers/inflections.rb +10 -0
  31. data/test/rails3/config/initializers/mime_types.rb +5 -0
  32. data/test/rails3/config/initializers/secret_token.rb +7 -0
  33. data/test/rails3/config/initializers/session_store.rb +8 -0
  34. data/test/rails3/config/locales/en.yml +5 -0
  35. data/test/rails3/config/routes.rb +4 -0
  36. data/test/rails3/config.ru +4 -0
  37. data/test/rails3/db/seeds.rb +7 -0
  38. data/test/rails3/doc/README_FOR_APP +2 -0
  39. data/test/rails3/lib/tasks/.gitkeep +0 -0
  40. data/test/rails3/public/404.html +26 -0
  41. data/test/rails3/public/422.html +26 -0
  42. data/test/rails3/public/500.html +26 -0
  43. data/test/rails3/public/favicon.ico +0 -0
  44. data/test/rails3/public/images/rails.png +0 -0
  45. data/test/rails3/public/javascripts/.gitkeep +0 -0
  46. data/test/rails3/public/javascripts/application.js +0 -0
  47. data/test/rails3/public/javascripts/jquery-1.5.1.js +8316 -0
  48. data/test/rails3/public/robots.txt +5 -0
  49. data/test/rails3/public/stylesheets/.gitkeep +0 -0
  50. data/test/rails3/public/stylesheets/form.css +18 -0
  51. data/test/rails3/script/rails +6 -0
  52. data/test/rails3/vendor/plugins/.gitkeep +0 -0
  53. metadata +96 -7
  54. data/lib/edifice_helper.rb +0 -14
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
Binary file
File without changes
File without changes