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

update PageController index action to home in Controllers Guide #5338

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

nhessler
Copy link
Contributor

@nhessler nhessler commented Mar 9, 2023

not sure how it was setup before Phoenix 1.7, but the default action for "/" is now PageController.home and not PageController.index. I've gone through and updated the controller guide docs changing appropriate references to the home action and adding layout: false in the code snippets as well.

In the flash section I removed the info flash message as it cannot be seen along with the error flash message and might cause confusion and updated the reference to the flash code in the app template to point at the flash_group component added to the top of the home.html.heex file.

resolves issue #5365

@nhessler nhessler changed the title update PageController index action to home update PageController index action to home in Controllers Guide Mar 9, 2023
guides/controllers.md Outdated Show resolved Hide resolved
@chrismccord chrismccord merged commit 68c0096 into phoenixframework:main Mar 20, 2023
@chrismccord
Copy link
Member

❤️❤️❤️🐥🔥

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.

None yet

3 participants