Mittwoch, 9. September 2009

Simplifying your Ruby on Rails code: Presenter pattern, cells plugin


Today we will talk about code organization in Ruby on Rails projects. As everybody knows, Ruby on Rails is a conventional framework, which means you should follow framework architects’ decisions (put your controllers inside app/controllers, move all your logic into models, etc.) But there are many open questions around those conventions. In this write-up I will try to summarize my personal experience and show how I usually solve these problems.


Quelle: http://feedproxy.google.com/~r/kpumuk/~3/cQi-1uJhFqg/

Ruby on Rails production log statistics generator. by Kazuyoshi Tlacaelel.

Plog

Ruby on Rails production log statistics generator by Kazuyoshi Tlacaelel.


via github.com

Montag, 7. September 2009

timed_fragment_cache

Installation:

git clone git://github.com/kshaikh/timed_fragment_cache.git
or
script/plugin install git://github.com/kshaikh/timed_fragment_cache.git

In your controller:
 
when_fragment_expired 'some_posts', 1.hour.from_now do
    @posts = Post.find( :all )
end 
 
In your view:
 
<%- cache 'some_posts' -%>
    <%- @posts.each do |post| -%>
      <%= @post.title %>
    <%- end -%>
<%- end -%>

Url: http://github.com/kshaikh/timed_fragment_cache/tree/master#

MetaSkills.net The Ultimate OS X Snow Leopard Stack For Rails Development - x86_64, MacPorts, Ruby 1.8/1.9, SQL Server & More

Sonntag, 6. September 2009

Computerworld > Opinion: Why Ruby on Rails is a game changer

Ruby adds speed and boost developer productivity

via computerworld.co.nz

Riding Rails: What's New in Edge Rails: The Security Edition


richtext :: Snow Leopard Ruby Development Environment Checklist / Gotchas

"I’m probably a bit late to the party with this article, but I’m a bit of a chicken so I thought I’d wait for the dust to settle a bit before installing Snow Leopard on the MacBook Pro I use for ..."

 Snow Leopard Ruby Development Environment Checklist / Gotchas