5

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

xydev
  • 3,409
  • 5
  • 34
  • 54
  • So silly of me :( answer is g.column do |task| (link_to('Edit', edit_task_path(task))) + (link_to('Show', task_path(task))) end – xydev Apr 04 '14 at 08:15

1 Answers1

7

Try this

g.column do |task|
    buffer = link_to('Edit', edit_task_path(task))
    buffer +=link_to('Show', task_path(task))
    raw buffer
end
Boti
  • 3,275
  • 1
  • 29
  • 54