I think you have to loop through the list saving one record each time, but I
could be wrong. If anyone's got a better way I'd love to know what it is. :)



On Tue, Oct 27, 2009 at 2:37 PM, John Mcleod <
[email protected]> wrote:

>
> Hello all,
> I've been getter better with Rails but I'm still just learning.
>
> Here's what I have.
> I have one table (imports) and I read in a csv into this table.
>
> I must do some preliminary editing to each record, afterwhich, I wish to
> insert all records into another table (projects) in one shot.
>
> I've created a button below the table
>
> <%= button_to "Add Records to Projects", :action => 'add_new_projects'
> %>
>
> I need a little clarity on this.
>
> I know how to delete all records from a table. I wonder if it's as
> simple?
>
> Thank you for any help.
>
> JohnM
> --
> 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 [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