Hi

I would try the following:

add a method to your model which returns your required content, eg.
def my_picture_url
  self.trainer_picture.url
end

overide method respond_to_xml in your controller, eg:

def list_respond_to_xml
   render :xml => response_object.to_xml(:only =>
list_columns_names, :methods => [ :my_picture_url ]), :content_type =>
Mime::XML, :status => response_status
end

Call index action with ?format=xml in your browser.

--
Volker


On Nov 10, 3:43 am, jerome187 <[email protected]> wrote:
> i've tried overrides and using record.file.url, but it only shows the
> filename, not the path.
>
> using rails 3 branch

-- 
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