3

Rails3 Custom Environment Variables

Posted by Jason Noble on 02/14/2011 in ruby, ruby on rails

I recently saw a question on Stack Overflow regarding custom variables that have different values based on which environment you are running for Rails. It turns out it’s very easy to accomplish. This gives you access to a Rails variable called Configuration.json_url. Now we just need to initialize this value in our environment files. Now [...]

 
-

Making TextMate recognize .html.erb files

Posted by Jason Noble on 09/21/2008 in ruby, ruby on rails, textmate

I’m using TextMate to edit some Ruby on Rails code. I noticed that when I edit the view pages (i.e. index.html.erb) it does not do syntax highlighting. It turns out this is because the Ruby on Rails TextMate bundle thinks that ruby view pages are .rhtml, which is the old Ruby on Rails format. You [...]

 
1

Installing Ruby on Rails in FreeBSD with Postgres

Posted by Jason Noble on 09/02/2008 in FreeBSD, postgres, ruby, ruby on rails

After setting up a minimal FreeBSD install, I want to get Ruby on Rails up and running. Let’s see what’s available in the ports tree. The ruby-gems port looks promising. Let’s install it. The install requires ruby to be installed, so it installs that for us (if it’s not currently installed). I enabled RDOC and [...]

 
-

Setting up IronRuby

Posted by Jason Noble on 08/15/2008 in .net, ironruby, microsoft, ruby

I’m playing around with learning some Microsoft technologies to broaden my knowledge base. I figured I’d start with Ruby, as it’s something I sort of already know and gives me visibility into Microsoft tools. From my research, Microsoft is working on a project called IronRuby. To get started, I’m following the directions here.

Copyright © 2008-2012 Jason Noble's Technical Adventures All rights reserved.
Header images Copyright © Johnny Goldsmith Goldsmith Creative

Desk Mess Mirrored v1.7.2 theme from BuyNowShop.com.