Crafting Rails Applications.pdf

时间:2022-09-03 07:14:36
【文件属性】:
文件名称:Crafting Rails Applications.pdf
文件大小:2.6MB
文件格式:PDF
更新时间:2022-09-03 07:14:36
Crafting Rails Applications Contents Acknowledgments 7 Preface 8 WhoShouldReadThisBook?................. 8 WhatIsintheBook?...................... 9 HowtoReadThisBook..................... 11 OnlineResources........................ 11 1 CreatingOurOwnRenderer 12 1.1 GeneratingProjectswithEnginex........... 13 1.2 WritingtheRenderer.................. 18 1.3 UnderstandingRailsRenderingStack........ 22 1.4 TakingIttotheNextLevel............... 27 1.5 WrappingUp....................... 29 2 BuildingModelswithActiveModel 30 2.1 CreatingOurModel................... 30 2.2 TakingIttotheNextLevel............... 46 2.3 WrappingUp....................... 50 3 RetrievingViewTemplatesfromCustomStores 52 3.1 SettingUpaSqlResolver................ 54 3.2 ConfiguringOurResolverforProduction....... 62 3.3 ServingTemplateswithMetal............. 68 3.4 WrappingUp....................... 72 4 SendingMultipartEmailsUsingTemplateHandlers 74 4.1 PlayingwiththeTemplateHandlerAPI........ 76 4.2 BuildingaTemplateHandlerwithMarkdown+ERb 80 4.3 CustomizingRailsGenerators............. 85 4.4 ExtendingRailswithRailties ............. 92 4.5 WrappingUp....................... 94 Download from Wow! eBook CONTENTS 6 5 ManagingApplicationEventswithRailsEngines 97 5.1 StoringNotificationsintheDatabase......... 98 5.2 ExtendingRailswithEngines............. 102 5.3 RailsandRack...................... 106 5.4 StoringNotificationsAsynchronously ........ 115 5.5 WrappingUp....................... 118 6 WritingDRYControllerswithResponders 120 6.1 UnderstandingResponders .............. 122 6.2 ExploringActionController::Responder........ 125 6.3 TheFlashResponder.................. 129 6.4 HTTPCacheResponder................. 135 6.5 MoreWaystoCustomizeGenerators......... 139 6.6 WrappingUp....................... 145 7 TranslatingApplicationsUsingKey-ValueBackends 147 7.1 RevisitingRails::Application.............. 148 7.2 I18nBackendsandExtensions............ 150 7.3 RailsandSinatra.................... 153 7.4 UnderstandingtheRailsRouter............ 159 7.5 TakingIttotheNextLevelwithDeviseandCapybara 161 7.6 WrappingUp....................... 168 Index 170

网友评论