Displaying 1 result from an estimated 1 matches for "link_to_ord".
Did you mean:
link_to_add
2006 Feb 20
0
Review of Ruby For Rails Chapter 3
...e
Rails application, the Ruby Change Request site (http://www.rcrchive.net
<http://www.rcrchive.net/> ). There he points out that the site authors
were able to achieve easy sorting capabilities in the displayed table by
adding a short, relatively simple Ruby function. He then writes a
"link_to_order" method on top of the normal Rails "link_to" method as an
example of an application helper for the view.
Moving to adding functionality to models, the author starts by overriding
the "before_create" method in a model class. This is a classic example of
the Template M...