Sunday, January 20, 2008

The ID field, and its relationship to show/edit from lists

I had to make sure that tables had an ID for them to automatically conform to the ROR convention. One thing that I didn't realize until now is that ID must be all in lowercase in the database for it to work. Once it is all in lower case, the show and edit links work perfectly.

I practiced with the companies table first, when I would try it out before making the ID and id, the show and edit links from the companies table always failed to work. After changing them, the show and edit work fine now.

No comments: