pb ordonnances
This commit is contained in:
parent
d98502351c
commit
6544815368
@ -4,7 +4,7 @@ class Prescription < ActiveRecord::Base
|
|||||||
mount_uploader :file, PrescriptionUploader
|
mount_uploader :file, PrescriptionUploader
|
||||||
|
|
||||||
attr_accessor :email
|
attr_accessor :email
|
||||||
attr_accessible :email, :tel, :name, :notes
|
attr_accessible :email, :tel, :name, :notes, :file
|
||||||
|
|
||||||
validates :name, :presence => true
|
validates :name, :presence => true
|
||||||
validates :tel, :presence => true
|
validates :tel, :presence => true
|
||||||
|
@ -27,17 +27,8 @@ Pharma::Application.configure do
|
|||||||
|
|
||||||
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
||||||
|
|
||||||
config.action_mailer.delivery_method = :sendmail
|
config.action_mailer.delivery_method = :file
|
||||||
|
|
||||||
config.action_mailer.smtp_settings = {
|
|
||||||
:tls => true,
|
|
||||||
:address => "smtp.gmail.com",
|
|
||||||
:port => "587",
|
|
||||||
:domain => "quartz-agence.com",
|
|
||||||
:authentication => :plain,
|
|
||||||
:user_name => "n.bally@quartz-agence.com",
|
|
||||||
:password => "sio2mail"
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
HOSTNAME = "localhost:3000"
|
HOSTNAME = "localhost:3000"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user