I updated my tiny_mce plugin to the latest version 3.2.4.1.(download + expand + ran rake tiny_mce:update) And now I got another error in *app/views/partials/shared/_includes.rhtml*
undefined local variable or method `javascript_include_tiny_mce_if_used' for #<ActionView::Base:0x4813c98> 40: 41: <% # javascript_include_tag 'redbox' %> 42: <%= active_scaffold_includes if include_a_s %> 43: <%= javascript_include_tiny_mce_if_used %> 44: <%= tiny_mce if using_tiny_mce? %> 45: 46: Trace C:/sandbox/myapp/app/views/partials/shared/_includes.rhtml:43:in `_run_rhtml_app47views47partials47shared47_includes46rhtml_locals_includes_object' C:/sandbox/myapp/app/views/layouts/shared/admin.rhtml:8:in `_run_rhtml_app47views47layouts47shared47admin46rhtml' Is 3.2.4.1 the right version to use? Because it looks like the tiny_mce plugin is not properly installed. The fix for the other issue works well. thanks! On Tue, Jul 28, 2009 at 12:13 PM, Sergio Cambra .:: entreCables S.L. ::. < [email protected]> wrote: > > On Lunes, 27 de Julio de 2009 17:03:50 Mihai Jurca escribió: > > I'm using active scaffold with rails 2.3.2 and after updating to > > latest active scaffold version my application is broken. > > I have the following errors: > > > > 1. > > source: > > app/views/partials/shared/_includes.rhtml > > error: > > undefined local variable or method `include_tiny_mce_if_needed' for > > #<ActionView::Base:0x48843f8> > > 39: <%= javascript_include_merged :base %> > > 40: > > 41: <% # javascript_include_tag 'redbox' %> > > 42: <%= active_scaffold_includes if include_a_s %> > > 43: <%= javascript_include_tiny_mce_if_used %> > > 44: <%= tiny_mce if using_tiny_mce? %> > > 45: > > > > trace: > > C:/sandbox/appname/vendor/plugins/active_scaffold/lib/bridges/tiny_mce/ > > lib/tiny_mce_bridge.rb:14:in `active_scaffold_includes' > > C:/sandbox/appname/app/views/partials/shared/_includes.rhtml:42:in > > > `_run_rhtml_app47views47partials47shared47_includes46rhtml_locals_includes_ > >object' C:/sandbox/appname/app/views/layouts/shared/admin.rhtml:8:in > > `_run_rhtml_app47views47layouts47shared47admin46rhtml' > > > > I have the tinyMCE plugin installed and the application worked well > > before updating the active scaffold plugin. > > A tiniMCE bridge was added. Which tinyMCE rails plugin are you using? Is it > up > to date? > > > > > 2. > > source: > > /vendor/plugins/active_scaffold/frontends/default/views/ > > _list_record.html.erb > > error: > > undefined method `empty?' for "#<User:0x45d12dc>":User > > > > 11: <% column_value = get_column_value(record, column) -%> > > 12: > > 13: <td class="<%= column_class(column, column_value) %>" > > > 14: <%= record.authorized_for?(:action => :read, :column => > > column.name) ? render_list_column(column_value, column, record) : '' > > %> > > 15: </td> > > 16: <% end -%> > > 17: <td class="actions"> > > > > trace: > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > > associations/association_proxy.rb:215:in `method_missing' > > C:/sandbox/appname/vendor/plugins/active_scaffold/lib/active_scaffold/ > > helpers/list_column_helpers.rb:86:in `render_list_column' > > C:/sandbox/appname/vendor/plugins/active_scaffold/frontends/default/ > > views/_list_record.html.erb:14:in > > > `_run_erb_vendor47plugins47active_scaffold47frontends47default47views47_lis > > >t_record46html46erb_locals_dont_show_calculations_hidden_list_record_list_re > >cord_counter_object' > > C:/sandbox/appname/vendor/plugins/active_scaffold/lib/active_scaffold/ > > data_structures/action_columns.rb:73:in `each' > > C:/sandbox/appname/vendor/plugins/active_scaffold/lib/active_scaffold/ > > data_structures/action_columns.rb:60:in `each' > > > > It seems that the active scaffold is trying to use 'empty' method that > > is not defined by the active record. > > > > Any ideas about the cause of these errors? > > I have fixed this bug, you can update and try again. > > > -- > Sergio Cambra .:: entreCables S.L. ::. > Mariana Pineda 23, 50.018 Zaragoza > T) 902 021 404 F) 976 52 98 07 E) [email protected] > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
