Rails ActiveAdmin - change the after update redirect_to

前端 未结 6 1186
青春惊慌失措
青春惊慌失措 2020-12-31 04:01

I have a Feature page that belongs to the Car page. That is working exactly how I want to, except for one thing.

After creating, updating or destroying, I want the

6条回答
  •  失恋的感觉
    2020-12-31 04:34

    right code for updating without skipping validation

    controller do
      def update
        super do |success,failure|
          success.html { redirect_to collection_path }
        end
      end
    end
    

提交回复
热议问题