In the issue.rb I have mentioned:
has_many :relationships, :dependent => :d
I assume you are constructing the relationship in your controller and then trying to use it in the view. In order for this to be visible, you must make it an instance variable. All you need to do is throw an @ symbol in from of the name of relationship
, as you have done with @issue
.
@relationship = @issue.relationships.build
Edit: due to further information provided by the OP after the original question was asked, this answer is now clearly not applicable.