<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>UK Ruby on Rails, Exalead, AWS, Consultancy - Specify a version with the 'rails' generator Comments</title>
  <id>tag:thewebfellas.com,2011:/blog/2009/4/2/specify-a-version-with-the-rails-generator/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://thewebfellas.com/blog/2009/4/2/specify-a-version-with-the-rails-generator/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/blog/2009/4/2/specify-a-version-with-the-rails-generator" rel="alternate" type="text/html"/>
  <updated>2011-02-17T22:44:24Z</updated>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob Anderton</name>
    </author>
    <id>tag:thewebfellas.com,2009-04-02:3675:23914</id>
    <published>2011-02-17T22:44:04Z</published>
    <updated>2011-02-17T22:44:04Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2009/4/2/specify-a-version-with-the-rails-generator" rel="alternate" type="text/html"/>
    <title>Comment on 'Specify a version with the 'rails' generator' by Rob Anderton</title>
<content type="html">&lt;p&gt;The command is only for use when creating a new project. It still works this way even if you have Rails 3 installed. You will get an error if the version of Rails specified hasn't been installed as a gem.&lt;/p&gt;

&lt;p&gt;If you're using Ruby newer than 1.8.6 you might also get an error like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;undefined method `camelize' for &quot;app&quot;:String&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Typically this is solved by fixing iconv: instructions for doing this when using &lt;a href=&quot;http://rvm.beginrescueend.com/&quot; title=&quot;Find out more about rvm&quot;&gt;rvm&lt;/a&gt; can be found &lt;a href=&quot;http://exceptionz.wordpress.com/2010/02/03/how-to-fix-the-iconv-require-error-in-ruby-1-9/&quot; title=&quot;Read instructions for fixing rvm&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Post your error message and that might give a clue as to what's going wrong for you.&lt;/p&gt;

&lt;p&gt;To change the Rails version of an existing project is a more involved process: you'd normally start by tweaking the version number in &lt;kbd&gt;config/environment.rb&lt;/kbd&gt; (or in the app &lt;kbd&gt;Gemfile&lt;/kbd&gt; for Rails 3) and then test and fix any errors that may occur.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Christine</name>
    </author>
    <id>tag:thewebfellas.com,2009-04-02:3675:23865</id>
    <published>2011-02-17T01:10:26Z</published>
    <updated>2011-02-17T01:10:26Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2009/4/2/specify-a-version-with-the-rails-generator" rel="alternate" type="text/html"/>
    <title>Comment on 'Specify a version with the 'rails' generator' by Christine</title>
<content type="html">&lt;p&gt;This would be helpful if you could put this in some context. Just typing that at the command line after a project is created apparently does not change the rails version. I took a guess and thought you might mean to pass this as the first parameter when creating a project. Nope. I just got an error. So, would you be so kind as to put the whole command or example command in. 
Thanks!&lt;/p&gt;</content>  </entry>
</feed>

