Muutke küpsiste eelistusi

E-raamat: Learning Rails 5: Rails from the Outside In

  • Formaat: 452 pages
  • Ilmumisaeg: 11-Aug-2016
  • Kirjastus: O'Reilly Media
  • Keel: eng
  • ISBN-13: 9781491926154
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 36,26 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: 452 pages
  • Ilmumisaeg: 11-Aug-2016
  • Kirjastus: O'Reilly Media
  • Keel: eng
  • ISBN-13: 9781491926154
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

If you're a web developer or designer ready to learn Ruby on Rails, this hands-on guide is the ideal way to get started. Rather than toss you into the middle of the framework's Model-View-Controller architecture, as many books do, Learning Rails 5 begins with the foundations of the Web you already know. You'll learn how to create something visible with Rails' view layer before diving into the more difficult inner layers: the database models and controller code. All you need to begin your Rails journey is HTML experience. Each chapter includes exercises and review questions to test your understanding as you go. Present content by building an application with a basic view and a simple controller Build forms and process their results, progressing from simple to more complex Use Rails scaffolding and REST to build effective applications quickly Connect forms to models and create code that maps directly to database structures Build applications that combine data from multiple tables Use migrations to track changes to your database over time Add common elements such as sessions, cookies, and authentication
Foreword xi
Preface xiii
1 Starting Up Ruby on Rails 1(12)
If You Run Windows, You're Lucky
2(1)
Getting Started at the Command Line
3(6)
Starting Up Rails
9(2)
Test Your Knowledge
11(1)
Quiz
11(1)
Answers
11(2)
2 Rails on the Web 13(14)
Creating Your Own View
13(4)
What Are All Those Folders?
17(1)
Adding Some Data
18(2)
How Hello World Works
20(2)
Adding Logic to the View
22(2)
Test Your Knowledge
24(1)
Quiz
24(1)
Answers
24(3)
3 Adding Web Style 27(16)
I Want My CSS!
27(6)
Specifying Stylesheets
33(1)
Creating a Layout for a Controller
34(2)
Choosing a Layout from a Controller
36(2)
Sharing Template Data with the Layout
38(1)
Setting a Default Page
39(1)
Test Your Knowledge
40(1)
Quiz
40(1)
Answers
40(3)
4 Managing Data Flow: Controllers and Models 43(20)
Getting Started, Greeting Guests
43(5)
Application Flow
48(1)
Keeping Track: A Simple Guestbook
49(8)
Connecting to a Database Through a Model
50(3)
Connecting the Controller to the Model
53(4)
Finding Data with ActiveRecord
57(4)
Test Your Knowledge
61(1)
Quiz
61(1)
Answers
62(1)
5 Accelerating Development with Scaffolding and REST 63(24)
A First Look at Scaffolding
63(5)
REST and Controller Best Practices
68(3)
Websites and Web Applications
68(2)
Toward a Cleaner Approach
70(1)
Examining a RESTful Controller
71(12)
index: An Overview of Data
76(1)
show: Just One Row of Data and the Before Filter
77(1)
new: A Blank Set of Data Fields
78(1)
edit: Hand Me That Data, Please
78(1)
create: Save Something New
79(2)
Put This Updated Record In
81(1)
Destroy It
82(1)
Escaping the REST Prison
83(1)
Test Your Knowledge
84(1)
Quiz
84(1)
Answers
84(3)
6 Presenting Models with Forms 87(26)
More Than a Name on a Form
87(2)
Generating HTML Forms with Scaffolding
89(5)
Form as a Wrapper
94(2)
Creating Text Fields and Text Areas
96(2)
Labels
98(1)
Creating Checkboxes
99(1)
Creating Radio Buttons
100(3)
Creating Selection Lists
103(2)
Dates and Times
105(2)
Creating Helper Methods
107(3)
Test Your Knowledge
110(1)
Quiz
110(1)
Answers
110(3)
7 Strengthening Models with Validation 113(18)
Without Validation
113(3)
The Original Model
116(1)
The Power of Declarative Validation
117(3)
Managing Secrets
120(5)
Customizing the Message
120(2)
Limiting Choices
122(1)
Testing Format with Regular Expressions
122(1)
Seen It All Before
123(1)
Numbers Only
123(2)
A Place on the Calendar
125(1)
Testing for Presence
125(1)
Beyond Simple Declarations
126(2)
Test It Only If
126(1)
Do It Yourself
127(1)
Test Your Knowledge
128(1)
Quiz
128(1)
Answers
128(3)
8 Improving Forms 131(22)
Adding a Picture by Uploading a File
131(12)
File Upload Forms
132(1)
Model and Migration Changes
133(5)
Results
138(5)
Standardizing Your Look with Form Builders
143(8)
Supporting Your Own Field Types
143(2)
Adding Automation
145(3)
Integrating Form Builders and Styles
148(3)
Test Your Knowledge
151(1)
Quiz
151(1)
Answers
152(1)
9 Developing Model Relationships 153(38)
Connecting Awards to Students
154(6)
Establishing the Relationship
155(1)
Supporting the Relationship
156(4)
Connecting Students to Awards
160(2)
Removing Awards When Students Disappear
160(1)
Counting Awards for Students
160(2)
Nesting Awards in Students
162(11)
Changing the Routing
163(1)
Changing the Controller
164(2)
Changing the Award Views
166(5)
Connecting the Student Views
171(1)
Is Nesting Worth It?
172(1)
Many-to-Many: Connecting Students to Courses
173(14)
Creating Tables
173(1)
Connecting the Models
174(2)
Adding to the Controllers
176(2)
Adding Routing
178(1)
Supporting the Relationship Through Views
178(9)
What's Missing?
187(1)
Test Your Knowledge
188(1)
Quiz
188(1)
Answers
188(3)
10 Managing Databases with Migrations 191(18)
What Migrations Offer You
192(1)
Migration Basics
193(4)
Migration Files
193(2)
Running Migrations Forward and Backward
195(2)
Inside Migrations
197(9)
Working with Tables
197(1)
Data Types
198(3)
Working with Columns
201(1)
Indexes
202(2)
Other Opportunities
204(2)
Test Your Knowledge
206(1)
Quiz
206(1)
Answers
207(2)
11 Debugging 209(16)
Creating Your Own Debugging Messages
209(3)
Raising Exceptions
212(1)
Logging
213(1)
Working with Rails from the Console
214(5)
Debug and Debugger
219(4)
Test Your Knowledge
223(1)
Quiz
223(1)
Answers
223(2)
12 Testing 225(26)
Test Mode
225(1)
Testing the Students App
226(1)
Setting Up a Test Database with Fixtures
227(4)
Model Testing
231(7)
Controller Testing
238(7)
Calling Controllers
241(1)
Testing Responses
241(2)
Dealing with Nested Resources
243(2)
Integration Testing
245(3)
Beyond the Basics
248(1)
Test Your Knowledge
249(1)
Quiz
249(1)
Answers
250(1)
13 Sessions and Cookies 251(12)
Getting Into and Out of Cookies
251(6)
Storing Data Between Sessions
257(5)
Test Your Knowledge
262(1)
Quiz
262(1)
Answers
262(1)
14 Users and Authentication 263(22)
The Sign-up Process
264(7)
Wiring Authentication to Your Application
271(2)
Classifying Users
273(10)
More Options
283(1)
Test Your Knowledge
284(1)
Quiz
284(1)
Answers
284(1)
15 Routing 285(12)
Creating Routes to Interpret URIs
286(7)
Specifying Routes
286(2)
Globbing
288(1)
Regular Expressions and Routing
289(1)
A Domain Default with root
289(1)
Mapping Resources
290(1)
Nesting Resources
291(1)
Route Order and Priority
292(1)
Checking the Map
292(1)
Generating URIs from Views and Controllers
293(2)
Pointing url_for in the Right Direction
293(1)
Adding Options
294(1)
Infinite Possibilities
295(1)
Test Your Knowledge
296(1)
Quiz
296(1)
Answers
296(1)
16 From CSS to Sass 297(12)
Getting Started
297(1)
Sassy Style
298(5)
Variables
298(2)
Mixins
300(2)
Nesting
302(1)
Making Everything Work Together
303(4)
Becoming Sassier
306(1)
Test Your Knowledge
307(1)
Quiz
307(1)
Answers
307(2)
17 Managing Assets and Bundles 309(12)
The Junk Drawer
309(9)
Sprockets
310(1)
Dissecting the Pipeline
310(1)
Putting It All Together
311(4)
Bundler
315(3)
Test Your Knowledge
318(1)
Quiz
318(1)
Answers
319(2)
18 Sending Code to the Browser: JavaScript and CoffeeScript 321(10)
Sending JavaScript to the Browser
322(3)
Simplifying with CoffeeScript
325(4)
Have Some Sugar with Your CoffeeScript
325(2)
Converting to CoffeeScript
327(2)
Test Your Knowledge
329(1)
Quiz
329(1)
Answers
329(2)
19 Mail in Rails 331(12)
Sending Mail Messages
331(6)
Previewing Mail
337(1)
Receiving Mail
338(4)
Setup
338(1)
Processing Messages
339(3)
Test Your Knowledge
342(1)
Quiz
342(1)
Answers
342(1)
20 Pushing Further into Rails 343(8)
Changing to Production Mode
343(1)
Deploying Is Much More Than Programming
344(3)
Joining the Rails Ecosystem
347(4)
Keep Up with Rails
347(1)
Ruby
348(1)
Working with and Around Rails
348(1)
Keep Exploring
349(2)
A An Incredibly Brief Introduction to Ruby 351(22)
B An Incredibly Brief Introduction to Relational Databases 373(10)
C An Incredibly Brief Guide to Regular Expressions 383(10)
D Glossary 393(20)
Index 413
Mark Locklear is a web developer at the eXtension Initiative and has 20 years of IT experience including network administration, quality assurance, and software development. He is an Adjunct Instructor at Asheville Buncombe Technical Community College and is passionate about education and teaching students software development. Simon St.Laurent is Senior Editor at O'Reilly Media, Inc., focusing primarily on JavaScript and web-related projects. He is co-chair of the Fluent and OSCON conferences. He's authored or coauthored books including Introducing Elixir, Introducing Erlang, Learning Rails 3, XML Pocket Reference, Third Edition,, XML: A Primer, and Cookies. Edd Dumbill is a technologist, writer and programmer based in California. He is the program chair for the O'Reilly Strata and Open Source Convention Conferences. He was the founder and creator of the Expectnation conference management system, and a co-founder of the Pharmalicensing.com online intellectual property exchange. A veteran of open source, Edd has contributed to various projects, such as Debian and GNOME, and created the DOAP Vocabulary for describing software projects. Edd has written four books, including O'Reilly's "Learning Rails". He writes regularly on Google+ and on his blog at eddology.com. Eric J. Gruber makes stuff for the web and is the eGov coordinator for Lawrence, KS.