select_tag in form_for?

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

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.