Mark Richman provides expert advice, strategy, and software solutions to businesses worldwide. His clients range from the Fortune 500 to small businesses to startups seeking dramatic results. Mark creates and improves business-critical web applications, increasing productivity and maximizing profits.

Posts Tagged ‘rubyonrails’

Rails 2.3 Application Template template.rb

Here’s my current Rails 2.3 application template which uses the following features:

asset_packager
exception_notifier
paperclip
restful-authentication (generates user and session)
role-requirement (generates roles for user)
rspec
cucumber
active_merchant
sqlite3-ruby
will_paginate
haml
nifty_layout
Capistrano capify
database session store

Deploying Rails Apps with Capistrano, Git, and Passenger

I host my sites on an Ubuntu VPS. I use a combination of Rails, Apache2, Phusion Passenger, Git, and MySQL. I have a pretty useful Capistrano deploy.rb if you have a similar configuration. I’d love some feedback, as I promised to assist Jamis Buck in his Capistrano documentation efforts.

Ruby on Rails: Adding XSL Processing Instruction with to_xml

Style Sheets can be associated with an XML document by using a processing instruction whose target is xml-stylesheet. It looks something like this:
<?xml version=”1.0″ encoding=”ISO-8859-1″?>
<?xml-stylesheet type=”text/xsl” href=”something.xsl”?>
How do we get to_xml to render the XSL processing instruction? Put this in your controller:

RailsConf Git Talk

Scott Chacon’s RailsConf 2008 Talk on Git:

RailsConf 2008 David Heinemeier Hansson’s Keynote Video

RailsConf 2008 David Heinemeier Hansson’s Keynote Video

RailsConf 2008 David Heinemeier Hansson Keynote from daniel wanja on Vimeo.