scaffold file naming changed #33

Closed
drale2k opened this Issue Aug 25, 2012 · 3 comments

2 participants

@drale2k

I noticed that when i scaffold a resource, lets say "users", earlier it named files like

"users_index.js.coffee" and "users_router.js.coffee"

now it does

"index.js.coffee" and "users.js.coffee"

Is this by accident?

@drale2k

OK i found the commit for this
fb0cf36#lib/generators/backbone/scaffold/scaffold_generator.rb

Are you sure this is a good way for naming? It is pretty confusing when you have open the router, a view, template and model and they all have the same filename

@meleyal
Owner

Yes, maybe this is a mistake.

I think we should stick to the thoughbot naming, even though it's more verbose:
https://github.com/thoughtbot/backbone-js-on-rails/tree/master/example_app/app/assets/javascripts

I'll revert this in the next release.

@meleyal meleyal closed this in a7673b0 Oct 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment