rails        2010-11-27
rails      Mac      ubuntu          windows            windowsMac                     iTerm+TextMateubuntu           Netbe...
windows                 railsWindowsruby1.8.7   gem1.3.7   rake0.8.7 rails3.03mysql+Navica[mysql             ]MongrelNetbe...
ruby:rubyinstaller-1.8.7-p302.exemysql:mysql-essential-5.1.53-win32.msimysql           :navicat8_mysql_cs.exeIDE     netbe...
ruby rails             rubyruby -v#                   rubygem -v#              gem          1.3.7gem install rake rake,rub...
mysql rails                   root         mysql          2007       libmySQL.dllruby1.8.7 binmysql
mysql
IDE        netbeansnetbeans6.8.9 rails3       7.0 Beta                   JDK        netbeans
cd         rails        rails new anren -d=mysql                        config/database.ymlmysql2   mysql             local...
webGemfile     gem ‘mongrel’ bundle install
Rakerake db:createrake db:migrate    ...
grails g controllers sayhellorails g controllers info home stroy brand jobscontactrails g scaffold Post title:string conte...
MVCM:                               (Post)(Product)        (Info)                 Post         title   contentC           ...
MVC                 M[             ]        C[             ]        V[        ]                 rout[      ]c[            ...
app       mvchelpers      v         vmailers
config                                 webdbdocliblogpublic                        index.htmlstylesheets   css   javascript...
CRUDCRUD:create,read,update,destroy      rails      restful       actioncreate createreader                     index     ...
blueprintcss http://www.blueprintcss.org/bp                     24           <div id="container"><divclass=”span-3”>...</d...
<%= javascript_include_tag :defaults %><%= stylesheet_link_tag "blueprint/screen"%>
erblink_to "link text...", :controller =>"items", :action => "index"
标题页闻联   们        权
RailsTextMateCheats.pdf
Upcoming SlideShare
Loading in …5
×

Rails入门培训

1,838
-1

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,838
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
28
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Rails入门培训

  1. 1. rails 2010-11-27
  2. 2. rails Mac ubuntu windows windowsMac iTerm+TextMateubuntu Netbeans
  3. 3. windows railsWindowsruby1.8.7 gem1.3.7 rake0.8.7 rails3.03mysql+Navica[mysql ]MongrelNetbeans7.0beta 6.8.9
  4. 4. ruby:rubyinstaller-1.8.7-p302.exemysql:mysql-essential-5.1.53-win32.msimysql :navicat8_mysql_cs.exeIDE netbeans7.0Betaothers TC e-editor cygwin
  5. 5. ruby rails rubyruby -v# rubygem -v# gem 1.3.7gem install rake rake,ruby makegem install rails# rails rdoc
  6. 6. mysql rails root mysql 2007 libmySQL.dllruby1.8.7 binmysql
  7. 7. mysql
  8. 8. IDE netbeansnetbeans6.8.9 rails3 7.0 Beta JDK netbeans
  9. 9. cd rails rails new anren -d=mysql config/database.ymlmysql2 mysql localhost 127.0.0.1Mac mysql2 socket: /tmp/mysql.sock
  10. 10. webGemfile gem ‘mongrel’ bundle install
  11. 11. Rakerake db:createrake db:migrate ...
  12. 12. grails g controllers sayhellorails g controllers info home stroy brand jobscontactrails g scaffold Post title:string content:tex t# Post
  13. 13. MVCM: (Post)(Product) (Info) Post title contentC M MV C C
  14. 14. MVC M[ ] C[ ] V[ ] rout[ ]c[ action] v[ ] m c v
  15. 15. app mvchelpers v vmailers
  16. 16. config webdbdocliblogpublic index.htmlstylesheets css javascripts jsimages
  17. 17. CRUDCRUD:create,read,update,destroy rails restful actioncreate createreader index showupdate: updatedestroy: destroy new create edit( update)
  18. 18. blueprintcss http://www.blueprintcss.org/bp 24 <div id="container"><divclass=”span-3”>...</div><div class=”span-21last”>...</div></div>bp readme
  19. 19. <%= javascript_include_tag :defaults %><%= stylesheet_link_tag "blueprint/screen"%>
  20. 20. erblink_to "link text...", :controller =>"items", :action => "index"
  21. 21. 标题页闻联 们 权
  22. 22. RailsTextMateCheats.pdf
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×