Archive for the 'ruby' Category

Here’s the latest bit of design work I did: a calendar. I wanted to make it reminiscent of a post-it note, and I don’t really know why. The colors are all themeable anyway (I just use a palette hash, so I can swap it out with another and keep a library of them [...]


UPDATE: Added another style nav to the code below. It’s ALA’s Taming Lists.
I can now just use helpers to generate list styles. There are loads of config options. This makes building interfaces stupid simple. I’m going to implement most of listamatic’s various list types, for my own edification and ease [...]


So I’ve got my RcssController handling all my css files these days (so I can make sweeping color changes, or per-user stylesheet config settings), and I just added my first helper function. You use it like this, to generate shadows on a given element:

div.trip .package{
width: 16em;
padding: 1em;
margin-right: 1em;
background-color: #282828;
float: [...]


http://tadek.pietraszek.org/blog/2006/02/26/geolocating-ip-addresses-for-free/


The original post on this can be found here.
Jeremy Flint suggested it be a non-techie presentation, to cater to the good third non-techie users that will be there.
As a vote tally, looks like I have the following:
2 Action Web Services
1 RJS
1 Benefit of Ruby/Rails over other languages/frameworks
1 What it takes to get a dev environment [...]


UPDATE: IPSA = Internet Professionals Society of Alabama
I'm going to list a bunch of potential topics, and let's say any visitor gets 10 points to distribute among the topics. Whichever topics come out on top will probably get talked about, unless I find myself inadequate to the task. Or I don't feel like giving [...]


export RAILS_ENV=production; rake migrate


This was something that eluded me for a pretty decent bit, and yet it's so easy. I was trying to use Lightbox Gone Wild in an AJAX-tastically created area, and the lightbox.js doesn't get run…so I just popped up my .rjs file and added
page.call 'initialize'
Really. That's all.


Given a layout like:
@left_column
@content_for_layout
You can create an action in your controller as follows:
@left_column = render :partial => 'stores/search_panel'
This will fill the left column with your search panel.