Rendering Partials From One Controller’s View to Another Controller’s View in Rails

后端 未结 3 1517
迷失自我
迷失自我 2021-01-31 12:11

I have a view for a controller called \"show\". Inside that view, i want to render the contents of another controller\'s view - and obviously, the logic for the form on that vi

3条回答
  •  难免孤独
    2021-01-31 12:33

    I'm not sure I understand your problem statement fully (why this must be done from the view), but I'd say you just call redirect_to from controller A to controller B.

提交回复
热议问题