<% users = [User.new] %>
<%= render layout: users do |*args| %>
<%= debug args %>
<% end %>
Missing partial application/[#<User:0xb9d257a8>]
You're trying to render a layout, not a partial, and trying to use the array object as the name.
I'm assuming something like this is what you want:
<%- users = [User.new] %>
<%= render 'user', collection: users %>
Alternatively, if the partial is named '_user', you can use this shortcut:
<%= render users %>
<%# app/views/users/_user.html.erb %>
Budget: $<%= user.budget %>
<%= yield user %>
<%# app/views/users/index.html.erb %>
<%= render layout: @users do |user| %>
Title: <%= user.title %>
<% end %>
This issue has been automatically marked as stale because it has not been commented on for at least
The resources of the Rails team are limited, and so we are asking for your help.
If you can still reproduce this error on the 4-1-stable, 4-0-stable branches or on master,
please reply with all of the information you have about it in order to keep the issue open.
Thank you for all your contributions.
This issue has been automatically closed because of inactivity.