For viewing the table content on the rails console, only need to run the table name.all
Go to the terminal
Run the command rails console
It will connect to the rails console and now
Suppose your table name is Country then type the command
Country.all
it will fetch all the Country table contents.