search for: safe_level

Displaying 3 results from an estimated 3 matches for "safe_level".

2006 Jul 25
3
about ERB sample
...t(binding) the doc say it will print "The value of x is: 42" but my irb print "nil" and there is a "=> #<ERB:0x2970b24 @src="_erbout = ''''; _erbout.concat \" The value of x is: \\n\"\n_erbout", @filename=nil, @safe_level=nil>" at the end of 5th line. Why?hun.. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060725/709f7172/attachment.html
2012 Apr 24
3
How to increment variable in erb template ?
Hi'', I''m looking for a way to increment variable in template (erb file). I tried this, but it didn''t work Compteur <%= compteur %> > <% compteur = compteur + 1 %> > Compteur <%= compteur %> > I''ve got this error : > Error 400 on SERVER: Failed to parse template test/test.erb: undefined > method `+'' for
2006 Jan 25
11
Executing Ruby code that is inside a string
I would like to put Ruby code inside a string, between <%= %> tags, and have the code inside the tags executed when the string is displayed. Is this possible? -- Posted via http://www.ruby-forum.com/.