You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= simple_form_for([:admin,@item], html: { class: 'form-horizontal' }) do |f|
Namespace and simple_form and member action
routes:
scope '/admin' do
scope module: 'admin', as: 'admin' do
resources :products do
member do
get :edit_translations
post :update_translations
end
end
end
end
controller
class Admin::ProductsController < Admin::MyAdminBaseController
def edit_translations
@item = Product.find(params[:id])
end
end