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.
17 lines
455 B
17 lines
455 B
class StrongController < ApplicationController
|
|
def index
|
|
logger.info('Live::Constant ')
|
|
end
|
|
|
|
def update
|
|
logger.info 'parameters', strong_params
|
|
redirect_to strong_path, notice: 'form is ok'
|
|
end
|
|
|
|
private
|
|
|
|
def strong_params
|
|
# params.require(:strong).permit [:name, :surname, { birth: {} }] # implicit: any fields inside bith
|
|
params.require(:strong).permit [:name, :surname, { birth: %i[date location] }] # explicit
|
|
end
|
|
end
|