background preloader

Rails

Facebook Twitter

Intro To Rails - Intro To Rails. Goal To teach you Ruby on Rails we are going to use a "Real World" example.

Intro To Rails - Intro To Rails

You've decided to create a voting system for you and your friends to play with. You've decided at a minimum, you'd like to allow users to: view the topics sorted by number of votesvote on topicscreate, edit, and destroy topics You've sketched up an initial screenshot of what you want it to look like: Meta-Goal When you have completed today's goal of getting the basic application online you should understand: Basic Ruby syntaxHow to try your Ruby code (IRB)How to go from requirements to a new working Rails applicationHow to get your application onlineThe basic tools a RoR developer uses (source control, editor, console, local server) Schedule 1-ish hour of Ruby4-ish hours of Rails, broken up in 1-ish hour steps This is just a rough guideline, not a mandate.

Requirements We're going to be working with: Everything should be set up the night before during our install-fest. Rails Girls App Tutorial - Rails Girls. Created by Vesa Vänskä, @vesan Make sure you have Rails installed.

Rails Girls App Tutorial - Rails Girls

Follow the installation guide to get set up. Get to know the tools Text Editor Atom, Sublime Text, Vim and Emacs are examples of text editors your can use for writing code and editing files. Terminal (known as Command Prompt on Windows) Where you start the rails server and run commands. Web browser (Firefox, Safari, Chrome) for viewing your application. Important It is important that you select the instructions specific to your operating system - the commands you need to run on a Windows computer are slightly different to Mac or Linux. 1.Creating the application We’re going to create a new Rails app called railsgirls.

First, let’s open a terminal: Mac OS X: Open Spotlight, type Terminal and click the Terminal application. Next, type these commands in the terminal: You can verify that a directory named projects was created by running the list command: ls. Choose your operating system: Windows | Other. Try Ruby: learn the basics of the Ruby language in your browser. A Quick Introduction To Ruby. I wrote a no-nonsense introduction to Ruby for people who already know how to program in some other language.

A Quick Introduction To Ruby

This article does not waste time with programming basics or syntax details which one can learn easily anyway. I hope this gets you started in the beautiful, happy world of Ruby. Introduction to Ruby Ruby is an interpreted object-oriented programming language. This means you have classes, objects, instance methods, instance variables, class methods, class variables and so on. Everything is an objectYes, everything is an object. >> 24.to_s + true.to_s=> "24true" Classes are openClasses and Modules in Ruby are not set in stone after loading.

>> s = String.new("hi")>> puts s.upcase=> "HI" #Now let's modify the built-in method dynamically. >> class String; def upcase; "abc"; end; end>> puts s.upcase=> "abc" We have modified the method "upcase", which is built in the core Ruby class "String", dynamically.

Rails

Rails Girls App Tutorial - Rails Girls. Guides - Rails Girls. All your basic questions answered in one place What do I need to be a Rails Girls coach?

Guides - Rails Girls

So, you’ve heard about Rails Girls and are wondering if you’ve got what it takes to be a coach at one of the workshops? That’s awesome! Your interest in helping beginners dip their toes into web programming is already a great prerequisite! What else do you need? Patience, willingness to help, and a friendly attitude :) Being able to answer all sorts of questions in a beginner friendly way (even if the explanation isn’t technically completely exact) throughout the duration of the workshop. Why should I be a Rails Girls coach? You mean besides incredibly good karma? You’ll meet interesting new people outside your usual developer group.

Choice of technology Rails Girls workshops give the first experience in software craftsmanship through introducing the participants to Ruby, Rails and HTML/CSS. Time to complete app Swag Believe it or not, for most, it is really important. Inclusivity Why haven’t you yet? Create Rails apps. Faster. Getting Started with Rails. 1 Guide Assumptions This guide is designed for beginners who want to get started with a Rails application from scratch.

Getting Started with Rails

It does not assume that you have any prior experience with Rails. Rails is a web application framework running on the Ruby programming language. If you have no prior experience with Ruby, you will find a very steep learning curve diving straight into Rails. There are several curated lists of online resources for learning Ruby: Be aware that some resources, while still excellent, cover versions of Ruby as old as 1.6, and commonly 1.8, and will not include some syntax that you will see in day-to-day development with Rails.