Active Admin For Ruby On Rails

Today’s featured Ruby gem provides users with a Ruby on Rails MVC framework an administration dashboard that comes with an out of the box user interface. This gem allows developers to manage data using a web-based UI. The UI comes with lots of documentation that’ll enable any RoR developer to get going on its project, [...]

Continue Reading →

Quickly Convert Hash Into URL Query

Here’s a rather quick and very short helpful Ruby trick that some of you might be interested in incorporating to your current or next project. It’s basically a snippet that makes use of the to_query method that’ll allow you to quickly convert a hash of values into a URL string. “http://www.example.com?” + { language: “ruby”, [...]

Continue Reading →

Adding Expires Headers In Ruby On Rails

Whenever a first-time visitor visits your page, it may take several HTTP requests before the web page finish loading. To speed up your website, it helps to use Expires header to make any web page components cachaeble. By doing this, you can avoid any unnecessary HTTP requests on subsequent page views. Expires headers are most [...]

Continue Reading →

Rails for Zombies: A Fun Way To Learn Ruby On Rails

Never has learning how to build apps using Ruby on Rails been so much easier and a lot more fun than playing Code School’s Rails for Zombies (or R4Z). Created by Gregg Pollack, R4Z is a clever attempt on introducing newbies to using Ruby on Rails. R4Z is an educational site with a twist. It [...]

Continue Reading →

10 Ruby Capabilities You Might Not Know About

Today’s programming tips and tricks come in the form of a slideshow presentation created by James Edward Gray II for his role as a speaker in the Aloha Ruby Conference held in Honolulu on October 2012. His talk featured a collection of various Ruby capabilities that programmers either tend to overlook or are completely unaware [...]

Continue Reading →

Troubleshooting Performance Problems In Ruby

Today’s post features a nice tutorial video from Nettutsplus and it’s about troubleshooting performance problems when using Ruby. This is great especially for beginners. It only runs for just about 6 minutes but already manages to cover everything from identifying the problem to testing and actually fixing it. You’ll be able to learn the fastest [...]

Continue Reading →

Ruby Tips On Struct And OStruct Classes

Steve Klabnik wrote an interesting piece on how to take make the most of Ruby’s classes, which are the Struct class and OpenStruct class. In his blog post, Steve shares its documentation and gives a few good examples of where and when to take advantage of these structs and use them quite effectively. For instance, [...]

Continue Reading →

Getting A File’s Information In Ruby Using File::Stat

Here’s another nice tip from Michael Morin on how to get a file’s information in Ruby using the File::Stat class; information such as such as file size, date last modified, date last accessed, and more. This can be quite useful in situations wherein you want to query the operating system about a particular file without [...]

Continue Reading →

How To Configure PostgreSQL On Mac

Our featured tutorial for today comes from Ruby on Rails developer Gavin Morgan via Natasha Murashev’s blog “Natasha the Robot.” In this tutorial, you’ll learn how to download and configure PostgreSQL with your Rails application on a Mac platform. Simply follow the instructions below: Visit postgresapp.com & download the app. Install & run the app. [...]

Continue Reading →

Testing CSV File Uploads In Ruby

Testing the functionality of a CSV file uploader may seem to be simple and straightforward at first but as it turns out – not quite as explained in Ruby Quicktips. Say if you have a form for uploading CSV files like the one below: <%= form_tag csv_import_path, :multipart => true do %> <%= file_field_tag :file, [...]

Continue Reading →

Page 1 of 3123»