Ruby on Rails Monday, August 30, 2010

Fritz Trapper wrote:
> In my template, I wrote:
>
> <%= f.label 'GnuPlot-Anweisungen:' %>
>
> And rails converts this label to
>
> Gnuplot anweisungen:
>
> How to get rid of this feature?

You're using the label function incorrectly, at least for Rails 2 (not
sure about Rails 3). Check the docs: the first argument is the object
ID, then the *next* argument is the display text.

>
>
> By the way: this behaviour is hated by german users of MS Office and the
> M$ guys are unable to suppress it ;-)

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
Posted via http://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@googlegroups.com.
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.

No comments:

Post a Comment