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
| // ---- | |
| // Sass (v3.3.10) | |
| // Compass (v1.0.0.alpha.20) | |
| // ---- | |
| .hello{ | |
| padding:1px; | |
| } |
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
| constraints subdomain: 'www' do | |
| root to: 'pages#index' | |
| end | |
| constraints subdomain: 'admin' do | |
| root to: 'admin/dashboard#index' | |
| end |
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
| root :to => 'admin#index', :constraints => RoleConstraint.new(:admin) # When current user is an admin | |
| root :to => 'sites#index', :constraints => RoleConstraint.new(:user) # When current user is user | |
| root :to => 'home#index' # when no user logged in |
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
| class User < ActiveRecord::Base | |
| has_many :questions | |
| has_many :comments | |
| end | |
| class Question < ActiveRecord::Base | |
| has_many :answers | |
| has_many :categories | |
| has_many :tags | |
| end |
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
| def func1 | |
| i=0 | |
| while i<=2 | |
| puts "func1 at: #{Time.now}" | |
| sleep(2) | |
| i=i+1 | |
| end | |
| end | |
| def func2 |
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
| def func1 | |
| i=0 | |
| while i<=2 | |
| puts "func1 at: #{Time.now}" | |
| sleep(2) | |
| i=i+1 | |
| end | |
| end | |
| def func2 |
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://formstone.it/ | |
| http://codecanyon.net/item/ultimate-grid-responsive-gallery/5093275 |
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
| sudo apt-get build-dep build-essential | |
| not my credit :: | |
| http://askubuntu.com/questions/214746/how-to-run-apt-get-install-to-install-all-dependencies |
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
| Install Elastic Search :: | |
| https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get | |
| Complete Tutorial :: | |
| http://rny.io/rails/elasticsearch/2013/08/05/full-text-search-for-attachments-with-rails-and-elasticsearch.html |
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://gorails.com/guides/using-vagrant-for-rails-development |
OlderNewer