Top "Ruby-on-rails-3.1" questions

Ruby on Rails version 3.1.0 is a specific version of Ruby on Rails.

ExecJS and could not find a JavaScript runtime

I'm trying to use the Mongoid / Devise Rails 3.1 template (Mongoid and Devise), and I keep getting an error stating ExecJS …

ruby-on-rails-3.1 execjs javascript
execJs: 'Could not find a JavaScript runtime' but execjs AND therubyracer are in Gemfile

I'm getting this error: rake aborted! Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs, I have …

ruby-on-rails ruby-on-rails-3.1 ruby-on-rails-plugins execjs
Rails - Could not find a JavaScript runtime?

I created a new Rails project using rails 3.1.0.rc4 on my local machine but when I try to start the …

javascript ruby-on-rails ruby-on-rails-3 node.js ruby-on-rails-3.1
Rails: FATAL - Peer authentication failed for user (PG::Error)

I am running my development on Ubuntu 11.10, and RubyMine Here is my development settings for the database.yml: which RubyMine …

ruby-on-rails postgresql ruby-on-rails-3 ruby-on-rails-3.1 ubuntu-11.10
.tooltip() is not a function

I am trying to use the .tooltip() that I found from the following: Jquery-ui tooltip. What I have is a …

jquery jquery-ui ruby-on-rails-3.1 tooltip
Rails generate Migration

I currently have migration called Products, and I simply want to add few more strings to this migration such as …

ruby-on-rails-3.1
Ruby syntax: break out from 'each.. do..' block

I am developing a Ruby on Rails app. My question is more about Ruby syntax. I have a model class …

ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.1
rails - "WARNING: Can't verify CSRF token authenticity" for json devise requests

How can I retrieve the CSRF token to pass with a JSON request? I know that for security reasons Rails …

ruby-on-rails-3 ruby-on-rails-3.1 devise csrf
Ruby on Rails: How can I revert a migration with rake db:migrate?

After installing devise MODEL User i got this. class DeviseCreateUsers < ActiveRecord::Migration def self.up create_table(:users) do |…

ruby-on-rails ruby-on-rails-3.1 migration rake database-migration
Using Rails 3.1, where do you put your "page specific" JavaScript code?

To my understanding, all of your JavaScript gets merged into 1 file. Rails does this by default when it adds //= require_…

javascript ruby-on-rails ruby-on-rails-3.1 asset-pipeline sprockets