没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
229页
Rails, Angular, Postgres, and Bootstrap(2nd) 英文无水印pdf 第2版 pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
资源推荐
资源详情
资源评论
ß
Under Construction: The book you’re reading is still under
development. As part of our Beta book program, we’re releasing
this copy well before a normal book would be released. That
way you’re able to get this content a couple of months before
it’s available in finished form, and we’ll get feedback to make
the book even better. The idea is that everyone wins!
Be warned: The book has not had a full technical edit, so it will contain errors.
It has not been copyedited, so it will be full of typos, spelling mistakes, and the
occasional creative piece of grammar. And there’s been no effort spent doing
layout, so you’ll find bad page breaks, over-long code lines, incorrect hyphen-
ation, and all the other ugly things that you wouldn’t expect to see in a finished
book. It also doesn't have an index. We can’t be held liable if you use this book
to try to create a spiffy application and you somehow end up with a strangely
shaped farm implement instead. Despite all this, we think you’ll enjoy it!
Download Updates: Throughout this process you’ll be able to get updated
ebooks from your account at
pragprog.com/my_account
. When the book is com-
plete, you’ll get the final version (and subsequent updates) from the same ad-
dress.
Send us your feedback: In the meantime, we’d appreciate you sending us your
feedback on this book at
pragprog.com/titles/dcbang2/errata
, or by using the links
at the bottom of each page.
Thank you for being part of the Pragmatic community!
Andy
Rails, Angular, Postgres, and
Bootstrap, Second Edition
David Bryant Copeland
The Pragmatic Bookshelf
Raleigh, North Carolina
Many of the designations used by manufacturers and sellers to distinguish their products
are claimed as trademarks. Where those designations appear in this book, and The Pragmatic
Programmers, LLC was aware of a trademark claim, the designations have been printed in
initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer,
Pragmatic Programming, Pragmatic Bookshelf, PragProg and the linking g device are trade-
marks of The Pragmatic Programmers, LLC.
Every precaution was taken in the preparation of this book. However, the publisher assumes
no responsibility for errors or omissions, or for damages that may result from the use of
information (including program listings) contained herein.
Our Pragmatic books, screencasts, and audio books can help you and your team create
better software and have more fun. Visit us at
https://pragprog.com
.
For sales, volume licensing, and support, please contact
support@pragprog.com
.
For international rights, please contact
rights@pragprog.com
.
Copyright © 2016 The Pragmatic Programmers, LLC.
All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise,
without the prior consent of the publisher.
Printed in the United States of America.
ISBN-13: 978-1-68050-220-6
Encoded using the finest acid-free high-entropy binary digits.
Book version: B1.0—October 19, 2016
Contents
Introduction . . . . . . . . . . . . . v
1. Set Up the Environment . . . . . . . . . . 1
Installing Ruby, Rails, and Postgres 1
Creating the Rails Application 2
Setting Up Bootstrap with NPM and Webpack 6
Next: Authentication with Devise, Styled by Bootstrap 16
2. Create a Great-Looking Login with Bootstrap and Devise . . 17
Adding Authentication with Devise 17
Styling the Login and Registration Forms 22
Validating Registration 28
Next: Using Postgres to Make Our Login More Secure 29
3. Secure the User Database with Postgres Constraints . . . 31
Exposing the Vulnerability Devise and Rails Leave Open 31
Preventing Bad Data Using Check Constraints 32
Why Use Rails Validations? 37
Next: Using Postgres Indexes to Speed Up a Fuzzy Search 38
4. Perform Fast Queries with Advanced Postgres Indexes . . 39
Implementing a Basic Fuzzy Search with Rails 40
Understanding Query Performance with the Query Plan 51
Indexing Derived and Partial Values 53
Next: Better-Looking Results with Bootstrap’s List Group 56
5. Create Clean Search Results with Bootstrap Components . 57
Creating Google-Style Search Results Without Tables 58
Paginating the Results Using Bootstrap’s Components 63
Next: Angular! 67
剩余228页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功