-
-
Notifications
You must be signed in to change notification settings - Fork 574
Add an "actions" generator #16
Comments
@markbates i'm loving buffalo, this is awesome, thanks for taking the lead on this web framework. buffalo g action myNewAction should there be one action per file inside actions folder ? if so, should create a new file with |
Glad you like it! Here's what I was thinking:
That would create
If func UsersFoo(c buffalo.Context) error {
return c.Render(200, r.HTML("users/foo.html")
} A test asserting the template is rendered would be great as well. The template should just be something like: <h1>Users#Foo</h1> Hopefully that all makes sense. I'm typing on my phone! Bonus points if you can map the route in |
@markbates thanks for the explanation on this one its now very clear. I have a question about how to continue with the PR now that i'm contributor, should i send a PR from buffalo's repo or continue sending PR's from my fork?. Also on another news i've started writing some test cases for this one on |
It's up to you whether you would like to create branches here or your fork. Either is fine with me. Just never push directly to master. :) |
Closed with #103 |
No description provided.
The text was updated successfully, but these errors were encountered: