Your SlideShare is downloading. ×
0
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Ruby hellug
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Ruby hellug

253

Published on

Ruby on Rails intro - 4th of January 2014 - Ruby Hellug

Ruby on Rails intro - 4th of January 2014 - Ruby Hellug

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
253
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Intro to Ruby on Rails Ruby Hellug – 4th of Jan 2014 1 Eleni Chourouzidou (eleni@webspirit.gr)
  • 2. Brief History  Ruby 2  Ruby on Rails
  • 3. 3 Framework  Organizes code  Provides tools  Automates tasks
  • 4. 4 Brief timeline  1993: Beginning of Ruby  1995: Ruby's first release  1999: Ruby's english documentation  2004: Creation of Ruby on Rails  Today: Ruby version 2.1, RoR version 4.0.2
  • 5. 5 Clean & elegant syntax > 2.times { print 'We love Ruby!' } > We love Ruby!We love Ruby! => 2
  • 6. New app, file structure > rails new blog > cd blog > rails server Already a functional application!! 6
  • 7. Scaffold: Fast functionality 7
  • 8. 8 MVC
  • 9. 9 Migrations db/migrate/20140101225451_add_author_to_posts.rb
  • 10. 10 Model Validations
  • 11. Controller 12
  • 12. 14 Routes & RESTful routing config/routes.rb
  • 13. 15 Routes & RESTful routing
  • 14. 16 What to see next  Codeschool Free Course: Rails for Zombies www.railsforzombies.org  Tutorial: Creating a simple ToDo application www.arubystory.blogspot.gr  Book: Rails 4 in Action (Publication 28 Mar 2014)
  • 15. 17 Any Questions? Thank you!
  • 16. 18
  • 17. 19 Install Ruby 2 Install gem ‘rails’ in console: > gem install rails Create new rails app in console: > rails new blog Change Directory (get in the app folder) > cd blog
  • 18. 20 Start the server > rails s Visit rails welcome page in the browser: localhost:3000 Create Scaffold Post, in the console: > rails g scaffold post title:string body:text
  • 19. 21 Run migration = create db table: >rake db:migrate

×