Forum: Ruby on Rails Table called applications - causes stack overflow?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris Sendall (Guest)
on 2005-12-21 10:50
(Received via mailing list)
Having worked through Four Days on Rails and the book Agile Web
Development
with Rails I decided it was time to start a live project. I have an
existing
application with MySQL database, so I modified the schema to use Rails
standard column names. The main table was named 'applications'.

ruby script/generate scaffold Application Admin results a stack overflow

SystemStackError in Admin#Index
stack level too deep

Is there a list of table names somewhere which are not permitted please,
or is
Application a ?

Chris Sendall
University of Cambridge, UK

rails -v
Rails 0.14.4

Part of stack trace from web page
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:178:in `require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:178:in `require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:134:in `load_file!'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:97:in `const_load!'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:80:in `each'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:80:in `const_load!'
...
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:72:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:189:in `const_get'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/dependencies.
rb:189:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/core_ext/stri
ng/../../inflector.rb:149:in `module_eval'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/core_ext/stri
ng/../../inflector.rb:149:in `module_eval'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/core_ext/stri
ng/../../inflector.rb:149:in `constantize'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/core_ext/stri
ng/inflections.rb:52:in `constantize'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.1/lib/action_controller/pagination.r
b:186:in `paginator_and_collection_for'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.1/lib/action_controller/pagination.r
b:124:in `paginate'
#{RAILS_ROOT}/app/controllers/admin_controller.rb:8:in `list'
#{RAILS_ROOT}/app/controllers/admin_controller.rb:3:in `index'
Norman Timmler (Guest)
on 2005-12-21 11:02
(Received via mailing list)
Am Mittwoch, den 21.12.2005, 09:48 +0000 schrieb Chris Sendall:
> Is there a list of table names somewhere which are not permitted please, or is
> Application a ?

Have a look here:
http://wiki.rubyonrails.com/rails/pages/ReservedWords

'Application' is not listed, but should probably be added.
This topic is locked and can not be replied to.