Topic: Editing the way fields are displayed in SHOW View!
Hey i'm a newbie teaching myself for a university project. I am building a very specific but basic content management system for a small company.
I am trying to edit the Show View of my News Items page. I would like to scrap the standard code:
<% for column in Newsitem.content_columns %>
<b><%= column.human_name %>:</b> <%=h @newsitem.send(column.name) %>
<% end %>
Instead i would like to edit how the information is displayed in my own way which i am struggling to do.
As things stand with the current text i dont have a choice of the order of the fields in the view and each of them appears with its database field name before it.
How do i go about producing a view similar to a list view where i choose which fields i want, where i want them and in what order? My aim is to have a detailed news item page for each story. Each would show the headline, the content, topic heading and date written.