I'm still new to Ruby and Ruby on Rails. I've worked with CakePHP for
quite a while though, so I'm happy to see that most of what I've
learned about CakePHP translates over (more or less,) in using Ruby on
But I'm stuck. After reading numerous tutorials I still can't find an
answer. My question is (like the title suggests,) "How do I alter
posted data before it is saved in a controller?"
For example, say I have a simple blog program using Ruby on Rails. I
understand how make a blog form (where one fills in a blog post...)
and then post (save) the blog post. What I don't understand how to do
in Ruby is... how does one alter a value from a View that has been
posted to a Controller?
Why would I want to do this? Simple; what if I want to make a form
field all lowercase after it has been submitted by a user? Does
anyone know of a method I need to be using to make this happen? I've
been searching around the API (http://api.rubyonrails.org/) all
afternoon today... but still can't figure out why I can't alter a
posted variable. Thanks for any help.