$ rails _3.2.11_ new learnapt-web --database postgresql --skip-test-unit
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
| public void loadUpdates(boolean loadWordADay) | |
| { | |
| try | |
| { | |
| if (Util.isNetworkAvailable(this)) | |
| { | |
| sendProgress(ProgressMode.UPDATE_STARTED.ordinal()); | |
| //-- Update Word of the day | |
| if(loadWordADay) { |
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
| # copy command to clipboard | |
| $ sudo apt-get install xclip |
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 description | |
| # goes here. | |
| class State < ActiveRecord::Base | |
| #-- attributes | |
| attr_accessor :id, :name, :slug, :country_id | |
| #-- validations |
NewerOlder