seyhunak/twitter-bootstrap-rails — Issue #137: Namespacing
Author: dougc84
Created: 2012-03-08 04:21:45+00:00
State: open

Maybe I just can't figure it out, but I can't seem to get `rails g bootstrap:themed` to work with namespaced routes. I've tried, using the route Account/PublicPrivacy, the following:
`rails g bootstrap:themed Account/PublicPrivacy` (which seems the most logical)
`rails g bootstrap:themed account/public_privacies`
`rails g bootstrap:themed Account::PublicPrivacy`
`rails g bootstrap:themed ::Account::PublicPrivacy`

all producing the following error:

/Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/twitter-bootstrap-rails-2.0.3/lib/generators/bootstrap/themed/themed_generator.rb:58:in `const_get': uninitialized constant Kernel::PublicPrivacy (NameError)
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/twitter-bootstrap-rails-2.0.3/lib/generators/bootstrap/themed/themed_generator.rb:58:in `columns'
from (erb):6:in `template'
from /Users/doug/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/erb.rb:838:in `eval'
from /Users/doug/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/erb.rb:838:in `result'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:111:in `block in template'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in `call'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in `render'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `block (2 levels) in invoke!'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `open'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `block in invoke!'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/empty_directory.rb:114:in `call'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/empty_directory.rb:114:in `invoke_with_conflict_check'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/create_file.rb:61:in `invoke!'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions.rb:95:in `action'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/create_file.rb:26:in `create_file'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:110:in `template'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/twitter-bootstrap-rails-2.0.3/lib/generators/bootstrap/themed/themed_generator.rb:86:in `block in generate_erb'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/twitter-bootstrap-rails-2.0.3/lib/generators/bootstrap/themed/themed_generator.rb:85:in `each'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/twitter-bootstrap-rails-2.0.3/lib/generators/bootstrap/themed/themed_generator.rb:85:in `generate_erb'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/twitter-bootstrap-rails-2.0.3/lib/generators/bootstrap/themed/themed_generator.rb:81:in `generate_views'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/twitter-bootstrap-rails-2.0.3/lib/generators/bootstrap/themed/themed_generator.rb:19:in `copy_views'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/railties-3.2.2/lib/rails/generators.rb:170:in `invoke'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/railties-3.2.2/lib/rails/commands/generate.rb:12:in `'
from /Users/doug/.rvm/gems/ruby-1.9.3-p0@code91/gems/railties-3.2.2/lib/rails/commands.rb:29:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'