Displaying 1 result from an estimated 1 matches for "missiondescription".
2005 Dec 23
2
has_many and belongs_to relationship error
...def index
@user = User.find_by_login(''bilal'')
@posts = @user.posts
@missions = Mission.find(:all)
end
end
index.rhtml is
<% for mission in @missions %>
<div class="mission">
<h3><%= h(mission.missionname) %></h3>
<%= mission.missiondescription %>
</div>
<div class="separator"> </div>
<% end %>
<% for post in @posts %>
<div class="mission">
<h3><%= h(post.posttitle) %></h3>
<%= post.posttext %>
</div>
<div class="separator">&...