Re: How to add an "other" field in radio button list using simple_form?

109 views
Skip to first unread message

Fabiano Almeida

unread,
Oct 2, 2012, 8:09:08 AM10/2/12
to plataformate...@googlegroups.com
Hi Tony,

I have no idea to do that. Did you try this?
<%= simple_form_for @user do |f| %>
  <%= f.association :ages, :as => :check_boxes, :required => true %>
  <%= f.input :other, :as => :check_boxes %><%= f.input :other, :label => false %>
<%= f.button :submit %> <% end %>
I don't know other way to build something as you want. Just try and tell us how can you solved this.

On Mon, Oct 1, 2012 at 11:47 AM, 簡煒航 <tonyt...@gmail.com> wrote:

I am going to make something like this:
alt

I wonder what is the right way to do it using simple_form.




--
Fabiano Almeida

Reply all
Reply to author
Forward
0 new messages