Hey Colin,
In my generator I am creating some migrations, amongst other things,
and then dropping into the shell to run rake db:migrate. After that, I
want to seed the new table with a single record.
What''s the best way to do that from the generator?
Thanks, Elliott
On Sep 25, 7:54 pm, Colin Curtin
<colin.t.cur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> On Fri, Sep 25, 2009 at 4:05 PM, elliottg
<x...-+PdThUrr9bOXUBVsB0ZYTw@public.gmane.org> wrote:
> > How would one access ActiveRecord methods inside of
> > Rails::Generator::NamedBase?
>
> What kind of methods are you hoping to access? Or really, what are you
> trying to accomplish?
>
> Colin