https://developer.apple.com/downloads/
curl -L https://get.rvm.io | bash -s stable
https://developer.apple.com/downloads/
curl -L https://get.rvm.io | bash -s stable
# spec/support/controllers_helper.rb | |
module ControllersHelper | |
# Since FactoryGirl.attributes_for excludes associations, use FactoryGirl.build and then | |
# strip out the protected attributes. | |
def build_attributes(*args) | |
build_object = FactoryGirl.build(*args) | |
build_object.attributes.slice(*build_object.class.accessible_attributes).symbolize_keys | |
end | |
end |
In the seemlingly endless search for the actual correct and easy way to deploy a Rails app, we have tried several ways. We tried out using Apache2 and running a cluster of Thin servers. With the built in threading of Puma we decided to use it with Nginx.
// This module loads a config file in the current working directory matching the NODE_ENV variable. | |
// I.e. either './development.js' or './production.js' based on the process.env.NODE_ENV variable. | |
// If not set, it defaults to './development.js'. | |
// Can load custom environment files as well, as long as the NODE_ENV variable matches | |
// a file in the current directory. E.g. './staging.js' | |
// Usage: calling code can just require this module, e.g. "var config = require('./config')" | |
// assuming this file is named "index.js" and lives in a subdirectory named "config" of the app root. | |
var config | |
, config_file = './' + (process.env.NODE_ENV ? process.env.NODE_ENV : 'development') + '.js'; |
# Mac OSX Mountain Lion | |
# Ruby on Rails Development Environment | |
# RVM | |
curl -L https://get.rvm.io | bash -s stable && rvm install 1.9.3 && rvm install 1.8.7 | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile | |
source ~/.bash_profile | |
# Disable rarely used RDOC |
##How Homakov hacked GitHub and the line of code that could have prevented it
Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.
If you'd like to follow me on twitter my handle is @peternixey
fr: | |
errors: | |
messages: | |
not_found: "n'a pas été trouvé(e)" | |
already_confirmed: "a déjà été validé(e)" | |
not_locked: "n'était pas verrouillé(e)" | |
not_saved: | |
one: "1 erreur a empêché ce(tte) %{resource} d'être sauvegardé(e) :" | |
other: "%{count} erreurs ont empêché ce(tte) %{resource} d'être sauvegardé(e) :" | |
devise: |