Monday, April 6, 2009

workshop 2

Workshop -----2-----

Configuring Ruby on Rails:

I downloaded the Instant rail version 2.0 from internet .but when i tried to extract the Zip file ,i could not found the exe .file. Then I went to our lecturer Mr. Ken .and we sent but 2 hour trying to set-up Ruby on rails on my laptop.

Somehow we did succeeded, we were able to run cookbook where we created 2 recipes.
But when we shut the application down there was no way to start it again. Every time we need to run the .exe from the zip folder. Ken tried find the solution but no use.

I felt the installation is very technical. I am attached the commands we used to run the ROR with the posting.

After 2 hour of hardship we were again at same position with Zip folder of ROR.
So i decided to use SQL for creating the tables we needed for the workshop. On other hand side i am trying to find solution to my problem of ROR as ken said that there is some problem with ROR working with Vista.

“Convention over configuration”
Convention over Configuration (aka Coding by convention) is a software design paradigm which seeks to decrease the number of decisions that developers need to make, gaining simplicity, but not necessarily losing flexibility. (unanymous, 2009)
"Convention over Configuration" means a developer only needs to specify unconventional aspects of the application. For example, if there is a class Sale in the model, the corresponding table in the database is called sales by default. It is only if one deviates from this convention, such as calling the table "products sold", that the developer needs to write code regarding these names. Generally, this leads to less code and less repetition.

No comments:

Post a Comment