On 21 August 2013 19:01, <[email protected]> wrote: > Using http://guides.rubyonrails.org/getting_started.html as a guide. > Create, Read, Delete all work. Update fails: > > NoMethodError in WordsController#update > ... > class WordsController < ApplicationController > ... > def update > @word = Word.find(params[:id]) > > if @word.update(params[:definition])
That should be @word.update_attributes( ..) Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtMCK1Wuyc7iRZbX5MGBe5_%3DN%2BGJKWU4hszpXyubo__9A%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

