<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Activars.(evolving  and active) &#187; Ruby on Rails</title> <atom:link href="http://www.activars.com/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" /><link>http://www.activars.com</link> <description>tech, web, programming, rails</description> <lastBuildDate>Sat, 03 Dec 2011 14:37:58 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Not installing gem documentation by default</title><link>http://www.activars.com/2011/12/03/not-installing-gem-documentation-by-default/</link> <comments>http://www.activars.com/2011/12/03/not-installing-gem-documentation-by-default/#comments</comments> <pubDate>Sat, 03 Dec 2011 14:32:43 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://www.activars.com/?p=2428</guid> <description><![CDATA[Instead of specifying --no-ri --no-rdoc in the gem install command every time, put the following in your local gemrc file located in ~/.gemrc, it will skip installing documentation for all the gem installation by default, which is ideal for production environment.]]></description> <wfw:commentRss>http://www.activars.com/2011/12/03/not-installing-gem-documentation-by-default/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to instal mysql or mysql2 Ruby gem for Rails 3.0.x on OS X Lion</title><link>http://www.activars.com/2011/07/25/how-to-instal-mysql-or-mysql2-ruby-gem-for-rails-3-0-x-on-os-x-lion/</link> <comments>http://www.activars.com/2011/07/25/how-to-instal-mysql-or-mysql2-ruby-gem-for-rails-3-0-x-on-os-x-lion/#comments</comments> <pubDate>Mon, 25 Jul 2011 22:43:30 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Configuration]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://www.activars.com/?p=2413</guid> <description><![CDATA[This hits me every time when I try to install mysql gem on a new OS X machine. Here&#8217;s the trick and this should work for Snow Leopard too. Prerequisite Install Xcode 4.x Lion offers free Xcode 4 in Mac App Store. Download and install &#8220;x86 64-bit&#8221; Mysql DMG (link) Install all supplied packages, it [...]]]></description> <wfw:commentRss>http://www.activars.com/2011/07/25/how-to-instal-mysql-or-mysql2-ruby-gem-for-rails-3-0-x-on-os-x-lion/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Pass JavaScript variables to Rails controller</title><link>http://www.activars.com/2009/04/13/pass-javascript-variables-to-rails-controller/</link> <comments>http://www.activars.com/2009/04/13/pass-javascript-variables-to-rails-controller/#comments</comments> <pubDate>Mon, 13 Apr 2009 18:40:58 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://wp.activars.com/?p=77</guid> <description><![CDATA[Google query doesn&#8217;t give much useful result on this topic. What we discuss here is if there is a value/function getParameters() in JavaScript returns "message = hello_world" (a URL query). How do you pass the JS variable into controller? link_to_remote Most common way is using link_to_remote which constructs an Ajax call, but the drawback is [...]]]></description> <wfw:commentRss>http://www.activars.com/2009/04/13/pass-javascript-variables-to-rails-controller/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Passing Rails restful_authentication in rspec</title><link>http://www.activars.com/2009/02/16/passing-rails-restful_authentication-in-rspec/</link> <comments>http://www.activars.com/2009/02/16/passing-rails-restful_authentication-in-rspec/#comments</comments> <pubDate>Mon, 16 Feb 2009 18:40:05 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://wp.activars.com/?p=75</guid> <description><![CDATA[Plugins in Rails are useful shortcuts, they produce better implementations for some areas. I recently come across an issue of passing model controller authentication, but the before_filter :login_required stops me testing my code in Rspec. By using mock and stub technique can pass the authentication test. All you have to do is inserting these code [...]]]></description> <wfw:commentRss>http://www.activars.com/2009/02/16/passing-rails-restful_authentication-in-rspec/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Offline Rails Documentation</title><link>http://www.activars.com/2009/02/01/offline-rails-documentation/</link> <comments>http://www.activars.com/2009/02/01/offline-rails-documentation/#comments</comments> <pubDate>Sun, 01 Feb 2009 18:39:00 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://wp.activars.com/?p=73</guid> <description><![CDATA[Although you can run gem server to have a rails rdoc running on localhost, the rdoc rails document could be troublesome to find a specific method you would like to know about. Fortunately, you may want to try out an ajax improved rails documentation: RailsBrain provides a free downloadable (free) offline documentation for rails. It [...]]]></description> <wfw:commentRss>http://www.activars.com/2009/02/01/offline-rails-documentation/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>&#8220;Fork Ruby&#8221; Summary (RubyConf 2008)</title><link>http://www.activars.com/2008/12/30/fork-ruby-summary-rubyconf-2008/</link> <comments>http://www.activars.com/2008/12/30/fork-ruby-summary-rubyconf-2008/#comments</comments> <pubDate>Tue, 30 Dec 2008 18:37:56 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Conferences]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://wp.activars.com/?p=71</guid> <description><![CDATA[I like screencast and keynote, they are great ways of learning practically. But some people don&#8217;t have much time to watch or listen to all these. Or maybe you forgot some ideas were presented, but it&#8217;s difficult to select the part you want to find in the video &#8211; you end up with watching the [...]]]></description> <wfw:commentRss>http://www.activars.com/2008/12/30/fork-ruby-summary-rubyconf-2008/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Configure Rails migration version type</title><link>http://www.activars.com/2008/12/02/configure-rails-migration-version-type/</link> <comments>http://www.activars.com/2008/12/02/configure-rails-migration-version-type/#comments</comments> <pubDate>Tue, 02 Dec 2008 18:34:38 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Configuration]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://wp.activars.com/?p=65</guid> <description><![CDATA[Rails use a UTC time stamp as migration version by default. Although most examples in books have simple number based system for managing migration versions, there isn&#8217;t much information about version type configuration. By default, a migration file(&#62;=Rail 2.0) name look similar to: We can turn this off and use numeric prefixes by adding this [...]]]></description> <wfw:commentRss>http://www.activars.com/2008/12/02/configure-rails-migration-version-type/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>config.gem &#8216;rspec-rails&#8217; on Rails 2.2.2</title><link>http://www.activars.com/2008/11/29/config-gem-rspec-rails-on-rails-2-2-2/</link> <comments>http://www.activars.com/2008/11/29/config-gem-rspec-rails-on-rails-2-2-2/#comments</comments> <pubDate>Sat, 29 Nov 2008 18:33:43 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://wp.activars.com/?p=63</guid> <description><![CDATA[Update on 5th April 2009: This rspec-rails gem issue has been fixed and released in rspec-rails milestone “1.2.0”. see details here If you are still working on Rspec before version 1.20: After googling, I counld&#8217;t find much information about including rspec-rails in the ruby gems config/environment.rb. The only reason I include it in gem dependency [...]]]></description> <wfw:commentRss>http://www.activars.com/2008/11/29/config-gem-rspec-rails-on-rails-2-2-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>RubyGem update on Leopard</title><link>http://www.activars.com/2008/11/27/rubygem-update-on-leopard/</link> <comments>http://www.activars.com/2008/11/27/rubygem-update-on-leopard/#comments</comments> <pubDate>Thu, 27 Nov 2008 18:31:52 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[Configuration]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://wp.activars.com/?p=61</guid> <description><![CDATA[I have a RubyGem version 1.2.0 installed on Leopard. If you would like to update RubyGems to a newer version, the RubyGem user guide suggests for modern versions( &#62;0.8.5 ) can use the following command: gem update --system But, console told me the 1.2.0 is the latest version &#8211; Nothing to update! The work around [...]]]></description> <wfw:commentRss>http://www.activars.com/2008/11/27/rubygem-update-on-leopard/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Symfony and Ruby on Rail</title><link>http://www.activars.com/2008/04/15/symfony-and-ruby-on-rail/</link> <comments>http://www.activars.com/2008/04/15/symfony-and-ruby-on-rail/#comments</comments> <pubDate>Tue, 15 Apr 2008 18:00:05 +0000</pubDate> <dc:creator>jay</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Ruby on Rails]]></category> <guid
isPermaLink="false">http://wp.activars.com/?p=12</guid> <description><![CDATA[研究过PHP下的Symfony, 再看Ruby on Rail的时候, 发现两者都有不少的相似性. 首先他们都用到MVC的架构设计整个项目， 作为Web Application来说， 这样可以将class library， layout view, handler清清楚楚的分开，有助于多人开发，和日常维护。 如果比较过两者library的结构，他们也有相近之处。 从创建项目到编辑项目设置等等。 比如， 创建项目时， 他们都会创建一系列的文件夹和默认文件， 然后可以自己创建module, 都有位置防止plugins。做数据库的时候，也可以用.xml 或者.yml导出 Sql store procedures. 那到底哪个比较好一些。 这里有一边文章对比一些MVC frameworks的性能， 不足的是, Bench mark只不过是一个参照, 完全不能说明其他的情况, 比如error handling的性能, 每个framework都有各自的优化设置, symfony deployment的时候就有优化的设置. 在Google doc上到有一片比较全面的文章比较Rail和Django, 对与一个新的项目选择framework有一定的帮助.]]></description> <wfw:commentRss>http://www.activars.com/2008/04/15/symfony-and-ruby-on-rail/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
