On 29 November 2012 08:47, Sumit Srivastava
<sumit.theinvincible@gmail.com> wrote:
> Hi,
>
> I have a view in which a table is created with one head elements of the
> table are defined like,
>
> %table.data-table{'data-searchable' => 'true'}
> %thead
> %tr
> %th Email
> %th.no-sort Name
> %th Registered
> %tbody
>
>
> The table is populated through controller. I need to add a select box to
> every Email cell. How to add this?
The Rails Guide on Form Helpers shows you how to make select boxes.
Remember that for valid html the entire table must lie within the
form, or each cell must contain its own form.
Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/q2DqSWbPWH0J.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment