<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 0.1.0: The Obligatory &#8216;Blog&#8217; Demo</title>
	<atom:link href="http://www.metabates.com/2008/03/04/the-obligatory-blog-demo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.metabates.com/2008/03/04/the-obligatory-blog-demo/</link>
	<description>The technical ramblings of Mark Bates.</description>
	<lastBuildDate>Wed, 17 Aug 2011 16:45:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Adding RSS/xml feeds to our Blog demo &#8212; Mack Framework</title>
		<link>http://www.metabates.com/2008/03/04/the-obligatory-blog-demo/comment-page-1/#comment-24</link>
		<dc:creator>Adding RSS/xml feeds to our Blog demo &#8212; Mack Framework</dc:creator>
		<pubDate>Wed, 19 Mar 2008 20:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mackframework.com/2008/03/04/the-obligatory-blog-demo/#comment-24</guid>
		<description>[...] as you remember a while back we created a simple blog using mack, http://www.mackframework.com/2008/03/04/the-obligatory-blog-demo/. Well now it&#8217;s time to add the all important RSS/xml feed to [...]</description>
		<content:encoded><![CDATA[<p>[...] as you remember a while back we created a simple blog using mack, <a href="http://www.mackframework.com/2008/03/04/the-obligatory-blog-demo/" rel="nofollow">http://www.mackframework.com/2008/03/04/the-obligatory-blog-demo/</a>. Well now it&#8217;s time to add the all important RSS/xml feed to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Bates</title>
		<link>http://www.metabates.com/2008/03/04/the-obligatory-blog-demo/comment-page-1/#comment-10</link>
		<dc:creator>Mark Bates</dc:creator>
		<pubDate>Thu, 13 Mar 2008 17:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mackframework.com/2008/03/04/the-obligatory-blog-demo/#comment-10</guid>
		<description>Hi Dinooz, thanks for the feedback. The reason the schema information is in the model, is because that&#039;s the preferred way of using DataMapper. If you&#039;re using ActiveRecord, then you can definitely put it in a migration.

I much prefer the use of migrations, then the DataMapper approach, but using DataMapper made for an easier demo. :)

&quot;Also create the files with the properly content !!!.

app/views/posts/index.html.erb
app/views/posts/edit.html.erb
app/views/posts/show.html.erb
app/views/posts/new.html.erb&quot;

I think what you mean by that is why doesn&#039;t Mack create all the form elements when you run scaffold like Rails does. Well, there&#039;s two reasons for that. 

One, is that Mack is an ORM agnostic framework. That means you should be able to use any ORM you wish with it. There are basic hooks for ActiveRecord and DataMapper, however.

Two, is that I&#039;m still very much so working on the core components of the framework. The scaffold generator is really there to just &#039;lay things out&#039; a bit for you. Down the line when I have more time, and a more of the core feature set implemented I plan on returning to this, and trying to improve upon the scaffold generator for both DataMapper and ActiveRecord. Of course, with that said, I&#039;m looking for other contributors, so if you&#039;re interested and want to write that part of the code, I&#039;m happy to chat with you. :)

&#039;posts_index_url&#039; gives you &#039;/posts&#039;, so it effectively does with &#039;posts_index_path&#039; does in Rails. It&#039;s absolute, but does not give you the full domain path. This was done for a couple of reasons, the big one being that by not giving you the full domain path, you&#039;re able to use the routing methods without a request. This makes it easy to use them in Rake tasks, emails, etc... something that Rails has a big problem with. If you really need the domain on there, then write a helper method to wrap the *_url methods, or just override the &#039;link_to&#039; method.

Currently there is no support for nested resources. That doesn&#039;t mean there won&#039;t be support for them down the line, it&#039;s just right now, I&#039;m one guy, and I&#039;m trying to write the core features, and the features that are different from Rails, before I write things like nested resources.

As far as skins/themes are concerned, that&#039;s actually on my list of things to tackle. It&#039;s a big need the company I am working for needs, and something that will be at the heart of Mack in a future release. Right now there is the standard layout support, similar to Rails.

I hope that answers your questions. Please feel free and hit me up with more. I&#039;m always welcome to feedback, I think it makes for a better code base in the end.

Thanks Dinooz.</description>
		<content:encoded><![CDATA[<p>Hi Dinooz, thanks for the feedback. The reason the schema information is in the model, is because that&#8217;s the preferred way of using DataMapper. If you&#8217;re using ActiveRecord, then you can definitely put it in a migration.</p>
<p>I much prefer the use of migrations, then the DataMapper approach, but using DataMapper made for an easier demo. <img src='http://www.metabates.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8220;Also create the files with the properly content !!!.</p>
<p>app/views/posts/index.html.erb<br />
app/views/posts/edit.html.erb<br />
app/views/posts/show.html.erb<br />
app/views/posts/new.html.erb&#8221;</p>
<p>I think what you mean by that is why doesn&#8217;t Mack create all the form elements when you run scaffold like Rails does. Well, there&#8217;s two reasons for that. </p>
<p>One, is that Mack is an ORM agnostic framework. That means you should be able to use any ORM you wish with it. There are basic hooks for ActiveRecord and DataMapper, however.</p>
<p>Two, is that I&#8217;m still very much so working on the core components of the framework. The scaffold generator is really there to just &#8216;lay things out&#8217; a bit for you. Down the line when I have more time, and a more of the core feature set implemented I plan on returning to this, and trying to improve upon the scaffold generator for both DataMapper and ActiveRecord. Of course, with that said, I&#8217;m looking for other contributors, so if you&#8217;re interested and want to write that part of the code, I&#8217;m happy to chat with you. <img src='http://www.metabates.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8216;posts_index_url&#8217; gives you &#8216;/posts&#8217;, so it effectively does with &#8216;posts_index_path&#8217; does in Rails. It&#8217;s absolute, but does not give you the full domain path. This was done for a couple of reasons, the big one being that by not giving you the full domain path, you&#8217;re able to use the routing methods without a request. This makes it easy to use them in Rake tasks, emails, etc&#8230; something that Rails has a big problem with. If you really need the domain on there, then write a helper method to wrap the *_url methods, or just override the &#8216;link_to&#8217; method.</p>
<p>Currently there is no support for nested resources. That doesn&#8217;t mean there won&#8217;t be support for them down the line, it&#8217;s just right now, I&#8217;m one guy, and I&#8217;m trying to write the core features, and the features that are different from Rails, before I write things like nested resources.</p>
<p>As far as skins/themes are concerned, that&#8217;s actually on my list of things to tackle. It&#8217;s a big need the company I am working for needs, and something that will be at the heart of Mack in a future release. Right now there is the standard layout support, similar to Rails.</p>
<p>I hope that answers your questions. Please feel free and hit me up with more. I&#8217;m always welcome to feedback, I think it makes for a better code base in the end.</p>
<p>Thanks Dinooz.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinooz</title>
		<link>http://www.metabates.com/2008/03/04/the-obligatory-blog-demo/comment-page-1/#comment-9</link>
		<dc:creator>Dinooz</dc:creator>
		<pubDate>Thu, 13 Mar 2008 14:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mackframework.com/2008/03/04/the-obligatory-blog-demo/#comment-9</guid>
		<description>I wonder why the app/models/post.rb need to include the DB Definition.

class Post  This can create the properly migration file or update the app/models/post.rb file automatically.

class Post &lt; DataMapper::Base
  property :title, :string
  property :email, :string
  property :body, :text
  property :created_at, :datetime
  property :updated_at, :datetime

  validates_presence_of :title
  validates_presence_of :body
  validates_presence_of :email
end

Also create the files with the properly content !!!.

app/views/posts/index.html.erb
app/views/posts/edit.html.erb
app/views/posts/show.html.erb
app/views/posts/new.html.erb

So what is left for you to do just update your routes file  and start your web server. =)

Note 
when you mention posts_index_url, does exist the post_index_path also ???
What about the comments, can you elaborate on how to add a comments relation in this framework ???
How can enable the usabe of nested resources ???
Any possible ideas on implement basic themes/skins ???

So far looks good , I think will give a try keep doing the good job.</description>
		<content:encoded><![CDATA[<p>I wonder why the app/models/post.rb need to include the DB Definition.</p>
<p>class Post  This can create the properly migration file or update the app/models/post.rb file automatically.</p>
<p>class Post &lt; DataMapper::Base<br />
  property :title, :string<br />
  property :email, :string<br />
  property :body, :text<br />
  property :created_at, :datetime<br />
  property :updated_at, :datetime</p>
<p>  validates_presence_of :title<br />
  validates_presence_of :body<br />
  validates_presence_of :email<br />
end</p>
<p>Also create the files with the properly content !!!.</p>
<p>app/views/posts/index.html.erb<br />
app/views/posts/edit.html.erb<br />
app/views/posts/show.html.erb<br />
app/views/posts/new.html.erb</p>
<p>So what is left for you to do just update your routes file  and start your web server. =)</p>
<p>Note<br />
when you mention posts_index_url, does exist the post_index_path also ???<br />
What about the comments, can you elaborate on how to add a comments relation in this framework ???<br />
How can enable the usabe of nested resources ???<br />
Any possible ideas on implement basic themes/skins ???</p>
<p>So far looks good , I think will give a try keep doing the good job.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.326 seconds -->

