There are many approaches to locking down an API. Here I start off with HTTP Basic authentication then move on to generating a unique token which can be passed through a URL parameter or HTTP header.
May 24, 2012 Tagged: factory girl testing traits ruby rails Comments (View) Remove Duplication with FactoryGirl’s Traits FactoryGirl ’s traits are an outstanding way to DRY up your tests and factories by naming groups of attributes, callbacks, and associations in one concise area. Ima...
#353 OAuth with Doorkeeper May 23, 2012 | 19 minutes | APIs , Plugins Doorkeeper makes it easy to create an OAuth 2 provider. This episode also shows how to setup OmniAuth as an OAuth client and use the oauth2 gem to communicate with an API. Subscribe to Watch Episode Tweet Show Notes...
Heroku Cedar Stack now in General Availability Posted by schneems on May 24, 2012 — 0 comments Starting Now on Heroku, Cedar Stack is in General Availability . Now you get all the things you love about Heroku defaulted to the latest and greatest stack. Comments Post a Comment Comm...
This is the first preview release of JRuby 1.7. This release represents a tremendous amount of work by dozens of contributors, and there are improvements in every subsystem. Users on Java 7 should start to see gains from invokedynamic, the JVM’s new support for dynamic languages. User...
Oauth: A Tale of Two Servers Posted by schneems on May 24, 2012 — 0 comments What exactly is OAuth 2 , and how can you use it to access data on sites like Facebook? We'll take a quick look at how servers can use OAuth to talk to one another. Comments Post a Comment Comment abiliti...
Gain Competitive Advantage with Platform as a Service How Platform as a Service Enables Innovation Scaling your Rubyists: Dynamic Staffing for a Dynamic Language See a Clear Path to App Portability in the Cloud with Fog Deploying, Monitoring and Troubleshooting Rails on the JVM with J...
Nice blog post. :) But I don’t think I agree with your points about Java collections vs Ruby collections. The different collections interfaces/implementations do have different purposes. For example, take HashMap and TreeMap. HashMap is – tadaa – implemented with a hash table and has ...
will take place in Burlington, Vermont on July 28 - 29th. Join like-minded Ruby enthusiasts for Vermont's first Ruby conference, hosted on beautiful Lake Champlain. Besides an amazing lake setting and great presentations from well known industry speakers, you'll be joining peers from ...
Talks: gem for talking ruby and mac command-line tools Posted by gazay on May 24, 2012 — 0 comments If you want to hear some response from your code or long tasks - use talks gem. Or just for fun :) Comments Post a Comment Comment abilities for non registered users are currently d...
The current version of expectations (1.4.3) prints colorized results by default on non-windows boxes. The following screenshot is an example of the output when no tests are failing: And, the following screenshot is an example of the output when there are failures or errors: Colorized ...
RailsCamp New England - June 22 - 25 Posted by bcardarella on May 24, 2012 — 0 comments Registration is now open! All skill levels are welcome Comments Post a Comment Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solv...
“Consultor é como puta: recebe por hora, faz o que o cliente quer, na hora que quer e quem leva a grana é o cafetão.” Sim, eu sou consultor. Se existe um conselho que gosto de dar é esse: mantenham dois olhos à frente e outro atrás. Como todos que acompanham esse blog devem saber, eu ...
Metric Fu, Metrical, SimpleCov, Rails Best Practices, and more are covered in this episode on metrics.
JRuby Core Team Members Moving to Red Hat At JRubyConf this week, it was revealed that Thomas Enebo and Charles Nutter - key members of the JRuby core team - are moving from Engine Yard to Red Hat. Learn more about what they'll be up to here. First Alpha of ruby_parser 3.0 Released ru...
When you’re thinking of doing something like this it’s always a good idea to first consider your requirements and make sure that you really don’t want to store the data from the form in a database as there are often good side-effects to doing this. A database can act as a backup and a...
Creating a social networking site often requires a self-referential association on the User model to define friends/followers. In this episode I show how to do exactly that.
A Ruby client that tries to match Redis' API one-to-one, while still providing an idiomatic interface. It features thread-safety, client-side sharding, pipelining, and an obsession for performance.
A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.
Associates two classes via an intermediate join table. Unless the join table is explicitly specified as an option, it is guessed using the lexical order of the class names. So a join between Developer and Project will give the default join table name of "developers_projects" because "...
>> What is the command to see what version of ruby and what version of >> rails i am running? >> >> Thanks in advance! >> >> Kristen > > ruby -v rails -v and if you installed Rails via gem you can use: gem list to show the versions of all the components. -- Michael Wang