[LRUG] Advice on the correct (RoR) way to set up an input field
John Winters
john at sinodun.org.uk
Mon May 28 11:14:03 PDT 2007
Codepope wrote:
>
>
> On 5/27/07, *John Winters* <john at sinodun.org.uk
> <mailto:john at sinodun.org.uk>> wrote:
[snip]
> Can anyone give me any pointers on how to do the above? Am I going
> about it in the wrong way? Obviously it's simple enough to do if I
> ignore Rails and do it on my own, but I can't help feeling I'm doing it
> wrong if I don't make use of the framework.
[snip]
>
>
> A bit of a google came up with
>
> http://typo.railsstudio.com/articles/2006/03/31/multi-select-list-boxes-in-ruby-on-rails
>
> which shows how to add appropriate options and an example of parsing the
> results from the form.
> For a slightly more complex recipie,
>
> http://www.telefonica.net/web2/bizarro/blog/2006/04/how-to-use-multi-select-list-boxes.html
> <http://www.telefonica.net/web2/bizarro/blog/2006/04/how-to-use-multi-select-list-boxes.html>
>
> comes with it's own helper, but specifically addresses HABTM.
Ta muchly - it's knowing what to google for which makes the difference.
Cheers,
John
More information about the Chat
mailing list