<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AkillesBlog &#187; tutorial</title>
	<atom:link href="http://blog.akilles.org/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.akilles.org</link>
	<description>Talk on programming, computers, electronics, web etc</description>
	<lastBuildDate>Sun, 13 Jun 2010 02:42:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Emacs Muse on Windows XP</title>
		<link>http://blog.akilles.org/2009/03/14/installing-emacs-muse-on-windows/</link>
		<comments>http://blog.akilles.org/2009/03/14/installing-emacs-muse-on-windows/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 19:31:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[muse]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.akilles.org/?p=67</guid>
		<description><![CDATA[This post will deal with the installation of the GNU Emacs editor plus the Emacs Muse authoring/publishing environment running Windows XP.



Download &#038; extract
GNU Emacs
First, obtain the latest precompiled Emacs binaries for Windows. Get it directly from the FTP location here, alternatively follow the link from the Getting Emacs guide. Download the latest zip-version marked bin; [...]]]></description>
			<content:encoded><![CDATA[<p>This post will deal with the installation of the GNU Emacs editor plus the Emacs Muse authoring/publishing environment running Windows XP.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0426298800349415";
google_ad_slot = "0902617621";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h2>Download &#038; extract</h2>
<h3>GNU Emacs</h3>
<p>First, obtain the latest precompiled Emacs binaries for Windows. Get it directly from <a href="http://ftp.gnu.org/gnu/emacs/windows/">the FTP location here</a>, alternatively follow the link from the <a href="http://www.gnu.org/software/emacs/windows/Getting-Emacs.html">Getting Emacs guide</a>. Download the latest zip-version marked <strong>bin</strong>; <strong>emacs-22.3-<em>bin</em>-i386.zip</strong> these days.</p>
<p>For the full guide on installing emacs on Windows, consult <a href="http://www.gnu.org/software/emacs/windows/Installing-Emacs.html">this</a> guide.</p>
<p>After downloading, extract the Emacs zip-file to a permanent location on your computer, i.e. <strong>C:\Program Files\emacs</strong>, so that this folder directly contains the folders bin,etc,lisp and so on.</p>
<h3>Muse</h3>
<p>Second, download the latest Emacs Muse (hereafter only called Muse) zip-file. Get it directly from <a href="http://download.gna.org/muse-el">here</a>, alternatively follow the link from the project&#8217;s home page <a href="http://mwolson.org/projects/EmacsMuse.html#sec3">here</a>.</p>
<p>Extract the Muse zip-file to, for instance, <strong>C:\Program Files\emacs_muse</strong>.</p>
<h2>Integration</h2>
<p>Now it&#8217;s time to make include Muse into your Emacs installation/folder: Copy all contents of <strong>C:\Program Files\emacs_muse\lisp\</strong> to <strong>C:\Program Files\emacs\lisp\</strong>.</p>
<h3>The HOME environmental variable</h3>
<p>We must now set up the <strong>.emacs</strong> <em>init file</em>, residing in your HOME directory. But first, we need to make sure you have HOME environmental variable. Check it by clicking Start->Run. Type in %HOME% and click OK. Does it open a folder? If so, notice the path of this folder. This is where we&#8217;re putting the .emacs init file. If you instead get an error, you must first set the HOME environmental variable:</p>
<p>Start->Settings->Control Panel->System->Advanced->Environmental Variables. In the upper field (user variables), press New. Name=HOME, Value=(whatever path you choose as your home folder. Make sure it exists!). OK x 2.</p>
<h3>Editing the .emacs init file</h3>
<p>Now that you have a HOME folder, open it: Start->Run. Type in %HOME% and click OK.</p>
<p>Create and edit a file named <strong>_emacs</strong> or <strong>.emacs</strong>, any one is good (.emacs is the original file name as used in Unix environments, but Explorer won&#8217;t let you create a file with filename starting with a dot, so therefore it&#8217;s easier to use the name _emacs). Put this contents into the file:</p>
<p><code><br />
	(setq load-path (add-to-list 'load-path "C:\Program Files\emacs_muse"))<br />
	(require 'muse-mode)<br />
	(require 'muse-publish)<br />
	(require 'muse-html)  ;; and so on<br />
</code></p>
<p>For further contents regarding Muse in this file; see <a href="http://mwolson.org/projects/MuseQuickStart.html">here</a> under the heading &#8220;Getting Started&#8221;.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0426298800349415";
google_ad_slot = "0902617621";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h2>Testing</h2>
<p>Now, start emacs by running the file: <strong>C:\Program Files\emacs\bin\runemacs.exe</strong>.</p>
<p>Create a new file <em>with the .muse filename extension</em>, (automatically puts emacs in muse mode) i.e. <em>musetest.muse</em>, and you&#8217;re set. Try typing something like (notice space bewtween asterisk and text in headings):</p>
<p><code><br />
* Heading 1<br />
** Heading 2</p>
<p>Test contents.</p>
<p>----</p>
<p>The end of the beginning.<br />
</code></p>
<p>&#8230; and notice that the two first lines (the headings) aquire different font weights. If they do; congratulations on your successful Emacs + Emacs Muse installation! If not, maybe you haven&#8217;t got emacs into muse mode. Try doing so by pressing Alt-x, then write muse-mode and hit return.</p>
<p>In the end, try publishing to HTML by hitting Ctrl-c Ctrl-t on the keyboard and follow the instructions in the &#8220;status field&#8221; in the bottom of the Emacs window.</p>
<h2>Diving deeper</h2>
<p>For diving deeper into muse, reference the project&#8217;s documentation:</p>
<ul>
<li><a href="http://mwolson.org/projects/MuseQuickStart.html">http://mwolson.org/projects/MuseQuickStart.html</a></li>
<li><a href="http://mwolson.org/static/doc/muse/">http://mwolson.org/static/doc/muse/</a></li>
<li><a href="http://mwolson.org/projects/EmacsMuse.html">http://mwolson.org/projects/EmacsMuse.html</a> &#8211; the muse maintainer&#8217;s project page</li>
</ul>
<h2>References</h2>
<ul>
<li><a href="http://www.gnu.org/software/emacs/windows/Installing-Emacs.html">http://www.gnu.org/software/emacs/windows/Installing-Emacs.html</a></li>
<li><a href="http://mwolson.org/projects/MuseQuickStart.html">http://mwolson.org/projects/MuseQuickStart.html</a></li>
<li><a href="http://www.linuxjournal.com/article/9116#comment-331272">http://www.linuxjournal.com/article/9116#comment-331272</a> <em>(on lisp to lisp folder copying, regarding Org-mode installation in emacs)</em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.akilles.org/2009/03/14/installing-emacs-muse-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails: Experimenting with ActiveScaffold</title>
		<link>http://blog.akilles.org/2008/04/17/ruby-on-rails-experimenting-with-activescaffold/</link>
		<comments>http://blog.akilles.org/2008/04/17/ruby-on-rails-experimenting-with-activescaffold/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 01:00:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ActiveScaffold]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[scaffolding]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.akilles.org/?p=61</guid>
		<description><![CDATA[Introduction
Here I will set up a sample Ruby on Rails application with the ActiveScaffold scaffolding plugin. I will first give the basic instructions to a default setup (as found on ActiveScaffold&#8217;s site, only with my field names and values), and will then make some tweaks and override some of the default configuration. It&#8217;s all very [...]]]></description>
			<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Here I will set up a sample Ruby on Rails application with the ActiveScaffold scaffolding plugin. I will first give the <strong><a href="#basic">basic instructions to a default setup</a></strong> (as found on ActiveScaffold&#8217;s site, only with my field names and values), and will then make some <strong><a href="#overrides">tweaks and override</a></strong> some of the default configuration. It&#8217;s all very basic, but it can be a help for those trying out ActiveScaffold for their first time.</p>
<p><strong>The case we&#8217;re working on:</strong> create a list of <em>Equipment</em>, i.e. electronic gadgets you&#8217;re planning to buy. We want to register title, price, an url to the product page of a webstore, an image url, some description and whether it&#8217;s in the webstore&#8217;s stock. Aditionally, we would like to <em>calculate</em> the registered price into another currency. All of this is to be shown in a sortable, searchable list.</p>
<p>It will be <strong><a href="http://blog.akilles.org/wp-content/uploads/2008/04/equipment.png">looking like this</a></strong> when we&#8217;re done.</p>
<p>After some years developing and experimenting with PHP, I&#8217;ve become curious of Ruby on Rails and what it has to offer in ease and &#8220;speedy&#8221; development. I&#8217;m for the time being an absolute rookie in RoR, but I&#8217;ve had a look on some resources on the net and have tried making a few very basic &#8220;test&#8221; applications.</p>
<p>Having limited experience regarding web development <em>frameworks</em>, it takes a few scratches on the head to get the <a href="http://betterexplained.com/articles/intermediate-rails-understanding-models-views-and-controllers/">concept of MVC</a> and knowing what does what (M=model, V=view, C=controller) and what calls what. Generating a scaffold and investigating the different files helps grasping the concept after a while.</p>
<p>The first time I saw the result of a scaffold-generation, I was convinced that this kind of development was something to look further into. However, after having seen samples of other scaffold generators, the default one seems a little <em>static</em> and cumersome to override: It seems like the default scaffolding generator is meant for running once, and then hardcode-editing the scaffold-generated code. Then, if you for some reason have to rescaffold, you must reimplement the changes. Also, the result is rather static without &#8220;fancy stuff&#8221; like Ajax.</p>
<p>Therefore, I had to test out the ActiveScaffold scaffolding plugin. It&#8217;s very easily installed, quickly up and running (a getting-started-tutorial on their site is estimated to 2 minutes from scratch), produces a smooth Ajax&#8217;ed design and is very easily to override and configure.</p>
<p>Remember, though, that I&#8217;m quite new to RoR, so I haven&#8217;t a broad basis of comparison, and there may be better practices for what I&#8217;m doing here. If so, please tell me! <img src='http://blog.akilles.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3>Assumptions</h3>
<p>I think the majority of the steps in this tutorial should work with most versions (except the scaffolding, which is different in rails v. >= 2), but here&#8217;s what I&#8217;ve used:</p>
<ul>
<li>Rails 1.2.6 <em>(yes, I know, it&#8217;s time to upgrade&#8230;)</em></li>
<li>Ruby 1.8.6</li>
<li>ActiveScaffold rev. 739</li>
</ul>
<p><strong>I assume you have</strong> a working rails-application, set up with connection to an existing database and accessible through a web browser before starting off.</p>
<p><div class="adsense_post"><script type="text/javascript"><!--
google_ad_client = "pub-0426298800349415";
google_ad_slot = "9481476571";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p><a name="basic"><br />
<h3>Basic setup</h3>
<p></a></p>
<p>The first thing we&#8217;re gonna do, is <strong>create a new table</strong> in the database to which the application connects. I created a table called <em>equipment</em> like this in my MySql database:</p>
<pre name="code" class="sql">

CREATE TABLE equipment (
  id int(10) unsigned NOT NULL auto_increment,
  title varchar(255) NOT NULL,
  descr text NOT NULL,
  price float NOT NULL,
  updated timestamp NOT NULL
    default CURRENT_TIMESTAMP
    on update CURRENT_TIMESTAMP,
  url varchar(255) NOT NULL,
  imgurl varchar(255) NOT NULL,
  instock tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (id)
) ;
</pre>
<p>Then, let the generator scripts <strong>make the appropriate files</strong> we&#8217;ll be working on. 4 types of files are created, but we&#8217;re only interested in 3 of these; the <em>model</em>, <em>controller</em> and <em>helper</em> files, not the <em>view</em> files. However, we&#8217;ll just delete the view files afterwards&#8230;<br />
Open up a terminal window, and cd to your rails application root folder. Then run<br />
<code>./script/generate scaffold Equipment</code></p>
<p>Now, <strong>delete</strong> the unnecessary views files (not only unnecessary; they also override the ActiveScaffold which we&#8217;ll put to work later on, so <strong>follow this step!</strong>):<br />
<code>rm -R app/views/equipment/</code></p>
<p>Now it&#8217;s about time to <strong>install</strong> the ActiveScaffold plugin:<br />
<em>([Parts of] the following few steps are borrowed from ActiveScaffold&#8217;s <a href="http://activescaffold.com/">website</a>)</em><br />
<code>./script/plugin install http://activescaffold.googlecode.com/svn/tags/active_scaffold</code></p>
<p>When the plugin has been downloaded and installed, you need to <strong>update</strong> a few of your files.<br />
Add this to the <em>head</em>-section of your <em>app/views/layouts/equipment.rhtml</em> file:</p>
<pre name="code" class="ruby">

  &lt;%= javascript_include_tag :defaults %&gt;
  &lt;%= active_scaffold_includes %&gt;
</pre>
<p>It should then look something like this:</p>
<pre name="code" class="ruby">

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
       &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;
  &lt;title&gt;as test&lt;/title&gt;
  &lt;%= javascript_include_tag :defaults %&gt;
  &lt;%= active_scaffold_includes %&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;p style=&quot;color: green&quot;&gt;&lt;%= flash[:notice] %&gt;&lt;/p&gt;

&lt;%= yield  %&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Then, <strong>edit</strong> your <em>app/controllers/equipment_controller.rb</em>, so that it looks similar to this:</p>
<pre name="code" class="ruby">

class EquipmentController &lt; ApplicationController
  @equipment_pages, @equipment = paginate :equipment, :per_page =&gt; 10
  layout &quot;equipment&quot;
  active_scaffold :equipment
end
</pre>
<p>Also, quote from <a href="http://activescaffold.com/tutorials/getting-started">http://activescaffold.com/tutorials/getting-started</a>:</p>
<blockquote><p>3a. Make sure that you don’t have AjaxScaffold installed in your project. Since ActiveScaffold evolved out of AjaxScaffold they share some common method names and are incompatible with each other.</p></blockquote>
<p>Then you&#8217;re <strong>done</strong> with basic setup. Now browse to http://your-rails-app-root/Equipment, and hopefully you&#8217;ll see the magnificent Ajax&#8217;ed layout created by ActiveScaffold. Isn&#8217;t it wonderful?</p>
<p>If you, like me, are running Rails on Apache/FastCGI, you may have to restart your Apache httpd-server every now and then (I don&#8217;t know of any other methods of killing/restarting the rails fastCGI-scripts being run by apache. If you know; please tell me!). When testing new stuff and/or when getting errors, I always restart apache to see if the problem still persists.</p>
<p>Up to now, we&#8217;ve basically dealt with initial setup covered by ActiveScaffold&#8217;s own <a href="http://activescaffold.com/tutorials/getting-started">Getting Started-tutorial</a>. Now it&#8217;s time to tweak the config to our needs.</p>
<p><div class="adsense_post"><script type="text/javascript"><!--
google_ad_client = "pub-0426298800349415";
google_ad_slot = "8602966591";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p><a name="overrides"><br />
<h3>Tweaking and overriding default ActiveScaffold config</h3>
<p></a></p>
<p>I&#8217;m over all very satisfied with the looks and functionality of the initial output, especially when considering it almost takes no time at all. However, since ActiveScaffold can&#8217;t know how I plan to view my data, there are some overrides to be done. Datafields are overridden very smoothly by creating small methods with designated names in the right classes.</p>
<p>Anyways, here&#8217;s what I&#8217;m gonna do:</p>
<ul>
<li>Show the <strong>image</strong> pointed to by <em>imgurl</em> instead of the url itself.</li>
<li>Put the image inside an <em>&lt;a href&#8230;&gt;</em>-tag, so that the image <strong>links to the url</strong> in the <em>url</em>-field.</li>
<li>Create/include a <strong>virtual column</strong> that shows the price in <strong>a foreign currency</strong> as well as in USD.</li>
<li><strong>Format</strong> the two price-columns with <em>sprintf</em></li>
<li><strong>Reorder</strong> the columns</li>
<li><strong>Exclude</strong> the <em>descr</em>-column from list view</li>
<li>Tweak the output of the boolean field <em>instock</em></li>
<li>Apply a <strong>default sorting</strong> of the rows in the list view</li>
</ul>
<p>This may sound as a lot of work, but fact is it&#8217;s quite easily implemented.</p>
<p>First a note on the two price-columns: I live in Norway, and am sometimes interested in monitoring prices in some US webshops. Therefore, I register the USD price in the <em>price</em>-field in the database, while I calculate what this will cost me in NOK (Norwegian kroner) based on the current exchange rate. Since most of you probably are not from Norway, I called NOK the foreign currency.</p>
<p>First, place a floating point number (for instance 4.99 &#8211; the actual rate on 2008-Apr-15, the lowest rate in 25 years!) as the only line in a file placed here (though customized for your rails-path!):<br />
<em>/usr/local/www/rails/as/myincludes/nok_usd_rate.txt</em></p>
<p>We want a global variable (<em>yeah, I know everyone&#8217;s not found of that</em>) to hold the exchange rate, read from a file in the event of page loading. I do this so that I won&#8217;t have to read the file over for each record.</p>
<p>Edit the <em>app/controllers/application.rb</em>-file, so that it looks like this:</p>
<pre name="code" class="ruby">

# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController &lt; ActionController::Base
  def setmyglobalvar
    # reads exchange rate from file: UPDATE TO YOUR PATH!
    contents = File.read('/usr/local/www/rails/as/myincludes/nok_usd_rate.txt')
    # converts to NOK and includes 25% &quot;mva&quot; (=Norwegian VAT). Stores in global var:
    $myglobalvar= contents.to_f * 1.25
  end

  # Pick a unique cookie name to distinguish our session data from others'
  session :session_key =&gt; '_testapp_session_id'

  before_filter :setmyglobalvar
end
</pre>
<p>Here, we have defined a method, and calls this by the <em>before_filter</em>-statement.</p>
<p>Next, we must extend our record-model so that it includes the field to be used as a virtual column. Edit <em>app/models/equipment.rb</em> to look like this:</p>
<pre name="code" class="ruby">

class Equipment &lt; ActiveRecord::Base
  def price_nok
    # $myglobalvar is set in controllers/application_controller,
    # and contains exchange rate incl VAT:
    # self.price references the price-
    # field from current database record.
    self.price * $myglobalvar
  end
end
</pre>
<p>Then we must tell the controller to include this new field as a (virtual) column.<br />
At the same time, we reorder the columns and apply a default sorting for the list view.<br />
Note that we only alter the columns of the <em>list</em> action and not of any other actions (<em>list</em> is an action, so is <em>new</em>, <em>edit</em>, <em>show</em> etc). Altering the columns of <em>edit</em> or <em>new</em> can result in an error on record edit or creation attempts.<br />
Note also that only the columns listed in <em>config.list.columns</em> will be shown in the list view.<br />
Here it goes &#8211; <em>app/controllers/equipment_controller.rb</em>:</p>
<pre name="code" class="ruby">

class EquipmentController &lt; ApplicationController
  @equipment_pages, @equipment = paginate :equipment, :per_page =&gt; 10
  layout &quot;equipment&quot;

  active_scaffold :equipment do |config|
    list.sorting = {:price =&gt; 'DESC'}
    config.list.columns = [:imgurl, :instock, :price, :price_nok, :title, :updated]
  end
end
</pre>
<p>Then, at last, we alter the way some of the columns are shown. This is done in <em>app/helpers/equipment_helper.rb</em>, by creating methods with name <em>columnname_column</em>. All output within the method will be printed in the respective table cell (td) for each record of that column. Here is the contents of that file:</p>
<pre name="code" class="ruby">

module EquipmentHelper
  def imgurl_column(record)
    '&lt;a href=&quot;'+record.url+'&quot;&gt;' + image_tag(record.imgurl, :alt =&gt; &quot;Image&quot;) + '&lt;/a&gt;'
  end
  def url_column(record)
    '&lt;b&gt;&lt;a href=&quot;'+record.url+'&quot;&gt;[ link ]&lt;/a&gt;&lt;/b&gt;'
  end
  def instock_column(record)
    if record.instock
      image_tag(&quot;/img/yes.png&quot;, :alt =&gt; &quot;yes!&quot;)
    else
      image_tag(&quot;/img/no.png&quot;, :alt =&gt; &quot;no, sadly!&quot;)
    end
  end
  def price_column(record)
    # http://railsmanual.org/module/ActionView::Helpers::NumberHelper
    number_to_currency(record.price)
  end
  def price_nok_column(record)
    number_to_currency(record.price_nok, :unit =&gt; &quot;NOK &quot;, :delimiter =&gt; &quot; &quot;, :separator =&gt; &quot;,&quot;)
  end
  def descr_column(record)
    # for the show action, where we want to show the description as well.
    record.descr.gsub(&quot;\n&quot;, &quot;&lt;br /&gt;&quot;)
  end
end
</pre>
<h5>Custom stylesheet</h5>
<p>If you want to apply your own css-formatting, don&#8217;t edit the default stylesheets, because they may be overwritten. Instead, include this <strong>as the very last line</strong> in the <em>head</em>-section of <em>app/views/layouts/equipment.rhtml</em>:</p>
<pre name="code" class="ruby">

  &lt;%= stylesheet_link_tag 'active_scaffold_overrides' %&gt;
</pre>
<p>Then, add your css rules in the stylesheet <em>public/stylesheets/active_scaffold_overrides.css</em>! For instance:</p>
<pre name="code" class="css">

.price_nok-column
{
        font-weight: bold;
}
</pre>
<hr />
<p><a name="links"><br />
<h3>Links</h3>
<p></a></p>
<ul>
<li><a href="http://betterexplained.com/articles/intermediate-rails-understanding-models-views-and-controllers/">MVC-concept @ betterexplained.com</a></li>
</ul>
<p><div class="adsense_post"><script type="text/javascript"><!--
google_ad_client = "pub-0426298800349415";
google_ad_slot = "9481476571";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.akilles.org/2008/04/17/ruby-on-rails-experimenting-with-activescaffold/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
