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 | |
| VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i | |
| validates :name, presence: true, length: { maximum: 50 } | |
| validates :email, presence: true, length: { maximum: 25 }, | |
| format: { with: VALID_EMAIL_REGEX } | |
| 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
| %transition-delay | |
| -webkit-transition-delay: $default-transition-delay | |
| -moz-transition-delay: $default-transition-delay | |
| -o-transition-delay: $default-transition-delay | |
| transition-delay: $default-transition-delay | |
| %transition-duration | |
| -webkit-transition-duration: $default-transition-duration | |
| -moz-transition-duration: $default-transition-duration | |
| -o-transition-duration: $default-transition-duration |
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
| Em.computedPropertyBuilder = (that, name, key, fn) -> | |
| Em.defineProperty that, name, Em.computed(-> | |
| fn | |
| ).property "#{key}" |
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
| /* jqBootstrapValidation | |
| * A plugin for automating validation on Twitter Bootstrap formatted forms. | |
| * | |
| * v1.3.6 | |
| * | |
| * License: MIT <http://opensource.org/licenses/mit-license.php> - see LICENSE file | |
| * | |
| * http://ReactiveRaven.github.com/jqBootstrapValidation/ | |
| */ |
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
| gem 'compass-rails', github: 'milgner/compass-rails', branch: 'rails4' | |
| # application.rb | |
| if defined?(Compass) | |
| config.assets.paths << Compass::Frameworks[:compass].stylesheets_directory | |
| end |
NewerOlder