Chapter 3.1 – RoR: An introduction Maciej Mensfeld Presented by: Maciej Mensfeld RoR: An introduction dev.mensfeld.pl github.com/mensfeld.

Slides:



Advertisements
Similar presentations
Commerce KICKSTART 2 Faster and easier solution
Advertisements

Location Tracker Maciej Mensfeld Presented by: Maciej Mensfeld Location Tracker dev.mensfeld.pl github.com/mensfeld.
Ruby on Rails Model of MVC. Model-View-Controller Paradigm A way of organizing a software system Benefits: Isolation of business logic from the user interface.
Chapter 15 © 2010 by Addison Wesley Longman, Inc Origins and Uses of Ruby - Designed by Yukihiro Matsumoto; released in Use spread rapidly.
One very important thing to remember when studying for a test is not to over study. That's right, there is such a thing as studying too much (but this.
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
Chapter User authorization & safety Maciej Mensfeld Presented by: Maciej Mensfeld User authorization & safety dev.mensfeld.pl.
Rules and Regulations By: Maciej Gumieniak. Say something nice, or don’t say anything at all!  When talking to someone or about someone say only nice.
Ruby: An introduction - Who am I? Maciej Mensfeld Presented by: Maciej Mensfeld Ruby: An introduction dev.mensfeld.pl github.com/mensfeld.
Sakai on Rails Integrating Ruby and Sakai David Adams, Virginia Tech.
© 2003 Terry James. All rights reserved 1 The CRM Textbook: customer relationship management training Terry James © 2006 Chapter 1: Customer Magic.
Ruby on Rails Tutorial Peter Mosca April, Ruby on Rails Tutorial Ruby History Invented 12 years ago in Japan by Yukihiro Matsumoto Spent first 5.
Ruby on Rails by Manik Juneja Ruby On Rails. Ruby on Rails by Manik Juneja Rails is a Web Application development framework. Based on the MVC pattern.
Software is Social or Why its not all about programming Scott Wilson.
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
27-Jun-15 Rails. What is Rails? Rails is a framework for building web applications This involves: Getting information from the user (client), using HTML.
Software Architecture Patterns (2). what is architecture? (recap) o an overall blueprint/model describing the structures and properties of a "system"
English Exam Tips Year 8 S.A.Ts Practice Learning Outcomes: To create a solid understanding of what to expect and how to cope with S.A.Ts questions.
Website Development. W hat do you really want the website to say? How do you lay out the website and web pages? When it's completed, where do you publish?
Ruby on Rails: An Introduction JA-SIG Summer Conference 2007 Michael Irion The University of Tulsa.
| Lugano, Ruby on Rails.
A little engineering on Rails Robert W. Hasker. Goals Intro to the Rails framework ▫Basic concepts: MVC, Active Record ▫A bit of Ruby Using Rails to build.
RUBY ON RAILS Mark Zhang. In this talk  Overview of Ruby on Rails  Core ideas  Show a tiny bit of example code  Touch on several general web development/
RUBY ON RAILS It’s so rad. What we’ll cover  What is Ruby?  What is RoR?  Why RoR?  Developing with RoR  Deployment  Demo  Questions.
Ruby on Rails. What is Ruby on Rails? Ruby on Rails is an open source full-stack web framework. It is an alternative to PHP/MySQL. It can render templates,
Reading. Why should I read faster? 1.To be prepared for college/university –You will be reading pages every week. 2.Faster readers comprehend.
Ruby on Rails CSCI 6314 David Gaspar Jennifer Garcia Avila.
Rails and Grails. To get started Make sure you have java installed You can get the sdk and jre at:
Chapter 3.2 – RoR: easier, faster, better Maciej Mensfeld Presented by: Maciej Mensfeld RoR: easier, faster, better mensfeld.pl github.com/mensfeld.
UC Berkeley Hello Rails. Review: MVC Goal: separate organization of data (model) from UI & presentation (view) by introducing controller –mediates user.
R4A Maciej Mensfeld O mnie: Maciej Mensfeld Ruby 4 Android dev.mensfeld.pl github.com/mensfeld.
Ruby & rails by Nicholas Belotti. What is ruby Ruby is an object orientated scripting language. In Ruby...everything is an object! Ruby was released in.
Chapter 4.1 – Deeper into Rails Maciej Mensfeld Presented by: Maciej Mensfeld Deeper into Rails mensfeld.pl github.com/mensfeld senior.
By: Maksim Surguy & Cesar Acosta require 'sinatra‘ get ‘/' do "Hello World!" end.
1 Dr Alexiei Dingli Web Science Stream Introducing Rails.
Apache Struts RIFE Ruby on Rails Harry R. Erwin, PhD University of Sunderland CIT304/CSE301.
WEB DESIGN AND PROGRAMMING Get a job. WEB DESIGN AND PROGRAMMING What do employers look for? In your resume – Clean layout, use clear headers and subheads.
Regression Therapy – Contentful Testing Anthony Bailey 3 April 2008, Scotland on Rails.
Ruby on Rails Your first app. Rails files app/ Contains the controllers, models, views and assets for your application. You’ll focus on this folder for.
The Scientific Method: A Way to Solve a Problem
Lecture 11 Rails Topics SaaSSaaS Readings: SaaS book Ch February CSCE 740 Software Engineering.
Social Media Roundup Bad social media: 7 Ways to lose your audience.
CS 197 Computers in Society Professor John Peterson.
Ruby on Rails (Slides modified by ements-2ed.shtml)
Sophomore Seminar. Students will learn proper phone, text messaging, , and social networking etiquette. They will demonstrate this knowledge in assignments.
Model View Controller A Pattern that Many People Think They Understand, But Has A Couple Meanings.
Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation
Ruby on Rails By S. Christopher Hellriegel. Overview 1. What is Ruby on Rails? 2. What is MVC? 3. Simple example 4. Wow, that was cool!
RUBY ON RAILS (RoR) Ishwor Khadka. Why Ruby on Rails?
Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules.
Web applications – what & why? Maciej Mensfeld Presented by: Maciej Mensfeld Web applications – what & why? dev.mensfeld.pl github.com/mensfeld.
Introduction to Ruby&Rails Yuri Veremeyenko Monica Verma.
Technical Workshops | Esri International User Conference San Diego, California Creating Web Maps: Tips and Tricks Charlie Frye, Esri, Redlands Jim Herries,
Rails and routing INFO 2310: Topics in Web Design and Programming.
Drama Improvements Fatima AlThani 6E. What Dramatic Skill Would You Say Is The Best Part In Your Performance? Why? Speaking, Because I Was Speaking Clear.
Chapter 2 - OOP Maciej Mensfeld Presented by: Maciej Mensfeld More about OOP dev.mensfeld.pl github.com/mensfeld.
Creative Commons Attribution- NonCommercial-ShareAlike 2.5 License Sakai Programmer's Café Sakai Training Workshop University of Amsterdam Aaron Zeckoski.
Ruby on Rails. Web Framework for Ruby Designed to make it easier to develop, deploy, and maintain web applications Design with Model-View-Controller –almost.
Learn AngularJS by Building 10 projects. Introduction to AngularJS An Open source web application framework by Google Written in JavaScript offers complete.
1 Rails for the Ruby-Impaired John Paul Ashenfelter CTO/Transitionpoint.
Get your software working before putting it on the robot!
2014 You are not your Imposter Syndrome Neha 10/8/2014 #GHC
Custom Developer Testing Frameworks – A Practical Approach Yuval Mazor, Sela
Ruby Co-Learning Philip Maessoumi kiyumars.com
Ruby, Rails, GUIs, and More
Why Modern Web Apps Are Best Built Using Rails In 2018.
Ruby on Rails by Manik Juneja
Ruby on Rails by Manik Juneja
Your code is not just…your code
Your code is not just…your code
Presentation transcript:

Chapter 3.1 – RoR: An introduction Maciej Mensfeld Presented by: Maciej Mensfeld RoR: An introduction dev.mensfeld.pl github.com/mensfeld senior ruby senior ruby

Ruby on Rails: An introduction - Rules Maciej Mensfeld Please… …ask me to slow down, if I speak to quickly; …ask me again, if I forget; …ask questions, if anything i say is not clear; …feel free to share your own observations RoR: An introduction

Ruby on Rails: An introduction – Rails what? Maciej Mensfeld RoR: An introduction

Ruby on Rails: An introduction – What is Ruby on Rails? Maciej Mensfeld RoR: What is Ruby on Rails? Full stack web application framework Written in the Ruby programming language Growing community since 2004 Open Source and Free Focused on developer productivity and getting the job done – fast!

Ruby on Rails: An introduction – What is Ruby on Rails? Maciej Mensfeld RoR: Why Ruby on Rails? Lot of frameworks exists on the market and a lot of programming languages for the web but… Rails leads

Ruby on Rails: An introduction – What is Ruby on Rails? Maciej Mensfeld RoR: Why Ruby on Rails? Rails give the developers a real productivity boost for developing web applications Because of Ruby and domain specific languages Convention over Configuration Productivity boost! Really faster? 3-4 times faster than dev with zend

Ruby on Rails: An introduction – What is Ruby on Rails? Maciej Mensfeld RoR: Why Ruby on Rails? Designed to make it easier to develop, deploy, and maintain web applications Design with Model-View-Controller Also based on DRY concept Don’t Repeat Yourself (DRY) Every piece of knowledge should be expressed in just one place

Ruby on Rails: An introduction – Who uses RoR? Maciej Mensfeld I do! ;) (but not only…) and thousands of other…

Ruby on Rails: An introduction – The framework Maciej Mensfeld Lil bit bout Rails structure The Framework

Ruby on Rails: An introduction – The framework Maciej Mensfeld Lil bit bout Rails structure Try it out! cd ~ rails new my_blog … (output): create create README create Rakefile create config.ru create.gitignore create Gemfile create app create app/assets/images/rails.png … To much stuff! WTF?!

Ruby on Rails: An introduction – The framework Maciej Mensfeld Lil bit bout Rails structure Fortunately you don’t need to care about this :)

Ruby on Rails: An introduction – The framework Maciej Mensfeld MVC

Ruby on Rails: An introduction – The framework Maciej Mensfeld Rails MVC

Ruby on Rails: An introduction – The framework Maciej Mensfeld Models ;)

Ruby on Rails: An introduction – The framework Maciej Mensfeld ActiveRecord models

Ruby on Rails: An introduction – The framework Maciej Mensfeld Models should be… Fat! Fat! Fat!!!! Fat models, thin controllers

Ruby on Rails: An introduction – The framework Maciej Mensfeld But… don’t piss off Vegeta ;) Make fat models and thin controllers or Vegeta will visit U…

Ruby on Rails: An introduction – The framework Maciej Mensfeld ActionController

Ruby on Rails: An introduction – The framework Maciej Mensfeld ActionController – be Restful

Ruby on Rails: An introduction – The framework Maciej Mensfeld ActionController – be Restful

Ruby on Rails: An introduction – The framework Maciej Mensfeld ActionView

Ruby on Rails: An introduction – The framework Maciej Mensfeld ActionView templates ERB – templates with HTM and Ruby code – used to display dinamic stuff from prepared by controllers

Ruby on Rails: An introduction – Example app Maciej Mensfeld Enough theory, let’s start the magic!

Ruby on Rails: An introduction – Example app Maciej Mensfeld Generate Rails scaffold… Try it out!

Ruby on Rails: An introduction – Example app Maciej Mensfeld Start rails server to check if it works Try it out! Go to

Ruby on Rails: An introduction – Example app Maciej Mensfeld Yay! It works!

Ruby on Rails: An introduction – Example app Maciej Mensfeld Creating Posts Try it out!

Ruby on Rails: An introduction – Example app Maciej Mensfeld Creating Posts Try it out! Yeah it works but… we can create empty posts :( not good :(

Ruby on Rails: An introduction – Example app Maciej Mensfeld Protect create/update/destroy Try it out! Our blog works but anyone can add, edit and remove posts… shitty :/

Ruby: writing some cool stuff Maciej Mensfeld Live long and prosper! Presented by: Maciej Mensfeld dev.mensfeld.pl github.com/mensfeld