You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.
For some reason, this specific question is throwing an error:
> Serel::Question.find(55984).get[INFO][2013-04-0114:32:11]Makingrequestto/2.0/questions/55984?site=stackoverflow&key=kljhalwkjenlansdNameError: undefinedlocalvariableormethod`name' for #<Serel::Question:0x007f8a449a6458> from /gems/ruby-1.9.3-p392@myapp/gems/serel-1.2.0/lib/serel/base.rb:161:in `get' from (irb):7 from /gems/ruby-1.9.3-p392@myapp/gems/railties-3.2.12/lib/rails/commands/console.rb:47:in `start'from /gems/ruby-1.9.3-p392@myapp/gems/railties-3.2.12/lib/rails/commands/console.rb:8:in`start' from /gems/ruby-1.9.3-p392@myapp/gems/railties-3.2.12/lib/rails/commands.rb:41:in `<top(required)>' from script/rails:6:in `require'fromscript/rails:6:in `<main>'
It's fun that it's so long since I worked with this code I'm struggling myself.
First thoughts is that calling .get on a singular instance seems wrong - every question I have tried this with errors, since find(id) is returning an instance of a class. name is called on the class (rather than an instance) and returns the string form of the class name. Obviously it's a long time since this issue was filed, but what did you expect to happen when you called .get?
I'm not entirely sure why .get is even defined in base.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For some reason, this specific question is throwing an error:
Not quite sure why this question, but here is the question on SO: http://stackoverflow.com/questions/55984/what-is-the-difference-between-const-and-readonly
Also, if I removed the
get
, here is the record:Edit 1: I am seeing this error more and more in other questions.
The text was updated successfully, but these errors were encountered: