Multiple links in a column using wice_grid Ruby On Rails

776 Views Asked by At

How to add multiple links to a column in wice_grid

g.column do |task|
    link_to('Edit', edit_task_path(task))
    link_to('Show', task_path(task))
end

Only a link is shown, other link is not even shown. Rails version 4.0.2

1

There are 1 best solutions below

0
On BEST ANSWER

Try this

g.column do |task|
    buffer = link_to('Edit', edit_task_path(task))
    buffer +=link_to('Show', task_path(task))
    raw buffer
end