<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Teens on Rails - Home</title>
  <id>tag:teensonrails.com,2008:mephisto/</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://teensonrails.com/feed/atom.xml" rel="self" type="application/atom+xml"/>
  <link href="http://teensonrails.com/" rel="alternate" type="text/html"/>
  <updated>2007-02-26T06:57:42Z</updated>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2007-02-26:22</id>
    <published>2007-02-26T06:49:00Z</published>
    <updated>2007-02-26T06:57:42Z</updated>
    <link href="http://teensonrails.com/2007/2/26/life-updates-from-lake" rel="alternate" type="text/html"/>
    <title>Life Updates From Lake</title>
<content type="html">
            &lt;p&gt;Well Well, Looks like I&#8217;m finally back.
I feel bad; To be honest, I sorta forgot about my old trusty blog.
Things have been pretty crazy lately. I&#8217;m in the midst of creating a record label, a monthly
rails publication, a final project for school, my music, homework, and figuring out the 
odds and ends of Ruby on Rails. &lt;/p&gt;

&lt;p&gt;I&#8217;ve been working on rebuilding a Client&#8217;s site in Ruby on Rails. 
I initially just used Joomla! for the CMS. Well, to be honest, Joomla! runs pretty slow, 
has crappy support for sexy urls, and is really way too much of an application. 
I figure all I need is an admin background and about five pages overall to get this app running. &lt;/p&gt;

&lt;p&gt;In other news, I&#8217;m putting in my job application at the local AutoSpa. Yep, that&#8217;s right, A freaking car wash.
Well, what can I do? Gotta make money somehow and it isn&#8217;t by freelancing. I have this goal of saving the money I earn, so I won&#8217;t be broke again in the future. Right now, I&#8217;m very very hesitant to even drive places because I know I&#8217;ll just end up borrowing money from someone for gas. I seriously wish they created sidewalks around here. I would ride my bike everywhere.&lt;/p&gt;

&lt;p&gt;Even More News: For this Week (Monday-Monday) I am on a Bread and Water diet. I decided that I really want to cleanse my body of some of the junky stuff I put in there. I was simply going to fast for seven days, but a bread and water diet sounds a little nicer on me. I only weight about 125. &lt;/p&gt;

&lt;p&gt;This week marks the 2nd month Anniversary of &#8220;Movies @ the Lake&#8221;
This is a monthly event where I have all my friends come over and watch a movie. Last month we watched &#8220;City of God.&#8221;
It was a little too intense for the crowd and I felt sort of bad after showing all the girls. If you have seen it, you would know exactly what I mean. This week, however, we are lightening it up a bit and are going to watch the fantastic documentary style film: &#8220;Jesus Camp&#8221;
If you haven&#8217;t seen it, Download it, Rent it, Get it. It&#8217;s very interesting.&lt;/p&gt;

&lt;p&gt;And Finally, my final project for my AP Government class is complete. Follow the link to watch it, I hope you truly enjoy.
 &lt;a href='http://www.ldenman.com/movies/APGOVWS.mov'&gt;Boy Scouts of America VS James Dale&lt;/a&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>dfischer</name>
    </author>
    <id>tag:teensonrails.com,2007-01-26:21</id>
    <published>2007-01-26T22:16:00Z</published>
    <updated>2007-01-26T22:26:29Z</updated>
    <link href="http://teensonrails.com/2007/1/26/my-introduction" rel="alternate" type="text/html"/>
    <title>My introduction</title>
<content type="html">
            &lt;p&gt;Hey all,&lt;/p&gt;


	&lt;p&gt;I&#8217;m making my introduction at Teens on Rails. My name is &lt;a href='http://www.danielfischer.com'&gt;Daniel Fischer&lt;/a&gt;, and I love Ruby! I tried to do web-application programming over the years, but that was with php. Honestly, I hated it. It just wasn&#8217;t fun, the syntax hurt my eyes and my thoughts just could not be translated into the code. One day I came upon Ruby on Rails and it seems like I found what I&#8217;ve always been looking for; something to program my ideas into, then become famous from my apps (yea right?).&lt;/p&gt;


	&lt;p&gt;It&#8217;s really hard trying to learn your first programming language, because it&#8217;s just like any new language. You really have to adjust your mind to learn how to think in a different way. I&#8217;m slowly reaching that point and I can feel the sensations of understanding appearing in my mind. So all of those who are getting frustrated, just stick with it!&lt;/p&gt;


	&lt;p&gt;Anyway, I&#8217;ve been studying Ruby for a couple months now, and only got serious with it the past couple weeks. I seriously recommend diving into Ruby first rather than Rails. Why? Because you&#8217;ll understand a helluva lot more of the language, and take advantage of Rails in a easier manner. Besides that, Rails is Ruby, so it only makes sense.&lt;/p&gt;


	&lt;p&gt;I&#8217;m a noob, so along my journey of becoming an expert, I&#8217;ll post snippets and thoughts from time to time.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2007-01-19:18</id>
    <published>2007-01-19T02:51:00Z</published>
    <updated>2007-01-19T05:59:09Z</updated>
    <link href="http://teensonrails.com/2007/1/19/dreamhost-subdomains-and-disney-world" rel="alternate" type="text/html"/>
    <title>DreamHost, SubDomains, and Disney World</title>
<content type="html">
            &lt;p&gt;In approximately 9 hours, I will be on a flight to Florida. My parents decided to surprise us with a trip to Disney World, as I have never been. I got an express pass to get my picture with Mickey Mouse! I am living out my childhood dream, that way I won&#8217;t have to live it through my own children. I&#8217;m looking forward to the 5 day vacation and taking a break from school and the everyday routine. &lt;/p&gt;

&lt;p&gt;Last night, I decided to go ahead and do what I have needed to for the past week. I host the forums over at ContrastandCompare.com. I just deployed my rails app with Capistrano. As with most things, an error occured. I previously had my forums directory setup at ContrastandCompare.com/forums. 
Well, I had to change my path to &#8220;/current/public&#8221;. So, the forums directory was not getting indexed because it was not in the &#8220;/current/public&#8221; folder. Well, I decided to just make a subdomain Forums.ContrastandCompare.com. Well, for some reason it didn&#8217;t work. It sometimes rendered on my computer but not others? I still think some people aren&#8217;t getting access. It&#8217;s strange, but it finally worked out mostly. &lt;/p&gt;

&lt;p&gt;After my app was deployed, i kept getting the &#8220;Application Error&#8230;Rails Could Not&#8230;.&#8221; also known as the &#8220;500 internal server error.&#8221; Anyways, I looked around a bit and found something that I believe is really helping, as I have yet to see a &#8220;Application Error&#8221; message. &lt;/p&gt;

&lt;p&gt;I added this to the Dispatch.rb file located in APP/Public directory:&lt;/p&gt;

&lt;pre&gt;class RailsFCGIHandler
  private
    def frao_handler(signal)
      dispatcher_log :info, &quot;asked to terminate immediately&quot;
      dispatcher_log :info, &quot;frao handler working its magic!&quot;
      restart_handler(signal)
    end
    alias_method :exit_now_handler, :frao_handler
end
&lt;/pre&gt;

&lt;p&gt;Hope this helps someone out. Until Tuesday, Happy Coding!
and
Thanks to: http://work.alexyoung.org/archives/102/dreamhost-and-rails-500-errors 
for the info.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2007-01-11:16</id>
    <published>2007-01-11T17:18:00Z</published>
    <updated>2007-01-11T17:34:11Z</updated>
    <link href="http://teensonrails.com/2007/1/11/i-m-just-not-in-the-mood-to-program" rel="alternate" type="text/html"/>
    <title>I'm Just Not in the Mood to Program</title>
<content type="html">
            There has been a sort of a halt on the application I've been working on sometime. I am at the point where it could almost be ready for production, but I have some decisions I have to make in order to keep it going. 
&lt;br /&gt;&lt;br /&gt;
The first thing that has been holding me back a little bit seems pretty stupid and it actually is. I used to have my iMac setup in my room. I was on it all the time and my parents decided it would be best to move it to the basement. I didn't mind because that is where I have my guitar and piano, so I can easily record now. The problem is, the basement is unfinished. It is usually freezing down there, so much that I don't even want to do anything on the computer. I hate the cold that much. Sure, I could put on more clothes and maybe some gloves, but that is obnoxious. I'm biding my time until I can move it back up into my room. 
&lt;br /&gt;&lt;br /&gt;
I'm also waiting on a tutorial that at sometime should be presented by the guy over at &lt;a href='http://www.slyturtle.com'&gt;slyturtle.com&lt;/a&gt;
I'm not sure if it is still on, but he has a beautiful implementation of Amazon/Ruby in his app &lt;a href='http://www.favorite5.com'&gt;Favorite5.com&lt;/a&gt;.
Check it out. I am looking for that same sort of thing, but my experience with the Amazon/Ruby library has been all but pleasant. Hopefully I can get that going in the next few weeks. 
&lt;br /&gt;&lt;br /&gt;
And finally, I'm considering trashing what I have so far and just building it again off the &lt;a href='http://www.hobocentral.net/blog/'&gt;HOBO&lt;/a&gt; app for rails. I watched the screencast and was really impressed at how quickly and easily it sets things up. I was also very impressed with the automatic layout that they set you up with. I just like seeing everything in a layout as opposed to top down html, no css/design. It just gives you more to work with and maybe even some ideas for your own layout.
&lt;br /&gt;&lt;br /&gt;
I'm gonna think about it a little bit more and figure out exactly what I should do. I have some other things/ideas I've been contemplating and I'd really like to start those up. I just feel like I can't ever finish anything I start because either I'm not satisfied with it fully or I just get bored of it. Seems like I should go read a little bit of &lt;a href='http://www.lifehacker.com'&gt;LifeHacker&lt;/a&gt;.
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2007-01-03:14</id>
    <published>2007-01-03T17:05:00Z</published>
    <updated>2007-01-13T06:07:42Z</updated>
    <link href="http://teensonrails.com/2007/1/3/good-looking-urls-and-errors-that-go-along-with-it" rel="alternate" type="text/html"/>
    <title>Good Looking URLS and Errors That Go Along With It</title>
<content type="html">
            &lt;p&gt;I wanted to write about a little topic in rails known as Named Url&#8217;s or Sexy Urls or whatever you would like to call them. 
Basically, instead of something default like this:
http://www.yoursite.com/artist/show/1
&lt;br&gt;
&lt;br&gt;
Your site will generate a url like this:
http://www.yoursite.com/artist/pink_floyd
&lt;br&gt;
&lt;br&gt;
To Do This, It&#8217;s Pretty Easy. You will be dealing with routes.rb in the config folder, so go ahead and load that up.
I am assuming that you have already setup your Controller and Actions.
&lt;br&gt;
&lt;br&gt;
Step 1: In routes.rb add this line:&lt;br&gt;
&lt;pre&gt;map.artist 'artist/:artisttitle',:controller =&amp;gt;'artists', :action=&amp;gt;'show' &lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
Step 2: In Your Controller Add Something Like This in your Show method:&lt;br&gt;
&lt;pre&gt;@artist = Artist.find(:first, :conditions =&amp;gt; ['title_copy = ?',params[:artisttitle]])&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
Step 3: In your Controllers View in the Index, add:
&lt;br&gt;
&lt;pre&gt;&amp;lt;%for artist in @artists%&amp;gt;
&amp;lt;%=link_to artist.title, artist_url(:artisttitle =&amp;gt; artist.title)%&amp;gt;
&amp;lt;%end%&amp;gt;
&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
This should work out and generate the title of the artist in the url.
&lt;br&gt;
&lt;br&gt;
Okay, well that looks great and works in most cases.
However, what if you come across an artist like: M.Ward
Or A blog post that ends in a period?
You will probably end up with some sort of a routes error.
&lt;br&gt;
&lt;br&gt;
So, What do you do?
I added a sanitize title method to make sure that any periods were omitted on save. 
&lt;br&gt;
&lt;br&gt;
In my model file (artist.rb), I added this:
&lt;pre&gt;
before_save :sanitized_title
def sanitized_title
    self.title_copy = title.downcase.gsub(/[\W.]+/, '-')
end
&lt;/pre&gt;
&lt;br&gt;
In my database, I added a new row called title_copy. The originally inputted title of the artist is still in the database, I just call the title_copy for urls. 
&lt;br&gt;
&lt;br&gt;
So Now, This Erroneous Url:
http://www.yoursite.com/artist/M.Ward
&lt;br&gt;
&lt;br&gt;
will successfully run as:
http://www.yoursite.com/artist/m-ward
&lt;br&gt;
&lt;br&gt;
&lt;span class='caps'&gt;YAY&lt;/span&gt;!&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-27:13</id>
    <published>2006-12-27T03:26:00Z</published>
    <updated>2006-12-27T03:31:02Z</updated>
    <link href="http://teensonrails.com/2006/12/27/music-review-coming-along" rel="alternate" type="text/html"/>
    <title>Music Review Coming Along</title>
<content type="html">
            &lt;p&gt;I&#8217;ve been working for a while on my music review/cd shop app. 
It still needs some work, but I am making some good headway especially in the last few days.
If you would like to check it out go here:&lt;/p&gt;

&lt;p&gt;http://www.main.contrastandcompare.com&lt;/p&gt;

&lt;p&gt;I still need to fully expand some things like the blog. 
Also, does anybody know where I can get a rails based mp3 player?
that would be sexy. I want it&lt;/p&gt;

&lt;p&gt;Also, 
Over at the Rabbit Feed, furui has updated his Rounded Corners in Rails.
So please check it out. &lt;/p&gt;

&lt;p&gt;http://furui.org/blog/2006/12/25/rounded-corners-in-rails-updated/&lt;/p&gt;

&lt;p&gt;Merry Day after Christmas.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>norman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-26:11</id>
    <published>2006-12-26T03:11:00Z</published>
    <updated>2006-12-26T03:23:38Z</updated>
    <link href="http://teensonrails.com/2006/12/26/finally" rel="alternate" type="text/html"/>
    <title>Finally</title>
<content type="html">
            Finally I got my dev machine up and running. I managed to get a box before the Christmas holidays from my school, I spent some time tinkering with the computer over the weekend, and today I managed to get it working. The computer itself is not very fast, as it has a 500mhz processor, 64 mb's of ram and a 7gb hard drive, I added two more sticks of ram (two more 64's) and a 20gb hard drive. My OS of choice was Ubuntu Dapper Drake and I choose the basic LAMP setup from the menu, and have all the bells and whistles to run/develop  Ruby on Rails.  Now, I'm off to enjoy my presents.
&lt;br&gt;
&lt;br&gt;
Happy Holidays,&lt;br&gt;
-Norman
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-25:10</id>
    <published>2006-12-25T08:16:00Z</published>
    <updated>2006-12-25T08:17:21Z</updated>
    <link href="http://teensonrails.com/2006/12/25/merry-christmas" rel="alternate" type="text/html"/>
    <title>Merry Christmas</title>
<content type="html">
            &lt;p&gt;I have been pretty busy working on another app that I wanted to have deployed by the end of the year. So yea, I am sort of behind and crunching. 
Anyways. Have a nice holiday.&lt;/p&gt;

&lt;p&gt;peace.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-19:9</id>
    <published>2006-12-19T17:07:00Z</published>
    <updated>2006-12-19T17:09:16Z</updated>
    <link href="http://teensonrails.com/2006/12/19/roundup-of-good-info" rel="alternate" type="text/html"/>
    <title>RoundUp Of Good Info</title>
<content type="html">
            &lt;p&gt;http://furui.org/blog/2006/12/18/rounded-corners-in-rails/&lt;/p&gt;

&lt;p&gt;^^ Sexy Rounded Corners in Rails&lt;/p&gt;

&lt;p&gt;http://boxroom.rubyforge.org/&lt;/p&gt;

&lt;p&gt;^^ Image Uploads In Rails&lt;/p&gt;

&lt;p&gt;woopedy freakin&#8217; doo.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-15:8</id>
    <published>2006-12-15T05:03:00Z</published>
    <updated>2006-12-15T05:06:12Z</updated>
    <link href="http://teensonrails.com/2006/12/15/acts_as_authenticated" rel="alternate" type="text/html"/>
    <title>Acts_as_Authenticated</title>
<content type="html">
            &lt;p&gt;I just grabbed the Act_as_Authenticated plugin to implement an login system with out app. I&#8217;ve stumbled upon a few small problems with it, which I&#8217;ll have to look at tomorrow. Also, I&#8217;m interested in figuring out how to add a screen scraper into another application I&#8217;m working on. I&#8217;m pretty sure I&#8217;ll try to find some documentation on it tomorrow in class, we will see. I just wanted to put a little something up here today. Progress is soon on it&#8217;s way. &lt;/p&gt;

&lt;p&gt;lake.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-14:7</id>
    <published>2006-12-14T07:59:00Z</published>
    <updated>2006-12-14T08:05:24Z</updated>
    <link href="http://teensonrails.com/2006/12/14/i-did-it" rel="alternate" type="text/html"/>
    <title>I Did It!</title>
<content type="html">
            &lt;p&gt;Categories are good to go for now. I was in a really nice mood and decided to go ahead and get those things set up. 
Basically, Every blog has a set of categories. You can add new ones. And then, The posts can be put into those categories. Obviously, it isn&#8217;t a genius idea. However, it makes me feel good. It&#8217;s about 3:00am right now. I am waking up in four hours to go to school. 
Oh! What the heck! My developer test website is filtered as &#8220;SEX&#8221; at my school. Considering there is nothing even on it, I&#8217;m not even sure why it is blocked. It upsets me, either way. I&#8217;m going to sleep&#8230;maybe. 
I&#8217;m in a super mood right now. The night time does that to me.&lt;/p&gt;

&lt;p&gt;lake.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-13:6</id>
    <published>2006-12-13T17:26:00Z</published>
    <updated>2006-12-13T17:32:14Z</updated>
    <link href="http://teensonrails.com/2006/12/13/school-computers-used-for-my-work" rel="alternate" type="text/html"/>
    <title>School Computers Used For My Work!</title>
<content type="html">
            &lt;p&gt;So, our school is loaded up with IBM Netvista POSs! They all are running about about 256megs of ram which is nothing. Processors aren&#8217;t that bad, but still, you need ram. Anyways, I&#8217;ve been trying for a while to install Ruby on Rails on my machine here. I have admin privelages and can pretty much install whatever I want. Today I successfully got RadRails, Sqlite3, and Webrick all running together nicely. Although it is slow, It works OK! I can actually use the computer for something other than reading articles on Digg and sending little emails. Norman is still trying to setup his Dev Box and right now, I&#8217;m sort of at a stand still. I still need to implement categories into the app. I&#8217;ll try to do that tomorrow. Until then.&lt;/p&gt;

&lt;p&gt;lake.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-11:4</id>
    <published>2006-12-11T23:43:00Z</published>
    <updated>2006-12-11T23:59:13Z</updated>
    <category term="Updates"/>
    <link href="http://teensonrails.com/2006/12/11/mucho-progresso-today-o" rel="alternate" type="text/html"/>
    <title>Mucho Progresso Today-o</title>
<summary type="html">&lt;p&gt;Have you ever gotten to the point where you have no idea how you coded something? 
You are just in this like daze, but your body keeps chugging along. All your senses have 
somehow dropped. Even your eyes are slow to move. That happens from being on the computer
from 8:30 in the morning until 7:00 at night. I&#8217;m young. I have time to do stuff like that. :)&lt;/p&gt;

&lt;p&gt;I made some really good progress today. You really have to move slow, pay attention to details, make sure you know exactly what is going on, all the time. Instead of jumping forward on new stuff, we decided to just do the blog module right now. I added a bunch of goodies like: validations, relationship enhancements, corrected links, and flashes. I&#8217;m sure I&#8217;m leaving something out. I basically had like 21 revisions today. &lt;/p&gt;</summary><content type="html">
            &lt;p&gt;Have you ever gotten to the point where you have no idea how you coded something? 
You are just in this like daze, but your body keeps chugging along. All your senses have 
somehow dropped. Even your eyes are slow to move. That happens from being on the computer
from 8:30 in the morning until 7:00 at night. I&#8217;m young. I have time to do stuff like that. :)&lt;/p&gt;

&lt;p&gt;I made some really good progress today. You really have to move slow, pay attention to details, make sure you know exactly what is going on, all the time. Instead of jumping forward on new stuff, we decided to just do the blog module right now. I added a bunch of goodies like: validations, relationship enhancements, corrected links, and flashes. I&#8217;m sure I&#8217;m leaving something out. I basically had like 21 revisions today. &lt;/p&gt;
&lt;p&gt;Have you ever gotten to the point where you have no idea how you coded something? 
You are just in this like daze, but your body keeps chugging along. All your senses have 
somehow dropped. Even your eyes are slow to move. That happens from being on the computer
from 8:30 in the morning until 7:00 at night. I&#8217;m young. I have time to do stuff like that. :)&lt;/p&gt;

&lt;p&gt;I made some really good progress today. You really have to move slow, pay attention to details, make sure you know exactly what is going on, all the time. Instead of jumping forward on new stuff, we decided to just do the blog module right now. I added a bunch of goodies like: validations, relationship enhancements, corrected links, and flashes. I&#8217;m sure I&#8217;m leaving something out. I basically had like 21 revisions today. &lt;/p&gt;

&lt;p&gt;Ryanb from the railsforum gave me some interesting advice on updating an object&#8217;s parent id in the controller.&lt;/p&gt;

&lt;p&gt;Say we are creating a Post:&lt;/p&gt;

&lt;p&gt;in the post controller we would have something like this:&lt;/p&gt;

&lt;p&gt;def new
@post = Post.new
@blog = Blog.find(params[:id])
end&lt;/p&gt;

&lt;p&gt;def create
 @blog = Blog.find(params[:id])
   @post = @blog.posts.build(@params[:post])
    if @post.save
            flash[:notice] = &#8220;Post was created.&#8221;
      redirect_to :controller =&gt; &#8216;blogs&#8217;, :action =&gt; &#8216;show&#8217;, :id =&gt; @blog
    else
      render :action =&gt; &#8216;new&#8217;
    end
  end&lt;/p&gt;

&lt;p&gt;That automatically saves the blog_id to the post. Just something interesting.&lt;/p&gt;

&lt;p&gt;I guess I&#8217;m going to try to setup categories tonight. With a few more cokes, I should be fine!
I do have to take some time to call my girly! woooooh!&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-11:3</id>
    <published>2006-12-11T19:12:00Z</published>
    <updated>2006-12-11T20:40:13Z</updated>
    <link href="http://teensonrails.com/2006/12/11/capistrano-dreamhost-sqlite3-oh-my" rel="alternate" type="text/html"/>
    <title>Capistrano, Dreamhost, Sqlite3, Oh My!</title>
<summary type="html">Well, It looks like i'm having a bit of trouble getting this app deployed to my dreamhost server.
Let me firts say, I love issuing the &quot;rake deploy&quot; command. I have Cap and Dreamhost setup beautifully
together. They are working extremely well together. Cap and Dreamhost are sort of like lovers. Now, I've usually used
mysql with all my other apps. We felt like sqlite3 would be the way to go on this one. So, maybe my knowledge of how to setup my database.yml is not sufficient. However, i'm not setting it up any other way than what I have seen in the examples.</summary><content type="html">
            Well, It looks like i'm having a bit of trouble getting this app deployed to my dreamhost server.
Let me firts say, I love issuing the &quot;rake deploy&quot; command. I have Cap and Dreamhost setup beautifully
together. They are working extremely well together. Cap and Dreamhost are sort of like lovers. Now, I've usually used
mysql with all my other apps. We felt like sqlite3 would be the way to go on this one. So, maybe my knowledge of how to setup my database.yml is not sufficient. However, i'm not setting it up any other way than what I have seen in the examples.
Well, It looks like i'm having a bit of trouble getting this app deployed to my dreamhost server.
Let me firts say, I love issuing the &quot;rake deploy&quot; command. I have Cap and Dreamhost setup beautifully
together. They are working extremely well together. Cap and Dreamhost are sort of like lovers. Now, I've usually used
mysql with all my other apps. We felt like sqlite3 would be the way to go on this one. So, maybe my knowledge of how to setup my database.yml is not sufficient. However, i'm not setting it up any other way than what I have seen in the examples.&lt;br&gt;
Something that I'm not sure about is how I'm supposed to link the file. For instance:&lt;br&gt;
&lt;br&gt;
In my Database.yml file I have this:&lt;br&gt;
&lt;br&gt;
development:&lt;br&gt;
  adapter: sqlite3&lt;br&gt;
  dbfile: db/dev.sqlite3&lt;br&gt;
production:&lt;br&gt;
  adapter: sqlite3&lt;br&gt;
  dbfile: db/dev.sqlite3&lt;br&gt;
&lt;br&gt;
Should It be this instead:&lt;br&gt;
development:&lt;br&gt;
  adapter: sqlite3&lt;br&gt;
  dbfile: db/dev.sqlite3&lt;br&gt;
production:&lt;br&gt;
  adapter: sqlite3&lt;br&gt;
  dbfile: home/lakedenman/dev.ldenman.com/current/db/dev.sqlite3&lt;br&gt;
&lt;/code&gt;
&lt;br&gt;&lt;br&gt;
I'm deploying it right now with the latter settings. &lt;br&gt;
aannnd&lt;br&gt;
Application Error(Rails).&lt;br&gt;
&lt;br&gt;
Okay, so I know that way just won't work. I'm gonna go ahead and go to the previous setting of just db/dev.sqlite3
I've just deployed my app and let's see what happens.&lt;br&gt;
Annnnd&lt;br&gt;
Works!!!  Ok, so what happens when I start playing around with my &quot;New Post&quot; feature. 
Well, it breaks my app. I think this may have something to do with my Shebang that I added a bit ago. Let me check it out.&lt;br&gt;&lt;br&gt;

So, I navigate to my public/dispatch.fcgi file. The Shebang is currently:  #!/usr/bin/ruby1.8&lt;br&gt;
I read to change it on a forum somewhere. So I change it back to just #!/usr/bin/ruby&lt;br&gt;
I'm gonna deploy that change.&lt;br&gt;

Okay, Awesome. The page loads up fine. &lt;br&gt;
Seems that my shebang in dispatch.fcgi was causing the problem. Phew!&lt;br&gt;
&lt;br&gt;
Looks like Capistrano, Dreamhost, and Sqlite3 can all be lovers now!&lt;br&gt;

&lt;br&gt;&lt;br&gt;
lake.
&lt;br&gt;&lt;br&gt;

good link:&lt;br&gt;
http://convergentarts.com/pages/fastcgi&lt;br&gt;
          </content>  </entry>
  <entry xml:base="http://teensonrails.com/">
    <author>
      <name>ldenman</name>
    </author>
    <id>tag:teensonrails.com,2006-12-11:1</id>
    <published>2006-12-11T18:01:00Z</published>
    <updated>2006-12-11T18:03:44Z</updated>
    <link href="http://teensonrails.com/2006/12/11/rolling-with-mephisto" rel="alternate" type="text/html"/>
    <title>Rolling With Mephisto</title>
<content type="html">
            &lt;p&gt;Yum. This looks very very nice. 
I set this up on my dreamhost server using this guide:&lt;/p&gt;

&lt;p&gt;http://mede.us/2006/12/1/mephisto-and-dreamhost&lt;/p&gt;

&lt;p&gt;I&#8217;m surprised it was that easy to get going. I&#8217;m going to look around the 
backend a little bit more and see what all i can play with.&lt;/p&gt;

&lt;p&gt;See Ya.&lt;/p&gt;
          </content>  </entry>
</feed>
