You have disabled auto-rotation for stories. Re-enable?
If you're looking for a top Ruby job or for top Ruby talent, then you should check out Top Ruby Jobs. Top Ruby Jobs is a website dedicated to the best jobs available in the Ruby community.
This week the Rails Twitter account reached out for ideas for Rails 4.1. Dr. Nic suggested allowing for setting custom load paths for config files. That way nothing within your app has to get changed on deploy, allowing you to lockdown your permissions. Aside from tweets, the contributing doc inside of the Rails repo suggests sending an email to the rails-core mailing list.
It can be a pain to develop a gem locally since you need to modify the Gemfile of whatever application you’re working with to point to a local path on your machine instead of RubyGems or a Git repo. Thanks to Ryan Bigg and Phil Arndt I discovered that you can override which source Bundler uses to fetch a specific gem listed in your Gemfile by using the command: bundle config local.
Caleb Thompson over on the thoughtbot blog wrote up a piece with Derek Prior about how to do full text search in Rails with Postgres across multiple tables. They achieved this using Textacular, created a database view and GIN indexes on the searched column. Thanks to the latter the search operation was reduced from 3 seconds minimum to about 100 miliseconds.
Ruby, like most programming language allows people to write conditionals to determine whether: an integer is odd or even, greater than another, or between two integers. Except in many cases there are better ways to do this in a more object-oriented way using the predicate methods defined on core ruby classes like Fixnum. And that’s exactly what Bozhidar Ivanov Batsov demonstrates a neat blog post called Know Thy Predicates. Many of these predicates tend to make your code more expressive. Although as Bozhidar mentions in the post, they require you to be careful about the risk of calling these methods on nil since your conditional will explode with a NoMethodError instead of false.
This week on the sensible.io blog they go into everything you need to know about Strong Params walking you though a few examples. You'll learn about permit and require as well as more advanced examples like how to handle nested parameters.
Sometime last week I noticed that http://railsapi.com had gone belly up. I loved it specifically because it merged the Ruby 1.9.2 docs with the Rails 3.2.x docs allowing you to easily figure out whether the method you were looking for came from Ruby or Rails. Sadly the site hadn’t been updated to Ruby 1.9.3, the latest Rails 3.2.x or even Rails 4 recently so I ended up going back to the http://api.rubyonrails.org site which always documents the last stable Rails release. Thankfully I noticed today that someone solved the problem by merging the Rails 4.0 docs with the Ruby 2.0 docs.
Last week Matthew Lehner wrote up a nice blog post about how to get started testing your api's using rspec and rack::test. It's a really well written and easy to understand post that goes into not only the How but the Why. I love articles like this that go over how to get started following a best practice. It might seem like second nature to an experienced developer but this is pure gold to junior developers looking to hone their craft.
What the duck is going on? A lot of C programming on on Ruby5? Having fun fiddling around and looking at the clouds.
Index attachments on Elasticsearch, Refinery 2.1 released, Conditionals Aren't Evil, Disable Postfix on OS X, validate with Mutations and take snapshots of your commit faces with LOLCOMMITS.
In today's episode, learn about the initializing and, get responsible with your refactoring, simplify your regular expression creation, get skeuomorphic with your credit card forms and so much more! Actually, just one more thing: two-factor authentication done easy. Now there's no more!
Reparing BREACH in Rails, Using state_machine with Authority, AR-JDBC 1.3 RC, developing with UltraHook, Running specs from Vim and using emojis on your RSpec output
Looking to learn about Ruby? Take a look at the Ruby Path on Code School
This podcast is produced and distributed by Code School. Copyright © 2016 Code School LLC