Skip to content

Instantly share code, notes, and snippets.

View blizzerand's full-sized avatar
👨‍💻
Inventing

Manjunath blizzerand

👨‍💻
Inventing
View GitHub Profile
map.connect 'product_description', :controller => "products", :action => "description"
match 'product_description', :to => "products#description"
map.description 'product_description' ,:controller => "products",:action => "description"
map.description 'product_description', :controller => "products", :action => "description"
match 'product_description', :to => "products#description", :as => :description
match '/rack_it_up' => RackItUp
class DeliveryMailer
def user_creation_email(user_created,password)
subject "User Registration Mail"
recipients user_create.email
from 'myapp@test.com'
DeliveryMailer.deliver_user_creation_email(user,"SECRET")
class DeliveryMailer
def user_creation_email(user_created,password)
@user = user_created
@password = password
@from ='myapp@test.com'
mail(:to => user_created.email,:subject => "User Registration")
DeliveryMailer.user_creation_email(user,"SECRET").deliver