I think I would use a file_upload_tag and create an accessor for the
xml_file in the model:

http://pastie.org/877906

Another option, if you want to save the original file permanently
would be to use the hobo_with_paperclip plugin for your file column,
and then use a callback to parse the file...

HTH,

-Aaron

On Wed, Mar 17, 2010 at 10:13 AM, Deniz Rende <[email protected]> wrote:
> I am in the same boat, I have a simple bookmark application that I want to
> feed it with my xml file. Any way of doing this?
> Thanks....
>
> On Sun, Mar 14, 2010 at 6:28 PM, Bob <[email protected]> wrote:
>>
>> I think this may be super obvious, but I am stumped. How do I accept
>> input from an XML file to hobo instead of a form?  Is it a post
>> request with a different kind of route or do I have to upload the file
>> and parse it?
>>
>> Can anyone point me to an example?
>>
>> Any help is appreciated
>> --Bob
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Hobo Users" 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/hobousers?hl=en.
>>
>
>
>
> --
> Deniz Rende
> E-mail: [email protected]
> Phone: +1 (224) 789-UNIX (8649)
> Mobile: +1 (816) 213-2139
> Web: http://www.deniz-rende.com/blog
>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" 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/hobousers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to