<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Post : Recent threads</title>
    <link>http://talk.rubynow.com/user</link>
    <pubDate>Wed, 03 May 2006 19:10:00 GMT</pubDate>
    <description>Post : Recent threads</description>
    <item>
      <title>Disable the output of IRB</title>
      <description>Disable the output of IRB
Sometimes when you are testing functions, you just want to run the code without irb printing out tons of data to the console.

Normally you type in irb:
1+1
and it will print out 
=&gt; 2
if you add a ";0" or ";nil"

the result will not be printed, only a 0 or nil.  This is only useful when a function prints out to much data to the screen such as an array with 1,000,000 items.

so you would do:
my_function;nil</description>
      <pubDate>Wed, 03 May 2006 19:10:07 GMT</pubDate>
      <author>jtoy</author>
      <link>http://talk.rubynow.com/post/show/30</link>
    </item>
    <item>
      <title>use page caching and still have acccess to flash</title>
      <description>use page caching and still have acccess to flash
If you want to use page caching, but can't because  you will loose the ability to display error and succcess messages, there is a way around this.
You can put your error in javascript so your pages are always cached, only your javascript will change.
You will need to make sure javascript is loaded from the webserver and that the browser isn't caching your javascript.

In your javascript template have some code like:
&lt;code lang="ruby"&gt;
&lt;% if flash[:js_notice]  %&gt;
  var js_notice = "&lt;%= flash[:js_notice]  %&gt;"
&lt;% else %&gt;
  var js_notice = null
&lt;% end %&gt;

&lt;% if flash[:js_error]  %&gt;
  var js_error = "&lt;%= flash[:js_error] %&gt;"
&lt;% else %&gt;

function display_flash(){
  if (js_notice){
    var div = document.getElementById("js_notice")
    div.innerHTML =  js_notice
  }
  if (js_error){
    var div = document.getElementById("js_error")
    div.innerHTML = js_error
    
  }
}
window.onload = display_flash
&lt;/code&gt;

Then in your layout have this html:

&lt;pre&gt;
  &lt;div id="js_error"&gt;&lt;/div&gt;
  &lt;div id="js_notice"&gt;&lt;/div&gt;
&lt;/pre&gt;

On each new page request, the javascript code will load and check if there are notices or errrors, if there are, then it will place that error on your page in the appropiate div.


</description>
      <pubDate>Wed, 19 Apr 2006 14:28:50 GMT</pubDate>
      <author>jtoy</author>
      <link>http://talk.rubynow.com/post/show/24</link>
    </item>
    <item>
      <title>&amp;#20013;&amp;#25991;&amp;#35797;&amp;#39564;&amp;#30000;</title>
      <description>&amp;#20013;&amp;#25991;&amp;#35797;&amp;#39564;&amp;#30000;
&amp;#20061;&amp;#28857;&amp;#26723;&amp;#30340;&amp;#26379;&amp;#21451;&amp;#20204;&amp;#65292;&amp;#26469;&amp;#36825;&amp;#25240;&amp;#33150;
&amp;#24076;&amp;#26395;&amp;#27809;&amp;#26377;&amp;#20154;&amp;#26469;&amp;#24178;&amp;#25105;&amp;#20204;&amp;#21543;</description>
      <pubDate>Fri, 14 Apr 2006 03:20:51 GMT</pubDate>
      <author>bd7lx</author>
      <link>http://talk.rubynow.com/post/show/17</link>
    </item>
    <item>
      <title>How is design done on larger rails sites?</title>
      <description>How is design done on larger rails sites?
Hi, I am working on a the largest rails project I have worked on before.  It's large in terms of how many different directions the application can flow, so there will be many different views.  How are people using rails to do the workflow on larger projects?
It is getting too tedious in the controller to have code like:

if @result ==1
  render :action =&gt; 'page1'
elsif @result ==2
 render :action =&gt; 'otherpage'
else
  render :action =&gt; 'returnpage'

How are rails developers managing these kinds of flows?
I would appreciate any suggestions.
</description>
      <pubDate>Thu, 13 Apr 2006 17:06:01 GMT</pubDate>
      <author>jtoy</author>
      <link>http://talk.rubynow.com/post/show/10</link>
    </item>
    <item>
      <title>at the canada on rails conference</title>
      <description>at the canada on rails conference
John and I will be at the Canada on Rails conference. We will be posting information about the conference at this  thread.  If you have any questions, please ask here.
Thanks!!!
</description>
      <pubDate>Fri, 21 Apr 2006 02:45:14 GMT</pubDate>
      <author>jtoy</author>
      <link>http://talk.rubynow.com/post/show/6</link>
    </item>
    <item>
      <title>what level of interaction does rails have when page caching is used?</title>
      <description>what level of interaction does rails have when page caching is used?
From reading about how rails works, it seems when you use page caching in a production environment, the rails stack is bypassed because apache/lighty will see the html file and serve that instead of dynamically generating the page.  Is rails really totally bypassed?  If so, how can the log files still record what pages where hit in the log directory if rails is totally bypassed?</description>
      <pubDate>Wed, 19 Apr 2006 03:06:03 GMT</pubDate>
      <author>paulc</author>
      <link>http://talk.rubynow.com/post/show/5</link>
    </item>
    <item>
      <title>Test</title>
      <description>Test
This is a test!</description>
      <pubDate>Sun, 09 Apr 2006 00:30:21 GMT</pubDate>
      <author>doug</author>
      <link>http://talk.rubynow.com/post/show/3</link>
    </item>
    <item>
      <title>bugs at rubynow?</title>
      <description>bugs at rubynow?
If you find any bugs or oddities in the site, please report them to this thread.
Thanks!!!
</description>
      <pubDate>Sat, 08 Apr 2006 20:57:17 GMT</pubDate>
      <author>jtoy</author>
      <link>http://talk.rubynow.com/post/show/2</link>
    </item>
    <item>
      <title>any good ideas for the site?</title>
      <description>any good ideas for the site?
Thanks for using the site!! If anyone has any good ideas or suggestions on ways we can improve the site, please feel free to contact us or leave a message at this thread.</description>
      <pubDate>Fri, 07 Apr 2006 02:49:47 GMT</pubDate>
      <author>jtoy</author>
      <link>http://talk.rubynow.com/post/show/1</link>
    </item>
  </channel>
</rss>
