Rename resource() to resources().

Using the plural form makes more sense as the table names are plural and
controllers are plural too.