'Rails console access gets Permission denied @ rb_sysopen Error

When I try to access rails console with rails c, terminal gives me this error : Permission denied @ rb_sysopen - /Users/yannherveeaniman/.irb_history (Errno::EACCES)

How can I solve this problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source