-
Notifications
You must be signed in to change notification settings - Fork 9
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
RSC can create hospitals #13
RSC can create hospitals #13
Conversation
…nd_doc into rsc_create_hospitals
…urse_and_doc into rsc_create_hospitals
…still failing but looking better
…so refactored the test for the the steps to find hospitals on the hospitals and add the hospital path to the add button with no effect unfortunely
… click on the hospital page and see the form
…e steps one test falling
…ew js.erb, also refactroed the controller and update the hospital index link
…eature steps to add ajax flow
… added a new step to for the success message
…urse_and_doc into rsc_create_hospitals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address my comments before removing the WIP tag and merge. Not quite ready for merge yet IMO.
…nd_doc into rsc_create_hospitals
All comments have been addressed / issues have been solved
app/views/hospitals/_index.html.haml
Outdated
.list-grid | ||
.list-name | ||
= f.text_field :name, id: "Name", class: "form-input-field" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If .list-grid
is supposed to be a wrapper around the link_to
, this line needs to be intended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my bad, I mean f.text_field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.list-grid
.list-name
= f.text_field :name, id: "Name", class: "form-input-field"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And also, please make sure to use single quotes. Install RuboCop extension and you will be able to format your code and fix details like that with auto format.
app/views/hospitals/_index.html.haml
Outdated
= f.text_field :name, id: "Name", class: "form-input-field" | ||
.list-button-area | ||
= f.submit value: "Add Hospital", class: "button text-center" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job.
PT Link
https://www.pivotaltracker.com/story/show/161589429
Included in PR
Screenshot