This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if you see an error while installing mysql gem like, | |
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
solution: | |
sudo apt-get install mysql-server | |
sudo apt-get install mysql-client libmysqlclient-dev | |
sudo apt-get install libmysqld-dev libmysqlclient-dev mysql-client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RSpec allows us to test private methods of a model. | |
for example, | |
class User | |
def is_active? | |
true | |
end | |
private :is_active? | |
end |
NewerOlder