Submit Search
Upload
深入淺出RoR
•
0 likes
•
459 views
Eric Lee
Follow
Reference: RoR Tutorial!
Read less
Read more
Self Improvement
Technology
Report
Share
Report
Share
1 of 21
Recommended
Rails review
Rails review
Alan Hecht
Rails Concept
Rails Concept
Javed Hussain
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
Alvaro Sanchez-Mariscal
Integration and Acceptance Testing
Integration and Acceptance Testing
Alan Hecht
ReactJS Workflows
ReactJS Workflows
Cem Arguvanlı
How angularjs saves rails
How angularjs saves rails
Michael He
AngularJS meets Rails
AngularJS meets Rails
Elena Torró
Mastering Grails 3 Plugins - GR8Conf EU 2016
Mastering Grails 3 Plugins - GR8Conf EU 2016
Alvaro Sanchez-Mariscal
Recommended
Rails review
Rails review
Alan Hecht
Rails Concept
Rails Concept
Javed Hussain
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
Alvaro Sanchez-Mariscal
Integration and Acceptance Testing
Integration and Acceptance Testing
Alan Hecht
ReactJS Workflows
ReactJS Workflows
Cem Arguvanlı
How angularjs saves rails
How angularjs saves rails
Michael He
AngularJS meets Rails
AngularJS meets Rails
Elena Torró
Mastering Grails 3 Plugins - GR8Conf EU 2016
Mastering Grails 3 Plugins - GR8Conf EU 2016
Alvaro Sanchez-Mariscal
Rest with grails 3
Rest with grails 3
Jenn Strater
Continuous performance management with Gatling
Continuous performance management with Gatling
Radoslaw Smilgin
Harish Aspnet Deployment
Harish Aspnet Deployment
rsnarayanan
Jenkins Job Builder: our experience
Jenkins Job Builder: our experience
Timofey Turenko
SpringMVC
SpringMVC
Aircon Chen
Redux Universal
Redux Universal
Nikolaus Graf
New features in Rails 6 - Nihad Abbasov (RUS) | Ruby Meditation 26
New features in Rails 6 - Nihad Abbasov (RUS) | Ruby Meditation 26
Ruby Meditation
Apikit from command line
Apikit from command line
fedefortin
Why you should add React to your Rails application now!
Why you should add React to your Rails application now!
David Roberts
Chef - managing yours servers with Code
Chef - managing yours servers with Code
m_richardson
Walther Ajax4
Walther Ajax4
rsnarayanan
Walther Aspnet4
Walther Aspnet4
rsnarayanan
Burlington, VT PHP Users Group Subversion Presentation
Burlington, VT PHP Users Group Subversion Presentation
Bradley Holt
Ajax pagination using j query in rails3
Ajax pagination using j query in rails3
Andolasoft Inc
Spring Cloud Config
Spring Cloud Config
Theerut Bunkhanphol
Introduction to Rails 3
Introduction to Rails 3
Anup Nivargi
Zend Framework Quick Start Walkthrough
Zend Framework Quick Start Walkthrough
Bradley Holt
Harish Understanding Aspnet
Harish Understanding Aspnet
rsnarayanan
Cocoa on-rails-3rd
Cocoa on-rails-3rd
Xiaochun Shen
React native. Bridge From Web To Mobile. Intro
React native. Bridge From Web To Mobile. Intro
Igor Izraylevych
React Native Intro
React Native Intro
Julia Vi
The productive developer guide to React
The productive developer guide to React
Maurice De Beijer [MVP]
More Related Content
What's hot
Rest with grails 3
Rest with grails 3
Jenn Strater
Continuous performance management with Gatling
Continuous performance management with Gatling
Radoslaw Smilgin
Harish Aspnet Deployment
Harish Aspnet Deployment
rsnarayanan
Jenkins Job Builder: our experience
Jenkins Job Builder: our experience
Timofey Turenko
SpringMVC
SpringMVC
Aircon Chen
Redux Universal
Redux Universal
Nikolaus Graf
New features in Rails 6 - Nihad Abbasov (RUS) | Ruby Meditation 26
New features in Rails 6 - Nihad Abbasov (RUS) | Ruby Meditation 26
Ruby Meditation
Apikit from command line
Apikit from command line
fedefortin
Why you should add React to your Rails application now!
Why you should add React to your Rails application now!
David Roberts
Chef - managing yours servers with Code
Chef - managing yours servers with Code
m_richardson
Walther Ajax4
Walther Ajax4
rsnarayanan
Walther Aspnet4
Walther Aspnet4
rsnarayanan
Burlington, VT PHP Users Group Subversion Presentation
Burlington, VT PHP Users Group Subversion Presentation
Bradley Holt
Ajax pagination using j query in rails3
Ajax pagination using j query in rails3
Andolasoft Inc
Spring Cloud Config
Spring Cloud Config
Theerut Bunkhanphol
Introduction to Rails 3
Introduction to Rails 3
Anup Nivargi
Zend Framework Quick Start Walkthrough
Zend Framework Quick Start Walkthrough
Bradley Holt
Harish Understanding Aspnet
Harish Understanding Aspnet
rsnarayanan
Cocoa on-rails-3rd
Cocoa on-rails-3rd
Xiaochun Shen
What's hot
(19)
Rest with grails 3
Rest with grails 3
Continuous performance management with Gatling
Continuous performance management with Gatling
Harish Aspnet Deployment
Harish Aspnet Deployment
Jenkins Job Builder: our experience
Jenkins Job Builder: our experience
SpringMVC
SpringMVC
Redux Universal
Redux Universal
New features in Rails 6 - Nihad Abbasov (RUS) | Ruby Meditation 26
New features in Rails 6 - Nihad Abbasov (RUS) | Ruby Meditation 26
Apikit from command line
Apikit from command line
Why you should add React to your Rails application now!
Why you should add React to your Rails application now!
Chef - managing yours servers with Code
Chef - managing yours servers with Code
Walther Ajax4
Walther Ajax4
Walther Aspnet4
Walther Aspnet4
Burlington, VT PHP Users Group Subversion Presentation
Burlington, VT PHP Users Group Subversion Presentation
Ajax pagination using j query in rails3
Ajax pagination using j query in rails3
Spring Cloud Config
Spring Cloud Config
Introduction to Rails 3
Introduction to Rails 3
Zend Framework Quick Start Walkthrough
Zend Framework Quick Start Walkthrough
Harish Understanding Aspnet
Harish Understanding Aspnet
Cocoa on-rails-3rd
Cocoa on-rails-3rd
Viewers also liked
React native. Bridge From Web To Mobile. Intro
React native. Bridge From Web To Mobile. Intro
Igor Izraylevych
React Native Intro
React Native Intro
Julia Vi
The productive developer guide to React
The productive developer guide to React
Maurice De Beijer [MVP]
Introduction to React Native
Introduction to React Native
Sambhu Lakshmanan
React Native + Redux
React Native + Redux
Ch Rick
Building UWP apps with React-Native
Building UWP apps with React-Native
Maurice De Beijer [MVP]
Navigation in React Native
Navigation in React Native
Sambhu Lakshmanan
Styling React Native Applications
Styling React Native Applications
Jan Maršíček
React Native
React Native
Artyom Trityak
ReactJS presentation
ReactJS presentation
Thanh Tuong
Intro to React - Featuring Modern JavaScript
Intro to React - Featuring Modern JavaScript
jasonsich
A tour of React Native
A tour of React Native
Tadeu Zagallo
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
Kobkrit Viriyayudhakorn
Intro to react native
Intro to react native
ModusJesus
React Native
React Native
Craig Jolicoeur
Is React reactive?
Is React reactive?
Maurice De Beijer [MVP]
Intro to React
Intro to React
Eric Westfall
Intro To React Native
Intro To React Native
FITC
Viewers also liked
(18)
React native. Bridge From Web To Mobile. Intro
React native. Bridge From Web To Mobile. Intro
React Native Intro
React Native Intro
The productive developer guide to React
The productive developer guide to React
Introduction to React Native
Introduction to React Native
React Native + Redux
React Native + Redux
Building UWP apps with React-Native
Building UWP apps with React-Native
Navigation in React Native
Navigation in React Native
Styling React Native Applications
Styling React Native Applications
React Native
React Native
ReactJS presentation
ReactJS presentation
Intro to React - Featuring Modern JavaScript
Intro to React - Featuring Modern JavaScript
A tour of React Native
A tour of React Native
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
Intro to react native
Intro to react native
React Native
React Native
Is React reactive?
Is React reactive?
Intro to React
Intro to React
Intro To React Native
Intro To React Native
Similar to 深入淺出RoR
Curso rails
Curso rails
Icalia Labs
Aspose pdf
Aspose pdf
Jim Jones
Intro to Rails Give Camp Atlanta
Intro to Rails Give Camp Atlanta
Jason Noble
Introduction To Code Igniter
Introduction To Code Igniter
Amzad Hossain
RoR guide_p1
RoR guide_p1
Brady Cheng
Rails Rookies Bootcamp - Blogger
Rails Rookies Bootcamp - Blogger
Nathanial McConnell
Rails Engine | Modular application
Rails Engine | Modular application
mirrec
React on rails v4
React on rails v4
Justin Gordon
2011 NetUG HH: ASP.NET MVC & HTML 5
2011 NetUG HH: ASP.NET MVC & HTML 5
Daniel Fisher
Rails 5 – most effective features for apps upgradation
Rails 5 – most effective features for apps upgradation
Andolasoft Inc
Ruby Rails Web Development
Ruby Rails Web Development
Sonia Simi
Rails
Rails
SHC
Mvc summary
Mvc summary
Muhammad Younis
ASP.NET Core 1.0
ASP.NET Core 1.0
Ido Flatow
Jsp and jstl
Jsp and jstl
vishal choudhary
Jaoo Michael Neale 09
Jaoo Michael Neale 09
Michael Neale
Ruby on Rails Kickstart 101 & 102
Ruby on Rails Kickstart 101 & 102
Heng-Yi Wu
Supa fast Ruby + Rails
Supa fast Ruby + Rails
Jean-Baptiste Feldis
Intro to .NET for Government Developers
Intro to .NET for Government Developers
Frank La Vigne
Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015
Bluegrass Digital
Similar to 深入淺出RoR
(20)
Curso rails
Curso rails
Aspose pdf
Aspose pdf
Intro to Rails Give Camp Atlanta
Intro to Rails Give Camp Atlanta
Introduction To Code Igniter
Introduction To Code Igniter
RoR guide_p1
RoR guide_p1
Rails Rookies Bootcamp - Blogger
Rails Rookies Bootcamp - Blogger
Rails Engine | Modular application
Rails Engine | Modular application
React on rails v4
React on rails v4
2011 NetUG HH: ASP.NET MVC & HTML 5
2011 NetUG HH: ASP.NET MVC & HTML 5
Rails 5 – most effective features for apps upgradation
Rails 5 – most effective features for apps upgradation
Ruby Rails Web Development
Ruby Rails Web Development
Rails
Rails
Mvc summary
Mvc summary
ASP.NET Core 1.0
ASP.NET Core 1.0
Jsp and jstl
Jsp and jstl
Jaoo Michael Neale 09
Jaoo Michael Neale 09
Ruby on Rails Kickstart 101 & 102
Ruby on Rails Kickstart 101 & 102
Supa fast Ruby + Rails
Supa fast Ruby + Rails
Intro to .NET for Government Developers
Intro to .NET for Government Developers
Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015
More from Eric Lee
R3 Corda Simple Tutorial
R3 Corda Simple Tutorial
Eric Lee
COSCUP 2016 Workshop : 快快樂樂學Neo4j
COSCUP 2016 Workshop : 快快樂樂學Neo4j
Eric Lee
Python and Neo4j
Python and Neo4j
Eric Lee
Neo4j: JDBC Connection Case Using LibreOffice
Neo4j: JDBC Connection Case Using LibreOffice
Eric Lee
Introduction to Graph Database
Introduction to Graph Database
Eric Lee
SNP Detection for Massively Parallel Whole-genome Sequencing
SNP Detection for Massively Parallel Whole-genome Sequencing
Eric Lee
Introduction to 3rd sequencing
Introduction to 3rd sequencing
Eric Lee
Algorithm of NGS Data
Algorithm of NGS Data
Eric Lee
Google MAP API
Google MAP API
Eric Lee
BioLiveCd
BioLiveCd
Eric Lee
More from Eric Lee
(10)
R3 Corda Simple Tutorial
R3 Corda Simple Tutorial
COSCUP 2016 Workshop : 快快樂樂學Neo4j
COSCUP 2016 Workshop : 快快樂樂學Neo4j
Python and Neo4j
Python and Neo4j
Neo4j: JDBC Connection Case Using LibreOffice
Neo4j: JDBC Connection Case Using LibreOffice
Introduction to Graph Database
Introduction to Graph Database
SNP Detection for Massively Parallel Whole-genome Sequencing
SNP Detection for Massively Parallel Whole-genome Sequencing
Introduction to 3rd sequencing
Introduction to 3rd sequencing
Algorithm of NGS Data
Algorithm of NGS Data
Google MAP API
Google MAP API
BioLiveCd
BioLiveCd
Recently uploaded
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
dollysharma2066
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
Delhi Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
Pooja Nehwal
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
Delhi Call girls
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
pastor83
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
Delhi Call girls
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
Call Girls in Nagpur High Profile Call Girls
Lucknow 💋 High Class Call Girls Lucknow 10k @ I'm VIP Independent Escorts Gir...
Lucknow 💋 High Class Call Girls Lucknow 10k @ I'm VIP Independent Escorts Gir...
anilsa9823
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
vikas rana
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
Shivain97
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Call Girls in Nagpur High Profile
call girls in candolim beach 9870370636] NORTH GOA ..
call girls in candolim beach 9870370636] NORTH GOA ..
nishakur201
Lilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptx
ABMWeaklings
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
anilsa9823
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
anilsa9823
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
PsychicRuben LoveSpells
CALL ON ➥8923113531 🔝Call Girls Jankipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Jankipuram Lucknow best sexual service
anilsa9823
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
Call Girls in Nagpur High Profile Call Girls
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
anilsa9823
Call Girls Anjuna beach Mariott Resort ₰8588052666
Call Girls Anjuna beach Mariott Resort ₰8588052666
nishakur201
Recently uploaded
(20)
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
Lucknow 💋 High Class Call Girls Lucknow 10k @ I'm VIP Independent Escorts Gir...
Lucknow 💋 High Class Call Girls Lucknow 10k @ I'm VIP Independent Escorts Gir...
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
call girls in candolim beach 9870370636] NORTH GOA ..
call girls in candolim beach 9870370636] NORTH GOA ..
Lilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptx
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
CALL ON ➥8923113531 🔝Call Girls Jankipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Jankipuram Lucknow best sexual service
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
Call Girls Anjuna beach Mariott Resort ₰8588052666
Call Girls Anjuna beach Mariott Resort ₰8588052666
深入淺出RoR
1.
RoR: Ruby on
Rails 2009.Apr.14 Eric
2.
Agenda • About RoR •
MVC • Implement a simple web post board • Important source code • Conclusion
3.
About RoR • Based
on “Ruby Programming Language” • A framework for “Agile Development”
4.
MVC Model-View-Controller
5.
Implement • Before you
start the implement, you have to make sure your system environment is readay! • Ruby 1.8.6 • Rails > 2.2 • MySQL >5.0
6.
1.Create the project
> rails post Generating project files
7.
2. Select Database
Type >rails post -d <type> mysql sqlite3 postgreSQL Write the variables to database.yml
8.
3. Configure a
Database ~> cd post post> nano config/database.yml
9.
4. Create database
> rake db:create Connect to database Check the result Create successfully!
10.
5. Generate Controller
> script/generate controller home index Generate controller files automatically
11.
Test the Server
> script/server http://127.0.0.1:3000/home/index Text Default Index
12.
6. Setting the
Homepage remove default index Edit config/routes.rb Add this argument
13.
7. Scaffold script/generate scaffold
Post name:string title:string content:text views views including layout models
14.
8.Migrate
> rake db:migrate Check the database Tables of database Fields in table
15.
9. Done app/views/home/index.html.erb
use the “link_to” method New index page After click Add a post
16.
10.Test
Post Successful New Back to list (show) Database Status Edit
17.
Important Source Code
18.
Database Fields
Schema Support version control
19.
Interface Index page
Show post New post Just using html and erb generate the view
20.
Operate index
update show delete create
21.
Conclusion • Really agile •
Database independent • The possibility of Ajax • Implement the web service
Editor's Notes