Rails crash course : a no-nonsense guide to Rails development /


by Anthony Lewis.
Bok Engelsk 2015 · Electronic books.
Omfang
1 online resource (298 p.)
Utgave
1st edition
Opplysninger
Description based upon print version of record.. - Foreword; Acknowledgments; Introduction; Who This Book Is For; Overview; Installation; Part I: Ruby on Rails Fundamentals; Chapter 1: Ruby Fundamentals; Interactive Ruby; Data Types; Numbers; Strings; Symbols; Arrays; Hashes; Booleans; Constants; Variables; Control Flow; Conditionals; Iteration; Methods; Classes; Class Methods; Inheritance; Summary; Exercises; Chapter 2: Rails Fundamentals; Your First Rails Application; Rails Principles; Convention over Configuration; Don't Repeat Yourself; Rails Architecture; Model; View; Controller; Rails Application Structure; The app Directory. - Associations Generating the Model; Adding Associations; Using Associations; Summary; Exercises; Chapter 4: Controllers; Representational State Transfer; Routing; Resources; Custom Routes; The Root Route; Paths and URLs; Controller Actions; A Brief Detour from Actions; Back to Controller Actions; Adding Comments; Summary; Exercises; Chapter 5: Views; Embedded Ruby; Output; Control Flow; Comments; Helpers; URL Helpers; Number Helpers; Your Own Helpers; The Posts Index Page; Layouts; Asset Tag Helpers; CSRF Meta Tags Helper; Yield; Partials; Collections; Showing Comments; Forms; Form Helpers. - Form Errors Form Controls; Comment Form; Summary; Exercises; Chapter 6: Deployment; Version Control; Git; Setup; Getting Started; Basic Usage; Heroku; Getting Started; Updating Your Gemfile; Deploying Your Application; Summary; Part I Remarks; Exercises; Part II: Building a Social Networking App; Chapter 7: Advanced Ruby; Modules; Modules as Namespaces; Modules as Mixins; Ruby Object Model; Ancestors; Methods; Class; Introspection; Duck Typing; Metaprogramming; define_method; class_eval; method_missing; Summary; Exercises; Chapter 8: Advanced Active Record; Advanced Data Modeling. - Integration Tests. - Self Join Associations Many-to-Many Associations; Single-Table Inheritance; Polymorphic Associations; The Social Application; User Model; Post Models; Comment Model; Summary; Exercises; Chapter 9: Authentication; The Authentication System; Post Index and Show; Sign Up; Log In; Current User; Authenticate User; Use Current User; Summary; Exercises; Chapter 10: Testing; Testing in Rails; Preparing to Test; Running Tests; Using Fixtures; Putting Assertions to Work; Eliminating Duplication with Callbacks; Model Tests; Controller Tests; Controller Test Helpers; Controller Test Assertions. - The bin Directory The config Directory; The db Directory; The lib Directory; The log Directory; The public Directory; The test Directory; The tmp Directory; The vendor Directory; Rails Commands; The gem Command; The bundle Command; The rake Command; The rails Command; Rails Scaffold; Summary; Exercises; Chapter 3: Models; The Post Model; Active Record; Create, Read, Update, and Delete; Create; Read; Update; Delete; More Active Record Methods; Query Conditions; Calculations; Migrations; The Schema; Adding a Column; Inside the Author Migration; Validations; Adding a Validation; Testing Data. - Rails is a robust, flexible development platform that lets you build complex websites quickly. Major websites like GitHub, Hulu, and Twitter have run Rails under the hood, and if you know just enough HTML and CSS to be dangerous, Rails Crash Course will teach you to harness Rails for your own projects and create web applications that are fast, stable, and secure.In Part I, you'll learn Ruby and Rails fundamentals and then dive straight into models, controllers, views, and deployment. As you work through the basics, you'll learn how to:Craft persistent models with Active RecordBuild view templa
Emner
Sjanger
Dewey
ISBN
1-4571-8540-7. - 1-59327-623-0

Bibliotek som har denne