<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Ruby on Rails discussions</title>
  <link type="application/atom+xml" rel="self" href="http://ruby-on-rails.groups.wuyasea.com/boards/3/topics.xml"/>
  <link type="text/html" rel="alternate" href="http://ruby-on-rails.groups.wuyasea.com/boards/3/topics"/>
  <language>en-us</language>
  <entry>
    <title>if people don't like your framework, what you say?</title>
    <link type="text/html" rel="alternate" href="/boards/if-people-don-t-like-your-framework-what-you-say/topics/1"/>
    <updated>Tue, 29 Jul 2008 02:13:43 -0000</updated>
    <author>
      <name>dorren</name>
    </author>
    <content type="html">if people don't like your framework, what you say? &lt;br /&gt;
For DHH, he says &lt;a href="http://www.flickr.com/photos/planetargon/127984254/"&gt;@#$%&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Source: from &lt;a href="http://it.slashdot.org/it/07/09/09/215230.shtml#20535473"&gt;slashdot&lt;/a&gt;</content>
  </entry>
  <entry>
    <title>be_taggable patch</title>
    <link type="text/html" rel="alternate" href="/boards/be-taggable-patch/topics/62"/>
    <updated>Mon, 14 Jul 2008 15:29:59 -0000</updated>
    <author>
      <name>linus</name>
    </author>
    <content type="html">Hello!&lt;br /&gt;
I have wrote two new methods for be_taggable:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;
    # add tags&lt;br /&gt;
    def add_tags(str)&lt;br /&gt;
      new_tags = self.class.split_tag_names(str)&lt;br /&gt;
      &lt;br /&gt;
      new_tags_objs = []&lt;br /&gt;
      new_tags.each{|tag|&lt;br /&gt;
        new_tags_objs &amp;lt;&amp;lt; Tag.find_or_create_by_name_and_model_type(tag, self.class.name)&lt;br /&gt;
      }&lt;br /&gt;
      self.tags = (self.tags + new_tags_objs).uniq&lt;br /&gt;
      &lt;br /&gt;
      update_attribute(:tags_cache, self.tag_names.to_yaml) if respond_to? :tags_cache&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    # remove tags&lt;br /&gt;
    def remove_tags(str)&lt;br /&gt;
      new_tags = self.class.split_tag_names(str)&lt;br /&gt;
      &lt;br /&gt;
      new_tags_objs = []&lt;br /&gt;
      new_tags.each{|tag|&lt;br /&gt;
        new_tags_objs &amp;lt;&amp;lt; Tag.find_or_create_by_name_and_model_type(tag, self.class.name)&lt;br /&gt;
      }&lt;br /&gt;
      self.tags = (self.tags - new_tags_objs).uniq&lt;br /&gt;
      &lt;br /&gt;
      update_attribute(:tags_cache, self.tag_names.to_yaml) if respond_to? :tags_cache&lt;br /&gt;
    end&lt;br /&gt;
&lt;/pre&gt;
&lt;br /&gt;
The reason for writing those was appling changes tags to groups of objects, when I either wanted to add or remove some tags :)&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Tomasz Bak&lt;br /&gt;
</content>
  </entry>
  <entry>
    <title>Page Display Error</title>
    <link type="text/html" rel="alternate" href="/boards/page-display-error/topics/41"/>
    <updated>Tue, 25 Mar 2008 21:34:38 -0000</updated>
    <author>
      <name>shaiss</name>
    </author>
    <content type="html">Hi Everyone, this is my first post.  So I'll try to be as detailed as possible. &lt;br /&gt;
&lt;br /&gt;
Dev Machine: OSX 10.5.2&lt;br /&gt;
Ruby: 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]&lt;br /&gt;
Rails: 2.0.2&lt;br /&gt;
Using MAMP 1.7.1 with the following settings&lt;br /&gt;
  PHP: 5.2.5&lt;br /&gt;
  MYSQL : 5.0.41&lt;br /&gt;
Using CocoaMySQL .7b5&lt;br /&gt;
TextMate 1.5.7&lt;br /&gt;
&lt;br /&gt;
I've built several sites using basic HTML, PHP, ASP, ect, but this is my first jump into web2.0 development.&lt;br /&gt;
&lt;br /&gt;
I'm learning ruby on rails and am going through some of the tutorials. &lt;br /&gt;
Some tutorials work fine, ei. http://railsonedge.blogspot.com/2008/03/tutorial-beginning-ajax-with-rails-20.html&lt;br /&gt;
&lt;br /&gt;
Others don't.  They say they are written for rails 2.+ and ruby 1.8.6 but the result I get is nearly universal. &lt;br /&gt;
Take the example below from http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step.html&lt;br /&gt;
&lt;br /&gt;
I get to the step after creating the migration file "001_create_movies.rb".  I run rake db:migrate, verify with cocoamysql that the tables and fields are created properly.  They do so I run ruby script/server.&lt;br /&gt;
&lt;br /&gt;
The server loads up as expected http://localhost:3000.  But when I navigate to http://localhost:3000/movies I DO NOT get the expected results.&lt;br /&gt;
I am missing the description field and one_sheet_url field.  I followed the instructions to the letter up to that point.  Again, this similar result has happened with other tutorials so I think the error is somewhere on my end.&lt;br /&gt;
&lt;br /&gt;
[b]This is what I should have:[/b]&lt;br /&gt;
[img]http://bp0.blogger.com/_fnfsff2gWFY/R2PwNTuWBmI/AAAAAAAAAA8/U7wskSum5z0/s1600/movies1.png[/img]&lt;br /&gt;
[img]http://bp0.blogger.com/_fnfsff2gWFY/R2PwNTuWBnI/AAAAAAAAABE/3fzWebHr_ic/s1600/movies2.png[/img]&lt;br /&gt;
[img]http://bp1.blogger.com/_fnfsff2gWFY/R2PwNjuWBoI/AAAAAAAAABM/XiEST0Z9cxI/s1600/movies3.png[/img]&lt;br /&gt;
&lt;br /&gt;
I case the pics don't come up above:&lt;br /&gt;
http://bp0.blogger.com/_fnfsff2gWFY/R2PwNTuWBmI/AAAAAAAAAA8/U7wskSum5z0/s1600/movies1.png&lt;br /&gt;
http://bp0.blogger.com/_fnfsff2gWFY/R2PwNTuWBnI/AAAAAAAAABE/3fzWebHr_ic/s1600/movies2.png&lt;br /&gt;
http://bp1.blogger.com/_fnfsff2gWFY/R2PwNjuWBoI/AAAAAAAAABM/XiEST0Z9cxI/s1600/movies3.png&lt;br /&gt;
&lt;br /&gt;
[b]But I get this:[/b]&lt;br /&gt;
[img]http://i134.photobucket.com/albums/q118/shaiss/Picture3.png[/img]&lt;br /&gt;
[img]http://i134.photobucket.com/albums/q118/shaiss/Picture4.png[/img]&lt;br /&gt;
[img]http://i134.photobucket.com/albums/q118/shaiss/Picture5.png[/img]&lt;br /&gt;
&lt;br /&gt;
I case the pics don't come up above:&lt;br /&gt;
http://i134.photobucket.com/albums/q118/shaiss/Picture3.png&lt;br /&gt;
http://i134.photobucket.com/albums/q118/shaiss/Picture4.png&lt;br /&gt;
http://i134.photobucket.com/albums/q118/shaiss/Picture5.png&lt;br /&gt;
Here is the output from terminal: http://pastie.caboo.se/170436&lt;br /&gt;
&lt;br /&gt;
I've tried the page in safari 3.1 and firefox 3b4.  Like I said this only happens with certain tutorials I go through.  I'm a noob at this so its frustrating not understanding why this is happening.  If anyone can help clear this up for me I would greatly appreciate it.  Thank you for your time,&lt;br /&gt;
Shai</content>
  </entry>
  <entry>
    <title>Setting tags through fixtures with be_taggable.</title>
    <link type="text/html" rel="alternate" href="/boards/setting-tags-through-fixtures-with-be-taggable/topics/34"/>
    <updated>Sun, 13 Jan 2008 16:56:56 -0000</updated>
    <author>
      <name>Oshuma</name>
    </author>
    <content type="html">Anyone know of a way to set tags through a fixture file?  For example, I have a Post model that's be_taggable, and I'd like to be able to set some default tags inside the RAILS_ROOT/test/fixtures/posts.yml fixture file.  Know of a way to do this?</content>
  </entry>
</feed>
