yeah i did with Articles !

my bad :P


On 9 March 2013 00:14, Vivek Sampara <[email protected]> wrote:

> I think new is a reserved keyword which might cause this issue. can you
> try with simpler term such as Feed or bulletin ?
>
>
> On Thu, Mar 7, 2013 at 7:47 PM, henrique matias <[email protected]>wrote:
>
>> Hello Folks,  good afternoon.
>>
>> Just runned into this error, perhaps creating a "News" section might have
>> some problems with "new" reserver word ?
>>
>> check this :
>>
>> $ hobo generate resource new language:string title:string body:text
>> status:string
>>
>>       create  app/controllers/news_controller.rb
>>       create  app/helpers/news_helper.rb
>>       invoke  test_unit
>>       create    test/unit/helpers/news_helper_test.rb
>>       invoke  test_unit
>>       create    test/functional/news_controller_test.rb
>>       create  app/models/new.rb
>>       invoke  test_unit
>>       create    test/unit/new_test.rb
>>       create    test/fixtures/news.yml
>>         gsub  app/models/new.rb
>>       insert  app/models/new.rb
>>
>> $ hobo generate migration
>>
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/inflector/methods.rb:230:in
>> `block in constantize': uninitialized constant News (NameError)
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/inflector/methods.rb:229:in
>> `each'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/inflector/methods.rb:229:in
>> `constantize'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/core_ext/string/inflections.rb:54:in
>> `constantize'
>> from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/controller/model.rb:95:in
>> `model'
>>  from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/controller/model.rb:42:in
>> `included'
>> from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/extensions/action_controller/hobo_methods.rb:9:in
>> `include'
>>  from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/extensions/action_controller/hobo_methods.rb:9:in
>> `hobo_model_controller'
>> from
>> ~/workspace/git/hires/dg/dg_hobo/app/controllers/news_controller.rb:3:in
>> `<class:NewsController>'
>>  from
>> ~/workspace/git/hires/dg/dg_hobo/app/controllers/news_controller.rb:1:in
>> `<top (required)>'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/inflector/methods.rb:230:in
>> `block in constantize'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/inflector/methods.rb:229:in
>> `each'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/inflector/methods.rb:229:in
>> `constantize'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/core_ext/string/inflections.rb:54:in
>> `constantize'
>> from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/controller/model.rb:69:in
>> `block (2 levels) in all_controllers'
>>  from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/controller/model.rb:65:in
>> `each'
>> from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/controller/model.rb:65:in
>> `block in all_controllers'
>>  from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/controller/model.rb:62:in
>> `each'
>> from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/controller/model.rb:62:in
>> `all_controllers'
>>  from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/generators/hobo/routes/routes_generator.rb:32:in
>> `controllers_for'
>> from (erb):11:in `block in template'
>>  from (erb):6:in `each'
>> from (erb):6:in `template'
>> from ~/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/erb.rb:753:in `eval'
>>  from ~/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/erb.rb:753:in `result'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/file_manipulation.rb:117:in
>> `block in template'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/create_file.rb:54:in
>> `call'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/create_file.rb:54:in
>> `render'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/create_file.rb:47:in
>> `identical?'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/create_file.rb:73:in
>> `on_conflict_behavior'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/empty_directory.rb:130:in
>> `invoke_with_conflict_check'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/create_file.rb:61:in
>> `invoke!'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions.rb:95:in
>> `action'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/create_file.rb:26:in
>> `create_file'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/actions/file_manipulation.rb:116:in
>> `template'
>> from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/generators/hobo/routes/routes_generator.rb:21:in
>> `generate_routes'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/task.rb:27:in
>> `run'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/invocation.rb:120:in
>> `invoke_task'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/invocation.rb:126:in
>> `block in invoke_all'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/invocation.rb:126:in
>> `each'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/invocation.rb:126:in
>> `map'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/invocation.rb:126:in
>> `invoke_all'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/group.rb:238:in
>> `dispatch'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/thor-0.17.0/lib/thor/base.rb:434:in
>> `start'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/generators.rb:171:in
>> `invoke'
>> from
>> ~/.rvm/gems/ruby-1.9.2-p320/gems/hobo-2.0.0.pre10/lib/hobo/engine.rb:69:in
>> `block (2 levels) in <class:Engine>'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:429:in
>> `_run__4374619174461222243__prepare__4173464303235511838__callbacks'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in
>> `__run_callback'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in
>> `_run_prepare_callbacks'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in
>> `run_callbacks'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/actionpack-3.2.12/lib/action_dispatch/middleware/reloader.rb:74:in
>> `prepare!'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/actionpack-3.2.12/lib/action_dispatch/middleware/reloader.rb:48:in
>> `prepare!'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/application/finisher.rb:47:in
>> `block in <module:Finisher>'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/initializable.rb:30:in
>> `instance_exec'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/initializable.rb:30:in
>> `run'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/initializable.rb:55:in
>> `block in run_initializers'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/initializable.rb:54:in
>> `each'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/initializable.rb:54:in
>> `run_initializers'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/application.rb:136:in
>> `initialize!'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in
>> `method_missing'
>> from ~/workspace/git/hires/dg/dg_hobo/config/environment.rb:5:in `<top
>> (required)>'
>>  from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/application.rb:103:in
>> `require_environment!'
>> from 
>> ~/.rvm/gems/ruby-1.9.2-p320@global/gems/railties-3.2.12/lib/rails/commands.rb:25:in
>> `<top (required)>'
>>  from script/rails:6:in `require'
>> from script/rails:6:in `<main>'
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Hobo Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/hobousers?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/hobousers?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to