-
Notifications
You must be signed in to change notification settings - Fork 72
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
Danebook #36
base: master
Are you sure you want to change the base?
Danebook #36
Conversation
end | ||
|
||
def timeline | ||
@profile = false |
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.
Do these routes get used? May not need the @profile = false
's any more.
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.
Ah they do. Perhaps you could add a before_action: set_profile_to_false
at the top.
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.
Are you still using your static pages routes? Might want to pull them out into something RESTful if so
else | ||
redirect_to user_posts_path(@user) | ||
end | ||
end |
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.
This method looks a bit hairy. Might be worth pulling some of it out into a model or at least putting it in a private helper in the controller. Same with the destroy method
No description provided.