Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 3 NoMethodError in _wysihat_file.html.erb #20

Open
alantocheri opened this issue Jan 28, 2011 · 1 comment
Open

Rails 3 NoMethodError in _wysihat_file.html.erb #20

alantocheri opened this issue Jan 28, 2011 · 1 comment

Comments

@alantocheri
Copy link

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?

@peterbeers
Copy link

i'm using:

<%= link_to "Delete", wysihat_file, :confirm => 'Are you sure?', :method => :delete, :remote => true %>

the t() parts are only translations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants