WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
or
WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.9.0
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
or
WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.9.0
staging: | |
url: <%= ENV["DATABASE_URL"] %> | |
production: | |
url: <%= ENV["DATABASE_URL"] %> |
before_validation :set_xxxx | |
extend FriendlyId # extendはもっと上でもいいのでおこのみで | |
friendly_id :slug_candidates, use: :slugged |
rails console |
module ApplicationHelper | |
def link_to_if_with_block(condition, options = nil, html_options = nil, &block) | |
if condition | |
link_to(options, html_options, &block) | |
else | |
capture(&block) | |
end | |
end | |
end |
heroku maintenance:on |
cocifico="c\no\nc\ni\nf\ni\nc\no"
yocifico="y\no\nc\ni\nf\ni\nc\no"
echo $cocifico
class ImageUploader < CarrierWave::Uploader::Base | |
include CarrierWave::MiniMagick | |
process :fix_rotate | |
def fix_rotate | |
manipulate! do |img| | |
img.auto_orient | |
yield(img) if block_given? | |
img | |
end |
gem 'simple_form', git: 'git://github.com/zlx/simple_form', branch: 'feature/integration_bootstrap3' | |
gem 'twitter-bootstrap-rails', git: 'git://github.com/seyhunak/twitter-bootstrap-rails.git', branch: 'bootstrap3' |
Time.current.beginning_of_week(:friday).since(1.week) |