Error in apply: builder.rb:55

0 views
Skip to first unread message

edbond

unread,
May 29, 2009, 10:07:45 AM5/29/09
to make_resourceful
Hello,

I have such error:
/home/eduard/fynanz-dev/trunk/vendor/plugins/make_resourceful/lib/
resourceful/builder.rb:55:in `apply': You have a nil object when you
didn't expect it! (NoMethodError)
The error occurred while evaluating nil.merge!
from /home/eduard/fynanz-dev/trunk/vendor/plugins/make_resourceful/
lib/resourceful/maker.rb:61:in `make_resourceful'
from /home/eduard/fynanz-dev/trunk/app/controllers/administration/
faxes_controller.rb:2
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:158:in `require'

rails 2.3.2, plugin latest from github.

class Administration::FaxesController <
Administration::CommonAdminController
make_resourceful do
belongs_to :user
actions :all

before :create do
current_object.created_by = current_user
end

response_for :update do
redirect_to administration_home_path
end
end
.......
end

edbond

unread,
May 29, 2009, 3:25:06 PM5/29/09
to make_resourceful
SOLVED: don't require 'application_controller' in init.rb of your
plugin.
Reply all
Reply to author
Forward
0 new messages