MySQL tips: Back Up and Restore MySQL Database

Sometimes we have to take backup and restore our database. In this post I’m describing how to take backup from MySQL database and restore to Linux/Unix machine. If phpMyAdmin is installed to your system, you can take backup from web portal. If not installed you can take backup from command prompt. Here is MySQL command…

Read more...

Rails tutorial: Send email with rails

In rails we use ActionMailer to send email. For more detail about ActionMailer check this link: http://guides.rubyonrails.org/action_mailer_basics.html Now its time to create mailer. Use following line of command to create mailer. Here I created Blog Mailer which is used to send email to all blog subscriber when new blog published. rails g mailer ArticleMailer Which…

Read more...

Rails tutorial: Simple blog subscription feature in Rails

Here is a simple Rails MVC tutorial guide. This step by step tutorial will help you to configure routes, generate model, controller and view (i.e. MVC). It will also teach you how to send email using ActionMailer in Rails. Before start this you have to setup new rails application with MySQL database. My previous post…

Read more...