-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dt employer links nav bar #31
base: master
Are you sure you want to change the base?
Conversation
end | ||
|
||
def employer? | ||
type == "Employer" |
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.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Looks reasonable.... |
Works for me |
@@ -0,0 +1,2 @@ | |||
class EmployersController < ApplicationController |
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.
What does this do?
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.
So I see employer_path
in the other code, which will route correctly to this controller but then will crash because there's no show
method in this controller. I see show
and edit
views for employers that can't be accessed because there are no show
and edit
methods.
I'd add show
and edit
methods here to prevent that.
No description provided.