<p>
  <h2> Actor/Actress Detail </h2>	
</p>
<table border="0">
 <tr>
	<td>	
       <b>Last name:</b>
       <%=h @actor.last_name %>
    <% if @photo %>
       </td><td rowspan="7" align="right"> <img src="<%= url_for(:action => 'photo', :id => @photo.id) %>"/></td>
    <% else %>
       </td><td rowspan="7" align="right">  &nbsp;&nbsp;&nbsp;&nbsp;   [NO PHOTO UPLOADED YET] </td>
    <% end %>
 </tr>
<tr><td>
  <b>First name:</b>
  <%=h @actor.first_name %>
</td>
</tr>

<tr><td>
  <b>Year of birth:</b>
  <%=h @actor.year_of_birth %>
</td></tr>

<tr><td>
  <b>Nationality:</b>
  <%=h @actor.nationality %>
</td></tr>

<tr><td>
  <b>Height:</b>
  <%=h @actor.height %>
</td></tr>

<tr><td>
  <b>Gender:</b>
  <%=h @actor.gender %>
</td></tr>
<tr><td>
  <b>Bio:</b>
  <%=h @actor.bio %>
</td></tr>
</table>
<hr>
<p>
  <b>Movies:</b>
  <% if @actor.movies.count > 0 %>
    <%= @actor.movies.collect {|m| link_to(m.title, m)}.join(", ")%>
  <% else %>
    Not on any of our movies as of now.
  <% end %>
</p>
<hr>

<%= link_to 'Edit', edit_actor_path(@actor) %> |
<%= link_to 'Add/Remove Movies for actor/actress', movies_actor_path(@actor) %> | 	
<%= link_to 'Back', actors_path %>