On Jun 4, 5:53 pm, Tyler Knappe <[email protected]>
wrote:
>
> Here it is! Maybe something is formatted incorrectly then?
>
> vim public/javascripts/test.js
>
> <script type="text/javascript">
> var i = 0;
> function testjs()
> {
> i = i + 1;
> //next_week = next_week + 1;
> //alert("next_week");
> //alert('test');
> //return next_week;
> }
> </script>
javascript files shouldn't contain the <script> tags: they're pure
JS, not markup
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---