Fixes "Attempt to call private method" error#37
Open
nathenharvey wants to merge 1 commit intoperitor:masterfrom
Open
Fixes "Attempt to call private method" error#37nathenharvey wants to merge 1 commit intoperitor:masterfrom
nathenharvey wants to merge 1 commit intoperitor:masterfrom
Conversation
|
+1 ...would merge again. (I had this error, made the change, and as far as I can tell, all is sunshine again) |
|
I believe that if you reverse the conditionals in the if it should be fine. I noticed, during debugging, that if I asked for the description first and then the task it worked fine. Putting task first or removing description line caused it to fail. Interesting tidbit. Edit: I may have spoken too soon. My fix allows for the page to load (likely due to short circuiting) but it fails during an actual deployment load. |
|
+1 for this fix! Please put it in! It's broken. |
|
This fixed the issue for me as well. Thanks! |
|
👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This resolves an error with the StagesController trying to show a stage. It's throwing an error as shown below.
Thanks,
Nathen
NoMethodError in StagesController#show
Attempt to call private method
RAILS_ROOT: /Users/nharvey/projects/webistrano
Application Trace | Framework Trace | Full Trace
/Users/nharvey/projects/webistrano/vendor/bundler/ruby/1.8/gems/activerecord-2.3.11/lib/active_record/attribute_methods.rb:236:in
method_missing' /Users/nharvey/projects/webistrano/lib/webistrano/deployer.rb:25:ininitialize'/Users/nharvey/projects/webistrano/app/models/stage.rb:125:in
new' /Users/nharvey/projects/webistrano/app/models/stage.rb:125:inlist_tasks'/Users/nharvey/projects/webistrano/app/controllers/stages_controller.rb:17:in
show' /Users/nharvey/projects/webistrano/app/controllers/application_controller.rb:24:inset_timezone'Request
Parameters:
{"project_id"=>"1",
"id"=>"1"}
Show session dump
Response
Headers:
{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}