This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /config/environment.rb | |
# código | |
Rails::Initializer.run do |config| | |
# código | |
ActionMailer::Base.delivery_method = :smtp | |
#Coloquei aqui as configurações do servidor de email imap. | |
ActionMailer::Base.smtp_settings = { | |
:tls => true, | |
:address => "smtp.gmail.com", | |
:port => "587", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /vendor/plugins/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby script/plugin install git://github.com/collectiveidea/action_mailer_optional_tls.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Controller do Documents | |
######################### | |
class DocumentsController < ApplicationController | |
before_filter :load_project | |
# GET /documents | |
# GET /documents.xml | |
def index | |
@documents = @project.documents.find(:all) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SkatingContest | |
def o_vencedor; @o_vencedor; end | |
def o_vencedor=( nome ) | |
unless nome.respond_to? :to_str | |
raise ArgumentError, "O nome do vencedor deve ser uma String, | |
não um prooblema matemático ou uma lista de nomes ou qualquer ou | |
coisa parecida." | |
end | |
@o_vencedor = nome | |
end |
NewerOlder