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
*Create projects with old rails* | |
mkdir my_app | |
gem install rails -v 3.0.3 | |
gem install railties -v 3.0.3 |
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 controllers with friendly_id** | |
============================ | |
it '/:account_id/:project_id/edit to Projects#edit' do | |
path = edit_account_project_path 'foocorp', 'widgets' | |
path.should == '/foocorp/widgets/edit' | |
{ :get => path }.should route_to( | |
:controller => 'projects', | |
:action => 'edit', | |
:account_id => 'foocorp', | |
:id => 'widgets' |
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
http://devblog.avdi.org/2012/08/31/configuring-database_cleaner-with-rails-rspec-capybara-and-selenium/ |
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
https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-12-04-and-centos-6 |
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
http://www.eq8.eu/blogs/4-installing-rbenv-on-ubuntu-machine | |
sudo nano /etc/default/locale | |
Откроется текстовый редактор, и надо чтоб редактируемый файл выглядел так: | |
LANGUAGE=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
LANG=en_US.UTF-8 | |
LC_TYPE=en_US.UTF-8 |
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
http://hellocoding.wordpress.com/2014/06/08/sub-process-usr-bin-dpkg-returned-error-1/ | |
1 | |
$ sudo apt-get remove install-info | |
Then run this command to clear apt archives: | |
1 | |
$ sudo apt-get clean | |
Then finally run | |
1 |
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
https://github.com/cowboyd/therubyracer/issues/274 |
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
RVM comands | |
https://github.com/wayneeseguin/rvm |
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
https://gist.github.com/zhengjia/428105 | |
https://gist.github.com/steveclarke/2353100 |
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
locales for devise russian: | |
https://gist.github.com/EvilFaeton/5168083 |