This looks similar to the issue I have been having.

--
Levi Rosol
Twitter: @LeviRosol



On Wed, Nov 18, 2009 at 11:41 AM, SS <[email protected]> wrote:

> Hello,
> I spent the last whole week trying to fix the below error in
> Production. In Development it all works fine, however when I try to
> edit profile information for a user in production, I keep getting the
> error message below. The interesting thing is that after I get this
> error message and visit my user profile, all the changes have been
> successfully committed in the database. I've overridden only the index
> () method in my own users_controller.rb in the following manner:
>
> require "RMagick"
> class UsersController < BaseController
>
>  def index
>    # Some logic goes here.
>  end
> end
>
>
>  I read and tried the suggested solution here:
>
>
> http://groups.google.com/group/communityengine/browse_thread/thread/b84154e5228bf9f3?pli=1
>
> This however didn't work for me, plus if it worked I would try to find
> a different solution since I don't want to remove and duplicate the
> original file for any method that I override in i.e.
> users_controller.rb.
>
>
> The Error message that I get after the database query is processed:
>
> Processing UsersController#update (for 70.75.54.26 at 2009-11-18
> 09:21:45) [PUT]
>  Parameters: {"user"=>{"birthday(2i)"=>"11", "birthday(3i)"=>"4",
> "zip"=>"", "description"=>"<p>Test Description</p>", "birthday
> (1i)"=>"1994"}, "commit"=>"Save Changes",
> "authenticity_token"=>"4QLH9ovpWwefeZOavRXaz4BXt1Y/aTOfW3N7SvA=",
> "country_id"=>"1", "id"=>"administrator", "metro_area_id"=>"4",
> "tag_list"=>"", "state_id"=>"3"}
> Redirected to http://mypage.com/administrator
>
>
> NoMethodError (undefined method `controller_name' for nil:NilClass):
>  haml (2.2.3) lib/sass/plugin/rails.rb:19:in `process'
>  /home/heroku_rack/lib/static_assets.rb:9:in `call'
>  /home/heroku_rack/lib/last_access.rb:25:in `call'
>  /home/heroku_rack/lib/date_header.rb:14:in `call'
>  thin (1.0.1) lib/thin/connection.rb:80:in `pre_process'
>  thin (1.0.1) lib/thin/connection.rb:78:in `catch'
>  thin (1.0.1) lib/thin/connection.rb:78:in `pre_process'
>  thin (1.0.1) lib/thin/connection.rb:57:in `process'
>  thin (1.0.1) lib/thin/connection.rb:42:in `receive_data'
>  eventmachine (0.12.6) lib/eventmachine.rb:240:in `run_machine'
>  eventmachine (0.12.6) lib/eventmachine.rb:240:in `run'
>  thin (1.0.1) lib/thin/backends/base.rb:57:in `start'
>  thin (1.0.1) lib/thin/server.rb:150:in `start'
>  thin (1.0.1) lib/thin/controllers/controller.rb:80:in `start'
>  thin (1.0.1) lib/thin/runner.rb:173:in `send'
>  thin (1.0.1) lib/thin/runner.rb:173:in `run_command'
>  thin (1.0.1) lib/thin/runner.rb:139:in `run!'
>  thin (1.0.1) bin/thin:6
>  /usr/local/bin/thin:20:in `load'
>  /usr/local/bin/thin:20
>
>
> Please help with any ideas that you may have for me to try. It's kind
> of a showstopper for me because users can't edit any profile
> information. I'm running on Heroku.
>
> Cheers,
> Siyan
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CommunityEngine" group.
> To post to this group, send email to [email protected].
> For more options, visit this group at
> http://groups.google.com/group/communityengine?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.


Reply via email to