You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
About Rails controller implementation for new action in README, it says that define #to_model and involve .new to get initialized model object.
But I checked this, .new return ActiveInteraction object not result of #to_model. Also #to_model was not involved. (It looks not involved from gem inside)
Can you tell me what should I do for new action ?
I involved #to_model from controller, then get my expectation. So it better to modify README as below ?
# GET /accounts/new
def new
@account = CreateAccount.new.to_model
end
Environment
ruby '2.6.3'
active_interaction (3.7.1)
The text was updated successfully, but these errors were encountered:
The to_model method is called by the various form functions in Rails. You shouldn't have to pass it manually. Are you seeing an error when you just pass CreateAccount.new?
I am implementing new action on Rails controller.
About Rails controller implementation for new action in README, it says that define
#to_model
and involve.new
to get initialized model object.But I checked this,
.new
return ActiveInteraction object not result of#to_model
. Also#to_model
was not involved. (It looks not involved from gem inside)Can you tell me what should I do for new action ?
I involved
#to_model
from controller, then get my expectation. So it better to modify README as below ?Environment
ruby '2.6.3'
active_interaction (3.7.1)
The text was updated successfully, but these errors were encountered: