Recent Posts by Mikhail V. Shokhirev (a.k.a. Mike Shock)
|
Nov 4, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / POST falling back to GET method Kero! You wrote “the GET method URL”, but GET and POST (and PUT) methods may (in general) be applied to the same URL… Do you find out from the log file that “all requests to add_to_cart are using a GET method instead of POST”? |
|
Oct 14, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / jquery jQuery is not a mainstream in the Rails world, but it’s certainly worth to be mentioned as a fine alternative. |
|
Sep 29, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Change Scaffolded String to Decimal To change ‘rating’ from string to decimal you should (2) describe the changing of the column in the generated migration file: (3) run the migration by ’ rake db:migrate ‘ |
|
Sep 21, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / question about single table inheritance (As my son Lev said: “every class hierarchy should be disigned according to the certain situation”.) The example of the class tree in chapter 18 (Employee < Person, Customer < Person) expresses the idea of INHERITANCE: “ALL employess and ALL customers are people”. In this hierarchy the notion of an “employee also being a customer” can’t be expressed only by inheritance: it’s not quite natural for an Employee to be a subcluss of a Customer or vice versa. And introducing a special attribute or method to distinguish an employee form customer is certainly an ugly decision. In many situations the realization of inheritance in Rails (STI) helps us to elegantly represent a group of closely related classes with common attributes in the parent class and specific attributes in child classes. (And this kind of inheritance is NOT MULTIPLE: the parent class is always ONE.) But there are many situations where inter-relationships between the classes express the idea of ASSOCIATION, for example: SOME persons may study as students and SOME (or none) of them may work as teachers. (Persons that can work as employees and those of them that may have contracts as customers are 2 subsets of People that can overlap just partially.) Such relationships should be better expressed as polymorphic associations or, maybe, has_many :through relationship. |
|
Sep 21, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / AWS/SOAP suggestion The AWDwR book has from the 1st edition been the best and most profound tutorial and reference about Rails. And the 25th chapter about AWS & SOAP could greatly help the developers who write applications interacting with non-REST web-services. |
|
Sep 18, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Primary Keys Martin! |
|
Aug 23, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Views without actions? But, Wayde, if you (1) put in your routes.db file the route to the default controller: map.connect ’:action’, :controller => ‘pages’ (2) delete the public/index.html you’ll get the needed dynamic “Views without actions”! |
|
Aug 23, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Rails 2.0.2 with this AWDWR Book One of the most attracting features in the coming 2.2 version is the standardized internationalization support, which ia VERY imporant in our multi-nations wortld. Hope, it’ll be described in Chapter 15. |
|
Aug 19, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Views without actions? Wayde, “the best way to handle such static resources” is to make ‘em static: you may simply create the file public/about/index.html and access it by pointing the browser to http://localhost:3000/about – it works fine (at least in Firefox and Opera). But this will be a STATIC file, not a view… |
|
Aug 11, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Pag. 79 - Culture Sam, will the questions of i18n be covered in the 3rd edition? |
|
Aug 7, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / So what's new? Alan, |
|
Aug 7, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Digital Products What do you mean by “digital product support”? Please give a bit more detailed info about waht you want… |
|
Aug 7, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / page 73 db:migrate Ciaran, when you tried to run “rake db:migrate” you got the “unknown database” error because the DB, described in config/database.yml, didn’t exist. And the “db:create” task created the needed database. Before “db:create” was added to the Rails tasks, you had to create the databases manually by the DB-specific tools. |
|
Aug 7, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Text Editors for Rails (p38) I came across a newer review, in which 9 IDEs for RoR are compared: http://www.infoworld.com/article/08/07/07/28TC-ruby-ides_1.html |
|
Jul 31, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Text Editors for Rails (p38) There’s a good review of the Ruby/Rails IDE/editors at: http://www.tbray.org/ongoing/When/200x/2007/11/26/Ruby-Tool-Survey |
|
Jul 19, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Pagination The extension of RoR with plugins may be shown by the ‘will_paginate’ as an example, because pagination is a VERY common task… |
|
Jul 19, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Help with XML Stephen, can you give an example of the XML document to be generated and sent? |
|
Jun 22, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / NetBeans? I love NetBeans 6 as a fine cross-platform IDE and I often use it. All the samples from this book can certainly be easily viewed and run under NetBeans. |
|
Jun 18, 2008
Mikhail V. S...
19 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Chapter 3: Installing Rails - Keep it! I suggest a small but useful addition to the Chapter 3 “Installing Rails”: consider mentioning the Bitnami.org’s RubyStack installer. The reasons are: |
19 posts
