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

AzamSharp
Sat, 15 Mar 2008 20:15:28 -0000

Hi Eric,

Thanks for the reply!

I have one more question.

Let''s say I have a model named "Product". How would I know
what
methods it supports? Like I know I can do this:

Product.content_columns

but how would I know that the content_columns exists without
intellisence?




On Mar 15, 3:12 pm, Eric Knoller
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> 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 viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com