class UploadForm
include ActiveModel::Model
attr_accessor :upload_file
validates_each :upload_file do |record, attr, value|
if value.present? && value.size > 1.megabytes
record.errors.add(attr, 'ファイルサイズがビッグだね')
end
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
@mixin hoge-fuga { | |
content: 'a'; | |
} | |
@mixin hoge_fuga { | |
content: 'b'; | |
} | |
.hoge { |
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
<!-- <div class="block block--modifier"></div> --> | |
<div class="block--modifier"></div> |
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
// Sass 3.2.9 | |
=hoge($c1: #111, $c2: #222, $c3: #333, $c4:#444) | |
border-top: $c1 | |
border-left: $c2 | |
border-right: $c3 | |
border-bottom: $c4 | |
.hoge | |
+hoge($c1: #000, $c2: #000, $c4: #000) |
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
"compass": u("\uf"), | |
"collapse": u("\uf"), | |
"collapse-top": u("\uf"), | |
"expand": u("\uf"), | |
"eur": u("\uf"), | |
"euro": u("\uf"), | |
"gbp": u("\uf"), | |
"usd": u("\uf"), | |
"dollar": u("\uf"), | |
"inr": u("\uf"), |
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
source "https://rubygems.org" | |
gem 'css_parser' |
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
companies = [{"id":1,"ticker":"AAPL","name":"Apple Inc"}, | |
{"id":2,"ticker":"ABC","name":"Amerisourcebergen Corp"}, | |
{"id":3,"ticker":"ABT","name":"Abbott Labs"}, | |
{"id":4,"ticker":"ACE","name":"Ace Ltd"}, | |
{"id":5,"ticker":"ADBE","name":"Adobe Sys Inc"}] | |
_.templateSettings = interpolate :/\{\{(.+?)\}\}/g | |
$ -> |
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
:sass | |
a | |
display: block | |
margin: 0 auto | |
max-width: 500px | |
object | |
pointer-events: none | |
width: 100% | |
%a(href='http://ruedap.com') | |
%object(data='ruedap.svg') |