you have to install an additional gem for javascript.
edit gemfile and add gem ‘therubyracer’. You can then run bundle to install the new gem.
here is your solution in detail:
http://www.railszilla.com/2011/12/rails-3-coffescript-execjs/
More Related Contents:
- Can we call a Controller’s method from a view (as we call from helper ideally)?
- Find number of months between two Dates in Ruby on Rails
- Convert HTML to word file ?
- Rails 3.1 limit user created objects
- Boolean Validation
- SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
- How do I get the current absolute URL in Ruby on Rails?
- SSL Error When installing rubygems, Unable to pull data from ‘https://rubygems.org/
- What is the easiest way to duplicate an activerecord record?
- redirect_to using POST in rails
- Rails 3.1 asset pipeline: how to load controller-specific scripts?
- How to solve error “Missing `secret_key_base` for ‘production’ environment” (Rails 4.1)
- How can I avoid running ActiveRecord callbacks?
- ActiveRecord.find(array_of_ids), preserving order
- In Ruby on Rails, how do I format a date with the “th” suffix, as in, “Sun Oct 5th”?
- How does instance_eval work and why does DHH hate it?
- What’s the best way to use SOAP with Ruby?
- Rails: ActiveRecord query based on association value
- Rails 3, has_one / has_many with lambda condition
- query , can not select column count
- How to use bundler behind a proxy?
- Uploading multiple files with paperclip
- Using helpers in model: how do I include helper dependencies?
- Best Practices for reusing code between controllers in Ruby on Rails
- How do I set up the database.yml file in Rails?
- Rails I18n validation deprecation warning
- Converting string from snake_case to CamelCase in Ruby
- Controller spec unknown keyword: id
- Rails each loop insert tag every 6 items?
- Validation failed: Upload file has an extension that does not match its contents