Hello All, Let me preface this request that I am not a Ruby programmer, I am a Web Administrator who manages architecture of servers and installs of server web software, not their configurations. My expertise in programming in the past lies with ColdFusion, Perl, and PHP, so, avoidance of RTFM would be greatly appreciated. Hee hee! I have spent several days experimenting with different things and reading tutorials, manuals, and discussion threads to no avail. We have a Ruby on Rails application that is not loading CSS and JS files that was working fine with older version of Ruby and Gems and also older version of Apache, same server operating system...Suse Linux. Here are our system configurations with regards to Ruby.... RUBY ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux] GEM LIST actionmailer (2.0.2) Service layer for easy email delivery and testing. actionpack (2.0.2, 1.13.6, 1.13.3) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.6, 1.2.3) Web service support for Action Pack. activerecord (2.0.2, 1.15.6, 1.15.3) Implements the ActiveRecord pattern for ORM. activeresource (2.0.2) Think Active Record for web resources. activesupport (2.0.2, 1.4.4, 1.4.2) Support and utility classes used by the Rails framework. archive-tar-minitar (0.5.2) Provides POSIX tarchive management from Ruby programs. cgi_multipart_eof_fix (2.5.0) Fix an exploitable bug in CGI multipart parsing. daemons (1.0.10) A toolkit to create and control daemons in different ways deprecated (2.0.1) An easy way to handle deprecating and conditionally running deprecated code fastthread (1.0.1) Optimized replacement for thread.rb primitives gem_plugin (0.2.3) A plugin system based on rubygems that uses dependencies only hoe (2.3.2) Hoe is a rake/rubygems helper for project Rakefiles mime-types (1.16) Manages a MIME Content-Type database that will return the Content-Type for a given filename. mkrf (0.2.3) Generate Rakefiles to Build C Extensions to Ruby mongrel (1.1.5) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps. mysql (2.7) MySQL/Ruby provides the same functions for Ruby programs that the MySQL C API provides for C programs. nokogiri (1.3.2) Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser racc (1.4.6) Racc is a LALR(1) parser generator. rails (2.0.2) Web-application framework with template engine, control-flow layer, and ORM. rake (0.8.7, 0.8.1) Ruby based make-like utility. rake-compiler (0.5.0) Rake-based Ruby C Extension task generator. rcov (0.8.1.1.0) Code coverage analysis tool for Ruby rexical (1.0.4) Rexical is a lexical scanner generator rubyforge (1.0.4) A script which automates a limited set of rubyforge operations rubygems-update (1.3.1) RubyGems Update GEM sources (0.0.1) This package provides download sources for remote gem installation APACHE CONFIGURATIONS <Directory /XXX/YYYYY/> Options Indexes FollowSymLinks IncludesNOEXEC AddOutputFilter INCLUDES .rhtml .html .pl .ssi </Directory> <Proxy *> SetOutputFilter INCLUDES </Proxy> ProxyPass /elokar http://localhost:9004 ProxyPassReverse /eloka http://localhost:9004 RUBY ON RAILS APP I have tried putting the following line of codes Mime::Type.register "text/javascript", :js, %w( application/javascript application/x-javascript ) Mime::Type.register "text/css", :css in both of the following files (separately): config/environment.rb config/initializers/mime_types.rb I have restarted mongrel a number of times to no avail. You can view the public version of the page in question at: http://www.eloka-arctic.org/elokar/session/new [See that the CSS is not loading properly, but is accessible.] http://www.eloka-arctic.org/elokar/stylesheets/eloka.css Thanks in advance for any suggestions. Humbly Yours, Eliot Lee
> We have a Ruby on Rails application that is not loading CSS and JS > files that was working fine with older version of Ruby and Gems and > also older version of Apache, same server operating system...Suse > Linux.<...>> You can view the public version of the page in question at: > http://www.eloka-arctic.org/elokar/session/new> [See that the CSS is not loading properly, but is accessible.] > http://www.eloka-arctic.org/elokar/stylesheets/eloka.css > > Thanks in advance for any suggestions.Well I don''t see any rules in this stylesheet that could apply to HTML elements on the given page. Is this the right stylesheet? I see there is much more comprehensive stylesheet http://www.eloka-arctic.org/css/eloka.css : filenames are the same, but the stylesheets and directories they are placed in are different. Maybe /css/eloka.css is the stylesheet you want to use? Regards, Rimantas -- http://rimantas.com/
Thanks for that. Good point, however, I believe we do actually want to use to the CSS files that are referenced in the following Rails directory: public/stylesheets which is aliased in the application as: elokar/stylesheets/ I''ll confer with the developer and see if he has any ideas, been avoiding that since the application was working fine in our old server configurations. I''ll look further and see if there is a directory alias problem. Good find. Thanks for the quick and helpful reply, Eliot Lee On Jul 24, 5:08 am, Rimantas Liubertas <riman...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > We have a Ruby on Rails application that is not loadingCSSand JS > > files that was working fine with older version of Ruby and Gems and > > also older version of Apache, same server operating system...Suse > > Linux. > > <...> > > > You can view the public version of the page in question at: > >http://www.eloka-arctic.org/elokar/session/new > > [See that theCSSis not loading properly, but is accessible.] > >http://www.eloka-arctic.org/elokar/stylesheets/eloka.css > > > Thanks in advance for any suggestions. > > Well I don''t see any rules in this stylesheet that could apply to HTML > elements on the given page. Is this the right stylesheet? > I see there is much more comprehensive stylesheethttp://www.eloka-arctic.org/css/eloka.css: filenames are the same, > but the stylesheets and directories they are placed in are different. > Maybe /css/eloka.cssis the stylesheet you want to use? > > Regards, > Rimantas > --http://rimantas.com/
Thank you again. For some reason the stylesheets directory was recovered recently with a very old set of files. So, it is now working. http://www.eloka-arctic.org/elokar/session/new Thanks, Eliot Lee On Jul 24, 1:01 pm, EL <anthrot...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks for that. > > Good point, however, I believe we do actually want to use to the CSS > files that are referenced in the following Rails directory: > > public/stylesheets > > which is aliased in the application as: > > elokar/stylesheets/ > > I''ll confer with the developer and see if he has any ideas, been > avoiding that since the application was working fine in our old server > configurations. > > I''ll look further and see if there is a directory alias problem. Good > find. > > Thanks for the quick and helpful reply, > > Eliot Lee > > On Jul 24, 5:08 am, Rimantas Liubertas <riman...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > We have a Ruby on Rails application that is not loadingCSSand JS > > > files that was working fine with older version of Ruby and Gems and > > > also older version of Apache, same server operating system...Suse > > > Linux. > > > <...> > > > > You can view the public version of the page in question at: > > >http://www.eloka-arctic.org/elokar/session/new > > > [See that theCSSis not loading properly, but is accessible.] > > >http://www.eloka-arctic.org/elokar/stylesheets/eloka.css > > > > Thanks in advance for any suggestions. > > > Well I don''t see any rules in this stylesheet that could apply to HTML > > elements on the given page. Is this the right stylesheet? > > I see there is much more comprehensive stylesheethttp://www.eloka-arctic.org/css/eloka.css:filenames are the same, > > but the stylesheets and directories they are placed in are different. > > Maybe /css/eloka.cssis the stylesheet you want to use? > > > Regards, > > Rimantas > > --http://rimantas.com/