Answers for "rails render absolute path"

0

DEPRECATION WARNING: render file: should be given the absolute path to a file

diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
index 8f23129b4..0ce74d104 100644
--- a/app/views/layouts/admin.html.erb
+++ b/app/views/layouts/admin.html.erb
@@ -5,4 +5,4 @@
   <% end %>
 <% end %>

-<%= render :file => "layouts/base" %>
+<%= render :template => 'layouts/base' %>
</diff>
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language