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

Specify a different template than the show template? #1

Open
MtnBiker opened this issue Aug 18, 2021 · 1 comment
Open

Specify a different template than the show template? #1

MtnBiker opened this issue Aug 18, 2021 · 1 comment

Comments

@MtnBiker
Copy link

Thank you for the tutorial. Great

Is there a way to use something other than the views/movies/show.html.erb template for the details?

I need to keep the show for among other things editing the "movies". In quotes because I'm doing something other than movies.

Longer version. I'm using a "standard" index.html.erb that lists the items in a table. I like the idea of being able to click on "Show" in the Show, Edit, Destroy list and having an abbreviated version of the show page come up. Actually when I understand this better it's going to go a step or two beyond that if I can get my head around it.

Thank you.

@MtnBiker
Copy link
Author

I may have found a workaround. Just wrap parts of the show.html.erb in the turbo_frame_tag. Probably means an if for normal and as a turbo-frame. But would be nice to have page with a name like details.html.erb

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

No branches or pull requests

1 participant