Suche senden
Hochladen
Cocoa on-rails-3rd
•
Als KEY, PDF herunterladen
•
0 gefällt mir
•
324 views
X
Xiaochun Shen
Folgen
Bildung
Technologie
Diashow-Anzeige
Melden
Teilen
Diashow-Anzeige
Melden
Teilen
1 von 24
Jetzt herunterladen
Empfohlen
Rails::Engine
Rails::Engine
Flavian Missi
Rails Engine :: modularize you app
Rails Engine :: modularize you app
Muntasim Ahmed
Rails Engine Patterns
Rails Engine Patterns
Andy Maleh
Rails Engine | Modular application
Rails Engine | Modular application
mirrec
Be happy with Ruby on Rails - CEUNSP Itu
Be happy with Ruby on Rails - CEUNSP Itu
Lucas Renan
Rails engines
Rails engines
Josh Schramm
RoR 101: Session 5
RoR 101: Session 5
Rory Gianni
Apikit from command line
Apikit from command line
fedefortin
Empfohlen
Rails::Engine
Rails::Engine
Flavian Missi
Rails Engine :: modularize you app
Rails Engine :: modularize you app
Muntasim Ahmed
Rails Engine Patterns
Rails Engine Patterns
Andy Maleh
Rails Engine | Modular application
Rails Engine | Modular application
mirrec
Be happy with Ruby on Rails - CEUNSP Itu
Be happy with Ruby on Rails - CEUNSP Itu
Lucas Renan
Rails engines
Rails engines
Josh Schramm
RoR 101: Session 5
RoR 101: Session 5
Rory Gianni
Apikit from command line
Apikit from command line
fedefortin
Plug it on!... with railties
Plug it on!... with railties
rails.mx
RoR 101: Session 3
RoR 101: Session 3
Rory Gianni
RoR 101: Session 2
RoR 101: Session 2
Rory Gianni
Redmine Betabeers SVQ
Redmine Betabeers SVQ
Ildefonso Montero
How angularjs saves rails
How angularjs saves rails
Michael He
AngularJS meets Rails
AngularJS meets Rails
Elena Torró
RoR 101: Session 6
RoR 101: Session 6
Rory Gianni
Adventurous Merb
Adventurous Merb
Matt Todd
Web services with laravel
Web services with laravel
Confiz
Laravel Restful API and AngularJS
Laravel Restful API and AngularJS
Blake Newman
Web service with Laravel
Web service with Laravel
Abuzer Firdousi
RoR 101: Session 6
RoR 101: Session 6
Rory Gianni
Ruby On Grape
Ruby On Grape
Andrii Furmanets
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Roy Sivan
Building RESTful APIs w/ Grape
Building RESTful APIs w/ Grape
Daniel Doubrovkine
Laravel Beginners Tutorial 2
Laravel Beginners Tutorial 2
Vikas Chauhan
Be Happy With Ruby on Rails - Ecosystem
Be Happy With Ruby on Rails - Ecosystem
Lucas Renan
Rails engines in large apps
Rails engines in large apps
Enrico Teotti
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.
SWAAM Tech
Building an API using Grape
Building an API using Grape
visnu priya
控制自己的情绪,或者,被 情绪控制
控制自己的情绪,或者,被 情绪控制
Xiaochun Shen
Cocoa on Rails 4th
Cocoa on Rails 4th
Xiaochun Shen
Weitere ähnliche Inhalte
Was ist angesagt?
Plug it on!... with railties
Plug it on!... with railties
rails.mx
RoR 101: Session 3
RoR 101: Session 3
Rory Gianni
RoR 101: Session 2
RoR 101: Session 2
Rory Gianni
Redmine Betabeers SVQ
Redmine Betabeers SVQ
Ildefonso Montero
How angularjs saves rails
How angularjs saves rails
Michael He
AngularJS meets Rails
AngularJS meets Rails
Elena Torró
RoR 101: Session 6
RoR 101: Session 6
Rory Gianni
Adventurous Merb
Adventurous Merb
Matt Todd
Web services with laravel
Web services with laravel
Confiz
Laravel Restful API and AngularJS
Laravel Restful API and AngularJS
Blake Newman
Web service with Laravel
Web service with Laravel
Abuzer Firdousi
RoR 101: Session 6
RoR 101: Session 6
Rory Gianni
Ruby On Grape
Ruby On Grape
Andrii Furmanets
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Roy Sivan
Building RESTful APIs w/ Grape
Building RESTful APIs w/ Grape
Daniel Doubrovkine
Laravel Beginners Tutorial 2
Laravel Beginners Tutorial 2
Vikas Chauhan
Be Happy With Ruby on Rails - Ecosystem
Be Happy With Ruby on Rails - Ecosystem
Lucas Renan
Rails engines in large apps
Rails engines in large apps
Enrico Teotti
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.
SWAAM Tech
Building an API using Grape
Building an API using Grape
visnu priya
Was ist angesagt?
(20)
Plug it on!... with railties
Plug it on!... with railties
RoR 101: Session 3
RoR 101: Session 3
RoR 101: Session 2
RoR 101: Session 2
Redmine Betabeers SVQ
Redmine Betabeers SVQ
How angularjs saves rails
How angularjs saves rails
AngularJS meets Rails
AngularJS meets Rails
RoR 101: Session 6
RoR 101: Session 6
Adventurous Merb
Adventurous Merb
Web services with laravel
Web services with laravel
Laravel Restful API and AngularJS
Laravel Restful API and AngularJS
Web service with Laravel
Web service with Laravel
RoR 101: Session 6
RoR 101: Session 6
Ruby On Grape
Ruby On Grape
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Building RESTful APIs w/ Grape
Building RESTful APIs w/ Grape
Laravel Beginners Tutorial 2
Laravel Beginners Tutorial 2
Be Happy With Ruby on Rails - Ecosystem
Be Happy With Ruby on Rails - Ecosystem
Rails engines in large apps
Rails engines in large apps
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.
Building an API using Grape
Building an API using Grape
Andere mochten auch
控制自己的情绪,或者,被 情绪控制
控制自己的情绪,或者,被 情绪控制
Xiaochun Shen
Cocoa on Rails 4th
Cocoa on Rails 4th
Xiaochun Shen
The Presentation Secrets Of Stevejobs
The Presentation Secrets Of Stevejobs
Hamdan Agung R
Cocoa on-rails-5th
Cocoa on-rails-5th
Xiaochun Shen
带小狗的艺术
带小狗的艺术
Xiaochun Shen
Perspetivas sobre o stress e desordens emocionais resultantes de contactos in...
Perspetivas sobre o stress e desordens emocionais resultantes de contactos in...
Teresa Sofia Castro
Rails beauty
Rails beauty
Xiaochun Shen
Inpact 2012 presentation
Inpact 2012 presentation
Teresa Sofia Castro
Andere mochten auch
(8)
控制自己的情绪,或者,被 情绪控制
控制自己的情绪,或者,被 情绪控制
Cocoa on Rails 4th
Cocoa on Rails 4th
The Presentation Secrets Of Stevejobs
The Presentation Secrets Of Stevejobs
Cocoa on-rails-5th
Cocoa on-rails-5th
带小狗的艺术
带小狗的艺术
Perspetivas sobre o stress e desordens emocionais resultantes de contactos in...
Perspetivas sobre o stress e desordens emocionais resultantes de contactos in...
Rails beauty
Rails beauty
Inpact 2012 presentation
Inpact 2012 presentation
Ähnlich wie Cocoa on-rails-3rd
Introduction à Ruby
Introduction à Ruby
Microsoft
Trailblazer Introduction by Nick Sutterer
Trailblazer Introduction by Nick Sutterer
Pivorak MeetUp
Introduction to Rails - presented by Arman Ortega
Introduction to Rails - presented by Arman Ortega
arman o
Rails 4.0
Rails 4.0
Robert Gogolok
Getting started with Rails (2), Season 2
Getting started with Rails (2), Season 2
RORLAB
Ruby on rails3 - introduction to rails
Ruby on rails3 - introduction to rails
Emad Elsaid
Rail3 intro 29th_sep_surendran
Rail3 intro 29th_sep_surendran
SPRITLE SOFTWARE PRIVATE LIMIT ED
Curso rails
Curso rails
Icalia Labs
Ruby on Rails introduction
Ruby on Rails introduction
Tran Hung
Pourquoi ruby et rails déchirent
Pourquoi ruby et rails déchirent
Nicolas Ledez
Ruby on Rails - Introduction
Ruby on Rails - Introduction
Vagmi Mudumbai
Ruby conf 2011, Create your own rails framework
Ruby conf 2011, Create your own rails framework
Pankaj Bhageria
Learning to code for startup mvp session 3
Learning to code for startup mvp session 3
Henry S
What's new and great in Rails 3 - Matt Gauger - Milwaukee Ruby Users Group De...
What's new and great in Rails 3 - Matt Gauger - Milwaukee Ruby Users Group De...
Matt Gauger
Intro to Rails 4
Intro to Rails 4
Kartik Sahoo
Migrating Legacy Rails Apps to Rails 3
Migrating Legacy Rails Apps to Rails 3
Clinton Dreisbach
Building web framework with Rack
Building web framework with Rack
sickill
Basic Rails Training
Basic Rails Training
Arthit Hongchintakul
Ruby on Rails at PROMPT ISEL '11
Ruby on Rails at PROMPT ISEL '11
Pedro Cunha
Supa fast Ruby + Rails
Supa fast Ruby + Rails
Jean-Baptiste Feldis
Ähnlich wie Cocoa on-rails-3rd
(20)
Introduction à Ruby
Introduction à Ruby
Trailblazer Introduction by Nick Sutterer
Trailblazer Introduction by Nick Sutterer
Introduction to Rails - presented by Arman Ortega
Introduction to Rails - presented by Arman Ortega
Rails 4.0
Rails 4.0
Getting started with Rails (2), Season 2
Getting started with Rails (2), Season 2
Ruby on rails3 - introduction to rails
Ruby on rails3 - introduction to rails
Rail3 intro 29th_sep_surendran
Rail3 intro 29th_sep_surendran
Curso rails
Curso rails
Ruby on Rails introduction
Ruby on Rails introduction
Pourquoi ruby et rails déchirent
Pourquoi ruby et rails déchirent
Ruby on Rails - Introduction
Ruby on Rails - Introduction
Ruby conf 2011, Create your own rails framework
Ruby conf 2011, Create your own rails framework
Learning to code for startup mvp session 3
Learning to code for startup mvp session 3
What's new and great in Rails 3 - Matt Gauger - Milwaukee Ruby Users Group De...
What's new and great in Rails 3 - Matt Gauger - Milwaukee Ruby Users Group De...
Intro to Rails 4
Intro to Rails 4
Migrating Legacy Rails Apps to Rails 3
Migrating Legacy Rails Apps to Rails 3
Building web framework with Rack
Building web framework with Rack
Basic Rails Training
Basic Rails Training
Ruby on Rails at PROMPT ISEL '11
Ruby on Rails at PROMPT ISEL '11
Supa fast Ruby + Rails
Supa fast Ruby + Rails
Mehr von Xiaochun Shen
Learn anything ... fast
Learn anything ... fast
Xiaochun Shen
Cocoa on Rails 6th
Cocoa on Rails 6th
Xiaochun Shen
Anyone can play iPhone-Tuzhiwu
Anyone can play iPhone-Tuzhiwu
Xiaochun Shen
S3 prepare
S3 prepare
Xiaochun Shen
Anyone can-play-i phone
Anyone can-play-i phone
Xiaochun Shen
Cocoa on Rails
Cocoa on Rails
Xiaochun Shen
孩子你慢慢来
孩子你慢慢来
Xiaochun Shen
Mehr von Xiaochun Shen
(7)
Learn anything ... fast
Learn anything ... fast
Cocoa on Rails 6th
Cocoa on Rails 6th
Anyone can play iPhone-Tuzhiwu
Anyone can play iPhone-Tuzhiwu
S3 prepare
S3 prepare
Anyone can-play-i phone
Anyone can-play-i phone
Cocoa on Rails
Cocoa on Rails
孩子你慢慢来
孩子你慢慢来
Kürzlich hochgeladen
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
misteraugie
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Denish Jangid
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
VishalSingh1417
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
KokoStevan
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
Dr. Mazin Mohamed alkathiri
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
TechSoup
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
Jayanti Pande
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
TeacherCyreneCayanan
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
National Information Standards Organization (NISO)
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
Admir Softic
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Celine George
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
Disha Kariya
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
National Information Standards Organization (NISO)
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
AyushMahapatra5
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
VishalSingh1417
microwave assisted reaction. General introduction
microwave assisted reaction. General introduction
Maksud Ahmed
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
Thiyagu K
Kürzlich hochgeladen
(20)
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
microwave assisted reaction. General introduction
microwave assisted reaction. General introduction
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
Cocoa on-rails-3rd
1.
Junli Blog Cocoa
on Rails 3rd 2011-7-18
2.
Blog
3.
4.
>rails new blog
5.
Gems >cd blog >bundle install
6.
SQLite3
7.
>rake db:create
8.
Web >rails server or >rails s
9.
http://127.0.0.1:3000 127.0.0.1 3000
10.
Say hello >rails generate
controller home index app/views/home/index.html.erb index.html.erb <h1> Hello, Junli </h1>
11.
public/index.html
12.
config/routes.rb
root root :to => “home#index” Rails root home controller
13.
Post >rails generate scaffold
Post name:string title:string content:text rake db:migrate
14.
Comment model >rails generate
model Comment commenter:string body:text post:references rake db:migrate rails generate
15.
comment.rb
app/models/comment.rb class Comment < ActiveRecord::Base belongs_to :post end
16.
Models Models
(post) (comment)
17.
Models post.rb post.rb class Post
< ActiveRecord::Base ... has_many :comments end @post.comments
18.
config/route.rb resources :post do
resources :comments end
19.
Controller >rails generate controller
Comments
20.
Post show app/views/posts/show.html.erb http://dpaste.com/hold/570758/
21.
CommentsController
create action class CommentsController < ApplicationController def create @post = Post.find(params[:post_id]) @comment = @post.comments.create(params[:comment]) redirect_to post_path(@post) end end
22.
Done Post
23.
Blog https://github.com/snowdon/blog
Hinweis der Redaktion
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Jetzt herunterladen