I don't know how it fails but for some reason it refuses to update when I edit it, I have it setup to where it goes back to the index when you successfully edit something and when it doesn't work it goes back to the edit page. It doesn't even throw any error messages.
On Nov 7, 3:30 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote: > 7H3LaughingMan wrote: > > Alright I have set it all up and it will convert it to the lowest form > > (and back for debugging purposes), however whenever I try to edit and > > save using @armor.update_attributes(params[:armor]) it fails for some > > reason. > > Fails in what way? > > > Here is a link to show you what I did with the model... > > >http://pastebin.com/me807521 > > I'll check it out in detail later on. On cursory inspection, however, > it looks like it has a lot of problems; I'll make some suggestions when > I'm not trying to type on my iPhone. :) > > Perhaps Eric's before_save suggestion is the right idea after all. > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > [email protected] > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---

