The Rails console can be accessed a few ways but in a rails app it's a terminal command :
RAILS_ENV=development bundle exec rails c
This will load the code and dependencies and give you a console.
There are other ways to run code in situ, like the gem better_errors (with binding of caller) which will allow you to execute most commands in a browser like you would in a rails console session.