Hi Peter,
 Use this  select tag <%= select(:rule, :condition, @rules) %> within form
tag....
Here :rule indicate the table name and condition indicate the field
name..@rules used to retrieve the fields from table...It is useful for both
creating and editing operations.
Regards,
Babysudha.
On Feb 18, 2008 3:50 PM, Peter
<peterdunord-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> How can i use a select_tag correctly inside a form_for block? when i
> do a f.select_tag i get the error that select_tag is not available for
> the formbuilder-object. is it possible to create a select tag inside
> this context? i''d like to have the name the same as the other
input-
> fields in the form, so i can use the form-data with 1 create/
> params[:data] line
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---