render :text => "stuff <#{@app || ''no
app''}>"
displays in browser as "stuff" (no quotes)
this occurs independent of whether @app has a value, and either way,
the "<" and ">" should be rendered.
i haven''t an idea what is causing this; could it be an encoding issue,
or a bug of some sort?
the only workaround I have found is that
render :text => "stuff < #{@app || ''no
app''}>"
i.e. insertion of a space between "<" and "#" will
properly render:
stuff < no app>
wierd. any ideas?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
On Jul 14, 7:55 pm, Jim Cropcho <jim.crop...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> render :text => "stuff <#{@app || ''no app''}>" > > displays in browser as "stuff" (no quotes) > > this occurs independent of whether @app has a value, and either way, > the "<" and ">" should be rendered. >< and > are special characters in html, what you are producing is invalid html (which leaves you at the browser''s mercy). Fred> i haven''t an idea what is causing this; could it be an encoding issue, > or a bug of some sort? > > the only workaround I have found is that > > render :text => "stuff < #{@app || ''no app''}>" > > i.e. insertion of a space between "<" and "#" will properly render: > > stuff < no app> > > wierd. any ideas?--~--~---------~--~----~------------~-------~--~----~ 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 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
render :text => "stuff <#{@app || ''no
app''}>"
On Jul 14, 4:20 pm, Frederick Cheung
<frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> On Jul 14, 7:55 pm, Jim Cropcho
<jim.crop...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > render :text => "stuff <#{@app || ''no
app''}>"
>
> > displays in browser as "stuff" (no quotes)
>
> > this occurs independent of whether @app has a value, and either way,
> > the "<" and ">" should be rendered.
>
> < and > are special characters in html, what you are producing is
> invalid html (which leaves you at the browser''s mercy).
>
> Fred
>
> > i haven''t an idea what is causing this; could it be an
encoding issue,
> > or a bug of some sort?
>
> > the only workaround I have found is that
>
> > render :text => "stuff < #{@app || ''no
app''}>"
>
> > i.e. insertion of a space between "<" and "#"
will properly render:
>
> > stuff < no app>
>
> > wierd. any ideas?
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---