I''m not sure, if there are several alternative syntax variants for this, but we use: script/generate controller app:documents colon instead of slash here --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hi, I''ve already tried: kain-osx:careme kain$ script/generate controller api:diagnoses index show wrong constant name Api:diagnosesController kain-osx:careme kain$ script/generate controller api:Diagnoses index show wrong constant name Api:DiagnosesController kain-osx:careme kain$ script/generate controller api::diagnoses index show The name ''api'' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again. Suggestions: Apus genus Apus Il giorno 22/lug/08, alle ore 13:32, Thorsten Müller ha scritto:> > I''m not sure, if there are several alternative > syntax variants for this, but we use: > > script/generate controller app:documents > > colon instead of slash here > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> The name ''api'' is either already used in your application or > reserved by Ruby on Rails.maybe api is a keyword and can''t be used? Did you try another one? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I think this is related to this: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/138-script-generate-glitch-for-controllers-in-modules Il giorno 22/lug/08, alle ore 13:51, Thorsten Müller ha scritto:> >> The name ''api'' is either already used in your application or >> reserved by Ruby on Rails. > > maybe api is a keyword and can''t be used? > Did you try another one? > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---