All threads / Redirect show to edit mode always

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Redirect show to edit mode always

AlessioVaralta asked in Rails

Hi, I want to work always in edit mode and not in show mode. So when i go to show a object, I want to be in edit mode.
How I can make this possibile? First I think that I can put a redirect in show controller but there is a better because I have to change show, create and update controller option maybe a router level?

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,106+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.