Soumettre la recherche
Mettre en ligne
Cocoa on-rails-3rd
•
Télécharger en tant que KEY, PDF
•
0 j'aime
•
324 vues
X
Xiaochun Shen
Suivre
Formation
Technologie
Signaler
Partager
Signaler
Partager
1 sur 24
Télécharger maintenant
Recommandé
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
Recommandé
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
Contenu connexe
Tendances
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
Tendances
(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
En vedette
控制自己的情绪,或者,被 情绪控制
控制自己的情绪,或者,被 情绪控制
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
En vedette
(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
Similaire à 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
Similaire à 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
Plus de 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
Plus de 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
孩子你慢慢来
孩子你慢慢来
Dernier
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
Celine George
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
ErwinPantujan2
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
TechSoup
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
Rosabel UA
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
ruthvilladarez
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
Rosabel UA
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Celine George
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
aurabinda banchhor
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
Stan Meyer
Visit to a blind student's school🧑🦯🧑🦯(community medicine)
Visit to a blind student's school🧑🦯🧑🦯(community medicine)
lakshayb543
Transaction Management in Database Management System
Transaction Management in Database Management System
Christalin Nelson
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
Seán Kennedy
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
VanesaIglesias10
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
Patidar M
Expanded definition: technical and operational
Expanded definition: technical and operational
ssuser3e220a
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
Mark Reed
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
Nguyen Thanh Tu Collection
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
Celine George
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
JojoEDelaCruz
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
JanEmmanBrigoli
Dernier
(20)
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
Visit to a blind student's school🧑🦯🧑🦯(community medicine)
Visit to a blind student's school🧑🦯🧑🦯(community medicine)
Transaction Management in Database Management System
Transaction Management in Database Management System
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
Expanded definition: technical and operational
Expanded definition: technical and operational
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
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
Notes de l'éditeur
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Télécharger maintenant