in an xml.builder view:
xml.flv_playlist do {
@movies.each do |movie|
xml.description(:name => "Name")
xml.description(:name => "Rating")
xml.video(:name => "#{movie.number} (#{movie.length})"
Ratingmovie.rating)
xml.video(:name => "#{movie.number} (#{movie.length})"
Ratingmovie.rating)
end
}
something like this ...
On 20 Feb., 13:32, Differenthink
<guillaume.mont...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> I ve got this tiny xml example, and i ve to be able to generate it
> dynamically :
>
> #####
> <FLV_PLAYLIST>
> <DESCRITPTION Name="Name" Value="" />
> <DESCRITPTION Name="Rating" Value="Rating: "
/>
>
> <VIDEO Name="2 (2:13)" Rating="5"/>
> <VIDEO Name="2 (2:13)" Rating="5"/>
> </FLV_PLAYLIST>
> #####
>
> I tried to handle it using rxml... but i guess i m to bad to do it...
> If someone could give me an hand i''ll appreciate it so much !!!
>
> Thanks a lot,
>
> Guillaume.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---