Re: [Rails] Please help: quotes in views

2013-03-25 Thread tamouse mailing lists
On Mon, Mar 25, 2013 at 2:58 PM, Y S wrote: > How should we approach the problem is the tab character is to be included in > the string. For example, > > <% c = '\t' %> > > just shows the tab as a space. The tab char (\t) is not converted by html_escapes() as far as I know; if you want to make i

Re: [Rails] Please help: quotes in views

2013-03-25 Thread Y S
Thank you! I just had a couple of questions: How should we approach the problem is the tab character is to be included in the string. For example, <% c = '\t' %> just shows the tab as a space. Also, shouldn't Rails helper tags use single quotes since they work in both cases: <% c1 = "'" %>

Re: [Rails] Please help: quotes in views

2013-03-21 Thread tamouse mailing lists
On Thu, Mar 21, 2013 at 4:27 PM, Y S wrote: > Say I have a hidden field inside a form which tells me which quote character > some file uses. The details are irrelevant, but I need to have a string > value that could have a double quote. Assume we have a variable > > @quote_char = '"' > > Now, in t

[Rails] Please help: quotes in views

2013-03-21 Thread Y S
Say I have a hidden field inside a form which tells me which quote character some file uses. The details are irrelevant, but I need to have a string value that could have a double quote. Assume we have a variable @quote_char = '"' Now, in the view, I try all of these > >