Re: [Rails] Re: Expected … to define Base

2012-06-08 Thread Zeck
Sent with Sparrow <http://www.sparrowmailapp.com/?sig> > > On Friday, June 8, 2012 at 6:14 AM, Zeck wrote: > > Added my full stack > > Started GET "/admin/posts" for 127.0.0.1 at 2012-06-08 21:06:18 +0800 > > LoadError (Expected /home/usr/code/blog/lib/blog/c

[Rails] Re: Expected … to define Base

2012-06-08 Thread Zeck
est_and_response.erb (0.6ms) Rendered /home/usr/.rvm/gems/ruby-1.9.3-p194@rails-3.2.5/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.0ms) Please help me. On Friday, June 8, 2012 8:54:19 PM UTC+8, Zeck wrote: > > I new to ra

[Rails] Expected … to define Base

2012-06-08 Thread Zeck
I new to rails. I have a setup in the lib directory like so: lib/ blog/ core/ search/ base.rb The base.rb defines the Base class as well: module Blog module Core module Search class Base attr_accessor :properties def initialize(params)

[Rails] How to handle ActiveRecord::RecordInvalid

2012-05-15 Thread Zeck
I'm new to Rails. I'm using Service layer to keep my controllers thin. All my service layer files are located in app/services/domain, app/services/application and app/services/infrastructure. I'm using services in active admin controller section. When validation fail it can't redirect correctly