Skip to content

Rails 3 NoMethodError in _wysihat_file.html.erb #20

@alantocheri

Description

@alantocheri

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions