There are View Helper functions for building a generic form -- one not
bound to a particular model instance. Have a look at the form_tag
helper in the documentation. That can build any sort of form tag,
pointed anywhere. Within it, you would put your unique identifier.
You're showing this form to an authenticated user, so you could do
something where you stash that user's id concatenated the current time
in milliseconds or something like that. Persist that in your database,
in the same table where you will eventually have all the details about
your cloudy file. Then express that key as a hidden form element in
your upload form.
Walter
On Nov 1, 2010, at 12:43 PM, Moritz Bruckner wrote:
> Ah that'd actually work, yeah! :)
>
> How would I set up such a form with Rails?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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@googlegroups.com.
> 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
> .
>
--
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@googlegroups.com.
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.
No comments:
Post a Comment