Agile Web Development with Rails phần 5 pptx
... :number => "123 45& quot;) paul = Account.create(:balance => 200, :number => " ;54 321") File 16 Account.transaction do paul.deposit( 350 ) peter.withdraw( 350 ) end When we run this, ... id | number | balance | + + + + | 5 | 123 45 | 90.00 | | 6 | 54 321 | 210.00 | + + + + Now let’s get radical. If we start again but this time try to transfer $ 350 , we’ll run Pete...
Ngày tải lên: 07/08/2014, 00:22
... some Rails applications for yourself (which should be in the next 45 minutes or so ). That’s what this book is all about. 1.1 Rails Is Agile The title of this book is Agile Web Development with Rails. ... Deployment and Production, on page 656 . The page http://wiki.rubyonrails.com /rails/ pages/RailsWebHosts on the Rails wiki lists some Rails- friendly ISPs. Now that we ha...
Ngày tải lên: 17/02/2014, 08:20
... quickly. 10. No XML! 1.1 Rails Is Agile The title of this book is Agile Web Development with Rails. Youmaybe surprised, then, to discover that we don’t have explicit sections on applying agile practices ... producing web applications, they went back to writing monolithic programs that inter- Report erratum RAILS IS AGILE 3 Dave’s Top 10 Reasons To Like Rails 1. It bring...
Ngày tải lên: 07/08/2014, 00:22
Agile Web Development with Rails phần 2 docx
... Rails applications must have cookies enabled in their browsers.) Rather than have developers worry about protocols and cookies, Rails pro- vides a simple abstraction. Within the controller, Rails ... sys- tem, but unless you’re using Rails to work with legacy schemas that you can’t change, we recommend you just stick with using the name id. It’s all very well coming up with the...
Ngày tải lên: 07/08/2014, 00:22
Agile Web Development with Rails phần 3 pps
... etter software faster u sing agile practices. With an extensive back- ground in J2EE and test-driven development, he’s currently putting his experience to work on Rails projects. Chapter 12 Task ... ship things with the same style packaging and then move on to items with different packaging. So, our application shouldn’t enforce just one way of working. After chatting for a while,...
Ngày tải lên: 07/08/2014, 00:22
Agile Web Development with Rails phần 4 ppsx
... 6769.00 Product#search 8 .55 52 .23 5. 79 100000 0.06 0.06 Fixnum#+ 8. 15 57. 75 5 .52 100000 0.06 0.06 Math.sqrt 7.42 62.77 5. 02 100000 0. 05 0. 05 IO#gets 0.04 68. 95 0.03 10 3.00 50 .00 Product#find OK, ... controllers, mailers, models, scaffolds, and web services. You can also download addi- tional generator modules from the Rails web site. 1 1 http://wiki.rubyonrails.co...
Ngày tải lên: 07/08/2014, 00:22
Agile Web Development with Rails phần 6 docx
... is natural on the web, where static content is stored within folders (directories), which themselves may be within folders, and so on. Report erratum ADVANCED ATTRIBUTES 272 15. 6 Advanced Attributes Back ... describe Action Controller in the context of Rails. Let’s start by looking at the overall context of a Rails application. 16.1 Context and Dependencies Rails handles many configura...
Ngày tải lên: 07/08/2014, 00:22
Agile Web Development with Rails phần 7 pdf
... %> CAN$2 35. <%= number_to_percentage(66.66666) %> 66.667% <%= number_to_percentage(66.66666, :precision => 1) %> 66.7% <%= number_to_phone(21 255 51212) %> 212 -55 5-1212 Report ... time_ago_in_words(Time.local(2004, 12, 25) ) %> 116 days <%= human_size(123_ 456 ) %> 120.6 KB <%= number_to_currency(123. 45) %> $123. 45 <%= number_to_currency(234 .5...
Ngày tải lên: 07/08/2014, 00:22
Agile Web Development with Rails phần 8 doc
... parameter. 5 This process isshowninFigure18.3, on the next page. Let’s see what happens on the server. 127.0.0.1 - - [21/Apr/20 05: 19 :55 :26] "POST /example/say_hello HTTP/1.1" 200 51 5 For ... of this chapter and the Action Web Service code, is an ana- lyst/developer originally from the city of Cape Town, South Africa. Chapter 20 Web Services on Rails With the Depot...
Ngày tải lên: 07/08/2014, 00:22
Agile Web Development with Rails phần 9 pdf
... 300 56 .6 298 608 Waiting: 246 300 56 .6 298 608 Total: 246 300 56 .6 298 608 Percentage of the requests served within a certain time (ms) 50 % 298 66% 307 75% 312 80% 317 90% 340 95% 446 98% 51 2 99% ... online) across its two application /web servers and the single ded- icated database server (all dual 3GHz Xeons with 2GB RAM). Each Apache 1.3.x web server runs 25 FastCGI proce...
Ngày tải lên: 07/08/2014, 00:22