RailsCasts Pro episodes are now free!

Learn more or hide this

Willian Fernandes's Profile

GitHub User: willian

Site: http://willianfernandes.com.br

Comments by Willian Fernandes

Avatar

Hi Ryan,
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?

Thanks again,

Avatar

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)

The line of this error:
https://github.com/SamSaffron/MiniProfiler/blob/master/Ruby/lib/mini_profiler/storage/memory_store.rb#L17

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)

My project is running Rails 3.2.7 with ruby 1.9.3-p194