<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Install the sample code in environment' | Pragmatic Forums</title>
    <link>http://fora.pragprog.com/forums/50/topics/363</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Install the sample code in environment posted by David Trasbo @ Sat, 12 Apr 2008 07:17:04 -0000</title>
      <description>&lt;p&gt;When I use the &lt;code&gt;rake db:create&lt;/code&gt; in the project folder I get the following error:&lt;/p&gt;


&lt;pre&gt;rake aborted!
uninitialized constant ActionView::Helpers::ActiveRecordHelper::Title&lt;/pre&gt;

	&lt;p&gt;I don&amp;#8217;t have any idea what this means.&lt;/p&gt;</description>
      <pubDate>Sat, 12 Apr 2008 07:17:04 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:50:363:2581</guid>
      <author>David Trasbo</author>
      <link>http://fora.pragprog.com/forums/50/topics/363</link>
    </item>
    <item>
      <title>Install the sample code in environment posted by Derek DeVries @ Fri, 11 Apr 2008 18:58:45 -0000</title>
      <description>&lt;p&gt;David,&lt;/p&gt;


	&lt;p&gt;The &lt;code&gt;rails&lt;/code&gt; command does not actually install anything, but instead generates some code snippets to start a new rails project. The user_group_7 directory you downloaded is a rails application in progress. You can view the source code by just opening the files in your text editor. If you want to see the sample rails application running in your browser you can do the following:&lt;/p&gt;


	&lt;p&gt;1. Move into the user_group_7 directory&lt;br /&gt;2. Use &lt;code&gt;rake db:create&lt;/code&gt; to create the database needed (user_group_development)&lt;br /&gt;3. Use &lt;code&gt;rake db:migrate&lt;/code&gt; to migrate the database&lt;br /&gt;4. Use &lt;code&gt;ruby script/server&lt;/code&gt; to start up the webserver&lt;br /&gt;5. navigate to &lt;a href="http://localhost:3000/meetings"&gt;http://localhost:3000/meetings&lt;/a&gt; to view the site&lt;/p&gt;


&lt;pre&gt;
cd user_group_7
rake db:create
rake db:migrate
ruby script/server
&lt;/pre&gt;

	&lt;p&gt;There is much more information on this process in the first chapter of the book. If this doesn&amp;#8217;t work out for you, paste in a snippet of the error you&amp;#8217;re getting, and I&amp;#8217;ll try to help.&lt;/p&gt;


	&lt;p&gt;Thanks,&lt;br /&gt;Derek&lt;/p&gt;</description>
      <pubDate>Fri, 11 Apr 2008 18:58:45 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:50:363:2578</guid>
      <author>Derek DeVries</author>
      <link>http://fora.pragprog.com/forums/50/topics/363</link>
    </item>
    <item>
      <title>Install the sample code in environment posted by David Trasbo @ Fri, 11 Apr 2008 18:10:25 -0000</title>
      <description>&lt;p&gt;How do i get the source code I&amp;#8217;ve downloaded from the unzipped zip-file into the Ruby environment? It might seem to be a stupid question, but I tried to copy and paste building_a_rails_app/user_group_7 into my Rails projects folder and then use the command:&lt;/p&gt;


&lt;pre&gt;rails user_group_7&lt;/pre&gt;

	&lt;p&gt;to &amp;#8220;install&amp;#8221; it, but it doesn&amp;#8217;t seem to work. When I start the server neither &amp;#8220;localhost:3000&amp;#8221; or &amp;#8220;0.0.0.0:3000&amp;#8221; respond. I also created the test database and tried the &lt;pre&gt;rake db:migrate&lt;/pre&gt; but it gives me a tricky error.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m a little lost now, could someone help me? Please tell me the right way to do it&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Fri, 11 Apr 2008 18:10:25 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:50:363:2576</guid>
      <author>David Trasbo</author>
      <link>http://fora.pragprog.com/forums/50/topics/363</link>
    </item>
  </channel>
</rss>
