Displaying 2 results from an estimated 2 matches for "find_by_condit".
2006 Feb 20
5
find(:all) vs find_all
I started with Ruby on Rails in the 0.13.x period, so I''m sure I
missed out on a lot of history. There''s probably some good
explanation for something I''ve been wondering about, but I haven''t
seen it written down anywhere. Maybe someone can clue me in.
I''ve always felt that one of the uglier APIs was the
ActiveRecord::find() method. I call
2006 Jan 11
15
How to use custom url formats?
I''m new to Rails and am trying to use a field called "code" instead of
"id" in my URLs. For example, assuming I''ve got a database of
motorcycles makes where the codes are "Honda", "Yamaha", "Suzuki", and
"Kawasaki", etc. To show the info about Honda I want to use this url:
http://www.mysite.com/makes/honda/