DEV Community

Hardik Radadiya
Hardik Radadiya

Posted on

Active admin print current user.email but single row

form title: 'Edit Leave Application' do |f|
inputs 'LeaveApplication' do

  f.li do
    f.label :user_id
    f.span f.object.user.email
  end

  f.input :title
  f.input :description
  f.input :status
  f.input :leave_credit
  f.input :leave_type
  f.input :half_leave_session
end
actions
Enter fullscreen mode Exit fullscreen mode

end
end

Top comments (0)