Displaying 1 result from an estimated 1 matches for "missionname".
2005 Dec 23
2
has_many and belongs_to relationship error
...BlogController < ApplicationController
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 %>
&...