This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # getting nil.merge errors in production when overriding a controller in CE? | |
| AppConfig ||= OpenStruct.new | |
| AppConfig.default_mce_options = { | |
| :theme => 'advanced', | |
| :browsers => %w{msie gecko safari}, | |
| :theme_advanced_layout_manager => "SimpleLayout", | |
| :theme_advanced_statusbar_location => "bottom", | |
| :theme_advanced_toolbar_location => "top", | |
| :theme_advanced_toolbar_align => "left", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #models/my_thing.rb | |
| class MyThing < ActiveRecord::Base | |
| belongs_to :user | |
| acts_as_activity :user | |
| end | |
| #views/activities/_unhandled_item.html.haml | |
| - case activity.item_type | |
| - when 'MyThing' | |
| ="created a MyThing: #{link_to(activity.item.name, user_my_thing_path(activity.item.user, activity.item))}" |
NewerOlder