This file contains 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
devise erb to slim convert | |
https://github.com/plataformatec/devise/wiki/How-To%3a-Create-Haml-and-Slim-Views | |
Create Slim views | |
We use a gem called 'html2slim' to create the Slim-views. | |
gem install html2slim | |
This package include a tool called erb2slim which can convert erb file to slim recursively. Option -d for delete the erb file after the convert finished. |
This file contains 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 |
This file contains 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 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 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 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 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 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 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 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' |
OlderNewer