<?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>Tonka Park &#187; spree</title>
	<atom:link href="http://tonkapark.com/tag/spree/feed/" rel="self" type="application/rss+xml" />
	<link>http://tonkapark.com</link>
	<description>Big Cartel Themes, Internet Marketing and E-Commerce</description>
	<lastBuildDate>Thu, 17 May 2012 15:40:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Creating A New Home Page Route in Spree 0.30.1</title>
		<link>http://tonkapark.com/1175/creating-a-new-home-page-route-in-spree-0-30-1/</link>
		<comments>http://tonkapark.com/1175/creating-a-new-home-page-route-in-spree-0-30-1/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 03:06:07 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[rails 3 routes]]></category>
		<category><![CDATA[shopping cart]]></category>
		<category><![CDATA[spree]]></category>
		<category><![CDATA[Spreecommerce]]></category>

		<guid isPermaLink="false">http://tonkapark.com/?p=1175</guid>
		<description><![CDATA[Setting up the default route in Rails 3 and Spree 0.30.1 is fairly simple. A few familiar commands and a few tweaks to the generated files and you will have a landing page created in no time for your Spree commerce website.
Related posts:<ol>
<li><a href='http://tonkapark.com/1077/getting-started-with-spree-0-30-1-customizations/' rel='bookmark' title='Getting Started with Spree 0.30.1 Customizations'>Getting Started with Spree 0.30.1 Customizations</a></li>
<li><a href='http://tonkapark.com/331/building-wordsmith-a-spree-extension/' rel='bookmark' title='Building Wordsmith, a Spree Extension'>Building Wordsmith, a Spree Extension</a></li>
<li><a href='http://tonkapark.com/337/deploying-spree-using-heroku/' rel='bookmark' title='Deploying Spree using Heroku'>Deploying Spree using Heroku</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I recently posted about <a href="http://tonkapark.com/1077/getting-started-with-spree-0-30-1-customizations/">getting started with Spree 0.30.1</a>. A few comments prompted this post.</p>
<p>Setting up the default route in Rails 3 and Spree 0.30.1 is fairly simple. A few familiar commands and a few tweaks to the generated files and you will have a landing page created in no time for your Spree commerce website.</p>
<h2>Generating a Landing Page Controller</h2>
<p>Inside your rails root that is using Spree run the rails generator to create a new controller. Name it as you wish.</p>
<pre>rails generate controller Landing index</pre>
<p>This should create you several files or you can create them manually. You need the app/controllers/landing_controller.rb and the app/views/landing/index.html.erb.</p>
<p>Once you have these files you want to make a change to the controller file. You want to change the controller to inherit the Spree Application controller.</p>
<p>class LandingController &lt; Spree::BaseController</p>
<p>Next if you want to use the default spree application layout you need to declare that in the controller as well.</p>
<pre>class LandingController &lt; Spree::BaseController
Â layout 'spree_application'
end</pre>
<h2>Setting up the Landing Page Route</h2>
<p>Another simple step to setup the new default route is to edit the rails_root/config/routes.rb file. This will override your Spree default routes. Just need a single line to set the new rails 3 root to.</p>
<pre>root :to =&gt; "landing#index"</pre>
<h3>Conclusion</h3>
<p>That is it. Now you can edit your index.html.erb file in your new controller path and you have yourself a custom landing page for Spree. Since the controller inherits from SpreeApplication Â you have access to all the features of the Spree store to display products on the home page.</p>
<p>Share your ideas or questions in the comments.</p>
<p>Related posts:<ol>
<li><a href='http://tonkapark.com/1077/getting-started-with-spree-0-30-1-customizations/' rel='bookmark' title='Getting Started with Spree 0.30.1 Customizations'>Getting Started with Spree 0.30.1 Customizations</a></li>
<li><a href='http://tonkapark.com/331/building-wordsmith-a-spree-extension/' rel='bookmark' title='Building Wordsmith, a Spree Extension'>Building Wordsmith, a Spree Extension</a></li>
<li><a href='http://tonkapark.com/337/deploying-spree-using-heroku/' rel='bookmark' title='Deploying Spree using Heroku'>Deploying Spree using Heroku</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://tonkapark.com/1175/creating-a-new-home-page-route-in-spree-0-30-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting Started with Spree 0.30.1 Customizations</title>
		<link>http://tonkapark.com/1077/getting-started-with-spree-0-30-1-customizations/</link>
		<comments>http://tonkapark.com/1077/getting-started-with-spree-0-30-1-customizations/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 04:06:11 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[e-commerce app]]></category>
		<category><![CDATA[spree]]></category>

		<guid isPermaLink="false">http://tonkapark.com/?p=1077</guid>
		<description><![CDATA[Just this month the team over at Railsdog and the open source contributors released Spree 0.30.1. This is a big update that brought Spree to be compatible with Rails 3. I haven&#8217;t used Spree for sometime and am getting it ready to install for a client and had to get familiar with all the great… <a href="http://tonkapark.com/1077/getting-started-with-spree-0-30-1-customizations/">Read More &#187;</a>
Related posts:<ol>
<li><a href='http://tonkapark.com/1175/creating-a-new-home-page-route-in-spree-0-30-1/' rel='bookmark' title='Creating A New Home Page Route in Spree 0.30.1'>Creating A New Home Page Route in Spree 0.30.1</a></li>
<li><a href='http://tonkapark.com/331/building-wordsmith-a-spree-extension/' rel='bookmark' title='Building Wordsmith, a Spree Extension'>Building Wordsmith, a Spree Extension</a></li>
<li><a href='http://tonkapark.com/337/deploying-spree-using-heroku/' rel='bookmark' title='Deploying Spree using Heroku'>Deploying Spree using Heroku</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Just this month the team over at Railsdog and the open source contributors released Spree 0.30.1. This is a big update that brought Spree to be compatible with Rails 3. I haven&#8217;t used Spree for sometime and am getting it ready to install for a client and had to get familiar with all the great new changes.</p>
<h2>Install Spree 0.30.1</h2>
<p>The documentation handles this process of setting up spree and rails fairly well. Â Head over to the <a href="http://spreecommerce.com/documentation/getting_started.html" target="_blank">getting started page</a> on the Spree documentation. Install rails, bundler and spree gems. Then create your rails app, generate your spree files for your app and migrate the database. Optionally you can setup the sample data.</p>
<h2>Customizing Spree CSS</h2>
<p>With the release of Spree 0.30.1 you now work in the rails root to override the default settings the come in the spree core. If you were familiar with the site_extension this has been revamped and is now a single file in your rails_root/lib directory. Look for the file <strong>spree_site.rb</strong>.</p>
<p>To override the screen.css file that is built from a laundry list of LESS files in spree-core you can add to the spree_site.rb file.</p>
<pre>Spree::Config.set(:stylesheets =&gt; 'styles')</pre>
<p>This willÂ completelyÂ replace the frontend views to use a stylesheet named styles.css in the rails_root/public/stylesheets folder. So simply drop in Â your new stylesheet and start coding. Now if you just want to override a few styles consider this entry into your spree_site file.</p>
<pre>Spree::Config.set(:stylesheets =&gt; 'screen,styles')</pre>
<h2>Overriding Views in Spree</h2>
<p>Next you will probably want to override a few views for your new spree site so simply created the proper folders under the rails_root/app/views. Take a look at the <a href="https://github.com/railsdog/spree/tree/master/core/app/views/" target="_blank">spree core views folder</a> to determine which view files to override.</p>
<h2>Adding New Routes</h2>
<p>Adding a new homepage to your spree 0.30.1 site is a easy as generating a controller with an index view in your rails_root/app folders and then adding to your rails_root/config/routes.rb the resources route and the root to route which will then override the spree-core root route.</p>
<p>It is really that easy once you understand how the paradigm has shifted for extending your Spree based application. I also have figured out how to get this to run on Heroku already as well and might update my post on using Spree and Heroku that I wrote for a much older release of Spree.</p>
<p>Related posts:<ol>
<li><a href='http://tonkapark.com/1175/creating-a-new-home-page-route-in-spree-0-30-1/' rel='bookmark' title='Creating A New Home Page Route in Spree 0.30.1'>Creating A New Home Page Route in Spree 0.30.1</a></li>
<li><a href='http://tonkapark.com/331/building-wordsmith-a-spree-extension/' rel='bookmark' title='Building Wordsmith, a Spree Extension'>Building Wordsmith, a Spree Extension</a></li>
<li><a href='http://tonkapark.com/337/deploying-spree-using-heroku/' rel='bookmark' title='Deploying Spree using Heroku'>Deploying Spree using Heroku</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://tonkapark.com/1077/getting-started-with-spree-0-30-1-customizations/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>I Need Your Input, Get Something Free</title>
		<link>http://tonkapark.com/591/something-free-for-you/</link>
		<comments>http://tonkapark.com/591/something-free-for-you/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 18:37:06 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[big cartel]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[giveaway]]></category>
		<category><![CDATA[shopping cart]]></category>
		<category><![CDATA[spree]]></category>

		<guid isPermaLink="false">http://tonkapark.com/?p=591</guid>
		<description><![CDATA[What *free* product would you like for me to create just for you? So I have been thinking a lot lately about e-commerce and related shopping cart products. While working with products like bigcartel.com, Spree, Cubecart and others I have realized there is need to be filled. I see lots of people coming to my… <a href="http://tonkapark.com/591/something-free-for-you/">Read More &#187;</a>
Related posts:<ol>
<li><a href='http://tonkapark.com/460/4-top-shopping-cart-solutions-reviewed/' rel='bookmark' title='4 Top Shopping Cart Solutions Reviewed'>4 Top Shopping Cart Solutions Reviewed</a></li>
<li><a href='http://tonkapark.com/1494/almost-free-big-cartel-theme-now-available/' rel='bookmark' title='Almost Free Big Cartel Theme Now Available'>Almost Free Big Cartel Theme Now Available</a></li>
<li><a href='http://tonkapark.com/612/7-reasons-to-use-big-cartel/' rel='bookmark' title='7 Reasons to use BigCartel.com'>7 Reasons to use BigCartel.com</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>What *free* product would you like for me to create just for you?</p>
<p>So I have been thinking a lot lately about e-commerce and related shopping cart products. While working with products like bigcartel.com, Spree, Cubecart and others I have realized there is need to be filled. I see lots of people coming to my website and I have received emails of people looking for help with Spree, bigcartel, analytics and more.</p>
<p>I have several ideas for products that I know would sell upwards of $100 but I have decided <strong>I would rather support my readers with a free </strong><strong>giveaway</strong>.</p>
<h2>Here&#8217;s what I need from you</h2>
<p>If you found this blog because of your interest in e-commerce solutions or trouble working with an existing product and you need further help I would appreciate if you would take <a title="Free E-commerce product survey" href="http://bit.ly/bKXnQI" target="_blank">just 3 minutes to fill out a quick survey</a>.</p>
<p>Just provide me some of your thoughts and answers to questions as simple as,Â <em><strong>What *free* product would you like for me to create for you?</strong></em></p>
<p>If you are able to take the time to fill out this quick survey, and provide me with your email address, I will make sure that when product is ready you will get a copy without having to pull out your credit card.</p>
<p>Thank you so much for reading my blog.</p>
<p><a title="e-commerce product survey" href="http://bit.ly/bKXnQI" target="_blank">Survey Link</a></p>
<p>&#8211;Matt</p>
<p>Related posts:<ol>
<li><a href='http://tonkapark.com/460/4-top-shopping-cart-solutions-reviewed/' rel='bookmark' title='4 Top Shopping Cart Solutions Reviewed'>4 Top Shopping Cart Solutions Reviewed</a></li>
<li><a href='http://tonkapark.com/1494/almost-free-big-cartel-theme-now-available/' rel='bookmark' title='Almost Free Big Cartel Theme Now Available'>Almost Free Big Cartel Theme Now Available</a></li>
<li><a href='http://tonkapark.com/612/7-reasons-to-use-big-cartel/' rel='bookmark' title='7 Reasons to use BigCartel.com'>7 Reasons to use BigCartel.com</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://tonkapark.com/591/something-free-for-you/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

