When I visit my procedure_list view I get this error: undefined method `encoding' for nil:NilClass
Apparently the source of the error is on line 12, which is the first link_to method:
<table class="table">
<thead>
<tr>
<th>List of Procedures</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= link_to "Service 1", pro_show_path(@code => 99281) %></td>
<td><%= link_to "Service 2", pro_show_path(@code => 99282) %></td>
<td><%= link_to "Service 3", pro_show_path(@code => 99283) %></td>
</tr>
</tbody>
</table>
Here is my controller action:
def pro_show
@procedures = Procedure.where(:code => @code)
end
Everything looks okay to me..not sure what I did wrong..