I have completed my certificate in Scrum Master. Completed training and evaluation.
Now i am Certified Scrum Master.
Cheers,
Arun
I have completed my certificate in Scrum Master. Completed training and evaluation.
Now i am Certified Scrum Master.
Cheers,
Arun
ActionMailer::Base
. The name should be receive.
The method receive.
will take a argument which is a Mail::Message
obejct.
An example here :
class EmailReceiver < ActionMailer::Base def receive(email) person = Profile.find_by_email(email.to.first) person.emails.create( :subject => email.subject, :body => email.body ) end endYou can invoke this method on Mailer class to handle incoming email. You don’t have to implement the
receive
class method yourself, it is inherited from ActionMailer::Base
.
Here we can define number of groups according to our environments. As you can see above example ‘ruby-debug’ will only get loaded when you are in development and test environment. ‘rspec’, ‘faker’ will gets loaded in test environment only. So this is a cool way to manage your gem dependencies. And ‘rails’, ‘mongo’, ‘bson’ all other ungrouped gems gets loaded in all environment.gem "rails", "~> 3.0.1"gem "mongo", "1.1.5"gem "bson", "1.1.5"gem "bson_ext", "1.1.5"gem "mongoid", :git => "http://github.com/mongoid/mongoid.git"gem "devise"gem "haml"group [:test, :development] dogem 'ruby-debug'endgroup :test dogem "rspec", "~> 2.0.0"gem "rspec-rails", "~> 2.0.0"gem "shoulda"gem "factory_girl"gem "faker"end