12
Rails 101

Rails 101

Embed Size (px)

Citation preview

Page 1: Rails 101

Rails 101

Page 2: 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

Page 3: Rails 101

Who am I?

l Introduce yourself!

Page 4: Rails 101

Polling!

l Who knows what a web framework is?l Who knows what Ruby on Rails is?

Page 5: Rails 101

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.

Page 6: Rails 101

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

Page 7: Rails 101

HTTP Commands

l GETl Retrieves a representation of a resource

l POSTl Puts new resources with a generated ID

l DELETEl Removes resources

Page 8: Rails 101

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)

Page 9: Rails 101

Who's running what?

l Windows?l Linux?l Mac?

Page 10: Rails 101

Setup!

Page 11: Rails 101

Let’s make something!

l Super basic Twitter clonel Full authentication with Devise!l Tweet model!

Page 12: Rails 101

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