edifice 0.0.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/lib/edifice/form_model.rb +28 -0
- data/lib/edifice/helper.rb +16 -0
- data/lib/edifice/railtie.rb +10 -0
- data/lib/edifice/responder.rb +13 -0
- data/lib/edifice/version.rb +1 -1
- data/lib/edifice.rb +12 -2
- data/lib/public/javascripts/edifice/ajax_form.js +114 -174
- data/lib/public/javascripts/edifice/form.js +105 -0
- data/lib/tasks/edifice.rake +6 -0
- data/test/rails3/.gitignore +4 -0
- data/test/rails3/Gemfile +33 -0
- data/test/rails3/Gemfile.lock +75 -0
- data/test/rails3/README +256 -0
- data/test/rails3/Rakefile +7 -0
- data/test/rails3/app/controllers/application_controller.rb +3 -0
- data/test/rails3/app/controllers/posts_controller.rb +15 -0
- data/test/rails3/app/helpers/application_helper.rb +2 -0
- data/test/rails3/app/models/post.rb +10 -0
- data/test/rails3/app/views/layouts/application.html.erb +14 -0
- data/test/rails3/app/views/posts/new.html.erb +17 -0
- data/test/rails3/config/application.rb +50 -0
- data/test/rails3/config/boot.rb +6 -0
- data/test/rails3/config/database.yml +22 -0
- data/test/rails3/config/environment.rb +5 -0
- data/test/rails3/config/environments/development.rb +26 -0
- data/test/rails3/config/environments/production.rb +49 -0
- data/test/rails3/config/environments/test.rb +35 -0
- data/test/rails3/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails3/config/initializers/inflections.rb +10 -0
- data/test/rails3/config/initializers/mime_types.rb +5 -0
- data/test/rails3/config/initializers/secret_token.rb +7 -0
- data/test/rails3/config/initializers/session_store.rb +8 -0
- data/test/rails3/config/locales/en.yml +5 -0
- data/test/rails3/config/routes.rb +4 -0
- data/test/rails3/config.ru +4 -0
- data/test/rails3/db/seeds.rb +7 -0
- data/test/rails3/doc/README_FOR_APP +2 -0
- data/test/rails3/lib/tasks/.gitkeep +0 -0
- data/test/rails3/public/404.html +26 -0
- data/test/rails3/public/422.html +26 -0
- data/test/rails3/public/500.html +26 -0
- data/test/rails3/public/favicon.ico +0 -0
- data/test/rails3/public/images/rails.png +0 -0
- data/test/rails3/public/javascripts/.gitkeep +0 -0
- data/test/rails3/public/javascripts/application.js +0 -0
- data/test/rails3/public/javascripts/jquery-1.5.1.js +8316 -0
- data/test/rails3/public/robots.txt +5 -0
- data/test/rails3/public/stylesheets/.gitkeep +0 -0
- data/test/rails3/public/stylesheets/form.css +18 -0
- data/test/rails3/script/rails +6 -0
- data/test/rails3/vendor/plugins/.gitkeep +0 -0
- metadata +96 -7
- 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
|