Rails Cookbook - Fresh off the Press
Posted on January 30, 2007
Leave a Comment

Sweeeeeeeeeeeeeeet.
I haven’t gone through it besides flipping to a few pages but I can say it is definitely packed with some Rails goodness, REST and everything. Though I’m no super 31337 ruby ninja of any kind, I have to say its great to FINALLY have a book or some material that goes through more detailed and complex things. I mean, you can only go through so many tutorials that explain what scaffolding is or how to make a to-do list.
I especially love how clear the examples are and how the book is structured (The main reason I love O’Reilly books in general). I’ll be sure to do a more thorough review on it once I get into copying integrating many examples into SugarStats
.
Posted on January 30, 2007
Filed Under Analytics, Apple, Books Reviews, Business, Business Books, CSS/XHTML, Daily Thoughts, Design, Entertainment, Hosting, Marketing, Productivity, Ranting, Ruby on Rails, SEO, Security, Startup, SugarStats, Tech, Web
RoR, Django, TurboGears, Symfony etc Framework Speed Tests
Posted on January 30, 2007
3 Comments
Alrond has put up a great little speed test comparison between a few different frameworks with very interesting results. I’ll have to say that from these tests Django is totally whopping some ass. In every area; CPU, Memory and Requests Per Second.
Rails didn’t fair TOO bad relatively speaking. But its interesting how frameworks can differ in performance. For example, Django comes out on top by 200-300% in some cases, Rails and Turbo gears comes out in a 2nd place tie. But TurboGears and Django are both written in Python yet Django is rocking TurboGears’ and Rails’ socks by 200-300%.
I am though from these tests disappointed in the performance between Rails 1.2.1 and 1.1.6 (Especially since we just upgrade SugarStats to 1.2.1…). It seems to be specifically to errors/changes between 1.1.6 and 1.2.1, but in some of his tests Rails 1.1.6 beat it out by a good margin.
Take a look for yourself: The performance test of 6 leading frameworks
.
Posted on January 30, 2007
Filed Under Analytics, Art & Design, CSS/XHTML, Daily Thoughts, Design, Entertainment, General, Hardware, Hosting, PHP/MySQL, Quotes, Ranting, Ruby on Rails, Security, Tech, Web
Deprecation in Rails 1.2.0
Posted on January 28, 2007
Leave a Comment
I found this list on I.NFECTIO.US, something I think we should all keep in mind. These damn end_form_tag’s are going to be the end of me
Bah.
Deprecations in Rails 1.2
- Passing method reference symbols to ActionController::Base#url_for. Use named routes instead.
- Calling ActionController::Base#render with string arguments. Ex: render(‘weblog/show’)
- Using model, service, observer, depend_on and dependencies_on in your controller. Rails handles most dependency issues automatically now.
- Calling keep_flash instead of flash.keep
- Pagination will be extracted out into a plugin in Rails 2.0
- Auto complete will be extracted out into a plugin in Rails 2.0
- In place editing will be extracted out into a plugin in Rails 2.0
- start_form_tag and end_form_tag have been deprecated. form_tag still works the same, but there is no wrapper method for the . The preferred method is to use the new block form of form_tag. Ex: form_tag :action => :create do … end
- The number helper method human_size is deprecated in favor of number_to_human_size
- link_to_image and link_image_to helpers are deprecated in favor of wrapping an image_tag in a link_to. Ex: link_to(image_tag(…), :action => :new)
- Using
cookies, @flash, @headers, @params, @request, @response or @session has been deprecated. Use the method form without the. Ex: response.content_type - Calling content_for :layout || :symbol. Use yield || yield :symbol instead
- Calling image_tag without an extension is deprecated. Auto appending .png will be removed. Don’t be lazy.
- Passing :post as a link_to modifier to force a POST request via a link tag. Use :method => :post instead.
- push_with_attributes and concat_with_attributes on a HABTM association are deprecated. Use has_many :through with a join model instead.
- find_all and find_first on a has_many association. Use find(:all) and find(:first)
- :dependent => true on a has_many association. Use :dependent => :destroy
- :exclusively_dependent => true on a has_many association. Use :dependent => :delete_all
- When using :class_name on a belongs_to association, the foreign_key name will be inferred from the association rather than the :class_name. Therefor, use :foreign_key if using :class_name and they differ.
- A welcome deprecation, internally, the quote method of ActiveRecord has been renamed. After Rails 2.0 you will be able to use a column named quote again.
- Calling count on a model with string arguments for conditions and joins. Use an options hash instead. Ex: Model.count(:conditions => ’…’)
- Validations helper method add_on_boundary_breaking in favor of validates_length_of
- Hash extension create_from_xml has been renamed to from_xml
- All the old rake tasks have been moved to namespaced task, old ones are deprected. Ex: rake db:migrate instead of rake migrate
.
Posted on January 28, 2007
Filed Under CSS/XHTML, Daily Thoughts, Design, Quotes, Ranting, Ruby on Rails, Tech, Web
Quote: Having a passion for what you do
Posted on January 25, 2007
Leave a Comment
“You have to love what you do. Without passion, great success is hard to come by. An entrepreneur will have tough times if he or she isn’t passionate about what they’re doing. People who love what they’re doing don’t give up. It’s never even a consideration. It’s a pretty simple formula.”
– Donald Trump
.
Posted on January 25, 2007
Filed Under Business, Daily Thoughts, Entertainment, General, Productivity, Quotes, Ranting, Startup
Logo’s with a healthy dose of Web 2.0
Posted on January 21, 2007
1 Comment
This is great, I found this off the fingertip blog. My fav must best the Quaker Oats logo; “2.Oats”. Hah.
.
Posted on January 21, 2007
Filed Under Art & Design, Business, CSS/XHTML, Daily Thoughts, Design, Entertainment, General, Marketing, SEO, Tech, Web

