Created
September 26, 2017 08:20
-
-
Save Nursultan91/259ec3ebd10945a0f2fa287b3380a798 to your computer and use it in GitHub Desktop.
если внести такие изменения то могут ли быть проблемы?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#То как все выглядит сейчас | |
ActiveAdmin.register PaidProject do | |
permit_params :user_id, :project_id | |
show do |t| | |
attributes_table do | |
row :user do | |
paid_project.user.name | |
end | |
row :project do | |
paid_project.project.name | |
end | |
end | |
end | |
index do | |
selectable_column | |
column :id | |
column :project | |
column :user | |
column :user_id | |
actions | |
end | |
form :html => { :enctype => "multipart/form-data" } do |f| | |
f.inputs do | |
f.input :user, label: "Пользователь" | |
#Вот тут вот я хочу внести изменения на | |
# f.input :user_id, label: "Пользователь" | |
f.input :project, label: "Проект" | |
end | |
f.actions | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment