Please sign in to comment.
Remove hard-coded edit page layout
By creating a new, hard-coded, edit page layout, other page modifications made by other extensions loaded before paperclipped, e.g., the comments extension, were removed from the edit page, while page modifications by extensions that loaded after paperclipped, e.g., the textile_editor extension would only apply to the new page layout. Instead, the asset_tabs, bucket_pane, and asset_panes are added to the edit page in the activate method. Since this also applies to the new page, which should not have access to the assets, the show_bucket_link partial is modified to only display the link on existing pages.
- Loading branch information...
Showing with 7 additions and 12 deletions.
|@@ -1,2 +1,3 @@|
|- = link_to "Show Assets Bucket", "#"|
|+- unless @page.new_record?|
|+ = link_to "Show Assets Bucket", "#"|