Day: November 16, 2019

Model in Ruby on Rails

Model in Ruby on Rails

How to create a model rails g model category category_name I want to create Product and Category models. Product model has a reference to Category model So I first create the model Category

Your migrated file @db\migrate location

and then run the migrate

Second I will create the Product

You can […]

Read more

Getting Started – Ruby on Rail

To install rails on your Mac computer, you can use the following command >sudo gem install rails Create the Rail project with MYSQL database support >rails new MyProject -d mysql What is Bundle in your Rails project? Bundle is separate gem for Rails Bundle manage the gems which your Rail application need It tracks and […]

Read more