Just a quick note that I had to make the following change after installing 1.0.2 as rails plugins to get the resource generator working: Index: rspec_scaffold_generator.rb ==================================================================--- rspec_scaffold_generator.rb (revision 2022) +++ rspec_scaffold_generator.rb (working copy) @@ -1,4 +1,4 @@ -class RspecResourceGenerator < Rails::Generator::NamedBase +class RspecScaffoldGenerator < Rails::Generator::NamedBase default_options :skip_migration => false attr_reader :controller_name,
So did I. On 5/24/07, James Hughes <hughes.james at gmail.com> wrote:> Just a quick note that I had to make the following change after > installing 1.0.2 as rails plugins to get the resource generator > working: > > Index: rspec_scaffold_generator.rb > ==================================================================> --- rspec_scaffold_generator.rb (revision 2022) > +++ rspec_scaffold_generator.rb (working copy) > @@ -1,4 +1,4 @@ > -class RspecResourceGenerator < Rails::Generator::NamedBase > +class RspecScaffoldGenerator < Rails::Generator::NamedBase > default_options :skip_migration => false > > attr_reader :controller_name, > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- -J. Method
This is already fixed in trunk and will be released w/ 1.0.3 later today. On 5/24/07, Joseph Method <tristil at gmail.com> wrote:> So did I. > > On 5/24/07, James Hughes <hughes.james at gmail.com> wrote: > > Just a quick note that I had to make the following change after > > installing 1.0.2 as rails plugins to get the resource generator > > working: > > > > Index: rspec_scaffold_generator.rb > > ==================================================================> > --- rspec_scaffold_generator.rb (revision 2022) > > +++ rspec_scaffold_generator.rb (working copy) > > @@ -1,4 +1,4 @@ > > -class RspecResourceGenerator < Rails::Generator::NamedBase > > +class RspecScaffoldGenerator < Rails::Generator::NamedBase > > default_options :skip_migration => false > > > > attr_reader :controller_name, > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > -- > -J. Method > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Reasonably Related Threads
- rspec on rails update question
- [PATCH] AR migration generator includes model's modules in table name. [#4230]
- Another attempt for a succinct model validation DSL
- Problem with creating custom generator
- `load_missing_constant': uninitialized constant Rails::Generator (NameError)