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

Test winter-2020 branch #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jelaniwoods
Copy link
Contributor

@jelaniwoods jelaniwoods commented Feb 21, 2020

rails g draft:resource task name:string duration:integer completed:boolean description:text
rails g draft:account task_doer name:string about:text

@@ -0,0 +1,40 @@
<h1>Sign up</h1>

<form action="/post_task_doer" method="post">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This needs to change to either a get to /insert_task_doer or the route needs to change to post.

</h5>

<div>
<form action="/patch_task_doer" method="post">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This needs to be updated to /modify_task_doer

<% end %>
<% end %>
<div>
<form action="/patch_task_doer" method="post">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Again /modify_task_doer

<%= time_ago_in_words(task.created_at) %> ago
</td>
<td>
<%= time_ago_in_words(task.updated_at) %> ago
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we keep the time_ago_in_words? We haven't really talked about it at all.

Choose a reason for hiding this comment

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

@jelaniwoods Hm, I was planning to talk about it in class. However I've been wanting to leave certain easy improvements out of the draft:resource generator in order to make it more obvious who is actually putting in effort and who is not, so I may remove this.

get("/task_doer_sign_up", { :controller => "task_doers", :action => "new_registration_form" })

# Create record
get("/insert_task_doer", { :controller => "task_doers", :action => "create" })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The should most likely be a post request I think. If an account has a text or file column they will need it. Also to not have the password in the form.

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

Successfully merging this pull request may close these issues.

2 participants