#2353: CrudRestController does not respect plurals when creating urls.
------------------------+---------------------------------------------------
Reporter: percious | Owner: percious
Type: defect | Status: new
Priority: normal | Milestone: 2.1
Component: TurboGears | Version: 2.1
Severity: minor | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Old description:
> For instance:
>
> class CompanyController(CrudRestController):
> class = Company
>
> the json url for this will become companys.json
>
> it should be: companies.json
>
> Or:
>
> class OctopusController(CrudRestController):
> class = Octopus
>
> the json url for this would become: octopuss.json
> the url _should_ be: ocotopi.json
>
> Enjoy!
New description:
For instance:
{{{
class CompanyController(CrudRestController):
class = Company
}}}
the json url for this will become companys.json
it should be: companies.json
Or:
{{{
class OctopusController(CrudRestController):
class = Octopus
}}}
the json url for this would become: octopuss.json
the url _should_ be: ocotopi.json
Enjoy!
--
Ticket URL: <http://trac.turbogears.org/ticket/2353#comment:1>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---