Let\'s say I have an app (in Django) for which I want to sometimes (but not always) load content via ajax.
i have simple table Posts id title content what is the best practice to handle with non active post 1- use the temp_posts table to move non-active posts to this table
I\'m trying to create a JSONP API for my Rails 3 application. Right now in my controllers, I have a lot of actions which follow this pattern:
I\'m generating a bunch of links in a menu bar on my app. When the user is viewing one of the pages of the menu bar I\'d like the style to change to show that they are viewing the present page. It\'s
The code in question is written by robot (CodeSmith) and it is a pain to maintain. It looks somewhat similar to:
I\'ve got a repeated code block that initializes a few variables in a bunch of different controller methods. Is there a way for me to make this DRY with a model method as opposed to repeating the same
Take two base classes A and B which are similar but are preferred to be distinct.Each has a sub class (A\' and B\') which add the same functionality and members to their respective classes.Is there a
I have a view in which I have the same link 3 times (actual view is large): %h1= link_to \"Title\", model_path(@model, :class => \"lightbox\")
I\'m relatively new to Rails and a bit surprised this isn\'t a configurable behavior...at least not one I\'ve been able to find yet?!? I would have thought that 99% of forms would benefit from whitesp
Suppose that I\'m using C++. Now I have the following code: int flag; // ... while (!TimeToExitLoop()) {