boolean input string not 'raw' #6

Closed
pehrlich opened this Issue Aug 2, 2011 · 3 comments

Projects

None yet

2 participants

@pehrlich
pehrlich commented Aug 2, 2011

displays as string, rather than rendered html:


Collaborator
devdatta commented Aug 2, 2011

Can you please elaborate a little bit more?

pehrlich commented Aug 2, 2011

Hey!

Here's a snippet from my edit page:

<% cols = @account.class.column_names %>

<% cols.each do |col| %>
    <br/><b><%= f.label col.to_sym %></b>:
    <%= input 'account', col %>
<% end %>

Here's the model:

Account
=> Account( , is_chef: boolean)

When the page is rendered, all fields are displayed correctly except for
this one (the only boolean), which appears as the source of a True/False
select menu printed out on the page. (Code eaten by github).

Haven't had the time for exhaustive testing yet, or would be digging in to
the source of this delicious gem myself :-)

Cheers & Thanks,
--Peter

On Tue, Aug 2, 2011 at 7:11 AM, devdatta <
reply@reply.github.com>wrote:

Can you please elaborate a little bit more?

Reply to this email directly or view it on GitHub:
#6 (comment)

Collaborator
devdatta commented Aug 3, 2011

I have fixed the issue. Please let me know if it still causes any problem.

Cheers,
Devdatta

@devdatta devdatta closed this Aug 3, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment