Hi, I have a problem using the scaffolding generator. No matter what name I try, Rails always complains that the name is reserverd. E.g.: ernst@devel:/var/rails/fm5$ script/generate scaffold P4ge exists app/controllers/ exists app/helpers/ create app/views/p4ges exists test/functional/ dependency model The name ''P4ge'' is reserved by Ruby on Rails. Please choose an alternative and run this generator again. No happy. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
This happened to me once when I had an observer set in environment.rb. Try clearing all observers and trying again. Vish On 2/26/07, Ernst Beiglböck <ernst.beiglboeck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > I have a problem using the scaffolding generator. No matter what name > I try, Rails always complains that the name is reserverd. E.g.: > > ernst@devel:/var/rails/fm5$ script/generate scaffold P4ge > exists app/controllers/ > exists app/helpers/ > create app/views/p4ges > exists test/functional/ > dependency model > The name ''P4ge'' is reserved by Ruby on Rails. > Please choose an alternative and run this generator again. > > No happy. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 definitely have no observer, even don''t really know what that is ;) On 2/26/07, Vishnu Gopal <g.vishnu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > This happened to me once when I had an observer set in environment.rb. > Try clearing all observers and trying again. > > Vish > > On 2/26/07, Ernst Beiglböck <ernst.beiglboeck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi, > > I have a problem using the scaffolding generator. No matter what name > > I try, Rails always complains that the name is reserverd. E.g.: > > > > ernst@devel:/var/rails/fm5$ script/generate scaffold P4ge > > exists app/controllers/ > > exists app/helpers/ > > create app/views/p4ges > > exists test/functional/ > > dependency model > > The name ''P4ge'' is reserved by Ruby on Rails. > > Please choose an alternative and run this generator again. > > > > No happy. > > > > > > > > > > >-- wer viel lest ist viel gebildet. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
OK, the problem was that I used the constant Page/P4ge/whatever in my routes.rb. Had to comment it out, otherwise Rails thought it is a reserved word. On 2/26/07, Ernst Beiglböck <ernst.beiglboeck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I definitely have no observer, even don''t really know what that is ;) > > On 2/26/07, Vishnu Gopal <g.vishnu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > This happened to me once when I had an observer set in environment.rb. > > Try clearing all observers and trying again. > > > > Vish > > > > On 2/26/07, Ernst Beiglböck <ernst.beiglboeck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi, > > > I have a problem using the scaffolding generator. No matter what name > > > I try, Rails always complains that the name is reserverd. E.g.: > > > > > > ernst@devel:/var/rails/fm5$ script/generate scaffold P4ge > > > exists app/controllers/ > > > exists app/helpers/ > > > create app/views/p4ges > > > exists test/functional/ > > > dependency model > > > The name ''P4ge'' is reserved by Ruby on Rails. > > > Please choose an alternative and run this generator again. > > > > > > No happy. > > > > > > > > > > > > > > > > > > > > > -- > wer viel lest ist viel gebildet. >-- wer viel lest ist viel gebildet. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---