I'm having trouble figuring out how to display an index.
In my organisation requests view folder, I have a file called index.html.erb.
In that file, I'm trying to list each organisation request. I've tried each of the following formulations:
<% OrganisationRequest.each do |OrgReq| %>
<% organisation_request.each do |OrgReq| %>
<% @organisation_request.each do |OrgReq| %>
<% @organisation_requests.each do |OrgReq| %>
formal argument cannot be a constant
If you have your data and view right, you should be able to fix with:
<% @organisation_requests.each do |org_req| %> ... <% end %>