The Rails 5 Way
Descriere
TheRails5Wayistheonlycomprehensive,authoritativeguidetodeliveringproduction-qualitycodewithRails5.KevinFaustinojoinspioneeringRailsdeveloperObieFernandeztoilluminatetheentireRails5API,includingitsmostpowerfulandmodernidioms,designapproaches,andlibraries.TheypresentextensivenewandupdatedcontentonRailsAPI,websocketsusingActionCable,RSpec3.4,Turbolinks5.0,andmore.
Throughdetailedcodeexamples,youlldivedeepintotheRails5codebase,discoverwhyRailsisdesignedasitis,andlearnhowtomakeitdoexactlywhatyouwant.Proveninthousandsofproductionsystems,thisbookstechniqueswillmaximizeyourproductivityandhelpyoubuildmoresuccessfulsolutions.Youllwanttokeepthisguidebyyourcomputerandrefertoitconstantly.
Thisguidewillhelpyou: Buildpowerful,scalable,REST-compliantbackendservices ProgramcomplexprogramflowsusingActionController Representmodels,relationships,CRUDoperations,searches,validation,callbacks,andmoreinActiveRecord SmoothlyevolveapplicationdatabaseschemaviaMigrations ApplyadvancedActiveRecordtechniques:single-tableinheritance,polymorphicmodels,andmore CreatevisualelementswithActionViewandpartials OptimizeperformanceandscalabilitywithviewcachingandTurbolinks5.0 MasterthehighlyproductiveHamlHTMLtemplatingengine MakethemostofRailsapproachtosessionmanagement Secureyoursystemswithauthenticationandauthorization ResistSQLInjection,XSS,XSRF,andotherattacks IntegrateemailserviceswithActionMailer Enablereal-time,websocketsbasedbrowserbehaviorusingRails5sActionCable Improveoverallresponsivenessusingbackgroundprocessing UseAssetPipelinetosimplifydevelopment,improveperceivedperformance,andreduceserverburdens SpecifyandtestmaintainablecodeusingRSpec "