More Related Content
Similar to Ruby on Rails为什么这么红? (20)
Ruby on Rails为什么这么红?
- 3. => 2016-04-20 14:50:00 +0800
Time.now + 1.year + 1.month
=> ["A", "B", "C", "D", ... , "Z"]
('A'..'Z').to_a
=> 1000000
1_000_000
=> {"a":1,"b":2}
{a: 1, b: 2}.to_json
- 17. • ⽀支付接⼝口 — active_merchant
• ⽂文件上传和储存 — s3_swf_upload
• 代码⾼高亮显⽰示 — albino
• APP服务器 — Unicorn
• 为⼿手机优化 — rack-mobile-detect
• 全⽂文搜索 — sunspot(Solr Ruby client)
- 33. # Gemfile
source 'https://rubygems.org'
gem 'rails', '~>4.2.0'
gem 'mysql'
gem 'ruby-oci8' # ORACLE
gem 'pg' # PostgresSQL
gem 'redis'
gem 'dalli' # Memcached
gem 'searchkick' # Elasticsearch
gem 'carrierwave
gem 'sass-rails'
gem 'coffee-rails'
gem 'uglifire'
gem 'bootstrap-sass'
gem 'jquery-ui-rails'
gem 'angularjs-rails'
} 多数据库⽀支持
} 流⾏行服务整合
}前端航⺟母战⽃斗序列
- 43. 优势
• 开发速度快 - 可⽤用组件多
• 可维护性好 - 业务代码更加优雅可读
• 适应移动互联⺴⽹网时代 - 全栈式解决⽅方案