Rails 4 Application Development: Hotshot

Rails 4 Application Development: Hotshot

Saurabh Bhatia

Language: English

Pages: 326

ISBN: 1783286296

Format: PDF / Kindle (mobi) / ePub


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

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.

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.

Building Web Apps with WordPress

REST in Practice: Hypermedia and Systems Architecture

Bootstrap

CSS3: The Missing Manual (3rd Edition)

Instant Firebug Starter

Dreamweaver CS6: The Missing Manual

 

 

 

 

 

 

 

 

 

 

 

confirm: 'Are you sure?' }, :class=>"btn btn-danger btn-small" %>

<%end%> Objective complete – mini debriefing At the end of this task, our application has devise-based authentication for login and sign-up functionalities. We also protected certain methods and made them accessible only after we completed the login process. Lastly, we looked at various methods to pass user data to session objects such as current_user. Devise also supports OpenLDAP and API methods for extending

behavior that we will track with our application: ClicksViewsVisits Clicks and views will be tracked for the users who have logged in. Visits are for the users who unknown and are are not logged in. We will use MongoDB to track and store this data. Also, we will create charts of different types in order to visualize our data. MongoDB is scalable and is meant to be fault tolerant. We will name our application Authorly and the following is a glimpse of what we are going to achieve: Why is it

not support the HTML5 video as yet: Then we created a video element to load the video on it: We also created a helper method to create our screenshot path and called it in our view. The video element has been introduced in HTML5

in the database or not::~/curry-nation$ rails c Loading development environment (Rails 4.0.0) 1.9.3-p327 :002 > FoodType.all FoodType Load (0.9ms) SELECT `food_types`.* FROM `food_types` => #, #, #

ActionController**API module / Engage thrusters ActionController**Base class / Objective complete – mini debriefing ActionController**Renders module / Objective complete – mini debriefing add method / Objective complete – mini debriefing Add Project button / Engage thrusters admin dashboardcreating, for clicks displaying / Creating a dashboard to display clicks and impression values, Engage thrusterscreating, for impression values displaying / Creating a dashboard to display clicks and impression

Download sample

Download