Oh no no......this is laden with 500 errors I am afraid. Just putting
in the
config.columns[:graphic].form_ui = :record_select
in my controller, with everything installed properly, blows it up. If
I change it to
config.columns[:graphic].ui_type = :record_select
same thing (and yes, I do have everything installed for record-select,
and I do have my partial
set up correctly as well. I appreciate your recommendation, but this
seems like a more complicated solution to an already-complicated
problem.Thanks anyhow, but I will never get this to work. -Janna

On May 9, 10:19 am, naaano <[email protected]> wrote:
> 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