《Agile Web Development with Rails》读书笔记(一)

来源:互联网 发布:怎么开淘宝找货源 编辑:程序博客网 时间:2024/05/22 04:47

        I.              My way of Rails

Working as an embedded system developer, I never know much about web development. When I found my colleague build an website for ordering & managing the dinner for ours work day, I think this is so fantastic, and I want to build a website for myself—sharing & managing the collection of my ebooks.

I want to find a way to build the website quickly and the maintenance is easy to holding. At this point, I just try to learn a new programming language-ruby, and I found a framework for building website with agile method which is introduced by someone. So I just spend some time on it.

The book <<Agile Web Development with Rails>> give me a nice try to build my own website and It’s really so quickly.

The kernel of Rails is mature MVC patterns, maybe everyone who knows design patterns will know it, but Rails tell me what really MVC is.

Note: In order to build a website, you should have the basis of html and CSS, if you are not familiar with these, try to learn some concept and basic usage.

     II.              Install Rails

To get Rails running on windows system, I need the following:

a)        Ruby interpreter. The installation is normal.

b)        Rails. Because I can not install Rails directly via internet, I only can download the rails packet need to my disk, and install Rails through local driver. Change to the directory where you put the packets.

work>gem install rails

This cmd will inform you that you need other dependencies, you should download the packet followed the hint. Using gem install [packet name] to install the dependency first, then using the rails install cmd the get another dependency. Do this loop until the rails has been installed on you windows.

c)        MySQL. Mysql is the official recommended database, so I install it. It just as easy as ruby installation.( I did not create anther administrator, just use the default one, user: root, password: nil )

After this, all the preparation for Rails is completed!

 
原创粉丝点击