still form data
This commit is contained in:
@ -3,6 +3,6 @@ class FormMailer < ApplicationMailer
|
|||||||
|
|
||||||
def received(data)
|
def received(data)
|
||||||
@data = 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
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
%h2
|
%h2
|
||||||
Hello
|
Hello
|
||||||
= @data[:name]
|
= @data["Name"]
|
||||||
|
|
||||||
%p
|
%p
|
||||||
This is an automated message confirming that we have receievd your request
|
This is an automated message confirming that we have receievd your request
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Hello <%= @data[:name] %>
|
Hello <%= @data["Name"] %>
|
||||||
|
|
||||||
This is an automated message confirming that we have receievd your request
|
This is an automated message confirming that we have receievd your request
|
||||||
|
|
||||||
@ -13,6 +13,6 @@ Your friendly Feenix Bot
|
|||||||
Data received
|
Data received
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
<%- @data.each do |name , value| %>
|
<%- @data.each do |key , value| %>
|
||||||
<%= name %> : <%= value %>
|
<%=key %> : <%= value %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
Reference in New Issue
Block a user