NoMethodError: undefined method `parameters' for nil:NilClass when trying to access controller method

Question!

I am trying to access a method through the rails console, but keep getting the error message NoMethodError: undefined method 'parameters' for nil:NilClass. I have a controller named Matches and am inputing:

MatchesController.new.prepare

into the console.

By : rebbailey


Answers

To access Model from rails console please look at this example

class TestModel



This video can help you solving your question :)
By: admin