-
|
following is a example for describe my issue: class Pages::New < BrowserAction
get "/pages/new" do
html Pages::NewPage, operation: SavePage.new
end
endThen create a form in the pages form_for Pages::Create do
mount Shared::Field, attribute: op.title, label_text: "标题", &.text_input(autofocus: "true")
endI don't want the param always be nested in this case, like: "page:title", what I expected is, "title", how to do that? use class SavePage < Page::SaveOperation
param_key ""
permit_columns title, sub_title, markdown_path, content, parent_markdown_path
endthe form data name prefix with a Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
jwoertink
Jul 10, 2025
Replies: 1 comment 1 reply
-
|
Not at the moment. The param_key is currently required. Related: luckyframework/avram#336 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zw963
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not at the moment. The param_key is currently required.
Related: luckyframework/avram#336
Also Related: luckyframework/avram#1112
Somewhat Related: #1519