search for: namedbase

Displaying 6 results from an estimated 6 matches for "namedbase".

Did you mean: name_base
2007 May 24
2
Missing RspecScaffoldGenerator
...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,
2010 Mar 20
1
[PATCH] AR migration generator includes model's modules in table name. [#4230]
Hello! Could someone review the patch attached to [1] and provide feedback? Briefly, it targets rails 3, and fixes "rails g model admin/post". The generated migration creates a "admin_posts" table while the model expects a table simply named "posts". With the patch, the migration creates "posts". Thank you! --phil-- [1]
2008 Apr 15
0
Problem with creating custom generator
...* Home directory: C:\Documents and Settings\hwagner * Generator: blog_scaffold * Directory exists: C:\Documents and Settings\hwagner\.rails\generators\blog_scaffold * USAGE file is there (no extension) * blog_scaffold_generator.rb exists with: class BlogScaffoldGenerator < Rails::Generator::NamedBase When I run: ruby script/generate blog_scaffold I get: Couldn''t find ''blog_scaffold'' generator I''m stumped, any ideas? Henry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "...
2009 May 12
1
`load_missing_constant': uninitialized constant Rails::Gener
...''/generators/media_module_generator'') media_mod_generatore = MediaModuleGenerator.new media_mod_generatore::manifest() [/code] and here''s my code in vendor/plugins/media_module/generators/media_module_generator.rb: [code] class MediaModuleGenerator < Rails::Generator::NamedBase def manifest record do |m| m.file "media_controller.rb", "app/controllers/media_controller.rb" m.file "media.rb", "app/models/media.rb" end end end [/code] When I restart my server I get this: `load_missing_constant'': uniniti...
2009 May 12
0
`load_missing_constant': uninitialized constant Rails::Generator (NameError)
...#39;'/generators/media_module_generator'') media_mod_generatore = MediaModuleGenerator.new media_mod_generatore::manifest() [/code] and here''s my code in vendor/plugins/media_module/generators/media_module_generator.rb: [code] class MediaModuleGenerator < Rails::Generator::NamedBase def manifest record do |m| m.file "media_controller.rb", "app/controllers/media_controller.rb" m.file "media.rb", "app/models/media.rb" end end end [/code] When I restart my server I get this: `load_missing_constant'': uninit...
2006 Apr 25
3
Creating your own generators
So I''m interested in creating an application specific generator. The script/generate command tells me that all I have to do is put a generator in my rails_root/generators: > 2. Unzip to directory /Users/{username}/.rails/generators/login > to use the generator with all your Rails apps > or to {app_root}/generators/login > to use with this app only. So I