How would one access ActiveRecord methods inside of
Rails::Generator::NamedBase?
Thanks, Elliott
How would one access ActiveRecord methods inside of
Rails::Generator::NamedBase?
Thanks, Elliott
On Fri, Sep 25, 2009 at 4:05 PM, elliottg [email protected] 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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs