Started playing with the some RoR application. I just did with 5% of
the application but I was not satisified with it. I had many
confusions and couldn’t grab it properly. So I deleted it and worked
again.

And when I started again gained little more concepts of Ruby, learnt
about controller. Using the following command we can generate the
controllers for our project

$ cd <project>
$ bin/rails generate controller welcome index
It works on 3000 port. We can have the welcome page at localhost:3000.
Also it generates several files such as view, helper, test-unit etc.

We need to do nothing, every file is in proper place and I was done
with the very simple and basic example in just 15 minutes:)

Advertisements