#rubyonrails - Fri 13 Apr 2007 between 00:00 and 00:44

NY Lost Funds



phxheatdoes anyone have a good tutorial on inserting / updating multiple records with rails?
macographerphxheat: you mean from a page, or csv?
phxheatmacographer: from a page
actionkain thinks of selling his imac 24"
kainthinks of selling his imac 24"
macographerso, you want to load multiple objects, or create more than one new one to edit or create on a single page?
i almost did something like that. i don't think there's a *good* way to do it.
i ended up just putting an update form in the code for each record, so each object could be edited individually.
can you describe the situation and why you want to do this?
phxheatmacographer: no worries, i have an existing solution i will use for now, but thanks
kekmaybe you can name fields like field1[0] field1[1] etc
where 0 is for object 0 and 1 for object 1
should be easy to handle that from the controller then
Madhatter349anybody make websites in here
kekwhat's a website?
aKKiLLaI make wesites all the time...
ever since I got frontpage i been rocking them babies out!
phxheattables ftw
aKKiLLatables + <blink>/<center> ftw!
railsbot::rails-commit:: Changeset [6520]: Should have removed install.rb, not init.rb @ http://dev.rubyonrails.org/changeset/6520
keki invented the internet
robert_dempseyfrontpage....
hehe
keki once used sed and awk to update a frontpage website, it took days
maybe i should have used frontpage
aKKiLLanah
I think you did the right thing :)
kekyeah
kain!railsbot rss help
railsbotincorrect usage, ask for help using 'railsbot: help rss'
kaingrunt
railsbot: help rss
railsbotmanage RSS feeds: rss show|list|watched|add|change|del(ete)|rm|(force)replace|watch|unwatch|rmwatch|rewatch
kainrailsbot: help rss watch
railsbotrss watch handle [url [type]] [in chan]: watch rss handle for changes (in channel chan); when the other parameters are present, the feed will be created if it doesn't exist yet
foucistanyone have an idea how to upload a file in a functional test?
robert_dempseyfoucist - nope
would be cool to know tho
foucistrobert_dempsey: ah, you just stick :uploaded_data => fixture_file_upload("images/rails.png") inside the hash for the form
robert_dempseycool
thanks

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 114 

IrcArchive

NY Lost Funds