Rails: Render a View (not a partial) From Within a View

前端 未结 4 1363
一生所求
一生所求 2021-02-05 00:30

I have a controller that responds to both html and js. The html view renders the whole page (including the header and footer), while the <

4条回答
  •  轮回少年
    2021-02-05 01:15

    you just need to pass a context to your render method:

    <%= render :template => "show" -%>
    

提交回复
热议问题