Skip to content

Instantly share code, notes, and snippets.

@HooFoo
Created July 4, 2018 11:22
Show Gist options
  • Select an option

  • Save HooFoo/9532c7f92bc891f7c282076ec3eb24c9 to your computer and use it in GitHub Desktop.

Select an option

Save HooFoo/9532c7f92bc891f7c282076ec3eb24c9 to your computer and use it in GitHub Desktop.
ActiveAdmin.register_page "OrderAssignation" do
menu false
controller do
def index
params[:order] = Order.find(params[:order_id])
end
end
content title: proc{ I18n.t("admin.delivery.assign") } do
columns do
column do
render 'admin/delivery/order_assignation_form'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment