is that always list_ or does that need to change depending on the name of my model?
Either way it does not seem to have any effect, only columns listed in config.show.columns appear, but not the custom one that contains the url, it does however appear in the html view. On Nov 10, 2:01 am, vhochstein <[email protected]> wrote: > 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.
