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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Screencast: Fast Testing Workflow With Test.vim
In this short video I want to demonstrate a fast TDD workflow using the Test.vim plugin by Janko Marohnić.
How we Integrate React with Rails at Ivy
We decided to roll our own React-Rails integration at Ivy six months ago ago, and we’ve never looked back. Read this clear guide to integrating React with your current Rails setup without sacrificing a complete, flexible front-end toolkit.
[Screencast] ActionCable - Part 3 - Securing Your WebSockets
Using authentication and authorization, lock down your ActionCable WebSockets so that messages are only sent and received to the intended users. https://www.driftingruby.com/episodes/actioncable-part-3-securing-your-websockets
New screencast series for Rails and more
I’m the author of the book, Learn Ruby on Rails, and I’ve been working with Asia Granada to create a new screencast series for beginners, Fullstack Videos.
Consider Turbolinks 5 for your next Rails project
Turbolinks 5, for me, has become a default. Its speed benefits are impossible to ignore, and it makes an excellent user experience possible without a JavaScript MVC. Here’s how I use it and why you should consider it too.
Rbenv - How it works
Dealing with rbenv errors without Google or Stackoverflow. This post explores how rbenv works under the hood. https://medium.com/@Sudhagar/rbenv-how-it-works-e5a0e4fa6e76#.gxv1uahvm
Remote work
Are you working remotely already? We Ruby developers are more connected to remote work than the other language developers. I thought it would be relevant to share here my personal experience on this subject. http://davidmles.com/blog/remote-work/
A web console for Rack
I’ve just released rack_web_console which is basically a port of my other gem rails-web-console that could be used with any Rack application. Here’s a “hello world” config.ru:
Hanami v0.8
New validations syntax with predicates, high level rules and error messages. JSON logger format, faster static assets serving. Subresource Integrity, updated Content Security Policy, and new HTTP security headers. http://hanamirb.org/blog/2016/07/22/announcing-hanami-080.html
RubyDay is back! In Florence!
RubyDay, the Italian Ruby Conference, is back again in 2016. This time we’ll take you in the beautiful Florence! http://www.rubyday.it [more inside]
worque - Manage your daily notes like a boss
Ever stunned when your boss suddenly asked what you’ve done yesterday? Wanna check all your daily tasks without exiting your favourite editor VIM? Something to report on daily stand-ups? Then worque is definitely a right tool for you! Read more about it here
Rails 5 fixes ambiguous column issue for projected fields in group by query
We now don’t have to provide a table name in quoted string for fetching fields which are present in join table as well when used with group by clause. [more inside]
Webmock.io
Webmock.io allows you to create HTTP endpoints with custom responses (aka mocked web services). Every mock will be assigned a unique link that can be used to access it. All requests to this endpoint will be tracked and can be inspected on the history page. It also allows realtime debugging of the incoming requests by showing live updates on incoming requests to the endpoint.
respond_to |format| is useful even without multiple formats
You might think that if a controller action is only capable of rendering HTML, there is not much reason to use respond_to. After all, this is what Rails scaffold probably taught you. [more inside]
How To Perform A Task After View Render Using Threads In Rails
Heres a simple technique for running code after the render or redirect using a new Thread. https://solidfoundationwebdev.com/blog/posts/how-to-perform-some-task-after-view-render-using-threads-in-rails
New blog article: Web applications on Phusion Passenger are not vulnerable to HTTPoxy
We wrote a short blog article on how HTTPoxy can affect web application security, why applications on Passenger are not vulnerable and why Ruby apps in general are not vulnerable. Read about it here
New gem for the Gyft API
I have a little project that required me to work with the Gyft developer API. As there was no gem yet I decided to build one.
Ruby compiled code in Rubinius
A small post about how to compile one script and require the compiled version in Rubinius. http://gzfrancisco.name/code/2016/07/20/ruby-compiled-code/
New Features in Ruby 2.4
Code examples for 15 new features and improvements coming in Ruby 2.4 https://blog.blockscore.com/new-features-in-ruby-2-4/
A new player in Rails CMS team
Happy to announce new open source Ruby on Rails CMS. Let’s build websites faster and simpler with KMS - https://github.com/webgradus/kms
Returning unique records from an ActiveRecord query
Introduced in Rails 4.1, #distinct is a nice addition which moves you one more step away from writing custom SQL statements in your Rails project. https://christoph.luppri.ch/articles/2016/07/20/returning-unique-records-from-an-activerecord-query/
Clean up your routes with Sinatra::Namespace
After fighting with Sinatra::Namespace for a few weeks, the build is finally green! Since then, I’ve added some documentation for writing your Sinatra routes in a modular fashion and wanted to share that here too. Read on!
Post Rails-Way Book Bundle
Together with other book/video authors, we’ve decided to create a Post Rails Book Bundle. The theme of the bundle is all things which are beyond “The Rails Way”. The offer is time-limited and ends on Friday this week. [more inside]
Rails: Namespacing our Controllers Parts 1 and 2
In these (part 1, part 2) videos we show you how to namespace your controllers. Namespacing your controller can help keep your monolith application clean and manageable.