[Nitro] Passing Data from Template to Controller
Matthew B Gardner
weather at speakeasy.net
Sun Dec 16 02:04:47 EST 2007
On Sunday 16 December 2007 01:53, Arne Brasseur wrote:
> You can access the individual fields in the request to do your own
> processing. I think this is what you're looking for.
> Something to this effect:
> <form method="post" action="...">
> <input type="text" name="keywords" size="45" />
> def create_hfile
> h = request.assign(HelpFile.new)
> request.post['keywords'].split.each do |kw|
> h.keywords << KeyWord.create_with(:keyword => kw)
> Does that help you?
Exactly what I was looking for -- thanks so much. I did get an error regarding
the request#post call (undefined method), but it works fine with directly
Thanks again, it's very appreciated.
More information about the Nitro-general