It seems to die while processing dynamic javascript...

I have a controller for managing the dynamic javascript (as documented
here: http://railscasts.com/episodes/88-dynamic-select-menus)

The exact lines that appear in the development.log file before the app
crashes are:

Started GET "/javascripts/products.js" for 89.100.131.129 at
2011-04-18 15:23:49 +0100
  Processing by JavascriptsController#products as JS

and the products.js.erb file contains:

var products = new Array();

<% Product.all.each do |p|%>
products[<%= p.id %>] = {'id':'<%= p.id %>', 'name':'<%= p.name %>',
'price':<%= p.price %>};
<% end %>


thanks

On Apr 18, 1:49 pm, Bryan Crossland <bacrossl...@gmail.com> wrote:
> On Sun, Apr 17, 2011 at 4:14 PM, cipher_neo <l33...@gmail.com> wrote:
> > sorry, they are all the gems on my system.
>
> > I only use the following: (from Gemfile)
>
> >  gem 'annotate-models', :require => 'annotate_models'
> >  gem 'ruby-debug19'
> >  gem 'populator'
> >  gem 'faker'
> >  gem "mongrel", '1.2.0.pre2'
>
> What exactly is your application trying to do when it crashes?
>
> B.
>
>
>
>
>
>
>
>
>
> > On Apr 16, 4:20 pm, cipher_neo <l33...@gmail.com> wrote:
> > > sure:
>
> > > C:\Windows\System32>gem list
>
> > > *** LOCAL GEMS ***
>
> > > abstract (1.0.0)
> > > actionmailer (3.0.5)
> > > actionpack (3.0.5)
> > > activemodel (3.0.5)
> > > activerecord (3.0.5)
> > > activeresource (3.0.5)
> > > activesupport (3.0.5, 2.3.11)
> > > annotate-models (1.0.4)
> > > archive-tar-minitar (0.5.2)
> > > arel (2.0.9)
> > > builder (2.1.2)
> > > bundler (1.0.10)
> > > cgi_multipart_eof_fix (2.5.0)
> > > columnize (0.3.2)
> > > configuration (1.2.0)
> > > diff-lcs (1.1.2)
> > > erubis (2.6.6)
> > > extlib (0.9.15)
> > > faker (0.9.5)
> > > gem_plugin (0.2.3)
> > > heroku (1.19.1)
> > > highline (1.6.1)
> > > i18n (0.5.0)
> > > launchy (0.3.7)
> > > linecache19 (0.5.11)
> > > mail (2.2.15)
> > > mime-types (1.16)
> > > minitest (1.6.0)
> > > mongrel (1.2.0.pre2 x86-mingw32)
> > > mysql2 (0.2.6 x86-mingw32)
> > > polyglot (0.3.1)
> > > populator (1.0.0)
> > > rack (1.2.2)
> > > rack-mount (0.6.14)
> > > rack-test (0.5.7)
> > > rails (3.0.5)
> > > railties (3.0.5)
> > > rake (0.8.7)
> > > rdiscount (1.6.8)
> > > rdoc (2.5.8)
> > > rest-client (1.6.1)
> > > rhodes (2.3.2)
> > > ruby-debug-base19 (0.11.24)
> > > ruby-debug-ide19 (0.4.12)
> > > ruby-debug19 (0.11.6)
> > > ruby_core_source (0.1.4)
> > > templater (1.0.0)
> > > thor (0.14.6)
> > > treetop (1.4.9)
> > > tzinfo (0.3.25)
>
> > > thanks for the reply
>
> > > On Apr 16, 4:18 pm, Luis Lavena <luislav...@gmail.com> wrote:
>
> > > > On Apr 16, 11:58 am, cipher_neo <l33...@gmail.com> wrote:
>
> > > > > Hi guys,
>
> > > > > I have Rails 3 running on Windows 7 with Ruby 1.9.2
>
> > > > > Every now and again, my server crashes, and I see the following
> > > > > information in the windows event log:
>
> > > > > Faulting application name: ruby.exe, version: 1.9.2.180, time stamp:
> > > > > 0x4d5ee5ed
> > > > > Faulting module name: msvcrt-ruby191.dll, version: 1.9.2.180, time
> > > > > stamp: 0x4d5ee5ec
> > > > > Exception code: 0xc0000005
> > > > > Fault offset: 0x0011a00e
> > > > > Faulting process id: 0x1624
> > > > > Faulting application start time: 0x01cbfc46036ca1be
> > > > > Faulting application path: C:\Ruby192\bin\ruby.exe
> > > > > Faulting module path: C:\Ruby192\bin\msvcrt-ruby191.dll
> > > > > Report Id: ae8872dc-6839-11e0-ae3f-904ce5fafcb7
>
> > > > > I have no clue what is causing this error, but it is a pain to try to
> > > > > get work done when my app keeps crashing.
>
> > > > Can you provide a list of the gems involved in your application?
>
> > > > That way we would be able to assist you better.
>
> > > > --
> > > > Luis Lavena
>
> > --
> > 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 rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-talk+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to