Skip to content

Conversation

jodosha
Copy link
Member

@jodosha jodosha commented Nov 21, 2014

Closes #49

@jodosha jodosha added this to the v0.3.0 milestone Nov 21, 2014
@jodosha jodosha self-assigned this Nov 21, 2014
@coveralls
Copy link

Coverage Status

Coverage increased (+1.3%) when pulling e3fdc78 on remove-controller-dsl into 2dc9644 on master.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, naming ArticlesController express the identity of the controller better, it'd help Rails dev pick up Lotus more easily

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JONESLEE85 In full stack applications we use this namespace: Bookshelf::Controllers, it would be repetitive to have Bookshelf::Controllers::ArticlesController::Show, that's want to encourage this new naming.

In standalone mode, we should suggest developers to put their controllers under Controllers as well, to avoid name clashes. Eg. Identity (model domain object) and Identity::Index (controller + action).

Does it makes sense?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it does now. 👍

jodosha added a commit that referenced this pull request Dec 4, 2014
@jodosha jodosha merged commit e6d67d2 into master Dec 4, 2014
@jodosha jodosha deleted the remove-controller-dsl branch December 4, 2014 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking] Remove Lotus::Controller DSL

3 participants