Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffolding for new routes #249

Closed
danon opened this issue Sep 28, 2016 · 3 comments
Closed

Scaffolding for new routes #249

danon opened this issue Sep 28, 2016 · 3 comments

Comments

@danon
Copy link
Member

danon commented Sep 28, 2016

This:

console ouzo:routes --add users#assign

Could add method assign for UsersController and also add route

Route::get('/users/assign', 'users#assign');

And also regenerate uri helper. For generating other methods (post, resource etc) a flag could be used.

@woru
Copy link
Member

woru commented Sep 29, 2016

I don't know if

console ouzo:routes

is a good name.

How is it called in RoR?

@danon
Copy link
Member Author

danon commented Nov 22, 2016

Duplicate of #238

@danon danon closed this as completed Nov 22, 2016
@danon
Copy link
Member Author

danon commented Mar 2, 2021

In RoR that is

rails generate resource User

so maybe

console ouzo:resource users#assign

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants