Rails 101
Who are you?
l Marwan Nakhalehl Third year computer science
and engineering student at Ohio State
l One and a half years' experience with Ruby on Rails
l http://marwannakhaleh.com
Who am I?
l Introduce yourself!
Polling!
l Who knows what a web framework is?l Who knows what Ruby on Rails is?
What is Ruby on Rails?
l Ruby on Rails, commonly referred to as Rails, is an open source web application framework written in the Ruby programming language.
l It's a full-stack framework, meaning that Rails by itself can hold a complete application.
l Rails emphasizes the model-view-controller software paradigm.
Convention vs. Configuration
l Seeks to reduce the number of decisions developers have to make
l Rails will configure as much of the app as possible without specific input made by the developer, but in the event the developer has to put in special input, he/she can edit configuration files
HTTP Commands
l GETl Retrieves a representation of a resource
l POSTl Puts new resources with a generated ID
l DELETEl Removes resources
RubyGems
l Package manager for Rubyl That's how we're gonna install Rails!
l Allows for certain plugins to be used with Rails applicationsl Devise (authentication), PostgreSQL (database),
Paperclip (image upload), will_paginate (pagination)
Who's running what?
l Windows?l Linux?l Mac?
Setup!
Let’s make something!
l Super basic Twitter clonel Full authentication with Devise!l Tweet model!
Additional Resources
l Build a full-fledged Twitter clone from scratch with Ruby on Railsl http://railstutorial.net/book
l Rails for Zombiesl http://railsforzombies.org
l This slideshowl http://www.slideshare.net/mnakhaleh/rails-101-41426276