diff --git a/plugins/community_block/lib/community_block.rb b/plugins/community_block/lib/community_block.rb index 95ce15d..235f8b1 100644 --- a/plugins/community_block/lib/community_block.rb +++ b/plugins/community_block/lib/community_block.rb @@ -11,7 +11,7 @@ class CommunityBlock < Block def content(arg={}) block = self - lambda do + proc do render :file => 'community_block', :locals => { :block => block } end end diff --git a/plugins/community_block/test/functional/commmunity_block_plugin_profile_design_controller_test.rb b/plugins/community_block/test/functional/commmunity_block_plugin_profile_design_controller_test.rb index d10aa84..c0c9fc9 100644 --- a/plugins/community_block/test/functional/commmunity_block_plugin_profile_design_controller_test.rb +++ b/plugins/community_block/test/functional/commmunity_block_plugin_profile_design_controller_test.rb @@ -27,7 +27,7 @@ class ProfileControllerTest < ActionController::TestCase @environment.save! CommunityBlock.delete_all - @box1 = Box.create!(:owner => @community) + @box1 = create(Box, :owner => @community) @community.boxes = [@box1] @block = CommunityBlock.new diff --git a/plugins/community_block/views/community_block.html.erb b/plugins/community_block/views/community_block.html.erb new file mode 100644 index 0000000..b2d319b --- /dev/null +++ b/plugins/community_block/views/community_block.html.erb @@ -0,0 +1,52 @@ +