Edge Rails: PATCH is the new primary HTTP method for updates Posted by fxn February 26, 2012 @ 01:54 AM What is PATCH? The HTTP method PUT means resource creation or replacement at some given URL. Think files, for example. If you upload a file to S3 at some URL, you want either to cre...
. They are tools which you run on your source code saying “here are some JavaScript files, try to make them smaller, but don’t change functionality ”. I’m reluctant to use these tools because many developers report that if I don’t use specific coding styles, like writing semicolons, t...
Providing a fresh selection of: Download Editor Support Development “All of Hashrocket’s new projects are done in Haml, and we’ve now decided to transition everything else in our portfolio over to Haml as soon as possible. The indentation-based approach works wonders for generating cl...
Run an executable that comes with a gem in your bundle $ bundle exec rspec spec/models In some cases, running executables without bundle exec may work, if the executable happens to be installed in your system and does not pull in any gems that conflict with your bundle. However, this ...
#250 Authentication from Scratch (revised) Feb 25, 2012 | 13 minutes | Authentication Simple password authentication is easy to do with has_secure_password. Here you will learn how to make a complete Sign Up, Log In, and Log Out process as well as restrict access to certain actions. S...
RVM lets you deploy each project with its own completely self-contained and dedicated environment--from the specific version of ruby, all the way down to the precise set of required gems to run your application. Having a precise set of gems also avoids the issue of version conflicts b...
In specific cases, it would make sense to set the locale from client-supplied information, i.e. not from the URL . This information may come for example from the users’ preferred language (set in their browser), can be based on the users’ geographical location inferred from their IP, ...
bash rails store sudo rake gems:install RAILS_ENV=test script/generate cucumber script/generate pickle script/generate rspec_model product name:string price:decimal rake db:migrate rake db:test:clone script/generate rspec_controller products show cucumber features -q rails store sudo ...
faye-websocket 0.4.1 Standards-compliant WebSocket server and client install gem install faye-websocket Download Documentation Subscribe Stats Authors James Coglan 1,577 total downloads 7 for this version Owners Links Homepage Bundler gem "faye-websocket", "~> 0.4.1" Versions 0.4.1 Fe...
Ruby Modules are similar to classes in that they hold a collection of methods, constants, and other module and class definitions. Unlike classes, you cannot create objects based on modules; instead, you specify that you want the functionality of a particular module to be added to the ...
$ rvm help # Documentation Index Documentation > Integration > Cron Using RVM with Cron RVM allows few easy ways to integrate with cron Direct calling RVM generated wrappers. Loading RVM environment files in shell scripts. Direct calling custom RVM wrappers (eg. God). Loading and usin...
One skill that is important is being able to respond to change. I frequently think back to a quote I saw in a skateboarding video from a few years ago where photographer Grant Brittain talked about the changes he had seen in the sport and business of skateboarding over the past 30 yea...
faye 0.8.0 Simple pub/sub messaging for the web install gem install faye Download Documentation Subscribe Stats Authors James Coglan 47,449 total downloads 5 for this version Owners Links Homepage Bundler gem "faye", "~> 0.8.0" Versions 0.8.0 February 26, 2012 0.7.1 December 22, 2011 ...
faye-redis 0.1.0 Redis backend engine for Faye install gem install faye-redis Download Documentation Subscribe Stats Authors James Coglan 4 total downloads 4 for this version Owners Links Homepage Bundler gem "faye-redis", "~> 0.1.0" Versions 0.1.0 February 26, 2012 Runtime Dependenci...
memcached 1.4.0 An interface to the libmemcached C client. install gem install memcached Download Subscribe Stats Authors Evan Weaver 176,995 total downloads 18 for this version Owners Links Homepage Source Code Documentation Bug Tracker Bundler gem "memcached", "~> 1.4.0" Versions 1....