User controller crashes with Ruby 1.8.7
-
August
Could this be related to the fact that in Rails 3.1, JSON is the new default output for ActiveResource?
-
August
While I can't reproduce the old 1.8.7 environment anymore, you may want to try different syntax. format.json { render :json => @users } instead of format.json { render json: @users }.
-
Brian Michalski
Zach - I believe senatedev is still running Ruby 1.8.7, any chance you can
take a look at this? Running any action from the users controller should
throw one of these errors.---------- Forwarded message ---------- From: Lighthouse <no-reply@lighthouseapp.com>
Date: Wed, Jun 1, 2011 at 8:08 AM
Subject: [Concerto #153 User controller crashes with Ruby 1.8.7] User controller crashes with Ruby 1.8.7
To: "michab3@rpi.edu" <michab3@rpi.edu> -
August
Haris reported a problem with senatedev and Rails 3.1 last evening. Apparently senatedev interprets /assets URLs as being /var/www/assets, probably as a result of the way directories are setup on senatedev. This seems to prevent a Rails 3.1 app from fully working on senatedev, absent some workaround...
-
Zach Rowe
Same here
/var/rails/rowez/concerto/app/controllers/users_controller.rb:10: syntax error, unexpected ':', expecting '}'
format.json { render json: @users } ^/var/rails/rowez/concerto/app/controllers/users_controller.rb:21: syntax error, unexpected ':', expecting '}'
format.json { render json: @user } ^/var/rails/rowez/concerto/app/controllers/users_controller.rb:32: syntax error, unexpected ':', expecting '}'
format.json { render json: @user } ^/var/rails/rowez/concerto/app/controllers/users_controller.rb:48: syntax error, unexpected ':', expecting '}' ...l { redirect_to @user, notice: 'User was successfully create...
^/var/rails/rowez/concerto/app/controllers/users_controller.rb:49: syntax error, unexpected ':', expecting '}' ... format.json { render json: @user, status: :created, loca...
^/var/rails/rowez/concerto/app/controllers/users_controller.rb:49: syntax error, unexpected ':', expecting '=' ... { render json: @user, status: :created, location: @user }
^/var/rails/rowez/concerto/app/controllers/users_controller.rb:51: syntax error, unexpected ':', expecting '}'
format.html { render action: "new" } ^/var/rails/rowez/concerto/app/controllers/users_controller.rb:52: syntax error, unexpected ':', expecting '}' ... format.json { render json: @user.errors, status: :unproc...
^/var/rails/rowez/concerto/app/controllers/users_controller.rb:52: syntax error, unexpected ':', expecting '=' ...er json: @user.errors, status: :unprocessable_entity }
^/var/rails/rowez/concerto/app/controllers/users_controller.rb:64: syntax error, unexpected ':', expecting '}' ...l { redirect_to @user, notice: 'User was successfully update...
^/var/rails/rowez/concerto/app/controllers/users_controller.rb:67: syntax error, unexpected ':', expecting '}'
format.html { render action: "edit" } ^/var/rails/rowez/concerto/app/controllers/users_controller.rb:68: syntax error, unexpected ':', expecting '}' ... format.json { render json: @user.errors, status: :unproc...
^/var/rails/rowez/concerto/app/controllers/users_controller.rb:68: syntax error, unexpected ':', expecting '=' ...er json: @user.errors, status: :unprocessable_entity }
^Yeah, I found stylesheet_link_tag pointing to var/www/assets. Hmm...
-
August
- State changed from new to resolved
- Assigned user set to Zach Rowe
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.