using background-image it won't make it fit if the size doesn't.
Why don't you use record-select plugin? That way, you use in
controller:
config.columns[:image].form_ui = :record_select
and then, make a custom partial without the limitations of the select
form field.
for example: _label.rhtml in the controller's view folder:
<div class="my-rs-class">
    <img src="<%= record.file_url %>" alt=<%= record.desc %>">
    <div class="description"><%= record.desc %>"</div>
</div>

You can set items number per page, so if images are too big or too
much, they get paginated in full ajax implementation.

On May 7, 8:49 pm, JannaB <[email protected]> wrote:
> I have have an array of Strings which are filenames of image files I
> would like to use to populate a combobox in Form view (for editing a
> field called 'graphic').  In other words, I would like to have the
> combobox display the images as selections.
>
> This is accomplished in straight html as:
> <.option style = "background-image : url(path_to_image);" ...>
> For each image.
>
> Does anyone know how to override in my helper file the
>  def graphic_form_column (record, input_name)
> So that it
> A. Creates a combobox for the field's control -and-
> B. Populates it in a manner that would create the requisite html as I
> have posted above such that it will display the images as selections
> within the combox?
>
> Thanks so much, Janna
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to