Coffee script not working on Rails 3.1.rc4

85 views
Skip to first unread message

Gustavo de Sá Carvalho Honorato

unread,
Jul 5, 2011, 5:50:43 PM7/5/11
to rubyonra...@googlegroups.com
Hi,

I've just created a Rails application using the following commands:

$ rails new rails_test -d mysql
$ cd rails_test/
$ rake db:create
$ rails g scaffold user name:string age:integer
$ rake db:migrate

When I start the webserver and try to access http://localhost:3000/users I got the following error on WEBrick's output:

ExecJS::RuntimeError: axconfig: unable to open axports file /etc/ax25/axports (No such file or directory)

  (in /home/gustavo/Projetos/rails_test/app/assets/javascripts/users.js.coffee)
Served asset /application.js - 500 Internal Server Error

Any ideas?

Thanks in advance,
Gustavo


David Zhang

unread,
Jul 5, 2011, 7:27:39 PM7/5/11
to rubyonra...@googlegroups.com
I'm using Rails 3.1.rc4 with ruby 1.9.2, and I just made a new app to test this out.  I ran your exact commands, except I used the standard sqlite3 development db.  I did not get any errors - the scaffold worked fine, and so does creating users.

Maybe it's an SQL development database issue - e.g. is your db properly created/configured and everything?

Gustavo de Sá Carvalho Honorato

unread,
Jul 6, 2011, 7:12:11 AM7/6/11
to rubyonra...@googlegroups.com
On Tue, Jul 5, 2011 at 8:27 PM, David Zhang <dzha...@gmail.com> wrote:
I'm using Rails 3.1.rc4 with ruby 1.9.2, and I just made a new app to test this out.  I ran your exact commands, except I used the standard sqlite3 development db.  I did not get any errors - the scaffold worked fine, and so does creating users.

Maybe it's an SQL development database issue - e.g. is your db properly created/configured and everything?
 
David,  everything is OK in my database. I'm suspecting that ExecJS uses some native extension that is not working very well on my system.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Wv44E-Hpf0kJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Gustavo de Sá Carvalho Honorato

unread,
Jul 11, 2011, 2:13:06 PM7/11/11
to rubyonra...@googlegroups.com
Note that: this error only happens in production mode.

2011/7/6 Gustavo de Sá Carvalho Honorato <gustavo...@gmail.com>
Reply all
Reply to author
Forward
0 new messages