-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have class A and list of A objects. A has a function f that should be executed every X seconds (for the first instance every 1 second, for the seconds instance every 5 seconds, etc.).
I have a scheduler class that is responsible to execute the functions at the correct time.
What i thought to do…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a class whereby a method calls a nested class. I want to access the parent class properties from within the nested class.
public class ParentClass
{
private x;
private y;
private z;
something.something = new ChildClass
public class ChildClass
{
need to get x, y and z;
}
}
How do I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am using rails3 beta3 and couchdb via couchrest. I am not using active record.
I want to add multiple "Sections" to a "Guide" and add and remove sections dynamically via a little javascript. I have looked at all the screencasts by Ryan Bates and they have helped immensely. The only difference…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have two models a Company and a User the Company has_many :users and the User belongs_to :company. I have a form such as:
<%= form_for @company, data: {toggle: :validator}, novalidate: "novalidate", html: {role: :form} do |f| %>
company fields
Then in there I have
<%= f.fields_for…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to be able to drag and drag App model which is nested under Category model.
http://railscasts.com/episodes/196-nested-model-form-part-1
's the Railscast I've tried to follow.
Category controller
def move
params[:apps].each_with_index do |id, index|
Category.last.apps.update(['position=…
>>> More