<DIV><p>Learning a new language and a new framework can be daunting. What you need is a guide to help leverage your existing knowledge and skills, and show you just what you need to know to get up and running with a new system quickly. You're already a .NET developer; we'll help you get up and r
Rails for .NET Developers
✍ Scribed by Jeff Cohen, Brian Eng
- Publisher
- Pragmatic Bookshelf
- Year
- 2008
- Tongue
- English
- Leaves
- 276
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
Learning a new language and a new framework can be daunting. What you need is a guide to help leverage your existing knowledge and skills, and show you just what you need to know to get up and running with a new system quickly. You're already a .NET developer; we'll help you get up and running as a Ruby on Rails developer on any operating system: Windows, Mac, or Linux. We start with a gentle introduction to the object-oriented Ruby language with examples and direct comparisons to C#, so you'll quickly feel at home writing Ruby code for the first time. We then get to the heart of Rails development by showing how to tackle everyday tasks in Rails compared with typical ASP.NET implementations, with a tutorial focus. You'll build a sample airline reservation system using Rails, learning essential techniques along the way. You'll come to learn the joy and power inherent in the "convention over configuration" philosophy, the natural elegance of the MVC architecture, and the essence of REST-based design as you develop applications that accommodate web browsers, handheld devices, and even XML web service clients with unparalleled ease. Along the way, you'll see good agile development practices, explore test-driven development with Rails. You'll be prepared for real-world application deployment, and we'll give you a taste of how Ruby and Rails are reshaping the Microsoft application landscape, including a look at IronRuby.
✦ Table of Contents
Contents......Page 5
Acknowledgments......Page 8
What's in This Book......Page 9
About the Environment and Version Requirements......Page 10
Online Resources......Page 11
Hello, Rails......Page 12
Why Rails?......Page 13
Culture Shock and Its Treatment......Page 15
Let's Get This Party Started......Page 17
Installing Ruby and Rails......Page 18
Connecting to a Database......Page 21
Instant Gratification---Your First Rails App......Page 22
Switching to Ruby......Page 31
Ruby vs. .NET for the Impatient......Page 32
Our First Ruby Program......Page 34
Working with String Objects......Page 35
Arrays......Page 38
Symbols......Page 44
Hashes......Page 46
Everything Is an Object......Page 48
Classes and Objects......Page 50
Loops......Page 56
Ruby Skills for the Rails Developer......Page 58
Working with Collections and Iterators......Page 59
Reusing Code with Base Classes......Page 66
Where'd My Interfaces Go?......Page 68
Code Reuse Using Modules......Page 70
Ruby Wrap-Up......Page 73
Rails in Action......Page 74
A Bird's Eye View of Rails......Page 75
Comparing Web Architectures......Page 76
Environments in Rails......Page 81
Configuring Data Access......Page 83
Receiving HTTP Requests......Page 84
Generating HTTP Responses......Page 85
MVC: Separating Responsibilities in Your Application......Page 88
Putting It to REST......Page 94
Displaying a Grid of Data in a Table......Page 100
Sorting, Filtering, and Paging Data......Page 108
Validating User Input......Page 119
Representing Relationships Between Tables......Page 124
Routing and Pretty URLs......Page 128
User Authentication......Page 133
Providing an API......Page 142
Diving Into Forms......Page 150
Using Layouts Instead of Master Pages......Page 161
Creating Partials Instead of User Controls......Page 166
First, a Little Background......Page 172
Partial-Page Updates......Page 174
Visual Effects on the Web......Page 184
Advanced Topics......Page 190
Test-Driven Development on Rails......Page 191
A First Look at Test/Unit......Page 192
Test-Driven Development with Test/Unit......Page 195
DRYing Up Tests with Setup Methods......Page 204
Providing Test Data with Fixtures......Page 206
Behavior-Driven Development with Shoulda......Page 210
Using a Rails Web Service from .NET......Page 216
Using a SOAP Web Service from Ruby......Page 227
Getting to Know RubyGems......Page 232
Using Gems in Your Rails Applications......Page 238
Learning More About rake......Page 240
Distributing Rails with Your Application......Page 245
Deployment Considerations......Page 248
Inspired by Rails......Page 252
IronRuby......Page 253
ASP.NET MVC......Page 257
Other Open Source Projects......Page 261
How About You?......Page 262
Bibliography......Page 264
B......Page 265
D......Page 266
H......Page 267
N......Page 268
R......Page 269
T......Page 270
Y......Page 271
📜 SIMILAR VOLUMES
Coming from a PHP background, this book makes it very simple to understand the Rails mentality and idioms behind the framework and Ruby itself. I really enjoyed the author's style and the way he brings up techniques. The flaw I've found is that there are small editing oversights, such as a variabl
Many Java developers are now looking at Ruby, and the Ruby on Rails web framework. If you are one of them, this book is your guide. Written by experienced developers who love both Java and Ruby, this book will show you, via detailed comparisons and commentary, how to translate your hard-earned Java
Книга Rails for PHP Developers Rails for PHP DevelopersКниги PHP Автор: Derek DeVries, Mike Naberezny Год издания: 2008 Формат: pdf Издат.:Pragmatic Bookshelf Страниц: 430 Размер: 10 Mb ISBN: 1934356042 Язык: Английский0 (голосов: 0) Оценка:As a PHP developer, you have some great tools for developin
Are you a PHP developer interested in the Ruby on Rails framework? Rails for PHP Developers kick-starts your Rails experience by guiding you through learning both Ruby and Rails from a PHP developer's perspective. Written by developers with deep experience using PHP, Ruby, and Rails, this book lever
Ruby for Rails, written by Ruby expert David Black (with a forward by David Heinemeier Hansson), helps Rails developers achieve Ruby mastery. Each chapter deepens your Ruby knowledge and shows you how it connects to Rails. You'll gain confidence working with objects and classes and learn how to leve