Removed unnecessary verbosity

Hello guys, I removed some unnecessary verbosity in topics controller and post model, because active record takes care of converting parameters to integer and explicit to_i is not needed. Added more shorter versions of map method.

Have a nice day :)