« Return to Thread: RHTML comments

Re: RHTML comments

by James Moore-7 :: Rate this Message:

Reply to Author | View in Thread

On 8/3/07, hemant <gethemant@...> wrote:
> thats considered ugly and not advisable in ruby/rails world i suppose.

Still, an erb commenting system needs to deal with it.  Turning it
into multiple statements is problematic - a commenting system needs to
be reversible.  I expect a select_region-comment-uncomment cycle to be
a no-op.

And I'm not sure I agree that it's bad style.  In general Rails code
should be moved to helpers and models, not in erb, but I suspect there
are perfectly reasonable uses for this style of code in an erb.  For
one, you can't assume that an erb file is dealing with HTML in a Rails
app; it's just embedded Ruby in a text file, and I suspect in a
non-html/non-Rails environment people would use multiline ruby far
more often.

 - James Moore

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


 « Return to Thread: RHTML comments