Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

amul's Profile

GitHub User: amul

Comments by


to get the value for each entry he used this:

<% for entry in @entries.models: %>
<%= entry.get('name') %>
<% end %>

that didn't work for me, I modified it to this one:

<% for entry in @entries.models: %>
<%= entry.get('entry').name %>
<% end %>

and it works,
Any Idea?, I want the sipler code rather than the code I came up