menu 简单麦麦
account_circle

高级Rails配方-Advanced Rails Recipes

帮助2592人找到了他们想要的文件
上传于 2020-02-29 34次下载 1339次围观
文件编号:2271
文件详情
标题(title):Advanced Rails Recipes
高级Rails配方
作者(author):Mike Clark
出版社(publisher):Pragmatic Bookshelf
大小(size):5 MB (5588057 bytes)
格式(extension):pdf
注意:如果文件下载完成后为无法打开的格式,请修改后缀名为格式对应后缀


From the author of the indispensable Rails Recipes , and with the help of a new master Rails chef in the kitchen, here are 72 new ways to kick your Ruby on Rails apps up a notch. More Rails Recipes is a collection of practical recipes for dressing up your web application with little fuss. You'll learn how the pros have solved the tough problems using the most cutting-edge Rails techniques so you can deliver your stunning web app quicker and easier.
Developers by the thousands are coming to Rails-the benefits are clear, both to individuals and their organizations.
But how can a developer be expected to write idiomatic, effective Rails code when the technology is so new? The answer is to work alongside masters, people who've been there from the start (and who have the scars to prove it). And, what better way to learn from their experience than to look at their code and read their explanations of why it's written that way? And even better imagine if that code can be lifted and placed right into your own application.
This is better than just cut-and-paste: the recipe format means you'll understand the code, and be able to modify it to suit your needs. And the list of recipes is so broad that you're bound to find tips and techniques where you'll say "Oh! That's how they do that," or, "I didn't know you could do that in Rails."
With More Rails Recipes , a following up to the popular original Rails Recipes , you can cook up a storm.

Table of contents :
Contents......Page 4
What Makes a Good Recipe Book?......Page 8
Who's It For?......Page 9
Resources......Page 10
Acknowledgments......Page 11
Tags and Thumb Tabs......Page 12
REST and Routes Recipes......Page 13
Create a RESTful Resource......Page 14
Add Your Own RESTful Actions......Page 20
Nest Resources to Scope Access......Page 24
Toggle Attributes with Ajax......Page 30
Authenticate REST Clients......Page 33
Respond to Custom Formats......Page 39
Catch All 404s......Page 43
Database Recipes......Page 46
Add Foreign Key Constraints......Page 47
Write Custom Validations......Page 51
Take Advantage of Master/Slave Databases......Page 54
Siphon Off SQL Queries......Page 57
Use Fixtures for Canned Datasets......Page 61
User-Interface Recipes......Page 64
Handle Multiple Models in One Form......Page 65
Replace In-View Raw JavaScript......Page 72
Validate Required Form Fields Inline......Page 74
Create Multistep Wizards......Page 78
Customize Error Messages......Page 87
Upload Images with Thumbnails......Page 89
Decouple JavaScript with Low Pro......Page 99
Format Dates and Times......Page 106
Support an iPhone Interface......Page 109
Search Recipes......Page 115
Improve SEO with Dynamic Metatags......Page 116
Build a Site Map......Page 119
Find Stuff (Quick and Dirty)......Page 124
Search Text with Ferret......Page 127
Ultra-Search with Sphinx......Page 132
Solr-Power Your Search......Page 140
Design Recipes......Page 151
Freshen Up Your Models with Scope......Page 152
Create Meaningful Relationships Through Proxies......Page 157
Keep Forms DRY and Flexible......Page 160
Prevent Train Wrecks......Page 166
Simplify Controllers with a Presenter......Page 169
Integration Recipes......Page 174
Process Credit Card Payments......Page 175
Play Nice with Facebook......Page 187
Mark Locations on a Google Map......Page 189
Tunnel Back to Your Application......Page 196
Console Snacks......Page 200
Write Console Methods......Page 201
Log to the Console......Page 203
Play in the Sandbox......Page 205
Access Helpers......Page 206
Shortcut the Console......Page 207
Asynchronous-Processing Recipes......Page 209
Send Lightweight Messages......Page 210
Off-Load Long-Running Tasks to BackgrounDRb......Page 214
Process Asynchronous, State-Based Workflows......Page 222
E-mail Recipes......Page 228
Validate E-mail Addresses......Page 229
Receive E-mail Reliably via POP or IMAP......Page 232
Send E-mail via Gmail......Page 238
Keep E-mail Addresses Up-to-Date......Page 239
Testing Recipes......Page 244
Maintain Fixtures Without Frustration......Page 245
Describe Behavior from the Outside In with RSpec......Page 249
Test First with Shoulda......Page 256
Write Domain-Specific RSpec Matchers......Page 261
Write Custom Testing Tasks......Page 265
Test JavaScript with Selenium......Page 267
Mock Models with FlexMock......Page 272
Track Test Coverage with rcov......Page 276
Automatically Validate HTML......Page 279
Mock with a Safety Net......Page 282
Drive a Feature Top-Down with Integration Tests......Page 284
Performance and Scalability Recipes......Page 288
Cache Data Easily......Page 289
Look Up Constant Data Efficiently......Page 293
Profile in the Browser......Page 299
Cache Up with the Big Guys......Page 303
Dynamically Update Cached Pages......Page 310
Use DTrace for Profiling......Page 313
Security Recipes......Page 320
Constrain Access to Sensitive Data......Page 321
Encrypt Sensitive Data......Page 323
Flip On SSL......Page 329
Deployment and Capistrano Recipes......Page 333
Upload Custom Maintenance Pages......Page 334
Generate Custom Error (404 and 500) Pages......Page 338
Write Config Files on the Fly......Page 342
Create New Environments......Page 344
Run Multistage Deployments......Page 347
Safeguard the Launch Codes......Page 350
Automate Periodic Tasks......Page 351
Preserve Files Between Deployments......Page 356
Segregate Page Cache Storage with Nginx......Page 358
Load Balance Around Your Mongrels' Health......Page 362
Respond to Remote Capistrano Prompts......Page 368
Monitor (and Repair) Processes with Monit......Page 370
Big-Picture Recipes......Page 373
Manage Plug-in Versions......Page 374
Fail Early......Page 377
Give Users Their Own Subdomain......Page 379
Customize and Analyze Log Files......Page 384
Bibliography......Page 389
B......Page 390
D......Page 391
F......Page 392
J......Page 393
P......Page 394
S......Page 395
U......Page 396
W......Page 397
Z......Page 398

下载方式
购买后可查看 购买按钮在底部

常见问题

  • question_answer
    解压密码,提取码在哪?
    keyboard_arrow_down
    • 均在下载旁边哦,请注意查看,如果没有则是不需要密码
  • question_answer
    文件不符合描述怎么办?
    keyboard_arrow_down
    • 如果有文件问题,可以通过 卖家联系方式 联系卖家,如果 联系不上卖家 或 卖家无法解决则可以在我的订单页面申请售后
  • question_answer
    其他
    keyboard_arrow_down
    • 3.本文件为公益分享,文件由网上采集而来,如有侵权等问题,请及时联系客服删除
      常见问题及官方客服联系方式:点击前往
      售后问题处理方式:点击前往
-到底部了哦-
微信扫码支付
高级Rails配方-Advanced Rails Recipes
支付金额: 共计:¥0.0

添加收藏

创建新合集