Thank you for your responses.
I have edited my
gist(
https://gist.github.com/Brayoni/3102c5dab7f76b1cee7b) and it looks
like, this line:
<%= link_to "Retrieve Case", {:controller => 'employee_indisciplines',
:action => 'show_indisciplines', :employee_id => @retrieve_case.inspect
}, { :class => 'submit_button' }, :method => 'post' %>
is receiving a nil id after doing an inspect on it( I have shared my
development logs in the gist).
Processing EmployeeIndisciplinesController#show_indisciplines (for
127.0.0.1 at 2014-08-12 07:27:35) [GET] Parameters:
{"action"=>"show_indisciplines", "employee_id"=>"nil",
"controller"=>"employee_indisciplines"}
as a result, the following section in my rendered html is iterating on a
nil object hence nothing is displayed.
<% @employee_indiscipline.each do |employee | %>
<tr class="tr-<%= cycle('odd', 'even') %>">
<td class="col-4"><%= employee.content %></td>
<td class="col-7"><%=
employee.created_at.strftime("%A, %d. %B %Y, %H:%M") %></td>
</tr>
<% end %>