[Rails] column.name question....

Edward Frederick
2006-04-10T16:38:23Z

Rob,

You can just skip the ''reflection'' part:

<%=h @wizard.user_name %>


--

Ed Frederick -- edwardfrederick.com

On 4/10/06, Rob Balfour <rob_uk88@hotmail.com>
wrote:
> 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
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>