From 6544815368bc75dec57c97468531a4a78a18997a Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Thu, 2 May 2013 16:01:57 +0200 Subject: [PATCH] pb ordonnances --- app/models/prescription.rb | 2 +- config/environments/development.rb | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) 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"