<?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>Sentia &#124; Sydney IT Consultancy, Software Development, Ruby on Rails, Web Application Development, Rails Development, Test Driven Development, Microsoft.Net, Asp.Net , Agile, Continuous Integration Training, iPhone development &#187; ruby on rails</title>
	<atom:link href="http://www.sentia.com.au/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sentia.com.au</link>
	<description>Sentia company website and blog about all things development, Ruby on Rails, Microsoft .Net, ASP.Net, C#.Net, Agile web development, Test Driven Development</description>
	<lastBuildDate>Thu, 02 Feb 2012 07:16:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Your Cash Back goes live</title>
		<link>http://www.sentia.com.au/2010/10/your-cash-back-goes-live/</link>
		<comments>http://www.sentia.com.au/2010/10/your-cash-back-goes-live/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 23:36:55 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[client projects]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.sentia.com.au/?p=793</guid>
		<description><![CDATA[Sentia is happy to announce that our latest client project &#8230; <a href="http://www.sentia.com.au/2010/10/your-cash-back-goes-live/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sentia is happy to announce that our latest client project <a href="http://yourcashback.com.au">Your Cash Back</a>.</p>
<p>Your Cash Back allows shoppers with a place where they can browse the best deals, discounts and free offers available online, read consumer reviews &#038; ratings, and even suggest merchants and retailers that they would like to get cashback from. </p>
<p>So be sure to check it out <a href="http://yourcashback.com.au">Your Cash Back</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2010/10/your-cash-back-goes-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kazaa.com launches</title>
		<link>http://www.sentia.com.au/2010/07/kazaa-com-launches/</link>
		<comments>http://www.sentia.com.au/2010/07/kazaa-com-launches/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 07:14:34 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[client projects]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[kazaa]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.sentia.com.au/?p=765</guid>
		<description><![CDATA[Sentia is happy to announce that new kazaa.com service has &#8230; <a href="http://www.sentia.com.au/2010/07/kazaa-com-launches/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sentia is happy to announce that new kazaa.com service has gone live. </p>
<p>Its been a long time coming and a huge effort but we are proud of what has been achieved. Sentia has been working with the Kazaa team to develop this new service which offers legal music streaming and downloading.</p>
<p>So be sure to check it out <a href="http://Kazaa.com">Kazaa.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2010/07/kazaa-com-launches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Ruby On Rails</title>
		<link>http://www.sentia.com.au/2010/04/learning-ruby-on-rails/</link>
		<comments>http://www.sentia.com.au/2010/04/learning-ruby-on-rails/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 00:37:02 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[learing rails]]></category>

		<guid isPermaLink="false">http://www.sentia.com.au/?p=704</guid>
		<description><![CDATA[Hey spoken to a few developers mainly UNI grads who &#8230; <a href="http://www.sentia.com.au/2010/04/learning-ruby-on-rails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hey spoken to a few developers mainly UNI grads who are looking to get into rails and they often ask whats the best way to do so. So l thought l would put together a list of resources they can use to get up to speed.</p>
<p>If anyone else knows of some other ones please let me know</p>
<p>== General Practices ==<br />
Dev on a Mac<br />
Read up on TDD (Test Driven Development)<br />
Use Growl for your Autotest notifications<br />
<a href="http://macromates.com/">TextMate</a> &#8211; The only Editor you need<br />
<a href="http://github.com">GitHub</a> &#8211; Great space to see open source code and gems and plugins<br />
<a href="http://gemcutter.org/">http://gemcutter.org/</a></p>
<p>== Rails Setup ==</p>
<p><a href="http://hivelogic.com/">http://hivelogic.com/</a> &#8211; Has some great tutorials on getting your environment setup on a mac.</p>
<p>== Tutorials ==<br />
<a href="http://rubyonrails.org">http://rubyonrails.org</a><br />
<a href="http://railscasts.com">Rails Casts</a> &#8211; Ryan Bates screen casts about all things rails related<br />
<a href="https://peepcode.com">PeepCode</a> &#8211; Great screen casts about all things rails related</p>
<p>== Blogs ==</p>
<p><a href="http://sentia.com.au/blog">Sentia Blog</a><br />
<a href="http://thoughtbot.com/">http://thoughtbot.com</a><br />
<a href="http://weblog.jamisbuck.org">http://weblog.jamisbuck.org</a><br />
<a href="http://blog.jayfields.com">http://blog.jayfields.com</a><br />
<a href="http://errtheblog.com">http://errtheblog.com</a></p>
<p>== Books ==<br />
<a href="http://pragmaticstudio.com">http://pragmaticstudio.com</a> &#8211; Great source of books about rails and other technologies with a focus on the right practices.</p>
<p>Finally the only real way to learn is to try things out. Follow other developers blogs and use all the resources you can such as Google groups etc.<br />
Don&#8217;t be scared to get it wrong its the only way to learn.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2010/04/learning-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Altnet released</title>
		<link>http://www.sentia.com.au/2010/03/altnet-released/</link>
		<comments>http://www.sentia.com.au/2010/03/altnet-released/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 05:39:55 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[client projects]]></category>
		<category><![CDATA[altnet]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=692</guid>
		<description><![CDATA[Sentia is happy to announce that Altnet from the guys &#8230; <a href="http://www.sentia.com.au/2010/03/altnet-released/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sentia is happy to announce that <a href="http://altnet.com/">Altnet</a> from the guys at Kaza has been pushed live. Altnet is the new way to listen to your favorite music online legally.</p>
<p>Sentia has been working around the clock with the Altnet team on this and be sure to keep an eye out at <a href="http://altnet.com/">Altnet.com</a> for more improvements as time goes on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2010/03/altnet-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding your own login method to Authlogic</title>
		<link>http://www.sentia.com.au/2009/06/adding-your-own-login-method-to-authlogic/</link>
		<comments>http://www.sentia.com.au/2009/06/adding-your-own-login-method-to-authlogic/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 02:51:39 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[authlogic]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=294</guid>
		<description><![CDATA[So on a new project we are working on we &#8230; <a href="http://www.sentia.com.au/2009/06/adding-your-own-login-method-to-authlogic/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So on a new project we are working on we have a need for a user to be able to login via either their &#8220;Login&#8221; or &#8220;Mobile&#8221; number. Now we are using the <a href="http://github.com/binarylogic/authlogic/tree/master">Authlogic</a> gem which is a great gem and comes with all default methods for login etc and allows you to customise this very easily.</p>
<p>So firstly you need to add the following to your UserSession model. What this does is overwrite the default login method with the one we are defining below called &#8220;find_by_username_or_mobile&#8221;.</p>
<pre class="brush: ruby; title: ; notranslate">
class UserSession &lt; Authlogic::Session::Base
  find_by_login_method :find_by_username_or_mobile
end
</pre>
<p>Then in your user model its as simply as creating the class method for login. Now of course the password is still apart of the login process but we only wanted to allow users to either login via their login or mobile so no need to change the password methods.</p>
<pre class="brush: ruby; title: ; notranslate">
class User &lt; ActiveRecord::Base
  def self.find_by_username_or_mobile(login)
    find_by_login(login) || find_by_mobile(login)
  end
end
</pre>
<p>So give it a try and let us know how you go hope this helps</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/06/adding-your-own-login-method-to-authlogic/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Application templates in Ruby on Rails</title>
		<link>http://www.sentia.com.au/2009/05/application-templates-in-ruby-on-rails/</link>
		<comments>http://www.sentia.com.au/2009/05/application-templates-in-ruby-on-rails/#comments</comments>
		<pubDate>Fri, 08 May 2009 05:59:24 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[application templates]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=218</guid>
		<description><![CDATA[Here is the latest application template we have put together. &#8230; <a href="http://www.sentia.com.au/2009/05/application-templates-in-ruby-on-rails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is the latest application template we have put together. It removes all the usual items and adds the base gems that we use for all our applications. It also creates the files needed for deployment and runs &#8220;Capify&#8221; on the project, plus a few other things such as sass etc.</p>
<pre class="brush: ruby; title: ; notranslate">
# Remove unnecessary Rails files
run 'rm README'
run 'rm public/index.html'
run 'rm public/favicon.ico'
run 'rm public/images/rails.png'
run 'rm -f public/javascripts/*'

# Download JQuery
run &quot;curl -s -L http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js &gt; public/javascripts/jquery.js&quot;
run &quot;curl -s -L http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js &gt; public/javascripts/jquery.form.js&quot;

#Configure required gems
gem &quot;haml&quot;, :version =&gt; &quot;2.0.4&quot;
gem 'thoughtbot-shoulda', :lib =&gt; 'shoulda', :source =&gt; 'http://gems.github.com'
gem &quot;thoughtbot-factory_girl&quot;, :lib =&gt; &quot;factory_girl&quot;, :source =&gt; &quot;http://gems.github.com&quot;

#Create Sass directory
run 'mkdir public/stylesheets/sass'

#Capify and create production environment.rb
run 'mkdir config/deploy'
run 'touch config/deploy/production.rb'

#Add UAT environment and settings
file 'config/environments/uat.rb', &lt;&lt;-CODE
# Settings specified here will take precedence over those in config/environment.rb

# Code is not reloaded between requests. Server needs to be restarted.
config.cache_classes = true

# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true

# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching             = true
config.action_view.cache_template_loading            = true

# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
CODE

#Create gitignore file and setup base ignores
run &quot;touch tmp/.gitignore log/.gitignore vendor/.gitignore&quot;
file '.gitignore', &lt;&lt;-FILE
.DS_Store
log/*.log
tmp/**/*
db/*.sqlite3
public/stylesheets/*.css
FILE

# Set up git repository
git :init
git :add =&gt; '.'
git :commit =&gt; &quot;-a -m 'Initial commit'&quot;

# Success!
puts &quot;SUCCESS!&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/05/application-templates-in-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails 2.3 Searchable API Doc</title>
		<link>http://www.sentia.com.au/2009/03/ruby-on-rails-23-searchable-api-doc/</link>
		<comments>http://www.sentia.com.au/2009/03/ruby-on-rails-23-searchable-api-doc/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 00:53:24 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[docs]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=152</guid>
		<description><![CDATA[A developer by the name of Vladimir Kolesnikov has put &#8230; <a href="http://www.sentia.com.au/2009/03/ruby-on-rails-23-searchable-api-doc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A developer by the name of Vladimir Kolesnikov has put together a nice little searchable API doc for rails. Its been updated for rails 2.3.2 (Latest Version) and you can either download it or browse online. Currently its been tested with Safari 4, Firefox 3, Opera 9.5 Internet Explorer is currently unsupported but who uses IE anyways.</p>
<p>You can download it <a href="http://voloko.ru/sdoc/rails/">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/03/ruby-on-rails-23-searchable-api-doc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 2.3 is out</title>
		<link>http://www.sentia.com.au/2009/03/rails-23-is-out/</link>
		<comments>http://www.sentia.com.au/2009/03/rails-23-is-out/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 09:46:17 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=118</guid>
		<description><![CDATA[Finally Rails 2.3 is out. Officially its tagged as 2.3.2 &#8230; <a href="http://www.sentia.com.au/2009/03/rails-23-is-out/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Finally Rails 2.3 is out. Officially its tagged as 2.3.2 from memory. So what are you waiting for update already. Just run the following command in your terminal and your on your way. Sorry windows users find your own way</p>
<pre class="brush: ruby; title: ; notranslate">
 sudo gem install rails
</pre>
<p>Check out the release notes <a href="http://guides.rubyonrails.org/2_3_release_notes.html">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/03/rails-23-is-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Please accept the terms of service and privacy policy</title>
		<link>http://www.sentia.com.au/2009/03/please-accept-the-terms-of-service-and-privacy-policy/</link>
		<comments>http://www.sentia.com.au/2009/03/please-accept-the-terms-of-service-and-privacy-policy/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 05:24:58 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[validates_acceptance_of]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://blog.sentia.com.au/?p=113</guid>
		<description><![CDATA[If you need users the accept the terms of services &#8230; <a href="http://www.sentia.com.au/2009/03/please-accept-the-terms-of-service-and-privacy-policy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you need users the accept the terms of services and privcay policy or your rails application there is a simple way to handle this without a database field or javascript. It&#8217;s using the validation methods built into rails. Simply add the following code to your User model for example</p>
<pre class="brush: ruby; title: ; notranslate">
validates_acceptance_of :terms_of_service
</pre>
<p>Then in your view add the following to your view and you will get a checkbox on the page that users will be required to check.</p>
<pre class="brush: ruby; title: ; notranslate">
&lt;%= check_box :user, :terms_of_service %&gt;
</pre>
<p>This will then add this validation rule to your models validation rules and when you try to submit the form without checking the checkbox you get a nice little validation message letting you know hey you need to accept this.</p>
<p>Of course you can have your own validation message displayed like so</p>
<pre class="brush: ruby; title: ; notranslate">
validates_acceptance_of   :terms_of_service, :message =&gt; ' and the privacy policy must be accepted'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/03/please-accept-the-terms-of-service-and-privacy-policy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

