Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert Multiple csv file upload based...

Replytotopic

Multiple csv file upload based on data in a form

Posted in Forums : Ask a Rails expert

 
Profile

Authority 12
Posting Rating 0
Sign in to rate this post

I’m a newbie

I have a form. Based on the data supplied in the form, the user must upload either one or two files of data which is used to validate the data on the form. I think I need to use sub forms to load the data files. My problem is I don’t know if this is the right way to go, or how to implement nested forms in rails 2.0

Any help appreciated.

 
Me

Authority 37
Posting Rating 100
Sign in to rate this post

Could you be a little more specific? Maybe show a little code?

Anyways, virtual attributes or multi-object forms might be what you’re looking for. Ryan Bates covers complex forms in detail in some of his screencasts:
http://railscasts.com/episodes/73
http://railscasts.com/episodes/74
http://railscasts.com/episodes/75
http://railscasts.com/episodes/16

As far as I know, Rails 2 doesn’t really add anything specific to this basic stuff, but I could be wrong.

 
Profile

Authority 12
Posting Rating 0
Sign in to rate this post

Thanks for the advice, i’ll view the railcasts and maybe get back on i its stillll not clear.

Replytotopic

Other Recent Topics

Ask a Rails expert : Sanitizing html

Ask a Rails expert : First post, requesting sage perspective

Ask a Rails expert : How to use mephisto

Ask a Rails expert : How to use mephisto

Ask a Rails expert : will_paginate customization problem

Ask a Rails expert : BackgroundRB still wants 'development' environment...?

Ask a Rails expert : activescaffold, sql exception

Ask a Rails expert : Passing non-english chars in query string

Ask a Rails expert : Rails and 2D barcodes

Ask a Rails expert : apache giving proxy error

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel