Script/console : modify an attribute

Hello everyone!

I would like to know how to modify a variable in the console?

I did this :
e = Entry.find(:first)
e.dev.community.name = "Ruby Geeks"
e.save

But when I look into my database, the variable didn't changed. Did I
mystype?

Thank you :slight_smile:

路路路

--
Posted via http://www.ruby-forum.com/.

Questions about the Rails application framework, or parts of Rails such
as ActiveRecord, would best be asked on a Rails mailing list.

This is the Ruby (programming language) list.

路路路

--
Posted via http://www.ruby-forum.com/.

Ok, I'll post it in the correct forum. Thanks!

路路路

--
Posted via http://www.ruby-forum.com/.