Re: Spaces in Ruby on Rails and how to avoid them!

Eric Knoller
Sat, 15 Mar 2008 20:12:43 -0000

TextMate is the standard for Ruby development on the Mac. Personally I
use UltraEdit on Windows and it seems to work well. There is a text
highlight profile specifically for Ruby.

Hope this helps.

Eric Knoller
RoR Power, Inc.
http://www.rorpower.com


AzamSharp wrote:
> Hi,
>
> I just started learning ruby on rails and I am having hard time with
> white spacing!
>
> Here is the piece of code that will not work:
>
> validates_format_of
> :image_url,
> :with => %r{\.(gif|jpg|png)$}i,
> :message => "must be a URL for a GIF, JPG or PNG image"
>
> and here is the piece of code that will work:
>
> validates_format_of :image_url,
> :with => %r{\.(gif|jpg|png)$}i,
> :message => "must be a URL for a GIF, JPG or PNG image"
>
> by putting the :image_url on the second line all hell breaks loose. Is
> there any good Ruby, Rails editor which can make sure that the code is
> in good shape and valid!
>
> Is there any editor with intellisense support?

--
Posted via http://www.ruby-forum.com/.