Hi Dan ... sorry for the late reply.

> I've gone through this same headache.  I too wanted to use a helper
> but couldn't.  Have you considered using content_for in view and then
> reference it in the <head> section of the layout to generate the
> javascript?

Considered yes, but decided against as I would like to retain the
separation of the Javascript code.
I just use a little Javascript helper function that handles the URL
stuff. It works fine that way.

Best regards,
Kai

-- 
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.

Reply via email to