I'm getting a name error when I try to look at my show view in my browser. I followed the book's instructions verbatim, I even included the change to the code on page 124 as noted in the errata. Any tips on what I may be doing wrong here?
Here's the error that I'm getting:
CODE
undefined local variable or method `extension' for #<Theater:0x24fa2d4>
Extracted source (around line #4):
<table width="730" border="0" align="center" id="show_table">
2: <tr>
3: <td rowspan="6" align="left" valign="top">
4: <% if @theater.has_photo? %>
5: <%= image_tag @theater.photo_path %>
6: <% else %>
7: No photo.
Extracted source (around line #4):
<table width="730" border="0" align="center" id="show_table">
2: <tr>
3: <td rowspan="6" align="left" valign="top">
4: <% if @theater.has_photo? %>
5: <%= image_tag @theater.photo_path %>
6: <% else %>
7: No photo.
Note: "theater" is the name of the table that I'm inserting the extension column into; it takes the place of "person" in the book example.
Also, I'm running Rails on a Mac and editing with Xcode, if that helps.
Thanks very much!












