Comments (4)
IIRC when I wrote it, the aim was to follow wheels conventions of singular models and plural controllers.
It actually uses the inbuilt wheels functions to do this:
loc.objectName = lcase(trim(arguments.name));
loc.objectNameSingular = singularize(loc.objectName);
loc.objectNamePlural = pluralize(loc.objectName);
loc.objectNameSingularC = capitalize(loc.objectNameSingular);
loc.objectNamePluralC = capitalize(loc.objectNamePlural);
So yeah, as intended :P
from cfwheels.
@tamdang501 I am not understanding what this issue is for.
It is working as expected and creates controller with plural name in both commands.
Wheels automatically pluralize the controller name every time even if we pass in a singular name.
What is the bug here? Please clarify
from cfwheels.
Describe the bug 2 command lines give a same result of creating a controller Users.cfc (with plural)
- wheels generate controller user
- wheels generate controller users
Expected behavior I don't know if this is a bug, but because by the conventions, the name controllers is in plural form while model is singular, I want to report this.
Hi @tamdang501, as @zainforbjs reported this is indeed default behaviour so no bug. It forces the naming convention. I think the issue can be closed? Thanks for reporting though!
from cfwheels.
Nice, and great, another problem solved 👍
from cfwheels.
Related Issues (20)
- buttonTo() does not accept "id" or "class" attributes HOT 2
- Monthly issue/pull request metrics report
- Enhacement for adding spacial datatypes
- Monthly issue/pull request metrics report
- Proposed Directory Structure Changes in CFWheels 3.0 HOT 1
- joinKey attribute doesn't appear to work for hasMany() HOT 2
- Rogue debug in db migration output
- CFWheels Docs bad link HOT 1
- Monthly issue/pull request metrics report
- Create core and template directories in build and move readme.md, server.json, and box.json files into it.
- Update build process to work with new directory structure
- JavaCast("int", local.rv) casts non-integers HOT 1
- Monthly issue/pull request metrics report
- The dataSource method appears to be broken
- findAll() method does not recognize aliased column names in the "where" attribute for tables joined in an association but has the same table column name HOT 1
- Monthly issue/pull request metrics report
- No documentation on using multiple attribute for select() form helper
- Monthly issue/pull request metrics report
- Onsessionend causing java heap space exhaustion and server hang
- Remove obfuscateParam function from migration CFC
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfwheels.