On Martes, 29 de noviembre de 2011 08:03:34 Atastor escribió:
> Well...not *quite* what I was looking for and a bit less elegant than hoped
> for, but working:
>
> conf.columns[:serial_no].set_link :show_search, :page => false
>
>
> and in devices_helper:
>
> def device_serial_no_search_column(record,options)
>
> if params[:id]
>
> text_field_tag :serial_no,
> Device.find(params[:id]).serial_no
>
> else
>
> text_field_tag :serial_no, ""
>
> end
>
> end
>
> Any hints to improve the search-experience?
def device_serial_no_search_column(record,options)
options[:value] = Device.find(params[:id]).serial_no if params[:id]
text_field :record, :serial_no, options
end
>
> Regards
> Michael
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.