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
RAILS_ENV=staging bundle exec rake 'assets:precompile' | |
WARNING: Use strings for Figaro configuration. 647730745310662 was converted to "647730745310662". | |
WARNING: Use strings for Figaro configuration. 22225 was converted to "22225". | |
/Users/cedric/.rvm/rubies/ruby-2.0.0-p451/bin/ruby /Users/cedric/.rvm/gems/ruby-2.0.0-p451@apptweak/bin/rake assets:precompile:all RAILS_ENV=staging RAILS_GROUPS=assets | |
WARNING: Use strings for Figaro configuration. 647730745310662 was converted to "647730745310662". | |
WARNING: Use strings for Figaro configuration. 22225 was converted to "22225". | |
AssetSync: using /Users/cedric/Code/apptweak/config/initializers/asset_sync.rb | |
AssetSync: Syncing. | |
rake aborted! | |
Excon::Errors::SocketError: XML declaration allowed only at the start of the document (Nokogiri::XML::SyntaxError) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class GalleryImagesController < ApplicationController | |
def rotate | |
@image = GalleryImage.find(params[:id]) | |
rotation = params[:deg].to_f | |
rotation ||= 90 # Optional, otherwise, check for nil! | |
@image.rotate!(rotation) | |
flash[:notice] = "The image has been rotated" | |
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
--- | |
layout: page | |
title: "index" | |
date: 2015-10-04 23:30 | |
comments: true | |
sharing: true | |
footer: true | |
--- |
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
fr: | |
date: | |
abbr_day_names: | |
- dim | |
- lun | |
- mar | |
- mer | |
- jeu | |
- ven | |
- sam |
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 'http://rubygems.org' | |
gem 'rails', '3.2.1' | |
gem 'ruby-units' | |
gem "mysql2", "~> 0.3.2" | |
gem 'devise', '2.0.4' | |
gem 'cancan' | |
gem 'fastercsv' # used by rails_admin | |
gem "rack" | |
gem "gravatar_image_tag", "1.0.0" | |
gem 'omniauth', "~> 1.0" |
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
number: | |
format: | |
separator: "," | |
delimiter: " " | |
precision: 3 | |
significant: false | |
strip_insignificant_zeros: false | |
currency: | |
format: | |
format: "%n %u" |
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
{% codeblock lang:ruby %} | |
firstname = "John" | |
lastname = "Doe" | |
echo "#{firstname} #{lastname}" | |
{% endcodeblock %} |
OlderNewer