Limit search to available items
Book Cover
Author Gamble, Adam, author

Title Beginning Rails 4 / Adam Gamble, Cloves Carneiro, Jr., Rida Al Barazi
Edition Third edition
Published [Berkeley, CA] : Apress, [2013]
Online access available from:
Safari O'Reilly books online    View Resource Record  


Description 1 online resource (1 volume) : illustrations
Series The expert's voice in web development
Expert's voice in Web development.
Contents ch. 1: Introducing the Rails Framework -- The Rise and Rise of the Web Application -- The Web Isn't Perfect -- The Good Web Framework -- Enter Rails -- Rails Is Ruby -- Rails Encourages Agility -- Rails Is Opinionated Software -- Rails Is Open Source -- The MVC Pattern -- The MVC Cycle -- The Layers of MVC -- The Libraries That Make Up Rails -- Rails Is Modular -- Rails Is No Silver Bullet -- ch. 2: Getting Started -- An Overview of Rails Installation -- Installing on Mac OS X 10.8 Mountain Lion -- Installing the Apple Developer Tools (Xcode) -- Installing Command Line Tools -- Installing Homebrew -- Installing RVM -- Installing Rails -- Installing on Windows -- Installing Ruby -- Installing Rails -- Installing SQLite -- Installing on Linux -- Installing Ruby -- Installing Rails -- Installing SQLite -- Creating Your First Rails Application -- Starting the Built-In Web Server -- Generating a Controller -- Creating an Action -- Creating a Template -- ch. 3: Getting Something Running -- An Overview of the Project -- Creating the Blog Application -- Creating the Project Databases -- Creating the Article Model -- Creating a Database Table -- Generating a Controller -- Up and Running with Scaffolding -- Adding More Fields -- Adding Validations -- Generated Files -- ch. 4: Introduction to the Ruby Language -- Instant Interaction -- Ruby Data Types -- Strings -- Numbers -- Symbols -- Arrays and Hashes -- Language Basics -- Variables -- Operators -- Blocks and Iterators -- Control Structures -- Methods -- Classes and Objects -- Objects -- Classes -- Ruby Documentation
ch. 5: Working with a Database: Active Record -- Introducing Active Record: Object-Relational Mapping on Rails -- What About SQL? -- Active Record Conventions -- Introducing the Console -- Active Record Basics: CRUD -- Creating New Records -- Reading (Finding) Records -- Updating Records -- Deleting Records -- When Good Models Go Bad -- ch. 6: Advanced Active Record: Enhancing Your Models -- Adding Methods -- Using Associations -- Declaring Associations -- Creating One-to-One Associations -- Creating One-to-Many Associations -- Applying Association Options -- Creating Many-to-Many Associations -- Creating Rich Many-to-Many Associations -- Advanced Finding -- Using the where Method -- Using an SQL Fragment -- Using an Array Condition Syntax -- Using Association Proxies -- Other Finder Methods -- Default Scope -- Named Scope -- Applying Validations -- Using Built-In Validations -- Building Custom Validation Methods -- Making Callbacks -- Updating the User Model -- Reviewing the Updated Models -- ch. 7: Action Pack: Working with the View and the Controller -- Action Pack Components -- Action Controller -- Action View -- Embedded Ruby -- Helpers -- Routing -- RESTful Resources -- Action Pack Request Cycle -- A Controller Walk-Through -- Setting Up Routes -- Revisiting the Scaffold Generator -- Rendering Responses -- Redirecting -- Understanding Templates -- Working with Layouts -- Looking at the Article Form -- Using Form Helpers -- Processing Request Parameters -- Revisiting the Controller -- Displaying Error Messages in Templates -- The edit and update Actions -- Revisiting the Views -- Staying DRY with Partials
ch. 8: Advanced Action Pack -- Generating a Controller -- Nested Resources -- Sessions and the Login/Logout Logic -- Lying in State -- Using the Session -- Session as a Resource -- Logging In a User -- Logging Out a User -- Improving Controllers and Templates -- Cleaning Up the Articles Index Page -- Adding Categories to the Article Form -- Using Controller Callbacks -- Requiring Authentication with Filters -- Applying Filters to Controllers -- Adding Finishing Touches -- Using Action View Helpers -- Escaping HTML in Templates -- Formatting the Body Field -- Adding Edit Controls -- Making Sure Articles Have Owners -- Adding Custom Helpers -- Giving It Some Style -- ch. 9: JavaScript and CSS -- Asset Concatenation and Compression -- Secondary Languages -- Asset Pipeline Locations -- Turbolinks -- Let's Build Something! -- Ajax and Rails -- jQuery and DOM -- Moving to Practice -- ch. 10: Sending and Receiving E-Mail -- Setting Up Action Mailer -- Configuring Mail Server Settings -- Configuring Application Settings -- Sending E-Mail -- Handling Basic E-Mail -- Sending HTML E-Mail -- Adding Attachments -- Letting Authors Know About Comments -- Receiving E-Mail -- Using a Rails Process -- Reading E-Mail Using POP or IMAP -- ch. 11: Testing Your Application -- How Rails Handles Testing -- Unit Testing Your Rails Application -- Testing the Article Model -- Testing Validations -- Functional Testing Your Controllers -- Testing the Articles Controller -- Creating a Test Helper -- Running the Full Test Suite -- Integration Testing -- Integration Testing the Blog Application -- Story-Based Testing -- Running the Full Test Suite
ch. 12: Internationalization -- Internationalization Logic in Rails -- Setting Up i18n in the Blog Application -- Localizing the Blog Application to Brazilian Portuguese -- Bilingual Blog -- ch. 13: Deploying Your Rails Applications -- Set Up an Account with Heroku -- Preparing Your Git Repository -- That's it! -- Appendix A: Databases 101 -- Examining a Database Table -- Working with Tables -- Selecting Data -- Inserting Data -- Updating Data -- Deleting Data -- Understanding Relationships -- SQL and Active Record -- Appendix B: The Rails Community -- Beginning Rails 4 Channels -- Rails Mailing Lists -- Rails IRC Channel -- Rails Blogs and Podcasts -- Rails Guides -- Rails APIs -- Rails Source and Issue Tracking -- Appendix C: Git -- What Is Source Control Management? -- How Does It Work? -- Git -- Installing Git -- Setting Global Parameters -- Initializing a Repository -- Ignoring Files -- Adding and Committing -- Branching and Merging -- Remote Repositories and Cloning -- Learning More -- Other SCM Systems -- Online Resources
Summary Beginning Rails 4 is a book that will guide you from never having programmed with Ruby, to having a Rails application built and deployed to the web. Youll learn how to combine all the components of Rails to develop your own web applications. You will use test driven development to make sure your application works exactly like you expect. You will learn how to use Git for source control and best practice techniques to create applications like a pro. Essential, and often-missed, information on testing and learning to program with Ruby are also covered. This book is well suited for someone with little to no Ruby or Rails experience, or possibly even someone with no experience developing web applications at all. Beginning Rails 4 does assume a basic familiarity with the web and typical web terms, but doesnt require you to be an expert of these. This book will springboard your journey into web application development, and show you how much fun building web applications with Ruby on Rails can be. Learn to create Rails applications from the bottom up Learn the basics of the Ruby programming language Completely updated for Rails 4, including new information on turbo links, etc. Beginning Rails 4 gently guides you through designing your application, writing tests for the application, and then writing the code to make your application work as expected
Analysis computerwetenschappen
computer sciences
Information and Communication Technology (General)
Informatie- en communicatietechnologie (algemeen)
Notes English
Online resource; title from PDF title page (EBSCO, viewed November 28, 2017)
Subject Ruby on rails (Electronic resource)
Ruby on rails (Electronic resource)
Ruby on rails (Electronic resource)
Ruby (Computer program language)
Web site development.
COMPUTERS -- Programming Languages -- Ruby.
Ruby (Computer program language)
Web site development.
Genre/Form Electronic books
Form Electronic book
Author Carneiro, Cloves, author
Al Barazi, Rida, author
ISBN 9781430260356
Other Titles Beginning Rails four