<?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>Pablo&#039;s Development Blog &#187; Ruby on Rails</title>
	<atom:link href="http://mel.melaxis.com/devblog/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://mel.melaxis.com/devblog</link>
	<description></description>
	<lastBuildDate>Mon, 10 Apr 2006 12:30:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Notepad2 with Syntax highlighting for Ruby, YAML, Bash and Conf</title>
		<link>http://mel.melaxis.com/devblog/2005/08/14/notepad2-with-syntax-highlighting-for-ruby-yaml-bash-and-conf/</link>
		<comments>http://mel.melaxis.com/devblog/2005/08/14/notepad2-with-syntax-highlighting-for-ruby-yaml-bash-and-conf/#comments</comments>
		<pubDate>Sun, 14 Aug 2005 16:43:42 +0000</pubDate>
		<dc:creator>Pablo Hoch</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://mel.melaxis.com/devblog/?p=10</guid>
		<description><![CDATA[The free, open source Notepad2 is my favorite text editor. I use Notepad2 to edit HTML, PHP, JavaScript etc. Unfortunately, Notepad2 does not have syntax highlighting for all file types supported by Scintilla. Wesner Moise offers a version of Notepad2 with Ruby support. I have created a modified version of Notepad2 that is based on [...]]]></description>
			<content:encoded><![CDATA[<p>The free, open source <a href="http://www.flos-freeware.ch/notepad2.html">Notepad2</a> is my favorite text editor. I use Notepad2 to edit HTML, PHP, JavaScript etc. Unfortunately, Notepad2 does not have syntax highlighting for all file types supported by Scintilla. Wesner Moise offers a version of <a href="http://wesnerm.blogs.com/net_undocumented/2005/07/notepad2_with_r.html">Notepad2 with Ruby support</a>. I have created a modified version of Notepad2 that is based on Wesner Moise&#8217;s changes to Ruby and Makefile support and Scintilla 1.65 and added Syntax highlighting for YAML, Bash shell scripts and Apache configuration files. I have compiled an English and German version (I have extracted the German strings from the official German Notepad2 build using <a href="http://www.angusj.com/resourcehacker/">Resource Hacker</a>). I also added the extensions .rhtml (for Ruby on Rails), .php4 and .php5 to the HTML lexer (if you have previously used Notepad2, you may have to add them manually under View -&gt; Customize Schemes). It does however not highlight the included Ruby code in .rhtml files, because the <a href="http://www.scintilla.org/">Scintilla</a> HTML Lexer does not yet support included Ruby in HTML. It should be possible to include that feature in LexHTML.cxx somehow, but that Lexer is quite complex. I don&#8217;t know if someone is working on that. If you find something, please let me know.</p>
<p><a href="http://www.melaxis.com/download/notepad2mod/notepad2mod.zip">Download modified Notepad2</a> (includes English and German binaries + source code)</p>
<p>This version comes with syntax highlighting support for HTML, XML, CSS, JavaScript, VBScript, ASP, PHP, CSS, Perl, C, C++, C#, Java, Visual Basic, Pascal, Assembler, SQL, Python, NSIS, INI, REG, INF, BAT, DIFF, Ruby, YAML, Bash and Apache configuration files.</p>
<p><strong>Update:</strong> I have replaced the download with a newer version which includes an improved Ruby lexer. See my post <a href="http://mel.melaxis.com/devblog/2005/09/03/improved-ruby-syntax-highlighting-for-notepad2/">Improved Ruby syntax highlighting for Notepad2</a>. If you need the old version, <a href="http://www.melaxis.com/download/notepad2mod/notepad2mod-old.zip">here it is</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mel.melaxis.com/devblog/2005/08/14/notepad2-with-syntax-highlighting-for-ruby-yaml-bash-and-conf/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Learning Ruby on Rails</title>
		<link>http://mel.melaxis.com/devblog/2005/08/05/learning-ruby-on-rails/</link>
		<comments>http://mel.melaxis.com/devblog/2005/08/05/learning-ruby-on-rails/#comments</comments>
		<pubDate>Fri, 05 Aug 2005 17:48:39 +0000</pubDate>
		<dc:creator>Pablo Hoch</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=6</guid>
		<description><![CDATA[Ruby on Rails is an open source framework for web applications written in Ruby. It has become very popular recently because it allows you to write web applications much faster than with most other frameworks. You have to write very little code to do the most common operations and its clean MVC architecture ensures that [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby on Rails is an open source framework for web applications written in Ruby. It has become very popular recently because it allows you to write web applications much faster than with most other frameworks. You have to write very little code to do the <a href="http://en.wikipedia.org/wiki/CRUD_%28acronym%29">most common operations</a> and its clean <a href="http://en.wikipedia.org/wiki/Model-View-Controller"><acronym title="Model-View-Controller">MVC</acronym></a> architecture ensures that your application is clearly structured. Ruby on Rails comes with several generator scripts that automatically created the required files.</p>
<p>So far, I created all my dynamic web sites using PHP. Writing a simple application such as a guest book requires quite a lot of code in PHP to connect to the database, retrieve the entries, add new entries and so on. With Ruby on Rails that&#8217;s much easier. You simple create a table, run a generator script to create a model and a controller. A cool feature called scaffolding automatically creates an interface to list, add, edit and remove entries. This is very useful to add some entries to a new table before you have created the real interface. But even that is really simple.</p>
<p>For example, by adding a line like &#8220;@entries = Entry.find_all&#8221; to a controller action, Ruby on Rails fetches all rows of the entries table (that&#8217;s another cool feature: table names are lowercase and plural, model names uppercase and singular &#8211; Ruby on Rails can convert them automatically) and saves them in a variable called entries. In a template with the same name as the action, you can loop trough all entries using &#8220;&lt;% @entries.each do |entry| %&gt;&#8221; (Ruby code is embedded in &lt;% %&gt;-Blocks inside the HTML template) and then print them easily using &#8220;&lt;%= entry.message %&gt;&#8221; etc.</p>
<p>Ruby on Rails is really cool. In order to understand Rails, I decided to learn Ruby first. So far, I can recommend two links for learning Ruby. The first one is the <a href="http://www.rubyist.net/~slagell/ruby/index.html">Ruby user&#8217;s guide</a> by matz, the creator of the language, which provides a rather short introduction to Ruby. The other one is <a href="http://poignantguide.net/ruby/">Why&#8217;s (Poignant) Guide to Ruby</a>, which is quite entertaining.<br />
O&#8217;Reilly has a tutorial for Ruby on Rails: <a href="http://www.onlamp.com/lpt/a/5546">Rolling with Ruby on Rails</a> (this includes installation instructions for Ruby, Ruby on Rails and MySQL) and <a href="http://www.onlamp.com/lpt/a/5641">Rolling with Ruby on Rails, Part 2</a>. More tutorials and API references can be found on the <a href="http://documentation.rubyonrails.com/">Ruby on Rails Homepage</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mel.melaxis.com/devblog/2005/08/05/learning-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

