You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
970 B
35 lines
970 B
Trestle.resource(:work_experiences) do
|
|
menu do
|
|
item :work_experiences, icon: "fa fa-star"
|
|
end
|
|
|
|
# Customize the table columns shown on the index view.
|
|
#
|
|
# table do
|
|
# column :name
|
|
# column :created_at, align: :center
|
|
# actions
|
|
# end
|
|
|
|
# Customize the form fields shown on the new/edit views.
|
|
#
|
|
# form do |work_experience|
|
|
# text_field :name
|
|
#
|
|
# row do
|
|
# col { datetime_field :updated_at }
|
|
# col { datetime_field :created_at }
|
|
# end
|
|
# end
|
|
|
|
# By default, all parameters passed to the update and create actions will be
|
|
# permitted. If you do not have full trust in your users, you should explicitly
|
|
# define the list of permitted parameters.
|
|
#
|
|
# For further information, see the Rails documentation on Strong Parameters:
|
|
# http://guides.rubyonrails.org/action_controller_overview.html#strong-parameters
|
|
#
|
|
# params do |params|
|
|
# params.require(:work_experience).permit(:name, ...)
|
|
# end
|
|
end
|
|
|