I am new to ruby and i am trying to move a controller concern into gem. So i have new repository.
When i stepped through the rspec and check for params
i started getting the error in title. After looking online it say's params is an instance of action_controller so i added a application controller.
class ApplicationController < ActionController::Base
end
But i am still getting same error when tried to check params while stepping through concern.
I believe i should get params as <ActionController::Parameters ...something here...>
How can i fix this?
Aucun commentaire:
Enregistrer un commentaire