Excel or pdf attachments in mail for rails -2.3.8 version

How to create excel or pdf attachments in mail for rails -2.3.8
version .

Can anybody help me on this .

http://guides.rubyonrails.org/v2.3.8/action_mailer_basics.html#sending-emails-with-attachments