fix data keys
This commit is contained in:
parent
9b21d6aafc
commit
6cdd30fe31
|
@ -3,6 +3,6 @@ class FormMailer < ApplicationMailer
|
|||
|
||||
def received(data)
|
||||
@data = data
|
||||
mail(to: data['email'] , subject: "We have received your request")
|
||||
mail(to: data[:email] , subject: "We have received your request")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
%h1
|
||||
%h2
|
||||
Hello
|
||||
= @data["name"]
|
||||
= @data[:name]
|
||||
|
||||
%p
|
||||
This is an automated message confirming that we have receievd your request
|
||||
|
@ -15,7 +15,7 @@
|
|||
%p
|
||||
Your friendly Feenix Bot
|
||||
|
||||
%h3 Data received
|
||||
%h4 Data received
|
||||
|
||||
- @data.each do |name , value|
|
||||
%p
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Hello <%= @data['name'] %>
|
||||
Hello <%= @data[:name] %>
|
||||
|
||||
This is an automated message confirming that we have receievd your request
|
||||
|
||||
|
|
Loading…
Reference in New Issue