Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: willian
thanks for one more nice video!
I don't like to remove everything from Models and put it inside another class. At the end the Form Object's classes will do a lot.
I prefer to remove only the logic from the Model and keep all validations, callbacks, and stuffs like that there.
I forked your code and implement what I think is necessary to remove from Model: https://github.com/willian/416-form-objects/tree/master/signup-willian
What you think about it?
Yes, Adam, it is.
Unfortunately, I couldn't ran this on my Project:
gems/rack-mini-profiler-0.1.7/lib/mini_profiler/storage/memory_store.rb:17:in block in initialize': private methodcleanup_cache' called for #Rack::MiniProfiler::MemoryStore:0x00000003bcb670 (NoMethodError)
block in initialize': private method
The line of this error:
I tried with FileStorage too:
gems/rack-mini-profiler-0.1.7/lib/mini_profiler/storage/file_store.rb:43:in block in initialize': undefined methodinstance' for Rack::MiniProfiler:Class (NoMethodError)
block in initialize': undefined method
My project is running Rails 3.2.7 with ruby 1.9.3-p194