Ruby on Rails Friday, September 30, 2011

wonderful.
still iffy on this Symbol concept but it seems I am not alone.  rtfm!

On Fri, Sep 30, 2011 at 9:21 AM, Tim Shaffer <timshaffer@me.com> wrote:
The :modified_strategy is just a symbol that tells the helper which method to call on your object to get the name/value of the textarea.

If you want to manually change the value of the textarea, you can overwrite the value attribute:

f.text_area(:modify_strategy , :value => f.object.modify_strategy.gsub(";", "\n"), :cols => 80)

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/GmpNEk0o4T4J.
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.

--
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