Data display problem.. small question from a newbie

hi guys,
I have a table in which there are 7 column.
I have select all data from the table but in the time of display
I want to display last 5 column(just hide first 2 column)
The following code display all data(7 column):

<% for file_data in @file_datas %> <% for column in FileData.content_columns %> <% end %> <% end %>
<%=h file_data.send(column.name) %>

How can i do this. please help me.

Sasaki

hi guys,
I have a table in which there are 7 column.
I have select all data from the table but in the time of display
I want to display last 5 column(just hide first 2 column)
The following code display all data(7 column):

<% for file_data in @file_datas %> <% for column in FileData.content_columns %>

<% for column in FileData.content_columns[2 …
FileData.content_columns.length] %>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs