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 should.
I would like to have something like the following: Table: Note id text type_id Table: Type id type_name 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

