erroneous 0.1.1 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +1 -1
  3. data/README.rdoc +6 -9
  4. data/lib/erroneous/version.rb +1 -1
  5. metadata +16 -156
  6. data/test/dummy/Rakefile +0 -7
  7. data/test/dummy/app/assets/javascripts/application.js +0 -3
  8. data/test/dummy/app/assets/javascripts/main.js +0 -0
  9. data/test/dummy/app/assets/javascripts/people.js +0 -0
  10. data/test/dummy/app/assets/stylesheets/application.css +0 -39
  11. data/test/dummy/app/assets/stylesheets/main.css +0 -0
  12. data/test/dummy/app/assets/stylesheets/people.css +0 -0
  13. data/test/dummy/app/controllers/application_controller.rb +0 -3
  14. data/test/dummy/app/controllers/main_controller.rb +0 -10
  15. data/test/dummy/app/controllers/people_controller.rb +0 -49
  16. data/test/dummy/app/helpers/application_helper.rb +0 -2
  17. data/test/dummy/app/helpers/main_helper.rb +0 -2
  18. data/test/dummy/app/helpers/people_helper.rb +0 -2
  19. data/test/dummy/app/models/person.rb +0 -16
  20. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  21. data/test/dummy/app/views/main/index.html.erb +0 -5
  22. data/test/dummy/app/views/people/_form.html.erb +0 -27
  23. data/test/dummy/app/views/people/edit.html.erb +0 -3
  24. data/test/dummy/app/views/people/index.html.erb +0 -16
  25. data/test/dummy/app/views/people/new.html.erb +0 -3
  26. data/test/dummy/app/views/people/show.html.erb +0 -27
  27. data/test/dummy/config.ru +0 -4
  28. data/test/dummy/config/application.rb +0 -45
  29. data/test/dummy/config/boot.rb +0 -10
  30. data/test/dummy/config/database.yml +0 -17
  31. data/test/dummy/config/environment.rb +0 -5
  32. data/test/dummy/config/environments/development.rb +0 -30
  33. data/test/dummy/config/environments/production.rb +0 -60
  34. data/test/dummy/config/environments/test.rb +0 -39
  35. data/test/dummy/config/initializers/other.rb +0 -2
  36. data/test/dummy/config/locales/en.yml +0 -1
  37. data/test/dummy/config/routes.rb +0 -7
  38. data/test/dummy/db/development.sqlite3 +0 -0
  39. data/test/dummy/db/migrate/20110109192118_create_people.rb +0 -12
  40. data/test/dummy/db/production.sqlite3 +0 -0
  41. data/test/dummy/db/schema.rb +0 -25
  42. data/test/dummy/db/test.sqlite3 +0 -0
  43. data/test/dummy/log/development.log +0 -152
  44. data/test/dummy/log/test.log +0 -250
  45. data/test/dummy/public/favicon.ico +0 -0
  46. data/test/dummy/script/rails +0 -6
  47. data/test/dummy/test/fixtures/people.yml +0 -5
  48. data/test/dummy/test/functional/main_controller_test.rb +0 -10
  49. data/test/dummy/test/functional/people_controller_test.rb +0 -53
  50. data/test/dummy/test/unit/helpers/main_helper_test.rb +0 -4
  51. data/test/dummy/test/unit/helpers/people_helper_test.rb +0 -4
  52. data/test/dummy/test/unit/person_test.rb +0 -7
  53. data/test/dummy/tmp/cache/assets/C7E/4A0/sprockets%2F80684416a4e6815bdae5306d295b9024 +0 -0
  54. data/test/dummy/tmp/cache/assets/CC4/F50/sprockets%2Fb84b903597039697e3e76b6178af6ab3 +0 -0
  55. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  56. data/test/dummy/tmp/cache/assets/D06/B40/sprockets%2F25fca4643219052b0d5c66cf2c71f72f +0 -0
  57. data/test/dummy/tmp/cache/assets/D26/080/sprockets%2F14492c596885cafe7932045e4e7efd3f +0 -0
  58. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  59. data/test/dummy/tmp/cache/assets/D3D/A50/sprockets%2F3022f155dee643c76e97fbbab090438d +0 -0
  60. data/test/dummy/tmp/cache/assets/D44/670/sprockets%2Fc49eb38f70357e0024a346a934fffc9b +0 -0
  61. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  62. data/test/dummy/tmp/cache/assets/D58/1E0/sprockets%2Fdd863e40bd669f77bb549b257d88d6b5 +0 -0
  63. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  64. data/test/dummy/tmp/cache/assets/D73/9B0/sprockets%2Ff6eeb33602682bd6ff6d1f177f6b142d +0 -0
  65. data/test/dummy/tmp/cache/assets/D98/5D0/sprockets%2Fb05ff97cdfa9ad0f51f60b3604d07c80 +0 -0
  66. data/test/dummy/tmp/cache/assets/DA7/530/sprockets%2Fe36b8fcf5914a3a6bf058abfe7367b19 +0 -0
  67. data/test/dummy/tmp/cache/assets/DB7/6C0/sprockets%2F386e9196dd0f9efdce6f92ce93a6d107 +0 -0
  68. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  69. data/test/dummy/tmp/cache/assets/DF7/B60/sprockets%2Fd4e54c5507a31ff288be0c5fa21dbedf +0 -0
  70. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  71. data/test/erroneous_test.rb +0 -7
  72. data/test/test_helper.rb +0 -8
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a915660b59ddabb8c9d6e03ca285b734d4ecdd05
4
+ data.tar.gz: 555ef9156b19fe7f5190b1b55dae9bd492020b3f
5
+ SHA512:
6
+ metadata.gz: 0f083dab60a6c9419f50cf916537eed75fff0df85f72ceb49a4786562cb40a38121e9614f230a55e51ce6b23a53ab12a3a83fb2a0310142aa678ef5400f9680c
7
+ data.tar.gz: 4c8c65b10017a3be6537ba0f1eb5f052e9e6dfbe8671ed7645eb05ec763187a555716d5ff7036c54ae08e803486cbafdf736fb21582044258a3fc78425ac1527
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 - 2012 Kevin Sylvestre
1
+ Copyright (c) 2010 - 2013 Kevin Sylvestre
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -6,14 +6,11 @@ Erroneous is a Ruby on Rails view helper that creates simple markup for inline e
6
6
 
7
7
  The gem is tested with:
8
8
 
9
- * Ruby on Rails 3.1.8
10
- * Ruby on Rails 3.2.9
11
- * Ruby (MRI) 1.9.3
12
- * Ruby (MRI) 1.9.2
13
- * Ruby (MRI) 1.8.7
14
- * Ruby (REE) 1.8.7
15
- * JRuby 1.7.0
16
- * Rubinius 1.2.4
9
+ * Ruby on Rails 4.1.6
10
+ * Ruby 2.1.6
11
+ * Ruby 2.0.0
12
+ * Ruby 1.9.3
13
+ * JRuby
17
14
 
18
15
  == Installation
19
16
 
@@ -38,4 +35,4 @@ The gem is tested with:
38
35
 
39
36
  == Copyright
40
37
 
41
- Copyright (c) 2010 - 2012 Kevin Sylvestre. See LICENSE for details.
38
+ Copyright (c) 2010 - 2013 Kevin Sylvestre. See LICENSE for details.
@@ -1,3 +1,3 @@
1
1
  module Erroneous
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erroneous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kevin Sylvestre
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-11 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>'
17
+ - - ">"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>'
24
+ - - ">"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: appraisal
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Erroneous adds inline errors to Rails views in a simple, sentence like
@@ -51,168 +46,33 @@ executables: []
51
46
  extensions: []
52
47
  extra_rdoc_files: []
53
48
  files:
54
- - lib/erroneous/railtie.rb
55
- - lib/erroneous/version.rb
56
- - lib/erroneous.rb
57
- - README.rdoc
58
49
  - LICENSE
50
+ - README.rdoc
59
51
  - Rakefile
60
- - test/dummy/app/assets/javascripts/application.js
61
- - test/dummy/app/assets/javascripts/main.js
62
- - test/dummy/app/assets/javascripts/people.js
63
- - test/dummy/app/assets/stylesheets/application.css
64
- - test/dummy/app/assets/stylesheets/main.css
65
- - test/dummy/app/assets/stylesheets/people.css
66
- - test/dummy/app/controllers/application_controller.rb
67
- - test/dummy/app/controllers/main_controller.rb
68
- - test/dummy/app/controllers/people_controller.rb
69
- - test/dummy/app/helpers/application_helper.rb
70
- - test/dummy/app/helpers/main_helper.rb
71
- - test/dummy/app/helpers/people_helper.rb
72
- - test/dummy/app/models/person.rb
73
- - test/dummy/app/views/layouts/application.html.erb
74
- - test/dummy/app/views/main/index.html.erb
75
- - test/dummy/app/views/people/_form.html.erb
76
- - test/dummy/app/views/people/edit.html.erb
77
- - test/dummy/app/views/people/index.html.erb
78
- - test/dummy/app/views/people/new.html.erb
79
- - test/dummy/app/views/people/show.html.erb
80
- - test/dummy/config/application.rb
81
- - test/dummy/config/boot.rb
82
- - test/dummy/config/database.yml
83
- - test/dummy/config/environment.rb
84
- - test/dummy/config/environments/development.rb
85
- - test/dummy/config/environments/production.rb
86
- - test/dummy/config/environments/test.rb
87
- - test/dummy/config/initializers/other.rb
88
- - test/dummy/config/locales/en.yml
89
- - test/dummy/config/routes.rb
90
- - test/dummy/config.ru
91
- - test/dummy/db/development.sqlite3
92
- - test/dummy/db/migrate/20110109192118_create_people.rb
93
- - test/dummy/db/production.sqlite3
94
- - test/dummy/db/schema.rb
95
- - test/dummy/db/test.sqlite3
96
- - test/dummy/log/development.log
97
- - test/dummy/log/test.log
98
- - test/dummy/public/favicon.ico
99
- - test/dummy/Rakefile
100
- - test/dummy/script/rails
101
- - test/dummy/test/fixtures/people.yml
102
- - test/dummy/test/functional/main_controller_test.rb
103
- - test/dummy/test/functional/people_controller_test.rb
104
- - test/dummy/test/unit/helpers/main_helper_test.rb
105
- - test/dummy/test/unit/helpers/people_helper_test.rb
106
- - test/dummy/test/unit/person_test.rb
107
- - test/dummy/tmp/cache/assets/C7E/4A0/sprockets%2F80684416a4e6815bdae5306d295b9024
108
- - test/dummy/tmp/cache/assets/CC4/F50/sprockets%2Fb84b903597039697e3e76b6178af6ab3
109
- - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
110
- - test/dummy/tmp/cache/assets/D06/B40/sprockets%2F25fca4643219052b0d5c66cf2c71f72f
111
- - test/dummy/tmp/cache/assets/D26/080/sprockets%2F14492c596885cafe7932045e4e7efd3f
112
- - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
113
- - test/dummy/tmp/cache/assets/D3D/A50/sprockets%2F3022f155dee643c76e97fbbab090438d
114
- - test/dummy/tmp/cache/assets/D44/670/sprockets%2Fc49eb38f70357e0024a346a934fffc9b
115
- - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
116
- - test/dummy/tmp/cache/assets/D58/1E0/sprockets%2Fdd863e40bd669f77bb549b257d88d6b5
117
- - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
118
- - test/dummy/tmp/cache/assets/D73/9B0/sprockets%2Ff6eeb33602682bd6ff6d1f177f6b142d
119
- - test/dummy/tmp/cache/assets/D98/5D0/sprockets%2Fb05ff97cdfa9ad0f51f60b3604d07c80
120
- - test/dummy/tmp/cache/assets/DA7/530/sprockets%2Fe36b8fcf5914a3a6bf058abfe7367b19
121
- - test/dummy/tmp/cache/assets/DB7/6C0/sprockets%2F386e9196dd0f9efdce6f92ce93a6d107
122
- - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
123
- - test/dummy/tmp/cache/assets/DF7/B60/sprockets%2Fd4e54c5507a31ff288be0c5fa21dbedf
124
- - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
125
- - test/erroneous_test.rb
126
- - test/test_helper.rb
52
+ - lib/erroneous.rb
53
+ - lib/erroneous/railtie.rb
54
+ - lib/erroneous/version.rb
127
55
  homepage: http://github.com/ksylvest/erroneous
128
56
  licenses: []
57
+ metadata: {}
129
58
  post_install_message:
130
59
  rdoc_options: []
131
60
  require_paths:
132
61
  - lib
133
62
  required_ruby_version: !ruby/object:Gem::Requirement
134
- none: false
135
63
  requirements:
136
- - - ! '>='
64
+ - - ">="
137
65
  - !ruby/object:Gem::Version
138
66
  version: '0'
139
67
  required_rubygems_version: !ruby/object:Gem::Requirement
140
- none: false
141
68
  requirements:
142
- - - ! '>='
69
+ - - ">="
143
70
  - !ruby/object:Gem::Version
144
71
  version: '0'
145
72
  requirements: []
146
73
  rubyforge_project:
147
- rubygems_version: 1.8.23
74
+ rubygems_version: 2.2.2
148
75
  signing_key:
149
- specification_version: 3
76
+ specification_version: 4
150
77
  summary: An easy way to display inline errors in forms
151
- test_files:
152
- - test/dummy/app/assets/javascripts/application.js
153
- - test/dummy/app/assets/javascripts/main.js
154
- - test/dummy/app/assets/javascripts/people.js
155
- - test/dummy/app/assets/stylesheets/application.css
156
- - test/dummy/app/assets/stylesheets/main.css
157
- - test/dummy/app/assets/stylesheets/people.css
158
- - test/dummy/app/controllers/application_controller.rb
159
- - test/dummy/app/controllers/main_controller.rb
160
- - test/dummy/app/controllers/people_controller.rb
161
- - test/dummy/app/helpers/application_helper.rb
162
- - test/dummy/app/helpers/main_helper.rb
163
- - test/dummy/app/helpers/people_helper.rb
164
- - test/dummy/app/models/person.rb
165
- - test/dummy/app/views/layouts/application.html.erb
166
- - test/dummy/app/views/main/index.html.erb
167
- - test/dummy/app/views/people/_form.html.erb
168
- - test/dummy/app/views/people/edit.html.erb
169
- - test/dummy/app/views/people/index.html.erb
170
- - test/dummy/app/views/people/new.html.erb
171
- - test/dummy/app/views/people/show.html.erb
172
- - test/dummy/config/application.rb
173
- - test/dummy/config/boot.rb
174
- - test/dummy/config/database.yml
175
- - test/dummy/config/environment.rb
176
- - test/dummy/config/environments/development.rb
177
- - test/dummy/config/environments/production.rb
178
- - test/dummy/config/environments/test.rb
179
- - test/dummy/config/initializers/other.rb
180
- - test/dummy/config/locales/en.yml
181
- - test/dummy/config/routes.rb
182
- - test/dummy/config.ru
183
- - test/dummy/db/development.sqlite3
184
- - test/dummy/db/migrate/20110109192118_create_people.rb
185
- - test/dummy/db/production.sqlite3
186
- - test/dummy/db/schema.rb
187
- - test/dummy/db/test.sqlite3
188
- - test/dummy/log/development.log
189
- - test/dummy/log/test.log
190
- - test/dummy/public/favicon.ico
191
- - test/dummy/Rakefile
192
- - test/dummy/script/rails
193
- - test/dummy/test/fixtures/people.yml
194
- - test/dummy/test/functional/main_controller_test.rb
195
- - test/dummy/test/functional/people_controller_test.rb
196
- - test/dummy/test/unit/helpers/main_helper_test.rb
197
- - test/dummy/test/unit/helpers/people_helper_test.rb
198
- - test/dummy/test/unit/person_test.rb
199
- - test/dummy/tmp/cache/assets/C7E/4A0/sprockets%2F80684416a4e6815bdae5306d295b9024
200
- - test/dummy/tmp/cache/assets/CC4/F50/sprockets%2Fb84b903597039697e3e76b6178af6ab3
201
- - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
202
- - test/dummy/tmp/cache/assets/D06/B40/sprockets%2F25fca4643219052b0d5c66cf2c71f72f
203
- - test/dummy/tmp/cache/assets/D26/080/sprockets%2F14492c596885cafe7932045e4e7efd3f
204
- - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
205
- - test/dummy/tmp/cache/assets/D3D/A50/sprockets%2F3022f155dee643c76e97fbbab090438d
206
- - test/dummy/tmp/cache/assets/D44/670/sprockets%2Fc49eb38f70357e0024a346a934fffc9b
207
- - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
208
- - test/dummy/tmp/cache/assets/D58/1E0/sprockets%2Fdd863e40bd669f77bb549b257d88d6b5
209
- - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
210
- - test/dummy/tmp/cache/assets/D73/9B0/sprockets%2Ff6eeb33602682bd6ff6d1f177f6b142d
211
- - test/dummy/tmp/cache/assets/D98/5D0/sprockets%2Fb05ff97cdfa9ad0f51f60b3604d07c80
212
- - test/dummy/tmp/cache/assets/DA7/530/sprockets%2Fe36b8fcf5914a3a6bf058abfe7367b19
213
- - test/dummy/tmp/cache/assets/DB7/6C0/sprockets%2F386e9196dd0f9efdce6f92ce93a6d107
214
- - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
215
- - test/dummy/tmp/cache/assets/DF7/B60/sprockets%2Fd4e54c5507a31ff288be0c5fa21dbedf
216
- - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
217
- - test/erroneous_test.rb
218
- - test/test_helper.rb
78
+ test_files: []
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Dummy::Application.load_tasks
@@ -1,3 +0,0 @@
1
- //= require jquery
2
- //= require jquery_ujs
3
- //= require_tree .
File without changes
@@ -1,39 +0,0 @@
1
- /*
2
- *= require_self
3
- *= require_tree .
4
- */
5
-
6
- html, body
7
- {
8
- font-family: Helvetica, Verdana, Arial, sans-serif;
9
- font-style: normal;
10
- font-weight: normal;
11
- }
12
-
13
- .field
14
- {
15
- padding: 10px 0px;
16
- }
17
-
18
- label
19
- {
20
- display: block;
21
- }
22
-
23
- input[type="url"],
24
- input[type="tel"],
25
- input[type="text"],
26
- input[type="password"],
27
- textarea
28
- {
29
- display: block;
30
- padding: 8px;
31
- width: 400px;
32
- }
33
-
34
- .errors
35
- {
36
- color: #822;
37
- font-size: 10pt;
38
- font-weight: bolder;
39
- }
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,10 +0,0 @@
1
- class MainController < ApplicationController
2
-
3
- # GET /
4
- def index
5
- respond_to do |format|
6
- format.html
7
- end
8
- end
9
-
10
- end
@@ -1,49 +0,0 @@
1
- class PeopleController < ApplicationController
2
-
3
- respond_to :html
4
-
5
- # GET /people
6
- def index
7
- @people = Person.all
8
- respond_with(@people)
9
- end
10
-
11
- # GET /people/:id
12
- def show
13
- @person = Person.find(params[:id])
14
- respond_with(@person)
15
- end
16
-
17
- # GET /people/new
18
- def new
19
- @person = Person.new
20
- respond_with(@person)
21
- end
22
-
23
- # GET /people/:id/edit
24
- def edit
25
- @person = Person.find(params[:id])
26
- respond_with(@person)
27
- end
28
-
29
- # POST /people
30
- def create
31
- @person = Person.create(params[:person])
32
- respond_with(@person)
33
- end
34
-
35
- # PUT /people/:id
36
- def update
37
- @person = Person.find(params[:id])
38
- @person.attributes = params[:person]
39
- @person.save
40
- respond_with(@person)
41
- end
42
-
43
- # DELETE /people/:id
44
- def destroy
45
- @person = Person.find(params[:id])
46
- @person.destroy
47
- respond_with(@person)
48
- end
49
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module MainHelper
2
- end
@@ -1,2 +0,0 @@
1
- module PeopleHelper
2
- end
@@ -1,16 +0,0 @@
1
- class Person < ActiveRecord::Base
2
-
3
- validates_presence_of :name
4
- validates_presence_of :phone
5
- validates_presence_of :url
6
-
7
- validates_format_of :email, :with => /\A([^\s]+)@([^\s]+)\Z/i,
8
- :message => "should look like an email address"
9
-
10
- validates_format_of :phone, :with => /\A[0-9\s\(\)\+\-]+\Z/i,
11
- :message => "should look like a phone number"
12
-
13
- validates_format_of :url, :with => /http[s]?:\/\/.+/i,
14
- :message => "should look like a website url"
15
-
16
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag "application" %>
6
- <%= javascript_include_tag "application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>