From stimits at comcast.net Tue Sep 5 20:51:27 2006
From: stimits at comcast.net (D. Stimits)
Date: Tue, 05 Sep 2006 18:51:27 -0600
Subject: [Boulder-Denver Ruby Group] odd javascript under rails
Message-ID: <44FE1B8F.9050409@comcast.net>
I'm trying to use external javascript via placement of the javascript
file in the rails public/javascripts/ directory where the other
javascripts are. Everything indicates that the file is accessible, e.g.,
I can download if I point the browser at the
localhost:3000/javascripts/myscript.js, and there are no error
indications. I'm using a mix of versions from older on Solaris to much
newer on Linux, and the javascript is completely inert.
I'm testing with a simple script which works great if I either point at
it via a page on ordinary apache, or directly as a "file://" link. It
works great, validates with w3c.org as xhtml strict, and has zero
complaints from mozilla and firefox javascript console. Inside the head
section, I've tried these two variations, and both are error-free and
inert if run via rails (and I verify this with view source options):
Why does this work from all non-rails situations, but fail miserably
from rails? I can see other javascripts there which seem to work. Is
there some magic security config I must set? Or some other config?
Seeing as I can point the browser directly at the script and download
it, I'm stumped. For now I'm embedding it all in the controller for
spewing out...which has a lot to be desired. Ideas?
D. Stimits, stimits AT comcast DOT net
From cschneid at colostate.edu Wed Sep 6 01:55:32 2006
From: cschneid at colostate.edu (Chris Schneider)
Date: Tue, 05 Sep 2006 23:55:32 -0600
Subject: [Boulder-Denver Ruby Group] odd javascript under rails
In-Reply-To: <44FE1B8F.9050409@comcast.net>
References: <44FE1B8F.9050409@comcast.net>
Message-ID: <44FE62D4.7010804@colostate.edu>
D. Stimits wrote:
> I'm trying to use external javascript via placement of the javascript
> file in the rails public/javascripts/ directory where the other
> javascripts are. Everything indicates that the file is accessible, e.g.,
> I can download if I point the browser at the
> localhost:3000/javascripts/myscript.js, and there are no error
> indications. I'm using a mix of versions from older on Solaris to much
> newer on Linux, and the javascript is completely inert.
>
> I'm testing with a simple script which works great if I either point at
> it via a page on ordinary apache, or directly as a "file://" link. It
> works great, validates with w3c.org as xhtml strict, and has zero
> complaints from mozilla and firefox javascript console. Inside the head
> section, I've tried these two variations, and both are error-free and
> inert if run via rails (and I verify this with view source options):
>
>
>
> Why does this work from all non-rails situations, but fail miserably
> from rails? I can see other javascripts there which seem to work. Is
> there some magic security config I must set? Or some other config?
> Seeing as I can point the browser directly at the script and download
> it, I'm stumped. For now I'm embedding it all in the controller for
> spewing out...which has a lot to be desired. Ideas?
>
> D. Stimits, stimits AT comcast DOT net
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>
Might be unrelated since you are seeing it in firefox as well, but IE
has a hard time with the self closing script tags. Expand them out to
and it sees them again.
Reference:
http://piecesofrakesh.blogspot.com/2005/03/script-tag-in-internet-explorer.html
The only other thing I can think of is to make sure that the permissions
on the file allow the user webrick is running as to read it, also check
the logs and make sure webrick isn't trying to 'route' the request, and
it is being handled as a simple file download.
Hope something here helps, let us all know.
-Chris Schneider
From mghaught at gmail.com Wed Sep 6 17:55:38 2006
From: mghaught at gmail.com (Marty Haught)
Date: Wed, 6 Sep 2006 15:55:38 -0600
Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group - September
20th
Message-ID: <57f29e620609061455v122ef07fo509870f55ab96f43@mail.gmail.com>
Hey Guys,
We'll have the September meeting on Wednesday the 20th, two weeks from
today. We'll meet at 6:30pm to make it a bit easier for those making
a long trek to Boulder for the meeting. Doug Fales will lead off our
meeting with his talk on his GPS/Photo mash-up work. We'll have a
short networking break and then Ara Howard will finish off the night
with a talk on regular expressions in Ruby.
At this point, we'll continue to meet at Collective Intellect's
location on Pearl Street Mall for the foreseeable future (directions
below). While I know it's quite a drive for those in Denver, at least
we have some nice bars just a few doors down after we're done with the
meeting. You're welcome to join us afterwards to chat Ruby or
whatever else comes up.
As it goes with running a local users group I have plenty of
opportunities for any of you to present on a topic to the group. We
mainly focus on Ruby but applications or frameworks that use Ruby,
such as Rails or Rake are completely acceptable. Don't hesitate to
email me if you'd like to speak. It doesn't have to be formal nor do
you need to be the foremost expert on Ruby. Not many in the group can
count themselves in that group (and we want to give them a break from
speaking each month!). Many of you are doing interesting work in the
Ruby space that the rest of us would like to hear about.
Anyway, I hope to see you there and I appreciate all the support for
keeping a local Ruby users group running.
Cheers,
Marty
Directions:
Collective Intellect
1414 Pearl St., Suite 200
Boulder, CO 80302
It is located on the East end of the walking mall above a store called
"Baby Doll" on the South side. The Collective Intellect name is on the
door of a stairway leading up to the office.
URL to google maps:
http://rubyurl.com/QO7
From mghaught at gmail.com Mon Sep 18 16:36:35 2006
From: mghaught at gmail.com (Marty Haught)
Date: Mon, 18 Sep 2006 14:36:35 -0600
Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group - September
20th
Message-ID: <57f29e620609181336q42f4be2ds79e6237612f2fde2@mail.gmail.com>
Hi Everyone,
Here's the three day reminder on our upcoming Boulder-Denver Ruby
Group meeting. We'll be meeting on Wednesday, September 20th at
Collective Intellect (directions below) at 6:30pm. Doug Fales will
lead off our meeting with his talk "Rails by the Waypoints:
Integrating a GPS Unit and Digital Camera in the Era of the Mashup".
We'll have a short networking/food break and then Ara Howard will give
a talk on regular expressions in Ruby. Afterwards a group of us will
likely to head to one of the local bars on Pearl Street Mall to
continue the conversation while enjoying some refreshments. I look
forward to seeing you all there.
Cheers,
Marty
Directions:
Collective Intellect
1414 Pearl St., Suite 200
Boulder, CO 80302
It is located on the East end of the walking mall above a store called
"Baby Doll" on the South side. The Collective Intellect name is on the
door of a stairway leading up to the office.
URL to google maps:
http://rubyurl.com/QO7
From ara.t.howard at noaa.gov Thu Sep 21 11:03:48 2006
From: ara.t.howard at noaa.gov (ara.t.howard at noaa.gov)
Date: Thu, 21 Sep 2006 09:03:48 -0600 (MDT)
Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group -
September 20th
In-Reply-To: <57f29e620609181336q42f4be2ds79e6237612f2fde2@mail.gmail.com>
References: <57f29e620609181336q42f4be2ds79e6237612f2fde2@mail.gmail.com>
Message-ID:
On Mon, 18 Sep 2006, Marty Haught wrote:
> Here's the three day reminder on our upcoming Boulder-Denver Ruby Group
> meeting. We'll be meeting on Wednesday, September 20th at Collective
> Intellect (directions below) at 6:30pm.
hi marty-
just wanted to forward along links from last night regex presentation
top
http://codeforpeople.com/presentations/re/
the slides
http://codeforpeople.com/presentations/re/slideshow/slideshow.html
how-to navigate
http://codeforpeople.com/presentations/re/slideshow/HOW_TO_NAVIGATE_THE_SLIDE_SHOW
slide generation code
http://codeforpeople.com/presentations/re/bin/slideshow.rb
http://codeforpeople.com/presentations/re/bin/src2html
thanks again for making bdrg happen!
regards.
-a
--
in order to be effective truth must penetrate like an arrow - and that is
likely to hurt. -- wei wu wei