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
On Jan 28, 2:51 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have alink_to_functionon one page to go to this edit screen with
> thislink_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 listhttp://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?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.