Forum: Ruby on Rails 'requests' is a bad table name

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Thomas W. (Guest)
on 2006-02-26 01:31
(Received via mailing list)
... pretty obvious, isn't it? Because you end up with a Request model
hence @request instance variables - and there you go: marvellous clash
the controller environment that is established in instance variables ...
as @request. After renaming my model to 'Inquiry' everything just worked

Stupid as I am, that insight took me some time to figure out, so I
thought I
could post a warning here.

So that would mean that these are bad model/table names:
- Request/requests
- Param/params
- Cookie/cookies
- Response/responses
- Session/sessions (watch out you conference management coders ;-)
- Header/headers

I couldn't find any hints about reserved model names in the Rails book,
only now found this wiki page:

Hope that helps others from struggling - and please correct if I am

This topic is locked and can not be replied to.