<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: ActiveScaffold, Acts_as_taggable_on_steroids</title> <atom:link href="http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/feed/" rel="self" type="application/rss+xml" /><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/</link> <description>Code Monkey</description> <lastBuildDate>Thu, 11 Mar 2010 04:50:50 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: sommer</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-10955</link> <dc:creator>sommer</dc:creator> <pubDate>Mon, 28 Sep 2009 18:01:42 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-10955</guid> <description>I got this to work in rails 2.2.2 with &quot;acts_as_taggable_on&#039; (the preferred plugin nowadays) by changing the added code to the controler to the code below - maybe not a nice code, but hope it helps someone:privatedef new_tag_list(tag_ids)
tag_ids.map {&#124;k,h&#124; h[&#039;id&#039;]}.collect {&#124;i&#124; Tag.find(i)}.map do &#124;tag&#124;
tag.name + &#039;,&#039;
end
end
protecteddef before_create_save(record)
if params[:record][:tags] != nil
record.tag_list = new_tag_list(params[:record][:tags])
else
record.tag_list = new_tag_list(&#039;&#039;)
end
enddef before_update_save(record)
if params[:record][:tags] != nil
record.tag_list = new_tag_list(params[:record][:tags])
else
record.tag_list = new_tag_list(&#039;&#039;)
end
end</description> <content:encoded><![CDATA[<p>I got this to work in rails 2.2.2 with &#8220;acts_as_taggable_on&#8217; (the preferred plugin nowadays) by changing the added code to the controler to the code below &#8211; maybe not a nice code, but hope it helps someone:privatedef new_tag_list(tag_ids)<br
/> tag_ids.map {|k,h| h['id']}.collect {|i| Tag.find(i)}.map do |tag|<br
/> tag.name + &#8216;,&#8217;<br
/> end<br
/> end<br
/> protecteddef before_create_save(record)<br
/> if params[:record][:tags] != nil<br
/> record.tag_list = new_tag_list(params[:record][:tags])<br
/> else<br
/> record.tag_list = new_tag_list(&#8221;)<br
/> end<br
/> enddef before_update_save(record)<br
/> if params[:record][:tags] != nil<br
/> record.tag_list = new_tag_list(params[:record][:tags])<br
/> else<br
/> record.tag_list = new_tag_list(&#8221;)<br
/> end<br
/> end</p> ]]></content:encoded> </item> <item><title>By: vintyara</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-10750</link> <dc:creator>vintyara</dc:creator> <pubDate>Tue, 02 Jun 2009 20:08:40 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-10750</guid> <description>I try debug private methods:protected
def before_create_save(record)
record.tag_list = new_tag_list(params[:record][:tags])
end
def before_update_save(record)
record.tag_list = new_tag_list(params[:record][:tags])
endAnd i can`t =) Becouse this methods nt used when i try update tags.Maybe its not work with rails 2.3.2 ?</description> <content:encoded><![CDATA[<p>I try debug private methods:</p><p>protected</p><p>def before_create_save(record)<br
/> record.tag_list = new_tag_list(params[:record][:tags])<br
/> end</p><p>def before_update_save(record)<br
/> record.tag_list = new_tag_list(params[:record][:tags])<br
/> end</p><p>And i can`t =) Becouse this methods nt used when i try update tags.</p><p>Maybe its not work with rails 2.3.2 ?</p> ]]></content:encoded> </item> <item><title>By: vitaly</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-10742</link> <dc:creator>vitaly</dc:creator> <pubDate>Sun, 31 May 2009 20:00:36 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-10742</guid> <description>How i can edit tags (rename, delete, add new) with activescaffold?</description> <content:encoded><![CDATA[<p>How i can edit tags (rename, delete, add new) with activescaffold?</p> ]]></content:encoded> </item> <item><title>By: Kristofer</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-9132</link> <dc:creator>Kristofer</dc:creator> <pubDate>Sat, 26 Apr 2008 14:35:44 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-9132</guid> <description>I do have to say, even after working with Ruby for 9 months, your new_tag_list method made my head hurt trying to figure it out. I wasn&#039;t able to - that&#039;s why I finally wrote to ask you about it all.</description> <content:encoded><![CDATA[<p>I do have to say, even after working with Ruby for 9 months, your new_tag_list method made my head hurt trying to figure it out. I wasn&#8217;t able to &#8211; that&#8217;s why I finally wrote to ask you about it all.</p> ]]></content:encoded> </item> <item><title>By: Kristofer</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-9131</link> <dc:creator>Kristofer</dc:creator> <pubDate>Sat, 26 Apr 2008 14:33:53 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-9131</guid> <description>Yep. I took out the before_*_save routines and it works like a champe, even your autocomplete stuff works. Thanks!</description> <content:encoded><![CDATA[<p>Yep. I took out the before_*_save routines and it works like a champe, even your autocomplete stuff works. Thanks!</p> ]]></content:encoded> </item> <item><title>By: Ariejan de Vroom</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-9126</link> <dc:creator>Ariejan de Vroom</dc:creator> <pubDate>Sat, 26 Apr 2008 07:37:51 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-9126</guid> <description>@Kristofer: I haven&#039;t used this for a while. This probably has to do with acts_as_taggable_on_steroids. I&#039;m not sure you need these helper methods anymore. Did you try using the &#039;tag_list&#039; property directly? I think that should work now.</description> <content:encoded><![CDATA[<p>@Kristofer: I haven&#8217;t used this for a while. This probably has to do with acts_as_taggable_on_steroids. I&#8217;m not sure you need these helper methods anymore. Did you try using the &#8216;tag_list&#8217; property directly? I think that should work now.</p> ]]></content:encoded> </item> <item><title>By: Kristofer</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-9117</link> <dc:creator>Kristofer</dc:creator> <pubDate>Fri, 25 Apr 2008 18:31:54 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-9117</guid> <description>so is there any possibility that this routine from above -
def new_tag_list(tag_ids)
tag_ids.map {&#124;k,h&#124; h[&#039;id&#039;]}.collect {&#124;i&#124; Tag.find(i)}.map do &#124;tag&#124;
tag.name.include?(Tag.delimiter) ? &quot;\&quot;#{tag.name}\&quot;&quot; : tag.name
end.join(Tag.delimiter.ends_with?(&quot; &quot;) ? Tag.delimiter : &quot;#{Tag.delimiter} &quot;)
end- wouldn&#039;t work in ruby 1.86 and rails 2.0.2? Or with acts_as_taggable_on_steroids (as of 30 March 2008)?It throws aNoMethodError (You have a nil object when you didn&#039;t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.map):
/app/controllers/recipes_controller.rb:46:in `new_new_tag_list&#039;
/app/controllers/recipes_controller.rb:29:in `before_create_save&#039;
/vendor/plugins/active_scaffold/lib/actions/create.rb:75:in `do_create&#039;when trying to create a new &quot;recipe&quot;. the tag table is not empty, I put a couple in by hand...any ideas?</description> <content:encoded><![CDATA[<p>so is there any possibility that this routine from above -</p><p>def new_tag_list(tag_ids)<br
/> tag_ids.map {|k,h| h['id']}.collect {|i| Tag.find(i)}.map do |tag|<br
/> tag.name.include?(Tag.delimiter) ? &#8220;\&#8221;#{tag.name}\&#8221;" : tag.name<br
/> end.join(Tag.delimiter.ends_with?(&#8221; &#8220;) ? Tag.delimiter : &#8220;#{Tag.delimiter} &#8220;)<br
/> end</p><p>- wouldn&#8217;t work in ruby 1.86 and rails 2.0.2? Or with acts_as_taggable_on_steroids (as of 30 March 2008)?</p><p>It throws a</p><p>NoMethodError (You have a nil object when you didn&#8217;t expect it!<br
/> You might have expected an instance of Array.<br
/> The error occurred while evaluating nil.map):<br
/> /app/controllers/recipes_controller.rb:46:in `new_new_tag_list&#8217;<br
/> /app/controllers/recipes_controller.rb:29:in `before_create_save&#8217;<br
/> /vendor/plugins/active_scaffold/lib/actions/create.rb:75:in `do_create&#8217;</p><p>when trying to create a new &#8220;recipe&#8221;. the tag table is not empty, I put a couple in by hand&#8230;</p><p>any ideas?</p> ]]></content:encoded> </item> <item><title>By: suci</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-293</link> <dc:creator>suci</dc:creator> <pubDate>Sat, 08 Sep 2007 01:29:22 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-293</guid> <description>i have a question,how to short label in design with activescaffold????</description> <content:encoded><![CDATA[<p>i have a question,how to short label in design with activescaffold????</p> ]]></content:encoded> </item> <item><title>By: Ariejan</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-282</link> <dc:creator>Ariejan</dc:creator> <pubDate>Sun, 01 Jul 2007 16:37:26 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-282</guid> <description>I&#039;ve just posted a new article describing a (quite different) solution to this problem.Read it here: http://ariejan.net/2007/07/01/activescaffold-acts_as_taggable-auto-complete/</description> <content:encoded><![CDATA[<p>I&#8217;ve just posted a new article describing a (quite different) solution to this problem.</p><p>Read it here: <a
href="http://ariejan.net/2007/07/01/activescaffold-acts_as_taggable-auto-complete/" rel="nofollow">http://ariejan.net/2007/07/01/activescaffold-acts_as_taggable-auto-complete/</a></p> ]]></content:encoded> </item> <item><title>By: Ariejan.net &#187; Blog Archive &#187; ActiveScaffold + acts_as_taggable + Auto Complete</title><link>http://ariejan.net/2007/06/11/activescaffold-acts_as_taggable_on_steroids/comment-page-1/#comment-292</link> <dc:creator>Ariejan.net &#187; Blog Archive &#187; ActiveScaffold + acts_as_taggable + Auto Complete</dc:creator> <pubDate>Sun, 01 Jul 2007 16:35:32 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=121#comment-292</guid> <description>[...] digg_url=&#039;http://ariejan.net/2007/07/01/activescaffold-acts_as_taggable-auto-complete/&#039;; digg_skin = &#039;button&#039;; digg_bgcolor = &#039;#FFFFFF&#039;; digg_title = &#039;ActiveScaffold + acts_as_taggable + Auto Complete&#039;; digg_bodytext = &#039;&#039;; digg_topic = &#039;&#039;;    I&#8217;ve talked before on how to use ActiveScaffold with acts_as_taggable_on_steroids. [...]</description> <content:encoded><![CDATA[<p>[...] digg_url=&#8217;http://ariejan.net/2007/07/01/activescaffold-acts_as_taggable-auto-complete/&#8217;; digg_skin = &#8216;button&#8217;; digg_bgcolor = &#8216;#FFFFFF&#8217;; digg_title = &#8216;ActiveScaffold + acts_as_taggable + Auto Complete&#8217;; digg_bodytext = &#8221;; digg_topic = &#8221;;    I&#8217;ve talked before on how to use ActiveScaffold with acts_as_taggable_on_steroids. [...]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached (user agent is rejected)

Served from: starbuck.ariejan.net @ 2010-03-12 02:33:20 -->