Thanks for help in advance with this.
I have been trying to understand how to get this to work correctly and I
have been having trouble getting it to work the way that I think it
I would like to have something like the following:
I have been able to create the data and put it into the database without
any problem. I cannot seem to reference the type_name when I am trying
to do a show for my notes.
I have tried to do a few different things and I see there could be a
couple ways to do this so I would like to know if anyone has an example
of how they would do this.
One method I tried was in my view was something like the following:
<% for note in @notes %>
<%= h(@types.find(type_id).type_name) %>
<% end %>
And the result of this gives me an error:
LocalJumpError in Employees#show
no block given