Hey all,
I do this in a controller:
...
render :update do |page|
page.replace_html ...
page.show(''spinner'')
MyModule.submit(<parameters>)
page.replace_html ...
page.hide(''spinner'')
end
I get an ''undefined method error" for the
''submit'' function.
If the RJS is NOT there, this function resolves correctly. How can I
call the function from my module from within an RJS block?
Thanks,
Vishal
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---