Closed rsantelices closed 6 years ago
Hey guys im having a hard time getting the link_to to work properly, this is the code:
def_delegator :@view, :link_to def data records.map do |record| { id: link_to(record.id, edit_resource_path(record)), email: record.email } end end
However they do not render fine
https://github.com/jbox-web/ajax-datatables-rails/blob/master/README.md#using-view-helpers
try adding the resource path attribute to the delegator line:
def_delegator :@view, :link_to, :edit_resource_path
Hey guys im having a hard time getting the link_to to work properly, this is the code:
However they do not render fine