Beschreibung
This short early adopter book details both how you'll upgrade existing web applications from Rails 4.2 to 5 and how to create new applications in Rails 5. The headline features, Rails API and Action Cable are each looked at in detail, building small example projects to demonstrate how to build a JSON API and add real-time interactions in order to create a single-page application.
All the breaking changes are shown, along with how to fix your app to work with the new release. The improvements to ActiveRecord and the testing framework are fully detailed. After reading and usingRails 5 Revealed, youll be poised to move forward with building your apps with the latest major release of Ruby on Rails.
What You'll LearnDiscover the new features in Rails 5 and how to upgrade your application from Rails 4.2
Gain knowledge about the changes to ActiveRecord
See the improvements to the Rails testing framework
Build API servers using Rails API
Create WebSocket applications using Action Cable
Who This Book Is For
Existing Rails developers who are looking to quickly get up to speed with the changes in the new Rails 5 framework.
Autorenportrait
Alan Bradburne is the co-founder of IncrediblInc Ltd. (IncrediblInc-dot-com), a London-based Ruby on Rails development company specializing in developing community sites for both end-users and enterprise clients. Alan has over 10 years of experience in the web and mobile development industries, and has worked for Motorola, Nextel and Sun Microsystems. Prior to founding IncrediblInc, he created Phlog.net, the world's first dedicated mobile photo blogging community. He also developed the social networking site Cudlz.com. He lives in Berkshire, England with his wife.
Inhalt
1. Upgrading.- 2. Changes from Rails 4.2.- 3. ActiveRecord.- 4. Test Framework Changes.- 5. Rails 5 API.- 6. ActionCable.
Informationen zu E-Books
„E-Book“ steht für digitales Buch. Um diese Art von Büchern lesen zu können wird entweder eine spezielle Software für Computer, Tablets und Smartphones oder ein E-Book Reader benötigt. Da viele verschiedene Formate (Dateien) für E-Books existieren, gilt es dabei, einiges zu beachten.
Von uns werden digitale Bücher in drei Formaten ausgeliefert. Die Formate sind EPUB mit DRM (Digital Rights Management), EPUB ohne DRM und PDF. Bei den Formaten PDF und EPUB ohne DRM müssen Sie lediglich prüfen, ob Ihr E-Book Reader kompatibel ist. Wenn ein Format mit DRM genutzt wird, besteht zusätzlich die Notwendigkeit, dass Sie einen kostenlosen Adobe® Digital Editions Account besitzen. Wenn Sie ein E-Book, das Adobe® Digital Editions benötigt herunterladen, erhalten Sie eine ASCM-Datei, die zu Digital Editions hinzugefügt und mit Ihrem Account verknüpft werden muss. Einige E-Book Reader (zum Beispiel PocketBook Touch) unterstützen auch das direkte Eingeben der Login-Daten des Adobe Accounts – somit können diese ASCM-Dateien direkt auf das betreffende Gerät kopiert werden.
Da E-Books nur für eine begrenzte Zeit – in der Regel 6 Monate – herunterladbar sind, sollten Sie stets eine Sicherheitskopie auf einem Dauerspeicher (Festplatte, USB-Stick oder CD) vorsehen. Auch ist die Menge der Downloads auf maximal 5 begrenzt.