search for: directory_id

Displaying 2 results from an estimated 2 matches for "directory_id".

2008 Jun 24
10
Question on passing arguments inside a view.
...ial the other fp_directory Editorial Model def self.date_range(from,to) find(:all, :conditions => {:expiration_date => from..to }, :order => ''expiration_date DESC'') end Directory Model def self.full_path(directoryid) find(:all, :conditions => { :j15c_directory_id => "#{directory_id}" }) end I have a view that displays my form and submits output to display controller all works until I add in one more piece. Editorial Controller def display @get_path = Directory.full_path(directory_id) end Now my results are working fine until I add in th...
2004 Nov 19
18
SingleTableInheritance Considered Harmful
Here''s the text of a quick note I''ve added to the Inheritance wiki page. I''m actually proposing that it would be a good idea to drop automatic single table inheritance and force people to declare it explicitly. There are two reasons for this: 1. Implicitly doing it unnecessarially limits your use of inheritance where you really need it: in your object-oriented