To include a javascript file of your own use
<%= javascript_include_tag 'testjs' %>
where test.js is in public/javascripts

Colin

2009/6/4 Mk 27 <[email protected]>:
>
> Tyler Knappe wrote:
>
>> So I would think that the function 'testjs' defined in test.js would be
>> defined.  I tried moving the function into application.js with the same
>> result.
>
> and you have
>
> <%= javascript_include_tag :defaults %>
>
> in the header?
>
>
> ps.  IMO rails will be a very awkward place to learn javascript, if that
> is what you are doing.
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to