Still have no idea why "undefined method `-' for "translation missing: ru.date.order":String" happens. Any ideas?
On Jan 14, 10:53 pm, Vadim Lazuko <[email protected]> wrote: > Thanks! > "hobo g resource" did generate the following: > create app/controllers/recipes_controller.rb > invoke test_unit > create test/functional/recipes_controller_test.rb > create app/models/recipe.rb > invoke test_unit > create test/unit/recipe_test.rb > create test/fixtures/recipes.yml > insert app/models/recipe.rb > > I don't see view generated, maybe I'm missing some idea of the > generation, anyway... > > I then tried to navigate to /recipes/, then /recipes/new to create a > new entry and received the following error: > > " > NoMethodError in Recipes#new > > Showing controller: recipes; dryml-tag: new-page where line # raised: > > undefined method `-' for "translation missing: ru.date.order":String > " > > I've set up my application to use 'ru' locale by default and this > could be the reason. Where and what should I change now?... > > Thank you all for your help! > > Vadim > > On Jan 12, 6:41 pm, Domizio Demichelis <[email protected]> wrote: > > > > > > > > > Vladim, > > rails 3 changed a lot the way generators are used, and hobo 1.3 just follows > > the convention. In your case you have to use: > > > $ hobo g resource ... > > > ciao > > dd > > > On Wed, Jan 12, 2011 at 11:11 AM, Vadim Lazuko <[email protected]> wrote: > > > Hello > > > > I'm trying to build my first app with hobo and receive the following > > > error when generating first model (hobo 1.3.0 pre25 @win32). > > > > "... > > > $ ./script/generate hobo_model_resource recipe title:string > > > description:text created_on:datetime modified_on:datetime > > > visible:boolean viewed:integer > > > > Couldn't find 'hobo_model_resource' generator > > > ..." > > > > Initially it was even unable to locate 'script/generate' module to > > > launch ('script' folder of my app contained only 'rails') and I tried > > > to copy the one from `Ruby192\lib\ruby\gems\1.9.1\gems > > > \hobo-1.0.2\script\generate`, but now receive the error message > > > mentioned above. > > > I've checked and `Ruby192\lib\ruby\gems\1.9.1\gems > > > \hobo-1.0.2\rails_generators` contains `hobo_model_resource` folder > > > and files there. > > > > It seems that something is misconfigured at my installation, but I'm > > > unable to figure out what, please help. Thanks. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Hobo Users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<hobousers%2Bunsubscribe@googlegroups > > > .com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
