SadieRose

0

votes
0

answer
45

views

Python Container Issue referring back to main()

I am trying to read a simple text file and get the output in basic line format. I have a parent class and a child class. I start out by instantiating the child class, which should be inheriting the data structure from the parent class (that's all it contains). When parsing the input file, the child...
SadieRose
1

votes
1

answer
57

views

Java Stack push write methods - getting weird output at the moment

So, I'm trying to rewrite this code. The idea is to input lines from the input file, process the line one character at a time and push the characters onto a stack. (Logic to come later.) Anyways, my push method may not be working, as my show method doesn't seem to be working, either. Any suggestions...
SadieRose
3

votes
0

answer
881

views

undefined method `namespace' for main:Object (NoMethodError) - active record / rakefile

I'm attempting to run a basic Sinatra app. When I get to the 'rackup' step I get an error: /.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/railties/databases.rake:3:in `': undefined method `namespace' for main:Object (NoMethodError) It seems to be a scope issue in the Rake gem. I've...
SadieRose
0

votes
2

answer
64

views

Survey MEAN - posting id and input to controller for create with associated schemas

I have been attempting to make a survey app in MEAN. I have two schemas, user & survey, and they are associated one to many. My problem is from the 'create' html to client controller, I want to pass the user id and input (id needed for a findOne query). I would think as part of the same 'new_survey'...
SadieRose