flyover-contact 1.1.0 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60fac52ba364a7716ab9c4984973cb9967392b01
4
- data.tar.gz: 36ac824c530fd43fe66fcfa350e12dd4c5384976
3
+ metadata.gz: ed83d760ccb9a48b38a417a2927ffe400b3d7b5d
4
+ data.tar.gz: 461602cacc85dcc31b7bd6b85212ae66b21ea44d
5
5
  SHA512:
6
- metadata.gz: ab061d1af0b241ae3586e0d943ecf3b5a0415b866b1e0bf25bff1b3d8c90225c5491ab465ea1a691110fa307a8d69f4857881edea67d33305f8fa08164fa2b3e
7
- data.tar.gz: 576e9559f4a6b7bd659a9d7abf1883902340261dc1b0a2b6b073b882429f96f9bd250f0151030639b617b3cb9f7c5545e1eb9fee8d8b91aa01054befd334ad05
6
+ metadata.gz: 9d5d2c5ae78566a51c5840f1c2210d13d07fea95a38bb04e0ce5baa2adec069257d794967eb70a9e91cd80adf85243de4bc4b94a985ae1564a420fb7b8b31061
7
+ data.tar.gz: 670bb4f3aa22f3fa69566db319bf10539c48ceba84636530ebd42e2983f17a2c1dda4d8bbf7fc3497ff1b72a4ff7c51075cdbc0e42a51c68f6d1190dc03cd202
@@ -1,6 +1,7 @@
1
- <div id="contact-form-success" style="display: none;">
2
- Success
3
- </div>
4
- <div id="contact-form-container">
5
- <%= render 'contact/messages/fields' %>
6
- </div>
1
+ <%= simple_form_for (@message || Contact::Message.new), html: { novalidate: true }, url: contact.messages_path, remote: true do |f| %>
2
+ <%= f.error_notification %>
3
+ <%= f.input :name, label: "Your name" %>
4
+ <%= f.input :email, label: "Your email" %>
5
+ <%= f.input :content, as: :text, label: "Message" %>
6
+ <%= f.submit "Send Message", class: "btn btn-outline btn-outline-teal inverse" %>
7
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <div id="contact-form-success" style="display: none;">
2
+ <%= Contact.success_message %>
3
+ </div>
4
+ <div id="contact-form-container">
5
+ <%= render 'contact/messages/form' %>
6
+ </div>
@@ -1,7 +1,7 @@
1
1
  <% if @message.errors.any? %>
2
- $("#contact-form-container").html("<%= j render 'contact/messages/fields' %>");
2
+ $("#contact-form-container").html("<%= j render 'contact/messages/form' %>");
3
3
  <% else %>
4
4
  $("#contact-form-success").show().delay(5000).fadeOut();
5
5
  <% @message = Contact::Message.new %>
6
- $("#contact-form-container").html("<%= j render 'contact/messages/fields' %>");
6
+ $("#contact-form-container").html("<%= j render 'contact/messages/form' %>");
7
7
  <% end %>
@@ -1,3 +1,3 @@
1
1
  <div class="container">
2
- <%= render "form" %>
2
+ <%= render "form_container" %>
3
3
  </div>
@@ -1,3 +1,3 @@
1
1
  module Contact
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -1,10 +1,11 @@
1
1
  require "contact/engine"
2
2
 
3
3
  module Contact
4
- mattr_accessor :to_email, :from_email, :subject
4
+ mattr_accessor :to_email, :from_email, :subject, :success_message
5
5
  @@to_email = "to@example.com"
6
6
  @@from_email = "from@example.com"
7
7
  @@subject = "New Contact Form Submission"
8
+ @@success_message = "Success! Your message has been sent and we'll get back to you as soon as possible."
8
9
 
9
10
  def self.configure(&block)
10
11
  yield self
@@ -4,4 +4,4 @@
4
4
  <div class="alert alert-<%= key %>"><%= value %></div>
5
5
  <% end %>
6
6
 
7
- <%= render 'contact/messages/form' %>
7
+ <%= render 'contact/messages/form_container' %>
@@ -2157,3 +2157,268 @@ Processing by Contact::MessagesController#create as JS
2157
2157
  Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_fields.html.erb (7.6ms)
2158
2158
  Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/create.js.erb (9.8ms)
2159
2159
  Completed 200 OK in 18ms (Views: 15.0ms | ActiveRecord: 0.0ms)
2160
+
2161
+
2162
+ Started GET "/" for 127.0.0.1 at 2015-01-21 11:47:35 -0600
2163
+ Processing by ApplicationController#index as HTML
2164
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form_container.html.erb (1.9ms)
2165
+ Rendered application/index.html.erb within layouts/application (3.8ms)
2166
+ Completed 500 Internal Server Error in 6ms
2167
+
2168
+ ActionView::Template::Error (Missing partial contact/messages/_fields with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee]}. Searched in:
2169
+ * "/Users/earlynovrock/Web/contact/test/dummy/app/views"
2170
+ * "/Users/earlynovrock/Web/contact/app/views"
2171
+ ):
2172
+ 2: Success
2173
+ 3: </div>
2174
+ 4: <div id="contact-form-container">
2175
+ 5: <%= render 'contact/messages/fields' %>
2176
+ 6: </div>
2177
+ app/views/application/index.html.erb:7:in `_app_views_application_index_html_erb__2261735541863249140_70102986086860'
2178
+
2179
+
2180
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms)
2181
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
2182
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (14.7ms)
2183
+
2184
+
2185
+ Started GET "/" for 127.0.0.1 at 2015-01-21 11:47:45 -0600
2186
+ Processing by ApplicationController#index as HTML
2187
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (1.7ms)
2188
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form_container.html.erb (3.3ms)
2189
+ Rendered application/index.html.erb within layouts/application (4.6ms)
2190
+ Completed 500 Internal Server Error in 6ms
2191
+
2192
+ ActionView::Template::Error (Missing partial contact/messages/_fields with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee]}. Searched in:
2193
+ * "/Users/earlynovrock/Web/contact/test/dummy/app/views"
2194
+ * "/Users/earlynovrock/Web/contact/app/views"
2195
+ ):
2196
+ 2: <%= f.error_notification %>
2197
+ 3: <%= f.input :name, label: "Your name" %>
2198
+ 4: <%= f.input :email, label: "Your email" %>
2199
+ 5: <%= f.input :content, as: :text, label: "Message" %>
2200
+ 6: <%= f.submit "Send Message", class: "btn btn-outline btn-outline-teal inverse" %>
2201
+ 7: <% end %>
2202
+ app/views/application/index.html.erb:7:in `_app_views_application_index_html_erb__2261735541863249140_70102986086860'
2203
+
2204
+
2205
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)
2206
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms)
2207
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (13.8ms)
2208
+
2209
+
2210
+ Started GET "/" for 127.0.0.1 at 2015-01-21 11:48:17 -0600
2211
+ Processing by ApplicationController#index as HTML
2212
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (1.7ms)
2213
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form_container.html.erb (3.1ms)
2214
+ Rendered application/index.html.erb within layouts/application (4.4ms)
2215
+ Completed 500 Internal Server Error in 6ms
2216
+
2217
+ ActionView::Template::Error (Missing partial contact/messages/_fields with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee]}. Searched in:
2218
+ * "/Users/earlynovrock/Web/contact/test/dummy/app/views"
2219
+ * "/Users/earlynovrock/Web/contact/app/views"
2220
+ ):
2221
+ 2: <%= f.error_notification %>
2222
+ 3: <%= f.input :name, label: "Your name" %>
2223
+ 4: <%= f.input :email, label: "Your email" %>
2224
+ 5: <%= f.input :content, as: :text, label: "Message" %>
2225
+ 6: <%= f.submit "Send Message", class: "btn btn-outline btn-outline-teal inverse" %>
2226
+ 7: <% end %>
2227
+ app/views/application/index.html.erb:7:in `_app_views_application_index_html_erb__2261735541863249140_70102986086860'
2228
+
2229
+
2230
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)
2231
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
2232
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (12.2ms)
2233
+
2234
+
2235
+ Started GET "/" for 127.0.0.1 at 2015-01-21 11:48:31 -0600
2236
+ Processing by ApplicationController#index as HTML
2237
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (1.6ms)
2238
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form_container.html.erb (2.5ms)
2239
+ Rendered application/index.html.erb within layouts/application (3.8ms)
2240
+ Completed 500 Internal Server Error in 5ms
2241
+
2242
+ ActionView::Template::Error (Missing partial contact/messages/_fields with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee]}. Searched in:
2243
+ * "/Users/earlynovrock/Web/contact/test/dummy/app/views"
2244
+ * "/Users/earlynovrock/Web/contact/app/views"
2245
+ ):
2246
+ 2: <%= f.error_notification %>
2247
+ 3: <%= f.input :name, label: "Your name" %>
2248
+ 4: <%= f.input :email, label: "Your email" %>
2249
+ 5: <%= f.input :content, as: :text, label: "Message" %>
2250
+ 6: <%= f.submit "Send Message", class: "btn btn-outline btn-outline-teal inverse" %>
2251
+ 7: <% end %>
2252
+ app/views/application/index.html.erb:7:in `_app_views_application_index_html_erb__2261735541863249140_70102986086860'
2253
+
2254
+
2255
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms)
2256
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
2257
+ Rendered /Users/earlynovrock/.rvm/gems/ruby-2.1.2/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (12.1ms)
2258
+
2259
+
2260
+ Started GET "/" for 127.0.0.1 at 2015-01-21 11:48:46 -0600
2261
+ Processing by ApplicationController#index as HTML
2262
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (7.8ms)
2263
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form_container.html.erb (8.6ms)
2264
+ Rendered application/index.html.erb within layouts/application (9.7ms)
2265
+ Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.0ms)
2266
+
2267
+
2268
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-21 11:48:46 -0600
2269
+
2270
+
2271
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-01-21 11:48:46 -0600
2272
+
2273
+
2274
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-01-21 11:48:46 -0600
2275
+
2276
+
2277
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-01-21 11:48:46 -0600
2278
+
2279
+
2280
+ Started POST "/messages/create" for 127.0.0.1 at 2015-01-21 11:48:51 -0600
2281
+ Processing by Contact::MessagesController#create as JS
2282
+ Parameters: {"utf8"=>"✓", "message"=>{"name"=>"", "email"=>"", "content"=>""}, "commit"=>"Send Message"}
2283
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (8.5ms)
2284
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/create.js.erb (10.6ms)
2285
+ Completed 200 OK in 19ms (Views: 16.4ms | ActiveRecord: 0.0ms)
2286
+
2287
+
2288
+ Started POST "/messages/create" for 127.0.0.1 at 2015-01-21 11:48:55 -0600
2289
+ Processing by Contact::MessagesController#create as JS
2290
+ Parameters: {"utf8"=>"✓", "message"=>{"name"=>"asdf", "email"=>"asdf@gmail.com", "content"=>"asdf"}, "commit"=>"Send Message"}
2291
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/message_mailer/new_message.html.erb (0.1ms)
2292
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/message_mailer/new_message.text.erb (0.1ms)
2293
+
2294
+ Contact::MessageMailer#new_message: processed outbound mail in 11.2ms
2295
+
2296
+ Sent mail to to@example.com (4.8ms)
2297
+ Date: Wed, 21 Jan 2015 11:48:55 -0600
2298
+ From: from@example.com
2299
+ To: to@example.com
2300
+ Message-ID: <54bfe68749cb5_29833fc21fb7abbc5976d@Davids-MacBook-Air-3.local.mail>
2301
+ Subject: New Contact Form Submission
2302
+ Mime-Version: 1.0
2303
+ Content-Type: multipart/alternative;
2304
+ boundary="--==_mimepart_54bfe68749402_29833fc21fb7abbc596a5";
2305
+ charset=UTF-8
2306
+ Content-Transfer-Encoding: 7bit
2307
+
2308
+
2309
+ ----==_mimepart_54bfe68749402_29833fc21fb7abbc596a5
2310
+ Content-Type: text/plain;
2311
+ charset=UTF-8
2312
+ Content-Transfer-Encoding: 7bit
2313
+
2314
+ Name: asdf
2315
+ Email: asdf@gmail.com
2316
+ Message: asdf
2317
+ ----==_mimepart_54bfe68749402_29833fc21fb7abbc596a5
2318
+ Content-Type: text/html;
2319
+ charset=UTF-8
2320
+ Content-Transfer-Encoding: 7bit
2321
+
2322
+ <p>Name: asdf</p>
2323
+ <p>Email: asdf@gmail.com</p>
2324
+ <p>Message: asdf</p>
2325
+ ----==_mimepart_54bfe68749402_29833fc21fb7abbc596a5--
2326
+
2327
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (7.0ms)
2328
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/create.js.erb (8.2ms)
2329
+ Completed 200 OK in 31ms (Views: 12.7ms | ActiveRecord: 0.0ms)
2330
+
2331
+
2332
+ Started GET "/" for 127.0.0.1 at 2015-01-21 11:49:48 -0600
2333
+ Processing by ApplicationController#index as HTML
2334
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (7.4ms)
2335
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form_container.html.erb (8.2ms)
2336
+ Rendered application/index.html.erb within layouts/application (9.7ms)
2337
+ Completed 200 OK in 34ms (Views: 33.7ms | ActiveRecord: 0.0ms)
2338
+
2339
+
2340
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-21 11:49:48 -0600
2341
+
2342
+
2343
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-01-21 11:49:48 -0600
2344
+
2345
+
2346
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-01-21 11:49:48 -0600
2347
+
2348
+
2349
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-01-21 11:49:48 -0600
2350
+
2351
+
2352
+ Started GET "/" for 127.0.0.1 at 2015-01-21 11:50:15 -0600
2353
+ Processing by ApplicationController#index as HTML
2354
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (72.0ms)
2355
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form_container.html.erb (73.5ms)
2356
+ Rendered application/index.html.erb within layouts/application (89.2ms)
2357
+ Completed 200 OK in 139ms (Views: 138.7ms | ActiveRecord: 0.0ms)
2358
+
2359
+
2360
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-21 11:50:16 -0600
2361
+
2362
+
2363
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-01-21 11:50:16 -0600
2364
+
2365
+
2366
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-01-21 11:50:16 -0600
2367
+
2368
+
2369
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-01-21 11:50:16 -0600
2370
+
2371
+
2372
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-21 11:50:19 -0600
2373
+
2374
+
2375
+ Started POST "/messages/create" for 127.0.0.1 at 2015-01-21 11:50:27 -0600
2376
+ Processing by Contact::MessagesController#create as JS
2377
+ Parameters: {"utf8"=>"✓", "message"=>{"name"=>"", "email"=>"", "content"=>""}, "commit"=>"Send Message"}
2378
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (8.7ms)
2379
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/create.js.erb (11.3ms)
2380
+ Completed 200 OK in 22ms (Views: 19.6ms | ActiveRecord: 0.0ms)
2381
+
2382
+
2383
+ Started POST "/messages/create" for 127.0.0.1 at 2015-01-21 11:50:31 -0600
2384
+ Processing by Contact::MessagesController#create as JS
2385
+ Parameters: {"utf8"=>"✓", "message"=>{"name"=>"asdf", "email"=>"asdf@gmail.com", "content"=>"asdf"}, "commit"=>"Send Message"}
2386
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/message_mailer/new_message.html.erb (0.5ms)
2387
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/message_mailer/new_message.text.erb (0.4ms)
2388
+
2389
+ Contact::MessageMailer#new_message: processed outbound mail in 173.3ms
2390
+
2391
+ Sent mail to to@example.com (9.9ms)
2392
+ Date: Wed, 21 Jan 2015 11:50:31 -0600
2393
+ From: from@example.com
2394
+ To: to@example.com
2395
+ Message-ID: <54bfe6e74247f_2c0b3ff8d7db0488256c2@Davids-MacBook-Air-3.local.mail>
2396
+ Subject: New Contact Form Submission
2397
+ Mime-Version: 1.0
2398
+ Content-Type: multipart/alternative;
2399
+ boundary="--==_mimepart_54bfe6e740d7c_2c0b3ff8d7db048825597";
2400
+ charset=UTF-8
2401
+ Content-Transfer-Encoding: 7bit
2402
+
2403
+
2404
+ ----==_mimepart_54bfe6e740d7c_2c0b3ff8d7db048825597
2405
+ Content-Type: text/plain;
2406
+ charset=UTF-8
2407
+ Content-Transfer-Encoding: 7bit
2408
+
2409
+ Name: asdf
2410
+ Email: asdf@gmail.com
2411
+ Message: asdf
2412
+ ----==_mimepart_54bfe6e740d7c_2c0b3ff8d7db048825597
2413
+ Content-Type: text/html;
2414
+ charset=UTF-8
2415
+ Content-Transfer-Encoding: 7bit
2416
+
2417
+ <p>Name: asdf</p>
2418
+ <p>Email: asdf@gmail.com</p>
2419
+ <p>Message: asdf</p>
2420
+ ----==_mimepart_54bfe6e740d7c_2c0b3ff8d7db048825597--
2421
+
2422
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/_form.html.erb (6.4ms)
2423
+ Rendered /Users/earlynovrock/Web/contact/app/views/contact/messages/create.js.erb (7.8ms)
2424
+ Completed 200 OK in 204ms (Views: 12.8ms | ActiveRecord: 0.0ms)
@@ -1 +1 @@
1
- 10627
1
+ 11275
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flyover-contact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Van Der Beek
@@ -115,8 +115,8 @@ files:
115
115
  - app/models/contact/message.rb
116
116
  - app/views/contact/message_mailer/new_message.html.erb
117
117
  - app/views/contact/message_mailer/new_message.text.erb
118
- - app/views/contact/messages/_fields.html.erb
119
118
  - app/views/contact/messages/_form.html.erb
119
+ - app/views/contact/messages/_form_container.html.erb
120
120
  - app/views/contact/messages/create.js.erb
121
121
  - app/views/contact/messages/new.html.erb
122
122
  - config/routes.rb
@@ -1,7 +0,0 @@
1
- <%= simple_form_for (@message || Contact::Message.new), html: { novalidate: true }, url: contact.messages_path, remote: true do |f| %>
2
- <%= f.error_notification %>
3
- <%= f.input :name, label: "Your name" %>
4
- <%= f.input :email, label: "Your email" %>
5
- <%= f.input :content, as: :text, label: "Message" %>
6
- <%= f.submit "Send Message", class: "btn btn-outline btn-outline-teal inverse" %>
7
- <% end %>