$ ruby script/generate model Player -p The name ''Player'' is reserved by Ruby on Rails. Please choose an alternative and run this generator again. Suggestions: ... This wasn''t a reserved word in 0.13.1 and I don''t think it''s mentioned in the changelogs, unless I missed it... Is there a list of reserved words somewhere I could consult? This has rather big consequences for my app as all my models, db columns, views partials views, mail stuff uses "player(s)". I will need change all of that. Thanks! Jeroen
Jeroen Houben wrote: ..> The name ''Player'' is reserved by Ruby on Rails...> Is there a list of reserved words somewhere I could consult?Whoops there seems to be one after all: http://wiki.rubyonrails.com/rails/pages/ReservedWords This does not however contain the word "player" Jeroen
There seems to be a bug in the generator code that sometimes claims everything is a reserved word. RC2 has the bug fixed though. Check the bug tracker for a patch. Cheers, Dan On 11/4/05, Jeroen Houben <jeroen-aHd7JyfBtzlmR6Xm/wNWPw@public.gmane.org> wrote:> Jeroen Houben wrote: > .. > > The name ''Player'' is reserved by Ruby on Rails. > .. > > Is there a list of reserved words somewhere I could consult? > > Whoops there seems to be one after all: > http://wiki.rubyonrails.com/rails/pages/ReservedWords > > This does not however contain the word "player" > > Jeroen > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Dan Webb http://www.danwebb.net
Dan Webb wrote:> There seems to be a bug in the generator code that sometimes claims > everything is a reserved word. RC2 has the bug fixed though.But I am running RC2, RC2 == 0.14.1 right? Or could I accidently still be using the scripts from 0.13.1 Jeroen
Jeroen Houben wrote:> Dan Webb wrote: > >> There seems to be a bug in the generator code that sometimes claims >> everything is a reserved word. RC2 has the bug fixed though. > > > But I am running RC2, RC2 == 0.14.1 right? > Or could I accidently still be using the scripts from 0.13.1I''m definitely running script/generate with Rails 0.14.1, are you sure this is a big? I think Player really is a reserved word (see below) I can generate a model called Playerx, just not Player. you wouldn''t expect it to be a reserved word, but hey... Jeroen $ ruby script/generate model Player -p The name ''Player'' is reserved by Ruby on Rails. Please choose an alternative and run this generator again. Suggestions: Sense 1 player, participant -- (a person who participates in or is skilled at some game) => contestant -- (a person who participates in competitions) Sense 2 musician, instrumentalist, player -- (someone who plays a musical instrument (as a profession)) => performer, performing artist -- (an entertainer who performs a dramatic or musical work for an audience) Sense 3 actor, histrion, player, thespian, role player -- (a theatrical performer) => performer, performing artist -- (an entertainer who performs a dramatic or musical work for an audience) Sense 4 player -- (an important participant (as in a business deal); "he was a major player in setting up the corporation") => participant -- (someone who takes part in an activity) Cheers, Jeroen