search for: route_resourc

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

Did you mean: route_resources
2009 May 06
1
accessing database model from generator?
...iews, model, controller, etc.. i''m not sure if this is kosher rails coding to have a generator that depends on the existence of specifc models/tables to work.. but this is just for me and i will make sure they are there whenever i use it.. any ideas? another question.. i have a "m.route_resources file_name.pluralize" line in my generator manifest.. is there anyway i can easily check if the route already exists? if i run my generator multiple times (which is gonna happen a lot since its still in the works) it keeps adding duplicate routes in my routes.rb. Thanks!! happy coding everyo...