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.
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
Making API for a Rails application is simple for a Ruby on Rails developer. In any case, how different clients/customers will know whether the API is working fine or not without a customer side application. Is there any answer for this which I can report for API inside the Rails application, The answer is yes we have numerous instruments and methodologies however I would favor swagger UI. In this article I am going to disclose how to make Rails API documentation using swagger UI
We’ve decided to make public our regular digests of articles worth reading by the whole team. In our #1 public digest there are 10 links to interesting articles from around the web, from Ruby 3 new concurrency model (links to Koichi’s original slides from RubyKaigi) through ActiveRecord lazy evaluation to learning CSS Flexbox in a few minutes.
Here’s a short blog post about using
active_model_serializers, so you can all get rid of your as_json, to_json and serializable_hash monkey patches:
In the previous post I talked about the foundation of Shrine’s design. In this post I want to show you Shrine’s high-level interface for attaching uploaded files to model instances, and what advantages it has over other file upload libraries. Read the post here.
Do you prefer skinny models or skinny controllers? That’s a mean thing, indeed, to ask incorrect question on purpose. mkdev.me mentor Ivan Shamatov writes about how to use Interactors, using an order in e-commerce app as an example. https://mkdev.me/en/posts/a-couple-of-words-about-interactors-in-rails
I’ve published new gem. It offers a new approach to manage growing complexity in rails applications. gem: https://github.com/antulik/pagelet_rails
Custom database cleaner for cleaning multiple databases in Rails applications when using dynamic ActiveRecord connections.
Hello, In the Static Times Q&A series let’s welcome Stefan Haslinger - author of Octopod - a free Jekyll extension (theme and scripts) that lets you publish your own radio shows in minutes w/ Ruby ;-) Questions (and answers) include: Q: How did you get started with podcasting? ++ Q: Do you remember - how did you find out/ get started with Jekyll? Did you try out any alternatives static (web) site builders e.g. Middleman, Nanoc, etc.? ++ Q: Jekyll and Podcasting - How (and why) did you get started / end up writing your own Jekyll Podcasting extension (Octopod)? ++ Q: Can you highlight some of the great Octopod features / goodies? ++ Q: How do you handle the upload / sync of the big media files (audio recordings)? ++ Q: What’s next for Octopod? Any plans for the future? ++ Q: Any tips on getting started with Octopod? Read the full Q&A » Cheers. Happy Podcasting. Happy Jekylling.
I have been working with a lot of different data sources lately and wanted to have a DSL that is capable of handling the conversions/coercions and type checks on the boundries of my application. Here is the blog post with reasoning behind “massager” gem: http://janjiss.com/why-i-wrote-massager-gem/