Free Sample
+ Collection

Rails 4 Application Development HOTSHOT

Saurabh Bhatia

Build simple to advanced applications in Rails 4 through 10 exciting projects.
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783286294
Paperback378 pages

About This Book

  • Build interesting application scenarios with Rails 4
  • Upgrade your knowledge for the latest changes in the Rails framework
  • Follow the project-based approach to building applications from simple to advanced skill levels

Who This Book Is For

If you are a developer who is already familiar with the basics of the Rails framework and have previously worked with Rails 3.2 or earlier, then this is the ideal book for you. It is assumed that you have some prior experience with the development of applications. This book will help you to upgrade your existing knowledge and also ensure its applicability. You will be expected to setup Rails, MySQL / PostgreSQL, Mongodb and required dependencies themselves.

Table of Contents

Chapter 1: A Social Recipe-sharing Website
Mission briefing
Creating mockups
Adding test data and creating tests
Adding categories
Creating and adding recipes
Creating associations – recipes and categories
Adding authentication
Beautifying your views
Mission accomplished
Hotshot challenges
Chapter 2: Conference and Event RSVP Management
Mission briefing
Creating and administrating events
Creating search-friendly URLs for events
Adding tags to events
Tagging-based search and tag cloud
Adding Gravatar for a user
Creating RSVPs for events
Adding event moderation
Creating "My events" to manage events created by users
Mission accomplished
Hotshot challenges
Chapter 3: Creating an Online Social Pinboard
Mission briefing
Creating file uploads and image resizing
Creating an infinitely scrollable page
Creating a responsive grid layout
Adding a full-text search
Resharing the pins and creating modal boxes using jQuery
Enabling the application to send a mail
Securing an application from cross-site scripting or XSS
Mission accomplished
Hotshot challenges
Chapter 4: Creating a Restaurant Menu Builder
Mission briefing
Creating organizations with sign up
Creating restaurants, menus, and items
Creating user roles
Creating plans
Creating subdomains
Adding multitenancy and reusable methods
Creating a monthly payment model, adding a free trial plan, and generate a monthly bill
Exporting data to a CSV format
Mission accomplished
Hotshot challenges
Chapter 5: Building a Customizable Content Management System
Mission briefing
Creating a separate admin area
Creating a CMS with the ability to create different types of pages
Managing page parts
Creating a Haml- and Sass-based template
Generating the content and pages
Implementing asset caching
Mission accomplished
Hotshot challenges
Chapter 6: Creating an Analytics Dashboard using Rails and Mongoid
Mission briefing
Creating a MongoDB database
Creating a click-tracking mechanism
Creating a visit-tracking mechanism
Writing map-reduce and aggregation to fetch and analyze data
Creating a dashboard to display clicks and impression values
Creating a line graph of the daily click activity
Creating a bar graph of the daily visit activity
Creating a demographic-based donut chart
Mission accomplished
Hotshot challenges
Chapter 7: Creating an API Mashup – Twitter and Google Maps
Mission briefing
Creating an application login with Twitter
Calling all Twitter friends
Getting latitude and longitude details of the user's location
Passing Twitter data to the Google Maps API using Rails
Displaying friends on the map using the Google API
Creating points of interest – filter users based on their location
Mission accomplished
Hotshot challenges
Chapter 8: API Only Application – Backend for a Mobile App
Mission briefing
Creating, editing, and deleting notes
Arranging notes category wise
Sending join data via JSON
Creating an OAuth2 provider
Generating API keys
Securing the application
Mission accomplished
Hotshot challenges
Chapter 9: Video Streaming Website using Rails and HTML5
Mission briefing
Uploading the video
Encoding the video
Displaying the video panel and playing the video
Caching the content – text and video
Queuing the job
Mission accomplished
Hotshot challenges
Chapter 10: A Rails Engines-based E-Commerce Platform
Mission briefing
Creating a category and product listing
Creating a shopping cart and an Add to Cart feature
Packaging the engine as a gem
Mounting the engine on a blank Rails application
Customizing and overriding the default classes
Mission accomplished
Hotshot challenges

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

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.


Read More

Recommended for You

Building Dynamic Web 2.0 Websites with Ruby on Rails
$ 12.60
Ruby on Rails Enterprise Application Development: Plan, Program, Extend
$ 16.50
Ruby on Rails Web Mashup Projects
$ 16.20