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.
Hebillas, the perfect suspender companion
If you’ve ever used the awesome Suspender Gem from thoughbot, you might like to check out Hebillas, our companion template.
Write Your Talks / Presentations in Markdown - New Slide Show (S9) Online Service
Hello,
I’ve put together a litte online editor / service for the Slide Show (S9) machinery that lets you convert plain text with markdown formatting into slide shows using your template pack of choice (e.g. S6 Blank, deck.js, etc.). The service runs on Heroku e.g. tryslideshow. About the formatting: Heading 1s get converted to “title” or “section” slides. Heading 2s get converted to “regular” slides and use horizontal lines (e.g. ---) for “hard” slide breaks. Example: [more inside]
Twitter Streaming APIs with Ruby
Twitter Streaming APIs provide a interface to monitor or process Tweets in real-time. In this post, I want to share about how to use it in Ruby to get real-time Tweets data. Read more here.
Packaging ruby programs in NixOS
NixOS is a system in which all packaging is declarative. In this blogpost I describe how to package simple ruby program to NixOS system. [more inside]
Top 10 Tools/Ruby Gems for Quickly Building Social Networking Sites
Check out some of the best Ruby gems for building social networking websites. Read here
Rails 5 allows updating a record without updating timestamps
You can now save without updating timestamps in Rails 5. [more inside]
[Screencast] WYSIWYG Editor with Trix
Compose beautifully formatted text in your web application. Trix is a WYSIWYG editor for writing messages, comments, articles, and lists. https://www.driftingruby.com/episodes/wysiwyg-editor-with-trix
Make Ruby Great Again
This is a talk on how we can make Ruby thrive in spite of its maturity. What starts as an RSpec & Rails 5 talk broadens dramatically to a discuss Ruby’s eroding relevance in the industry. Ruby’s maturity has created a paradox: it’s a more productive environment than ever to work in, but Ruby is being talked about less in our novelty-obsessed industry.
Ruby on Google App Engine goes beta
A Ruby runtime on Google App Engine was released (in beta) at RailsConf last week. https://cloudplatform.googleblog.com/2016/05/Ruby-on-Google-App-Engine-goes-betaruntime.html
Filter sensitive Rails redirects in log files
Do you know the Rails.application.config.filter_redirect filter? It’s an undocumented configuration feature which lets you filter certain redirect URLs from your log files. This is handy when you’re redirecting to a URL with tokens in it so that they don’t show up in the log. Here’s an example.
Model's validation testing with type of validation
I have seen many times people do validation testing by comparing validation message, but instead if we use validation type ( symbolized key of locale ) to know which validation failed, it will make code easy and readable. http://blog.railsupgrade.com/2016/05/how-to-test-model-validations-with.html
SingleCov: Actionable code coverage
Singleov shows uncovered lines after each test run with minimal runtime overhead.
Ruby's Parameters Reflection
The last two days’ episodes: Fancy number literals and reflecting on method parameters!
Cache expiration by custom fields
I recently worked on the performance issue, which was solved by caching of complex response which consists of fields from several objects and I will describe below example of the solution which I came to. http://warolv.net/blog/2016/05/06/cache-expiration-by-custom-fields
Invisible Captcha: new release with time-sensitive form submissions
I just pushed a new release of Invisible Captcha (v0.9.0) with some interesting additions like: time-sensitive form submission (configurable per app, per controller and per action) and i18n integration. Also, we introduced a much better CI platform, to ensure compatibility across different Rails versions, and made a little clean up deprecating some useless things. [more inside]
Methods in Ruby
Check out this new post on the “Zen Ruby” blog: Methods in Ruby.
Matz on The Changelog
This week on The Changelog we caught up with Matz to discuss the origins of the Ruby programming language, its history and future, Ruby 3.0, Concurrency and Parallelism, Streem, Erlang, Elixir, and more. Listen Here.
Ruby Podcast Episode 4
Learn about the basic software development laws such as Linus’s Law, Occam’s Razor, Hanlon’s Razor, The Pareto Principle, Postel’s Law, Hofstadter’s Law and The 90-90 Rule. Listen to RubyPlus Ruby Podcast 4 .
Rails 5.0.0.racecar1 as been released today
It started as a joke, but adding “gem ‘rails’, ~> ‘5.0.0.racecar1’” to your gemfile will work. The RC1 of the framework was released today. It has been named in honor of DHH that could not attend RailsConf this year because of a race condition. [more inside]
Use hashids in ActiveRecord to obfuscate ID
I made a gem which provides the functionality to use Hashids in your Rails application transparently. https://github.com/dtaniwaki/acts_as_hashids Please take a look and give me a feedback in GitHub.
Free Online Full-Day Jekyll Static Site Conference 10am-5pm (PST) Sat May 7th
Hello, Just a reminder: Tomorrow (Saturday) at 10am Pacific U.S. West Coast (e.g. San Francisco) Time starts the free single-track full-day online Jekyll static site builder conference aka JekyllConf. 12+ talks about all things Jekyll and friends. PS: For more static sites news bytes (Jekyll, Middleman, and friends) see the Static Times twitter news channel @statictimes. For more Jekyll goodies, see the Awesome Jekyll series @ Planet Jekyll ;-) Cheers.
A Wishlist for Ruby 3.0's New Typing System
Ruby 3.0 may include static typing! We shouldn’t be too afraid. [more inside]