diff --git a/app/models/prescription.rb b/app/models/prescription.rb index 9784f04..6ab3465 100644 --- a/app/models/prescription.rb +++ b/app/models/prescription.rb @@ -4,7 +4,7 @@ class Prescription < ActiveRecord::Base mount_uploader :file, PrescriptionUploader attr_accessor :email - attr_accessible :email, :tel, :name, :notes + attr_accessible :email, :tel, :name, :notes, :file validates :name, :presence => true validates :tel, :presence => true diff --git a/config/environments/development.rb b/config/environments/development.rb index d994383..022792d 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -27,17 +27,8 @@ Pharma::Application.configure do 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 HOSTNAME = "localhost:3000"