Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Dr Alexiei Dingli Web Science Stream Installing ROR.

Similar presentations


Presentation on theme: "1 Dr Alexiei Dingli Web Science Stream Installing ROR."— Presentation transcript:

1 1 Dr Alexiei Dingli Web Science Stream Installing ROR

2 2 Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails, Apache, and MySQL, all pre-configured and ready to run. No installer, you simply drop it into the directory of your choice and run it. It does not modify your system environment. What is Instant Rails?

3 3 Download Instant Rails from –http://rubyforge.org/projects/instantrails/http://rubyforge.org/projects/instantrails/ –Files > InstantRails-2.0-win.zip Unzip the file into C:\InstantRails Step 1 – Download and Unzip

4 4 Double click on InstantRails.exe Just click OK or Continue You should be presented with the InstantRails console Step 2 – Start railing

5 5 Instant Rails Console Web Server Database

6 6 Opening a Ruby Console Updating Instant Rails

7 7 Type: gem update --system

8 8 Type: gem update

9 9 Welcome to ROR

10 10 Create a ToDo application in 5 minutes... Let’s get our hands dirty!

11 11 1.Open a ruby console Instant Rails Menu > Rails Applications > Open Ruby Console 2.Where you want to create your application type rails todo This will create the whole directory structure Steps (1)

12 12 3.Go into the todo dir cd todo 4.Load the server by typing ruby script/server 5. Access it through a normal browser by going to http://127.0.0.1:3000 Steps (2)

13 13 So far so good...

14 14 6. Let’s use some scaffolding... ruby script/generate scaffold Item name:string description:text 7. Let’s make the database rake db:migrate 8. Let’s try it out http://localhost:3000/items Steps (3)

15 15 Here’s your 5 minutes ToDo list

16 16 Create a simple recipe database which contains the name of the recipe, the ingredients, the quantities and the description Exercise


Download ppt "1 Dr Alexiei Dingli Web Science Stream Installing ROR."

Similar presentations


Ads by Google