RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

HTML Tags => Markdown Quick Reference (Cheat Sheet) for Static Site Gens & HTML Pros

Hello, FYI: I’ve put together a new HTML Tags <=> Markdown Cheat Sheet for static site generators such as Jekyll, Middleman, Nanoc, and friends. Why (yet another) Markdown cheat sheet? The new cheat sheet assumes you know HTML (inside-out) and shows how you markup hypertext in plain text without any angle brackets (</>) and - of course - the cheat sheet itself is in Markdown with “live” previews and “licensed” as public domain (that is, no copyright, no rights reserverd) for easy (re)use. Cheers.

Get the latest version of a gem

I had enough if going to rubygems.org to find out what the latest version of Rails is. Add this to your bash or zsh profile to give yourself a simple command to quickly check the latest version: [more inside]

Or just run gem outdated.

Safely Storing Your Assets: Paperclip With AWS + Heroku

Integrating the paperclip gem is fun until you realize that you have to configure your application to work with AWS and Heroku. Then it might become a little less fun. This blog post walks through the steps of safely storing your assets using AWS S3, Heroku, and how to correctly configure environment variables.

Faster Ruby Testing: Only Test What Matters

Automated testing is important. Fast, exhaustive automated testing is even more important. Tests are responsible for ensuring the code you spend hours creating actually works. A great test suite can be a safeguard against bugs, a directional guide towards extending the code, and an accurate measurement of the codebase’s health. The key to writing good tests is understanding where pieces of responsibility begin and end. Maintaining small concise automated tests can make all the difference.

A Recipe for Rails Continuous Integration

A basic CI process for a Rails app checks out the latest code and runs the test suite with rake. But there is so much more you can do with a good CI script. Here are my favorite techniques for using CI to run security analysis, automate Ruby and Bundler upgrades, test data migrations, and more. Get the most out of your CI!

Permittribute

We sometimes face scenarios where we need same permitted attributes for a model in different controllers and end up re-writing all attributes again (violating DRY). Permittribute is meant to: - reuse same permitted attributes at different locations/controllers. - scope permitted attributes base on roles like admin, api etc. - group permitted attributes at a single reference point in their respective scopes. Read more…

Loading older posts