Rails for Java Developers
Leverbaar
Foreword xi Preface xiii Getting Started with Rails 1(18) Setting Up Ruby and Rails 1(1) Rails App in Fifteen Minutes 2(4) The Rails Development Cycle 6(3) Finding Information in Online Documentation 9(1) Editors and IDEs 10(1) Running the Samples 11(2) Rails Environments 13(3) How Rails Connects to Databases 16(1) Rails Support Scripts 17(2) Programming Ruby 19(34) Primitive Types 19(3) Strings 22(3) Objects and Methods 25(3) Collections and Iteration 28(4) Control Flow 32(6) Defining Classes 38(6) Identity and Equality 44(2) Inheritance 46(2) Controlling Access with Access Specifiers 48(2) Raising and Handling Exceptions 50(3) Ruby Eye for the Java Guy 53(24) Extending Core Classes 53(2) Mutable and Immutable Objects 55(2) Packages and Namespaces 57(3) Deploying Code 60(4) Delegation 64(2) Polymorphism and Interfaces 66(4) Duck Typing 70(1) Mixins 71(2) Functions 73(4) Accessing Data with ActiveRecord 77(38) Getting Connected 78(3) Managing Schema Versions with Migrations 81(3) Mapping Data to Classes 84(3) Create, Read, Update, and Delete: Access Patterns 87(7) Validating Data Values 94(3) Lifecycle Callbacks 97(3) Associations and Inheritance 100(6) Transactions, Concurrency, and Performance 106(6) Conserving Resources with Connection Pooling 112(1) Resources 113(2) Coordinating Activities with ActionController 115(34) Routing Basics: From URL to Controller+Method 116(2) List and Show Actions: The R in CRUD 118(4) Create, Update, and Delete Actions 122(4) Tracking User State with Sessions 126(3) Managing Cross-Cutting Concerns with Filters and Verify 129(4) Routing in Depth 133(2) Logging, Debugging, and Benchmarking 135(13) Resources 148(1) Rendering Output with ActionView 149(32) Creating Basic .rhtml Files 150(1) Minimizing View Code with View Helpers 151(1) Writing Custom Helpers 152(2) Reuse with Layouts and Partials 154(2) Building HTML Forms 156(4) Building HTML with Markaby 160(2) Caching Pages, Actions, and Fragments 162(4) Creating Dynamic Pages with Ajax 166(7) Rendering JavaScript with RJS 173(1) Black-Box Testing with Selenium 174(4) Conclusions 178(1) Resources 179(2) Testing 181(36) Getting Started with Test::Unit 182(7) Rails Testing Conventions 189(6) Rails Extensions to Test::Unit 195(4) Integration Testing 199(2) Rails Testing Examples 201(4) Measuring Code Coverage with rcov 205(3) Testing Interactions with Mock Objects 208(4) Reducing Dependencies with Stub Objects 212(1) Advanced Considerations 213(1) Resources 214(3) Automating the Development Process 217(14) Rake Basics 218(2) Setting Rake Options: It's Just Ruby 220(2) Custom Rake Tasks: It's Just Ruby 222(2) Using Rake in Rails Applications 224(3) Continuous Integration with Cerberus 227(2) Resources 229(2) Creating and Invoking Web Services 231(36) RESTful Web Services 232(7) SOAP Web Services 239(6) YAML and XML Compared 245(4) JSON and Rails 249(1) XML Parsing 250(9) Ruby XML Output 259(1) Creating XML with Builder 260(2) Curing Your Data Headache 262(3) Resources 265(2) Security 267(22) Authentication with the acts_as_authenticated Plugin 268(2) Authorization with the Authorization Plugin 270(5) Testing Authentication and Authorization 275(3) Preventing the Top-Ten Web Security Flaws 278(9) Resources 287(2) Java to Ruby Dictionary 289(4) Bibliography 293(2) Structure of a Rails Project 295(2) Index 297
Ingenaaid | 311 pagina's | Engels
1e druk | Verschenen in 2007
Rubriek: