Link_to_function error

I have a link_to_function on one page to go to this edit screen with
this link_to_function.

<%= link_to_function ‘cancel’ do |page|
page[:“work_show_#{work.id}”].hide
end %>

When I click on the edit button it says,
missing ) after argument list
http://localhost:3000/
Line 2

If i take out
page[:“work_show_#{work.id}”].hide

it works fine. Any ideas why it it saying there is an issue?

Anyone?

I can also do:

<%= link_to_function “cancel” do |page|
page.hide
end %>

When I click cancel it gives me an error which is expected as there is
no element to hide. If I put any value say page[:foo].hide I get the
same error as above.

missing ) after argument list http://localhost:3000/ Line 2

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs