Rails tutorial: Simple blog subscription feature in Rails

Before start this you have to setup new rails application with MySQL database. My previous post help you. Check this link: Setting MySQL database to Rails Application First of all generate a model called Subscriber with following command: rails g model Subscriber email:string Which will generate Subscriber model (app/model) directory and a migration file in…

Read more...

Setting MySQL database to Rails Application

MySQL is an open-source relational database management system. In this post I’m going to explain to use MySQL database to rails project. Install MySQL database if you do not have installed MySQL databse to your system.When you create new rails project with following command, it will add SQLite gem to the Gemfile, which is for…

Read more...

Use both MongoDB and MySQL database in rails project

You need to setup your rails project with both of the database connections. Firstly for MongoDB, you need to decide which driver wrapper (if you use one) are you going to use. The two common ones are MongoID & MongoMapper. Both do pretty much the same thing and make it easy to interact with Mongo…

Read more...