-------------------
OR ANOTHER OPTION
-------------------
1.
2.def update
3. @score = Score.find(params[:id])
4. respond_to do |format|
5. if @score.update_attributes(params[:score])
6. flash[:notice] = 'Score was successfully updated.'
7. format.html{redirect_to scores_url}
8. else
9. format.html{render :action => 'edit'}
10. end
11. end
12.end
I did not test them, give me update of my answers. thank you.
Answered on Sunday, 28-Sept-2008
By : Y Reinhart AP
Blog : Teapoci.Blogspot.com
--
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
-~----------~----~----~----~------~----~------~--~---