Ruby on Rails Tuesday, August 31, 2010

you didn't get it...


the point is.. i want

Word.complete 

to already be defined, so that in the controller i could use the "complete" column as if it was a real column...
--
Lucas Franceschi
Desenvolvedor
SGI Sistemas
(049) 9922-3360



On Tue, Aug 31, 2010 at 4:01 PM, Fritz Trapper <lists@ruby-forum.com> wrote:
lucas franceschi wrote:
> Word.complete = aaa

Word is the model class - it doesn't store values.

If word is an instance, simply write:

  word[:complete] = aaa
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment