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

Danebook #36

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

Danebook #36

wants to merge 40 commits into from

Conversation

davidmjiang
Copy link

No description provided.

end

def timeline
@profile = false

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.

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.

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
Copy link

@tgturner tgturner Aug 22, 2016

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

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.

3 participants