Displaying 20 results from an estimated 32 matches for "sstephenson".
Did you mean:
stephenson
2012 May 07
1
Sprockets, JST, Eco and escaping
...e it was a good move from Rails part to escape ERB <%= %> tags by
default, it doesn''t seem to happen to Sprockets as well.
The strange bit is that according to Sprockets documentation, it would
be just a matter of naming your template as .jst.eco to enable Eco:
https://github.com/sstephenson/sprockets#javascript-templating-with-ejs-and-eco
Then, extracted from Eco documentation:
https://github.com/sstephenson/eco
<%= expression %>: Evaluate a CoffeeScript expression, *escape* its
return value, and print it.
It means that by default it should escape "expression". S...
2011 May 27
7
Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
Environment:
rvm
ruby 1.9.2-p180
rails 3.1.rc1
Conditions:
gem "coffee-script" # in Gemfile
at least one file with .js.coffee (even empty inside) in app/assets
Result:
WEBrick or Unicorn hangs. Only kill -9 <pid> helps.
P.S. What additional info should I provide?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
2011 Aug 06
2
No javascript runtime on Heroku
Hello all,
I developed an app using Rails 3.1 and uploaded it to heroku. When I
typed rake db:migrate , I got the following error:
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs
for a list of available runtimes.
Does heroku support Rails 3.1? They seem to have no Javascript runtime
env''s like nodejs on their machine!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,...
2012 Jan 23
2
Installing Ruby/TroubleShoot
I am having trouble with the Ruby on Rails for a windows 7 PC.
During the installation on Ruby it said missing file ''lib''
Then every time I try to generate a scaffold or controller it says
Could not find a JavaScript runtime. See
https://github.com/sstephenson/execjs for a list of available runtimes.
(ExecJS: :RuntimeUnavailable)
Attachments:
http://www.ruby-forum.com/attachment/6928/Ruby.odt
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group....
2012 Mar 27
10
`autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes
...n i created my first application and tried running it on server I
get the following error not sure how to proceed further....
/home/fakirbaba/.rvm/gems/ruby-1.9.2-p318/gems/execjs-1.3.0/lib/execjs/
runtimes.rb:50:in `autodetect'': Could not find a JavaScript runtime.
See https://github.com/sstephenson/execjs for a list of available
runtimes. (ExecJS::RuntimeUnavailable)
from /home/fakirbaba/.rvm/gems/ruby-1.9.2-p318/gems/execjs-1.3.0/lib/
execjs.rb:5:in `<module:ExecJS>''
from /home/fakirbaba/.rvm/gems/ruby-1.9.2-p318/gems/execjs-1.3.0/lib/
execjs.rb:4:in `<top (required)>&...
2013 Oct 23
9
rails generate scaffold - ERROR
...alBox
I''m trying to create a demo_app
rails generate scaffold User name:string email:string
gives me this error:
--
/home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in
`autodetect'': Could not find a JavaScript runtime. See
https://github.com/sstephenson/execjs for a list of available runtimes.
(ExecJS::RuntimeUnavailable)
from
/home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs.rb:5:in
`<module:ExecJS>''
from
/home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs.rb:4:in
`<top (required)...
2012 Jun 11
10
installing ruby on rails 1.9.3 on windows 7
...in the command prompt it doesn''t start the server.
rather it shows :
C:\Sites\railsinstaller_demo>rails s
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/run
times.rb:51:in `autodetect'': Could not find a JavaScript runtime. See
https://gi
thub.com/sstephenson/execjs for a list of available runtimes.
(ExecJS::RuntimeUn
available)
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/l
ib/execjs.rb:5:in `<module:ExecJS>''
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/l
ib/execjs.rb:4:...
2005 Dec 23
13
how to form.rest in RJS
is there any way to Form.reset (clear all fields of the form ) in
form_remote_tag generated form?
I want to reset fields after ''submit'' in .rjs.
--
Hiroshi Takagi <gollum-u1eKKkw+WM0gE89CWYshPg@public.gmane.org>
2012 Jan 14
1
Error in Creating a rubyonrails application
...reating a rails
application i get following error...
can you please suggest some solutions to fix this.
sward@master:~/work/myapp$ rails server
/usr/lib/ruby/gems/1.8/gems/execjs-1.2.13/lib/execjs/runtimes.rb:47:in
`autodetect'': Could not find a JavaScript runtime. See
https://github.com/sstephenson/execjs for a list of available
runtimes. (ExecJS::RuntimeUnavailable)
from /usr/lib/ruby/gems/1.8/gems/execjs-1.2.13/lib/execjs.rb:5
from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/
coffee_script.rb:1:in `require''
from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/
coffee...
2012 Sep 10
4
Rails error: invalid byte sequence in UTF-8
Hello,
i have a app on rails 3.2.1 and i use a jquery lib called jQuery Timelinr
0.9.5: http://www.csslab.cl/2011/08/18/jquery-timelinr/
but, when i use it on a .erb view, i got a error:
Showing *
/home/carlos.ribeiro/projetos/amarribo/app/views/conheca/historico.html.erb*
where
line *#59* raised:
invalid byte sequence in UTF-8
Extracted source (around line *#59*):
57:
58: <%=
2012 May 16
7
Rails 3.1.0 cannot connect to sqlite database on Mac Lion
...> ''git://github.com/rails/rails.git''
gem ''sqlite3''
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem ''sass-rails''
gem ''coffee-rails''
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem ''therubyracer'', :platform => :ruby
gem ''uglifier'', ''>= 1.0.3''
end
gem ''jquery-rails''
Routes:
root :to => "home#index"
home controller:
class HomeCont...
2005 Mar 04
17
active record logs format
Hi,
I think this has already been asked on the list, but I can''t seem to
be able to find it again:
currently, active record does some weird thing with its sql logs i.e.:
[4;33mSQL (0.000000) [1;37mPRAGMA table_info(map_locations)
how do I remove the "[4;35m"
thx
Jean
2012 Sep 18
2
NoMethodError with rake db:migrate
...;'sqlite3''
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem ''sass-rails'', ''~> 3.2.3''
gem ''coffee-rails'', ''~> 3.2.1''
# See https://github.com/sstephenson/execjs#readme for more supported
runtimes
# gem ''therubyracer'', :platforms => :ruby
gem ''uglifier'', ''>= 1.0.3''
end
gem ''jquery-rails''
# To use ActiveModel has_secure_password
# gem ''bcrypt-ruby'',...
2005 Dec 22
13
in-memory SQLite for testing
I am following the rails book, and arrived to the section about
testing. The test database is configured as:
test:
adapter: sqlite3
database: ":memory:"
and I get this error with the simple product test:
% ruby test/unit/product_test.rb
Loaded suite test/unit/product_test
Started
E/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/
errors.rb:94:in
2005 Mar 07
1
Request for those familiar with internals of the Oracle, SQL Server, and DB2 adapters
I''ve made a research patch [1] for Active Record which creates a new
interface for working with limit and offset parameters, and it needs
implementations for the commercial databases. The patch is described
in detail in trac ticket #795 [2].
I''d greatly appreciate any contributions you can make as soon as
possible so that this fix can make it in to the Rails 1.0 release.
2011 Nov 17
0
Include a javascript runtime when generate the app
...ails and Ruby are hard to explain for beginners.
A lot of people said that Rails is getting less friendly for beginners
but that''s not true and I can assure that it''s not true in most of the
points except for one:
"Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs
for a list of available runtimes. (ExecJS::RuntimeUnavailable)"
In last two or three month I trainned more than a hundred new students
and answered at least 10 times why they need to install a Javascript
Runtime for a tool that''s based in Ruby. Most of people don''t ev...
2011 Aug 11
0
Rails 3.1.0.rc5 server won't start
Hi,
Have hit a problem upgrading rails to 3.1.0.rc5 on the server (Centos
5.5). No problems locally an a mac.
After deploying with capistrano and restarting the server, I got the
following error from passenger:
"Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs
for a list of available runtimes. (ExecJS::RuntimeUnavailable)"
I went to the url mentioned, and ensured the following:
execjs gem is installed (1.2.4).
node is installed (0.4.8).
coffee-script is installed (1.1.2).
The problem remained.
I then did some googling and found solutions...
2011 Aug 25
1
Devise + Forem: undefined method weeks on Fixnum
...don''t know why this would be the case.
My Gemfile looks like:
source ''http://rubygems.org''
# Forem requirements:
gem ''rails'', :git => "git://github.com/rails/rails.git"
gem ''sprockets'', :git => "git://github.com/sstephenson/sprockets"
gem ''forem'', :git => "git://github.com/radar/forem.git"
# gem ''rails'', ''3.0.9''
gem ''devise''
...
I was using Rails 3.0.9 previously and it worked fine with Devise.
However, specifying the edge vers...
2014 Apr 14
0
Foundation & Authlogic
...;
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported
runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read
more: https://github.com/rails/turbolinks
gem 'turbolinks'
# B...
2006 Jan 06
4
Are migrations executed within a transaction?
Hi all,
Can I safely assume that each migration is excuted within a
transaction, so that''s it''s safe to have migrations executing failing
statements?
Thanks,
- Rowan
--
Morality is usually taught by the immoral.