Visualize a view in a view

How to pretend in a different view ... in rails ... is this possible?

+3
source share
4 answers
+3
source
#hotdog_controller
def show
  # by default renders template hotdog/show.html.erb
end

#hotdog/show.html.erb
<%= render :template => 'ketchup' -%>
+15
source

? , - , .

, .

+2

, - AJAX. AJAX .

0

Source: https://habr.com/ru/post/1757885/


All Articles