Displaying 1 result from an estimated 1 matches for "popitup".
Did you mean:
popimap
2006 Jan 03
1
RequireResourceHelper for JS and CSS
...#39;t be included.
In the case that the CSS or JS is not named ''by convention'' as a file
that corresponds with the controller''s name, I use the
"require_javascript" code. In one of my views (index.rhtml, for
example):
<% require_javascript ''popitup'' %>
Then, I can call the js function popitup later:
<%= link_to_function "click me", "popitup(''#{url_for :action =>
''click''}'')" %>
module RequireResourceHelper
# Adds resources such as stylesheet or javascript file...