Column.name question


#1

rHTML is

<% for column in Wizard.content_columns %>

<%=h @wizard.send(column.name) %>

<% end %>

It outputs:

Robs Site

Heading

logo.jpeg

London


Bascally 1 line for each column in the database. How do I edit the
rhtml so I can break up the output?
For instance JUST have ‘Robs Site’ display nothing else. That mysql
column is called user_name


#2

Rob,

You can just skip the ‘reflection’ part:

<%=h @wizard.user_name %>

Ed Frederick – edwardfrederick.com