Hi,
I'm trying to insert a string component into what was found by a find
search.
E.g.
do a
@version = Version.find("270")
@path = "somestring"
And I would like to stick the @path string into @version
then later do a
render :xml => @version
in order to produce
<versions>
    <version>
        <id>"270"</id>
        .
        .
        .
        <path>"somestring"</path>
    </version>
    <version/>
</versions>

Is this possible? The value of @path is not necessarily a result from
a search in the db so I can't combine two searches via something like
a find_by_sql or include.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to