You are previewing Rails 4 Application Development HOTSHOT.
O'Reilly logo
Rails 4 Application Development HOTSHOT

Book Description

Build simple to advanced applications in Rails 4 through 10 exciting projects

In Detail

Rails is a rapidly moving, open source, web development framework, and keeping up to speed with it is a big task. You might have already built applications using it, but there have been significant changes in the syntax and semantic of the Rails framework in the latest upgrade.

Rails 4 Application Development Hotshot shows you how to build the most popular types of applications using Rails 4, and highlights new ways to do things. The book also closely follows lots of the best practices, gems, and popular solutions already known to the community, and tracks the changes in these. This book brings new ideas to refactor and restructure code to make it perform better in production, and enables you to write production-ready code.

What You Will Learn

  • Learn about new syntaxes and semantics introduced in Rails 4 and their practical usage
  • Discover new ways to use the components and gems from previous versions of Rails
  • Set up full-text search, endless scroll, and modal boxes
  • Create mountable engines and make the code reusable
  • Make multiple APIs (such as Google Maps and Twitter) work with each other
  • Create API-only applications to serve as a backend for mobile applications
  • Understand the basics of the new testing framework in Rails 4
  • Create a video sharing website using Rails 4 along with HTML5 and CSS3 concepts
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Rails 4 Application Development HOTSHOT
      1. Table of Contents
      2. Rails 4 Application Development HOTSHOT
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
          1. Mission briefing
          2. Why is it awesome?
          3. Your Hotshot objectives
          4. Mission checklist
        5. Task 1
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete - mini debriefing
          4. Classified intel
        6. Reader feedback
        7. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. A Social Recipe-sharing Website
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating mockups
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        3. Adding test data and creating tests
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        4. Adding categories
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Creating and adding recipes
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Creating associations – recipes and categories
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Adding authentication
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        8. Beautifying your views
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        9. Mission accomplished
        10. Hotshot challenges
      9. 2. Conference and Event RSVP Management
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating and administrating events
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Creating search-friendly URLs for events
          1. Engage thrusters
          2. Objective complete – mini debriefing
        4. Adding tags to events
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Tagging-based search and tag cloud
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Adding Gravatar for a user
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Creating RSVPs for events
          1. Engage thrusters
          2. Objective complete – mini debriefing
        8. Adding event moderation
          1. Engage thrusters
          2. Objective complete – mini debriefing
        9. Creating "My events" to manage events created by users
          1. Engage thrusters
          2. Objective complete – mini debriefing
        10. Mission accomplished
        11. Hotshot challenges
      10. 3. Creating an Online Social Pinboard
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating file uploads and image resizing
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Creating an infinitely scrollable page
          1. Engage thrusters
          2. Objective complete – mini debriefing
        4. Creating a responsive grid layout
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        5. Adding a full-text search
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        6. Resharing the pins and creating modal boxes using jQuery
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Enabling the application to send a mail
          1. Engage thrusters
          2. Objective complete – mini debriefing
        8. Securing an application from cross-site scripting or XSS
          1. Engage thrusters
          2. Objective complete – mini debriefing
        9. Mission accomplished
        10. Hotshot challenges
      11. 4. Creating a Restaurant Menu Builder
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating organizations with sign up
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Creating restaurants, menus, and items
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        4. Creating user roles
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        5. Creating plans
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Creating subdomains
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Adding multitenancy and reusable methods
          1. Engage thrusters
          2. Objective complete – mini debriefing
        8. Creating a monthly payment model, adding a free trial plan, and generate a monthly bill
          1. Engage thrusters
          2. Objective complete – mini debreifing
        9. Exporting data to a CSV format
          1. Engage thrusters
          2. Objective complete – mini debriefing
        10. Mission accomplished
        11. Hotshot challenges
      12. 5. Building a Customizable Content Management System
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating a separate admin area
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Creating a CMS with the ability to create different types of pages
          1. Engage thrusters
          2. Objective complete – mini debriefing
        4. Managing page parts
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Creating a Haml- and Sass-based template
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Generating the content and pages
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Implementing asset caching
          1. Engage thrusters
          2. Objective complete – mini debriefing
        8. Mission accomplished
        9. Hotshot challenges
      13. 6. Creating an Analytics Dashboard using Rails and Mongoid
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating a MongoDB database
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Creating a click-tracking mechanism
          1. Engage thrusters
          2. Objective complete - mini debriefing
        4. Creating a visit-tracking mechanism
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Writing map-reduce and aggregation to fetch and analyze data
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Creating a dashboard to display clicks and impression values
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Creating a line graph of the daily click activity
          1. Engage thrusters
          2. Objective complete – mini debriefing
        8. Creating a bar graph of the daily visit activity
          1. Engage thrusters
          2. Objective complete – mini debriefing
        9. Creating a demographic-based donut chart
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        10. Mission accomplished
        11. Hotshot challenges
      14. 7. Creating an API Mashup – Twitter and Google Maps
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating an application login with Twitter
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Calling all Twitter friends
          1. Engage thrusters
          2. Objective complete – mini debriefing
        4. Getting latitude and longitude details of the user's location
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Passing Twitter data to the Google Maps API using Rails
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Displaying friends on the map using the Google API
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Creating points of interest – filter users based on their location
          1. Engage thrusters
          2. Objective complete – mini debriefing
        8. Mission accomplished
        9. Hotshot challenges
      15. 8. API Only Application – Backend for a Mobile App
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating, editing, and deleting notes
          1. Engage thrusters
          2. Objective complete – mini debriefing
        3. Arranging notes category wise
          1. Engage thrusters
          2. Objective complete – mini debriefing
        4. Sending join data via JSON
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Creating an OAuth2 provider
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        6. Generating API keys
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Securing the application
          1. Engage thrusters
          2. Objective complete – mini debriefing
        8. Mission accomplished
        9. Hotshot challenges
      16. 9. Video Streaming Website using Rails and HTML5
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Uploading the video
          1. Engage thrusters
          2. Objective complete – mini debriefing
        3. Encoding the video
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        4. Displaying the video panel and playing the video
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Caching the content – text and video
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Queuing the job
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        7. Mission accomplished
        8. Hotshot challenges
      17. 10. A Rails Engines-based E-Commerce Platform
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating a category and product listing
          1. Engage thrusters
          2. Objective complete – mini debriefing
        3. Creating a shopping cart and an Add to Cart feature
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        4. Packaging the engine as a gem
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        5. Mounting the engine on a blank Rails application
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Customizing and overriding the default classes
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Mission accomplished
        8. Hotshot challenges
      18. Index