#ruby
13 posts tagged ruby. Clear filter
-
How Beautiful is Ruby?
Working with Ruby and in particular Rails, it's easy to take the beauty inherent in the language for granted. I mean look at this code. If you read it aloud to yourself, it reads like an english...
-
Active Record Find Methods
Active Record find methods for selecting range from http://charlesmaxwood.com/notes-from-reading-activerecordbase/
-
Ruby Strftime Day Without the Leading Zero
-
Hello Rack
What is Rack? Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and...
-
Reading, Writing, Removing Files and Directories in Ruby
These aren't all of them, but I think they are some of the most useful.
-
How to Install a Ruby Package without Ri or RDoc
-
Send Mail in Ruby with a Pony
Great little gem that let's you quickly and easily send out mail from your ruby scripts.
-
Installing Monk on Ubuntu with Ruby Gems
Installing monk like this will fail You'll need to install the wycats-thor gem first with this command
-
Deploy Sintra App on Ubuntu Using Apache2 and Phusion Passenger Module
Check it out http://sinatra.seanbehan.com/ This assumes Apache2 and the Phusion Passenger module have already been installed. If not you can get up to speed w/ this resource...
-
Gem Information with Gem List
If you want to get version information about a gem the easiest way to do it is with this command For example will output the activemerchant versions I have installed. You can pass only part of the...
-
Using Your Partials in Your Liquid Templates
I'm working on a project that requires users/designers be allowed to edit the layout of their site. I'm using Liquid, Ruby templating system developed by the folks at shopify.com. Doing a little...
-
Rails: Expiring a cached page with namespaces and sweepers
I've got some pages that are cached using their permalinks on the filesystem, such as http://example.com/about-us.html which will need to map to RAILS\ROOT/public/about-us.html ... The issue I have...
-
Custom Date Formats for Your Rails Application
If you use a consistent date format often in your Rails applciation, it is worth it to add the format to your application environment. You can do this by adding it to the bottom of the...