On 26 December 2017 at 01:35, André Luiz Abdalla Silveira
<andreluizsa00@gmail.com> wrote:
> First of all, Happy holidays to you folks.
> Secondly, I'd like to deeply appreciate the help you're giving me
>
> Hassan, I'll search for this material you've suggested ^^. But I didn't
> understand why this doesn't belong to the controller
Remember that a model does note need to be backed by a database table.
There should not be any significant logic in a view or controller.
It is much easier to test logic (algorithms) if they reside in a model.
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvi-PwtenjfVSkLC-%3DpD5R9XE_o0HyNY70DuEhQtFmY4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment