From a39440b0bf3b6a6ffe900969073ac2dc2ada1a6d Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Sun, 7 Oct 2012 00:52:19 -0300 Subject: [PATCH] Fixed problem with form submit --- app/controllers/my_profile/profile_design_controller.rb | 2 +- app/views/box_organizer/add_block.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/my_profile/profile_design_controller.rb b/app/controllers/my_profile/profile_design_controller.rb index 7304252..84cb852 100644 --- a/app/controllers/my_profile/profile_design_controller.rb +++ b/app/controllers/my_profile/profile_design_controller.rb @@ -5,7 +5,7 @@ class ProfileDesignController < BoxOrganizerController protect 'edit_profile_design', :profile def available_blocks - blocks = [ ArticleBlock, TagsBlock, RecentDocumentsBlock, ProfileInfoBlock, LinkListBlock, MyNetworkBlock, FeedReaderBlock, ProfileImageBlock, LocationBlock, SlideshowBlock, ProfileSearchBlock ] + blocks = [ ArticleBlock, TagsBlock, RecentDocumentsBlock, ProfileInfoBlock, LinkListBlock, MyNetworkBlock, FeedReaderBlock, ProfileImageBlock, LocationBlock, SlideshowBlock, ProfileSearchBlock, HighlightsBlock ] # blocks exclusive for organizations if profile.has_members? diff --git a/app/views/box_organizer/add_block.rhtml b/app/views/box_organizer/add_block.rhtml index a1f9a19..502c059 100644 --- a/app/views/box_organizer/add_block.rhtml +++ b/app/views/box_organizer/add_block.rhtml @@ -3,7 +3,7 @@

<%= _('In what area do you want to put your new block?') %>

<% @boxes.each do |box| %> - <%= radio_button_tag 'box-position', box.id, box.central?, { :class => 'box-position', 'data-position' => box.position } %> + <%= radio_button_tag 'box_id', box.id, box.central?, { :class => 'box-position', 'data-position' => box.position } %> <%= label_tag _("Area %d") % box.position %> <% end %> -- libgit2 0.21.2