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

hanami generate action #create does not create a post route #489

Closed
sebabouche opened this issue Jan 30, 2016 · 4 comments
Closed

hanami generate action #create does not create a post route #489

sebabouche opened this issue Jan 30, 2016 · 4 comments

Comments

@sebabouche
Copy link

hanami generate action web books#create

doesn't generate (as mentionned in the book):

post '/books', to: 'books#create'

but

get '/books', to: 'books#create'
@davydovanton
Copy link
Member

Hello! For generate action with specific method you need to use --method key. For example:

$ hanami generate action web books#create --method=post

@sebabouche
Copy link
Author

That makes sense. Much better than the framework guessing. So the getting started on that matter is misleading.

@davydovanton
Copy link
Member

@sebabouche I updated getting start guide too.

@jodosha
Copy link
Member

jodosha commented Feb 9, 2016

@sebabouche @davydovanton Thank you all 👍

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

3 participants