Most likely you want to create a file public/javascripts/datagrid.js
containing the javascript code you wish to return to the client.
I found where was the problem: just because the datagrid.js didn’t exist
in public/javascripts…it sounds that I was very stupid (it might be
true indeed) of making such a mistake, but the cause was that: I use the
COPY and PASTE in Komodo Edit to copy the datagrid.js file from one
project to another, it shown me okay and the newly copied file shown in
the destination project tree, but actually, the file didn’t get copied!
Please send all future questions about Rails to a Rails group/mailing
list. There are some Rails users here, but this is primarily a forum for
Ruby, the programming language. Rails is a large application framework
which just happens to be written in Ruby.
Thanks Brian. I had some confusion about Ruby and Rails, sorry about
that.
ActionController::RoutingError (No route matches
“/javascripts/datagrid.js” with
{:method=>:get}):
This tells you that your web browser has requested
/javascripts/datagrid.js, but Rails doesn’t know how to respond to this.
Most likely you want to create a file public/javascripts/datagrid.js
containing the javascript code you wish to return to the client.
Please send all future questions about Rails to a Rails group/mailing
list. There are some Rails users here, but this is primarily a forum for
Ruby, the programming language. Rails is a large application framework
which just happens to be written in Ruby.
Regards,
Brian.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.