aktxyz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-06 04:55 UTC
emit scaffold controllers ?
I would like to emit (thru eval) some controller code via a plugin. Basically the plugin will get the list of tables, and emit a controller with scaffold: for each table (model). Is it possible to do that somehow ? I can emit the proper code in a plugin, but the rails logic seems to only look for controller classes in the controller directory. - Thanks, Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---