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 %>

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/04563f81532a5fce076a4549244488b5%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to