Rails 3 in Action
Samenvatting
Rails 3 is a full stack, open source web framework powered by Ruby and this book is an introduction to it. Whether you're just starting or you have a few cycles under your belt, you'll appreciate the book's guru's-eye-view of idiomatic Rails programming.
You'll master Rails 3.1 by developing a ticket tracking application that includes RESTful routing, authentication and authorization, state maintenance, file uploads, email, and more. You'll also explore powerful features like designing your own APIs and building a Rails engine. You will see Test Driven Development and Behavior Driven Development in action throughout the book, just like you would in a top Rails shop.
What's Inside
- Covers Rails 3.1 from the ground up
- Testing and BDD using RSpec and Cucumber
- Working with Rack
It is helpful for readers to have a background in Ruby, but no prior Rails experience is needed.
Specificaties
Inhoudsopgave
U kunt van deze inhoudsopgave een PDF downloaden
Acknowledgments
About this book
About the authors
About the cover illustration
1. Ruby on Rails, the framework
-What is Ruby on Rails?
-Developing your first application
-Summary
2. Testing saves your bacon
-Test- and behavior-driven development
-Test-driven development
-Behavior-driven development
-Summary
3. Developing a real Rails application
-Application setup
-First steps
-Summary
4. Oh CRUD!
-Viewing projects
-Editing projects
-Deleting projects
-Summary
5. Nested resources
-Creating tickets
-Viewing tickets
-Editing tickets
-Deleting tickets
-Summary
6. Authentication and basic authorization
-What Devise does
-User signup
-Confirmation link sign-in
-Form sign-in
-Linking tickets to users
-Summary
7. Basic access control
-Projects can be created only by admins
-Adding the admin field to the users table
-Restricting actions to admins only
-Namespace routing
-Namespace-based CRUD
-Creating admin users
-Editing users
-Deleting users
-Summary
8. More authorization
-Restricting read access
-Restricting by scope
-Fixing what you broke
-Blocking access to tickets
-Restricting write access
-Restricting update access
-Restricting delete access
-Assigning permissions
-Seed data
-Summary
9. File uploading
-Attaching a file
-Attaching many files
-Serving files through a controller
-Using JavaScript
-Summary
10. Tracking state
-Leaving a comment
-Changing a ticket's state
-Tracking changes
-Managing states
-Locking down states
-Summary
11. Tagging
-Creating tags
-Adding more tags
-Tag restriction
-Deleting a tag
-Finding tags
-Summary
12. Sending email
-Sending ticket notifications
-Subscribing to updates
-Real-world email
-Receiving emails
-Summary
13. Designing an API
-The projects API
-Beginning the tickets API
-Rate limiting
-Versioning an API
-Summary
14. Deployment
-Server setup
-RVM and Ruby
-Creating a user for the app
-The database server
-Deploy away!
-Serving requests
-Summary
15. Alternative authentication
-How OAuth works
-Twitter authentication
-GitHub authentication
-Summary
16. Basic performance enhancements
-Pagination
-Database query enhancements
-Page and action caching
-Background workers
-Summary
17. Engines
-A brief history of engines
-Why engines are useful
-Brand-new engine
-Setting up a testing environment
-Writing your first engine feature
-Adding more posts to topics
-Classes outside your control
-Releasing as a gem
-Integrating with an application
-Summary
18. Rack-based applications
-Building Rack applications
-Building bigger Rack applications
-Mounting a Rack application with Rails
-Middleware
-Summary
Appendix A: Why Rails?
Appendix B: Tidbits
Index
Anderen die dit boek kochten, kochten ook
Net verschenen
Rubrieken
- aanbestedingsrecht
- aansprakelijkheids- en verzekeringsrecht
- accountancy
- algemeen juridisch
- arbeidsrecht
- bank- en effectenrecht
- bestuursrecht
- bouwrecht
- burgerlijk recht en procesrecht
- europees-internationaal recht
- fiscaal recht
- gezondheidsrecht
- insolventierecht
- intellectuele eigendom en ict-recht
- management
- mens en maatschappij
- milieu- en omgevingsrecht
- notarieel recht
- ondernemingsrecht
- pensioenrecht
- personen- en familierecht
- sociale zekerheidsrecht
- staatsrecht
- strafrecht en criminologie
- vastgoed- en huurrecht
- vreemdelingenrecht