is there a multiline ruby "comment" approach? like java's /* code */ ???

Hi,

Just wondering if there is a way to easy comment out a block of ruby code without putting the “#” characters on each line?

Is there an equivalent to java’s /* */, for example:

/* askdf

asd fasdf as dfasd fa */

Thanks

Hi,

Just wondering if there is a way to easy comment out a block of ruby code without putting the "#" characters on each line?

Is there an equivalent to java's /* */, for example:

<...>

=begin your comment... ... going on... ... and on... =end

Regards, Rimantas

excellent - thanks Rimantas

Yes, and as far as I know, that’s the only multi-line comment syntax in Ruby.

Jason

I'm using Rails 2.0 and I tried this and this is the error I got

syntax error, unexpected '='     =begin

======== CODE ============ def who_bought   =begin   respond_to do |format|     format.xml {       @product = Product.find(params[:id])       @orders = @product.orders     }   end   =end end ======== END CODE ========

=begin =end

They must be the first thing on that line. No whitespace can precede it.

Jason

thanks! That helps. I couldn't figure out why I couldn't get it to work.