• Complain

Hafiz Barie Lubis - Learning Devise for Rails

Here you can read online Hafiz Barie Lubis - Learning Devise for Rails full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Hafiz Barie Lubis Learning Devise for Rails

Learning Devise for Rails: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Learning Devise for Rails" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Use Devise to make your Rails application accessible, user friendly, and secure

Overview

  • Use Devise to implement an e-mail-based sign-in process in a few minutes
  • Override Devise controllers to allow username-based sign-ins, and customize default Devise HTML views to change the look and feel of the authentication system
  • Test your authentication codes to ensure stability

In Detail

There are numerous ways of implementing user sign-ins on your Rails web applications. Of those different ways, using Devise is one of the most popular, quick and flexible way to get user sign-ins working. It is extensible and plays well with other gems such as CanCan (for user privileges) and OmniAuth (for Facebook and Twitter sign-ins).

A hands-on, all-in-one guide that gives you step-by-step instructions along with code examples to implement authentication systems in your application. This book will help you to implement various schemes of authentication systems including authorization and remote authentication, using Devise.

Helping you make your Rails applications more accessible and user-friendly; this book explains how to implement user sign-ins in Rails. It will also show you how to customize user authentication pages, such as sign-in, sign-up, forgot password, and account details, by making use of existing Devise views. In addition, you will learn about facilitating complex privilege rules using the CanCan gem. Finally, you will discover how to make sure your authentication codes work as expected by using integration tests.

You will learn all you need to know to create user email and social network sign-ins quickly, to customize user sign-in-related views, and implement complex privileges, as well as to ensure the stability of your authentication codes by testing them.

What you will learn from this book

  • Understand Devise as a flexible and customizable authentication solution for Rails
  • Customize sign-in, sign-up, password reset, email confirmation, account cancellation, and user account edit pages
  • Hide and show views based on defined user authorization rules using CanCan view helpers
  • Configure OmniAuth to make user sign-ins and sign-ups via social network accounts work on your Rails application
  • Use CanCan abilities to implement simple and SQL-based user privileges to restrict user access
  • Test authentications to ensure code stability

Approach

A hands-on, step-by-step guide to using Devise for authentication in Rails.

Who this book is written for

If you are a web developer who is getting started with Rails and you are looking for authentication solutions, then this is the book for you. If you are a current Rails developer who is looking to extend your authentication implementation with capabilities such as authorization and remote authentication, this book will also be great for you.

Hafiz Barie Lubis: author's other books


Who wrote Learning Devise for Rails? Find out the surname, the name of the author of the book and a list of all author's works by series.

Learning Devise for Rails — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Learning Devise for Rails" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Learning Devise for Rails

Learning Devise for Rails

Copyright 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: October 2013

Production Reference: 1181013

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78216-704-4

www.packtpub.com

Cover Image by Suresh Mogre (<>)

Credits

Authors

Hafiz

Nia Mutiara

Giovanni Sakti

Reviewers

Philip Hallstrom

Andrew Montgomery-Hurrell

Akshay Surve

Acquisition Editors

Nikhil Karkal

Taron Pereira

Commissioning Editor

Neil Alexander

Technical Editors

Jalasha D'costa

Tarunveer Shetty

Copy Editors

Mradula Hegde

Dipti Kapadia

Sayanee Mukherjee

Project Coordinator

Amigya Khurana

Proofreader

Linda Morris

Indexer

Mehreen Deshmukh

Production Coordinator

Aparna Bhagat

Cover Work

Aparna Bhagat

About the Authors

Hafiz majored in Informatics Engineering at Bandung Institute of Technology, Bandung. He graduated in 2008. In his study period, he spent most of his time researching user interaction. It was a bit contradictive because he worked mainly in backend programming after he graduated. Most of his research was about ActionScript, PHP, and Javascript. About 2 years later, he came across Ruby on Rails, which sparked a lot more interest in web development. His interest was magnified after he took on the role of Chief Technology Officer in a startup (Wiradipa Nusantara) he built with his friends. Since then, most of his time was contributed to research on Ruby, Ruby on Rails, and web performance. He blogs extensively about Ruby and Ruby on Rails at http://hafizbadrie.wordpress.com. He has written a lot about best practices for using Ruby on Rails and also about web performance.

Currently, he is a Lead Developer in The Jakarta Post Digital while maintaining his startup as a CTO in Wiradipa Nusantara. In recent days, he is paying more attention to the development of web performance from the server side with Ruby, the client side with JavaScript, and any other related strategy. He is a member of id-ruby (http://id-ruby.org), an Indonesian community that talks about Ruby and is also a member of Card to Post (http://www.cardtopost.com), an Indonesian community that mainly talks about postcards.

My sincere gratitude to Allah. An article on Standard Widget Toolkit (SWT) brought Ashish Bhanushali to my blog and that's where the offer for this book came from. I'd like to thank the Packt Publishing team for their patience and hard work and Giovanni and Nia for making a good teamwe should do this again sometime. I also want to thank my father, mother, brothers, Adelia, and all of the team in Wiradipa Nusantara for your support. I dedicate this book to all developersnot just Ruby on Rails developersand hope it is useful to everyone who reads it.

Nia Mutiara is a software engineer working on a virtual stock gaming iOS application, as well as its server-side web application. For two years, she worked on complex Ruby on Rails and iOS applications. She is a master of JavaScript and CSS, and has used those skills to enhance most web applications that she has worked on. In her spare time, she hangs around Twitter, writes Ruby tutorials in Indonesian, and watches comedy.

Giovanni Sakti has been a developer for 10 years with an emphasis on developing web applications in Java and Ruby. His latest projects and research are focused on API-based web applications with AngularJS as the client-side framework.

He is an active member of the Indonesian Ruby (id-ruby) community and sometimes gives talks about Ruby-related topics there. He writes regularly on his blog http://mightygio.com primarily about Ruby, Rails, AngularJS, and other programming topics.

Giovanni is the founder of PT. Starqle Indonesia, a Jakarta-based company providing products, IT consulting, and development services with a focus on the healthcare industry.

I would like to thank Hafiz and Nia for giving me the opportunity to write this book together. I would also like to dedicate this book to my wife, Elvira, and to my grandmother, father, mother, and sisters, Emmy, Tri, Tina, and Livia. Lastly, I want to send my regards to everyone who shares the same dreams at PT. Starqle Indonesia.

About the Reviewers

Philip Hallstrom has been building web applications for the last 19 years. He enjoys working in the world of open source, particularly with Linux, Ruby, Rails, and PostgreSQL. He lives in Olympia, WA with his wife and two boys. When he's not on the golf course, Philip is the CTO for Supreme Golf, a startup looking to make it easy for golfers to find the best tee times available. You can find him online at http://pjkh.com.

Andrew Montgomery-Hurrell is a software developer, hacker, and all-round geek who enjoys everything from Dungeons and Dragons to DevOps. At an early age, he was fascinated with computers, and after cutting his teeth on BASIC with older models of Amstrad CPCs and Amigas, he moved on to Linux admin, C/C++, and then later to Python and Ruby. Since the early 2000s, he has worked on a number of web applications in a range of languages and technologies from small company catalog sites to large web applications serving thousands of people across the globe. Trained and interested in computing "from the bottom up", Andrew has experience in the full stack of computing technologyfrom ASICs to applicationscoming from a background in electronics and computer interfacing.

When he isn't working on web applications or infrastructure tools for gaming events by hosting company, Multiplay, he can be found hacking code, reading or writing fiction, playing computer games, or slaying dragons with his wife, Laura.

Akshay Surve is in pursuit of making a difference through his initiatives, be it for profit or for good. He has a deep understanding of the Consumer Internet, Advertising, and Technology domains having worked with high-growth startups globally. At heart, he is a midnight code junkie and occasionally dabbles in prose. When not with his MacBook, he can either be found preparing for the next marathon or disappearing into the wilderness. He was once seen taking a leap from a mountain top and soaring through the skies solo in what looked like an elongated umbrella from afar.

He is the co-founder of DeltaX (http://www.deltax.com), where he is building "The Advertising Cloud" for advertising agencies and advertisers to efficiently buy, track, attribute, optimize, and report media across the marketing segmentssearch, social, display, RTB, mobile, and video.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Learning Devise for Rails»

Look at similar books to Learning Devise for Rails. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Learning Devise for Rails»

Discussion, reviews of the book Learning Devise for Rails and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.