A NoMethodError comes up when clicking the "Insert Image" button.
link_to_remote has been removed from Rails 3, so line 3 of _wysihat_file.html.erb should change from:
<%= link_to_remote t('wysihat_files.destroy.name'), :url => wysihat_file, :method => :delete, :confirm => t('wysihat_files.destroy.sure') %>
to
<%= link_to t('wysihat_files.destroy.name'), :url => wysihat_file, :method => :delete, :confirm => t('wysihat_files.destroy.sure'), :remote =>true %>
This fixed the NoMethodError, it still doesn't work well. Ideas?
A NoMethodError comes up when clicking the "Insert Image" button.
link_to_remote has been removed from Rails 3, so line 3 of _wysihat_file.html.erb should change from:
<%= link_to_remote t('wysihat_files.destroy.name'), :url => wysihat_file, :method => :delete, :confirm => t('wysihat_files.destroy.sure') %>to
<%= link_to t('wysihat_files.destroy.name'), :url => wysihat_file, :method => :delete, :confirm => t('wysihat_files.destroy.sure'), :remote =>true %>This fixed the NoMethodError, it still doesn't work well. Ideas?