search for: lookupcontroller

Displaying 1 result from an estimated 1 matches for "lookupcontroller".

Did you mean: lookupscontroller
2008 Jul 29
0
handling multiple lookup tables in rails
...a ruby/rails neophyte but I''ve read Agile Web Devel with Rails, Rails Recipes, Adv Rails Recipes so I think I understand the basics but this has me stumped. The models/views/controllers for all these lookup tables are identical. I would think there would be a way to have 1 Controller (e.g. LookupController) 1 set of views (in directory /lookups) and a model for each lookup table. Then the Lookup controller would (possibly with a before_filter) figure out which lookuptable I want to edit (possibly with a route such as (lookup/:model) where :model would be the name of the lookup table I want to edit....