NoMethodError

Why, when I am trying to manually assign permalinks, would I get this
from the ruby console:

s.update_attribute :permalink, ‘my-shiny-weblog’
NoMethodError: undefined method permalink=' for #<Story:0x32361c8> from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/ active_record/base.rb:1858:inmethod_missing’
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/
active_record/validations.rb:772:in send' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/ active_record/validations.rb:772:inupdate_attribute’
from (irb):54

On 4/10/07, Zkidd [email protected] wrote:

Why, when I am trying to manually assign permalinks, would I get this
from the ruby console:

If you don’t have a permalink field in your db, yes.

Pat

p.s. Actually you get that any time you don’t have a permalink= method
(just like it says). Rails just happens to create that method for you
based on your attributes