The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Check out this Ruby/Rails Development Environment based on Vagrant, VirtualBox and Ubuntu 16.04 (Xenial Xerus). Tested on Windows and Ubuntu 16.04 hosts, should also work on OSX hosts.
There are not so many challenges you face when working with AngularJS framework. In this article I would like to discuss code duplication in AngularJS controllers. Duplication is not something new but with AngularJS I saw some approaches that I didn’t like but those are widely used. http://blog.active-bridge.com/fighting-duplication-in-angularjs-controllers
Quick tip on a couple methods to determine the interference of two arrays. https://solidfoundationwebdev.com/blog/posts/how-to-determine-if-an-array-contains-any-value-from-another-array-in-ruby
We wrote a general introduction to the bottlenecks of web applications and how application servers can deal with them to improve request throughput and response times. Good read for both the new and the experienced, read it here!
pg-eyeballs is a ruby gem that gives you detailed information about how the SQL queries created by the active record code you write are executed by the database. It gives you an easy, ruby friendly way to see the output of the Postgres EXPLAIN command and integrates with the popular query analysis tool gocmdpev. [more inside]
A short list of links to valuable Java/.Net conference recordings. More here
Using Git Flow, learn how to work with branches and organize your changes. Once you have completed features, learn how to merge them back into a develop branch and prepare for a release to your master branch. https://www.driftingruby.com/episodes/version-control-with-git-flow
A look at the constantize method in Rails, how it can be exploited, and how to use it safely within your code: http://gavinmiller.io/2016/the-safesty-way-to-constantize/
Executing background jobs is quite a common feature in many of the web applications. Switching between different background processing frameworks used to be quite painful as most of them had different API for enqueuing jobs, enqueuing mailers and scheduling jobs. One of the great addition in Rails 4.2 was a solution to this problem: ActiveJob, which provides extra layer on top of background jobs framework and unifies the API regardless of the queue adapter you use. But how exactly does it work? What are the requirements for adding new queue adapters? What kind of API does ActiveJob provide? Let’s dive deep into the codebase and answer these and some other questions. [more inside]
A quick look at the high_voltage gem which makes adding static pages to your Rails application a breeze: https://christoph.luppri.ch/articles/2016/09/25/adding-static-pages-to-your-rails-app/
We wanted to use jekyll to build a simple marketing homepage for an upcoming product but keep it on the same domain as the app itself. I’m describing the steps needed to set up jekyll to work within a rails app and how to get it running on Heroku in a quick blog post.
Our company works with Ruby on Rails technology and that is why I would like talk with you about settings for Rails 4 application with Turbolinks. As a rule, you can implement GA code fast and easy, following these 4 steps. But pay attention to the points… http://blog.active-bridge.com/easy-way-to-implement-ga-code-in-your-rails-app