Hi,

Thanks for the replies.

> One way I found around it is to temporarily rename the helper with the
> same name on the parent namespace before running the script/generate.

Erol how did you actually renamed it? I tried and complains about some 
dependencies.

C:\InstantRails\rails_apps\test>ruby script/generate scaffold Problem 
bug:string
      exists  app/models/
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/problems
      exists  app/views/layouts/
      exists  test/functional/
      exists  test/unit/
      exists  public/stylesheets/
      create  app/views/problems/index.html.erb
      create  app/views/problems/show.html.erb
      create  app/views/problems/new.html.erb
      create  app/views/problems/edit.html.erb
      create  app/views/layouts/problems.html.erb
      create  public/stylesheets/scaffold.css
      create  app/controllers/problems_controller.rb
      create  test/functional/problems_controller_test.rb
      create  app/helpers/problems_helper.rb
       route  map.resources :problems
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
      create    app/models/problem.rb
      create    test/unit/problem_test.rb
      create    test/fixtures/problems.yml
      create    db/migrate
      create    db/migrate/20081008061905_create_problems.rb

C:\InstantRails\rails_apps\test>ruby script/generate controller 
Admin::Problems
  The name 'Admin::ProblemsHelper' is either already used in your 
application or reserved by Ruby on Rails.
  Please choose an alternative and run this generator again.

-----------

How would you remane the helper in the above test?

Thanks!

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to