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

Dt employer links nav bar #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dorothythurston
Copy link
Contributor

No description provided.

end

def employer?
type == "Employer"

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.

@jplisamaria
Copy link
Member

Looks reasonable....

@BostonREB
Copy link
Contributor

Works for me

@@ -0,0 +1,2 @@
class EmployersController < ApplicationController
Copy link

Choose a reason for hiding this comment

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

What does this do?

Copy link

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.

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.

5 participants