I'm trying to execute a javscript block using link_to_remote
here's my code:
<%= link_to_function("Add a follow-up date for this note?", nil, :id
=> "show_link") do |page| %>
<% page[:follow_up_date_select].visual_effect :toggle_appear %>
<% page[:show_link].replace_html "Hide date select" %>
<% end %>
It's throwing some errors that I can't figure out:
syntax error, unexpected ')'
@output_buffer.concat " "; @output_buffer.concat((
link_to_function("Add a follow-up date for this note?", nil, :id =>
"show_link") do |page| ).to_s); @output_buffer.concat "\n"
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---