《Crafting Rails Applications》电子书下载

Crafting Rails Applicationstxt,chm,pdf,epub,mobi下载
作者:Jose Valim
出版社: Pragmatic Bookshelf
副标题: Expert Practices for Everyday Rails Development
出版年: 2011-4-15
页数: 180
定价: USD 33.00
装帧: Paperback
ISBN: 9781934356739

内容简介 · · · · · ·

José Valim的新作。





作者简介 · · · · · ·

Name

José Valim

Email

jose.valim@plataformatec.com.br

Website/Blog

http://blog.plataformatec.com.br/

Company

Plataforma

Location

São Paulo/Brasil, Kraków/Polska




目录 · · · · · ·

Preface 7
Who should read this book? . . . . . . . . . . . . . . . . . . 7
What is in the book? . . . . . . . . . . . . . . . . . . . . . . 8
How to read this book . . . . . . . . . . . . . . . . . . . . . 9
Online Resources . . . . . . . . . . . . . . . . . . . . . . . . 10
1 Creating our own renderer 11
· · · · · ·()
Preface 7
Who should read this book? . . . . . . . . . . . . . . . . . . 7
What is in the book? . . . . . . . . . . . . . . . . . . . . . . 8
How to read this book . . . . . . . . . . . . . . . . . . . . . 9
Online Resources . . . . . . . . . . . . . . . . . . . . . . . . 10
1 Creating our own renderer 11
1.1 Enginex . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.2 Writing the renderer . . . . . . . . . . . . . . . . . . 16
1.3 Rails rendering stack . . . . . . . . . . . . . . . . . . 21
1.4 Taking it to the next level . . . . . . . . . . . . . . . 27
1.5 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . 28
2 Easy models with Active Model 29
2.1 Writing the code . . . . . . . . . . . . . . . . . . . . . 29
2.2 Taking it to the next level . . . . . . . . . . . . . . . 45
2.3 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . 50
3 Building a template management system 51
3.1 Setting up a SqlResolver . . . . . . . . . . . . . . . . 53
3.2 Using it in production . . . . . . . . . . . . . . . . . 61
3.3 Taking it to the next level . . . . . . . . . . . . . . . 67
3.4 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . 71
4 Multipart e-mails with Markdown and ERb 73
4.1 Playing with the template handler API . . . . . . . . 75
4.2 Markdown + ERb . . . . . . . . . . . . . . . . . . . . 79
4.3 Rails generators . . . . . . . . . . . . . . . . . . . . . 84
4.4 Railties . . . . . . . . . . . . . . . . . . . . . . . . . . 92
4.5 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . 94
Prepared exclusively for John Ellenberger
CONTENTS 6
5 Publishing and subscribing to your application events 96
5.1 Storing notifications in the database . . . . . . . . . 97
5.2 Engines . . . . . . . . . . . . . . . . . . . . . . . . . . 101
5.3 Rails and Rack . . . . . . . . . . . . . . . . . . . . . . 106
5.4 Taking it to the next level . . . . . . . . . . . . . . . 115
5.5 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . 118
6 DRY controllers with Responders 120
6.1 Understanding Responders . . . . . . . . . . . . . . 122
6.2 ActionController::Responder . . . . . . . . . . . . . . 125
6.3 More generators customization . . . . . . . . . . . . 138
6.4 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . 144
7 Translatable apps with I18n and Redis 146
7.1 Rails::Application . . . . . . . . . . . . . . . . . . . . 147
7.2 I18n backends and extensions . . . . . . . . . . . . 148
7.3 Rails & Sinatra . . . . . . . . . . . . . . . . . . . . . 152
7.4 Taking it to the next level . . . . . . . . . . . . . . . 161
7.5 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . 167
· · · · · · ()

下载地址

发布者:高帅宾

文件说明:zip / 解压密码:wezp.com

迅雷下载:您需要先后,才能查看

网盘下载:您需要先后,才能查看

关于内容:内容自于互联网,如果发现有违规内容请联系管理员删除!

作者: 高帅宾

高帅宾

该用户很懒,还没有介绍自己。

60 条评论

发表评论

  1. RingerchanRingerchan说道:
    1#

    不错,强烈推荐!

  2. 御姐Jessica敏御姐Jessica敏说道:
    2#

    看完,超赞

  3. 皇之寂寞皇之寂寞说道:
    3#

    一种全新的角度切入

  4. 鱼丸我爱吃决鱼丸我爱吃决说道:
    4#

    非常引人入胜

  5. 显示更多