I used to work with rails 2.3.2 before and then I decided to upgrade to version 2.3.4.
Today I tried to generate a migration(I could do this fine with version 2.3.2) and I got the following error message:
C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:812:in `const_missing':…
Hi, I'm storing small interfaces from a range of objects into a single TInterfaceList 'store' with the intention of offering list of specific interface types to the end user, so each interface will expose a 'GetName' function but all other methods are unique to that interface type. For example here are two interfaces:
IBase =…
Hi,
I'd like my Search form to return the following url after submit:
/anuncios/buscar/the_text_I_searched
My form is the following:
<% form_for :announcement, :url => search_path(:txtSearch) do |f| %>
<div class="searchBox" id="basic">
<%= text_field_tag :txtSearch, params[:str_search].blank? ?…
It seems a good and clean thing to ensure that your deployed files appear on the target system with a consistent time/date. Many Applications seem to do this but other than for care of overwriting Users' existing data I guess it has no real significance. I'm having a purge on my installer packaging and I'd like to know if…
Hello,
Details of the app are: ASP.NET project, local web server, hosted in IIS locally, using latest FireFox, uses forms authentication.
I'm getting a logon user name/pwd box when trying to access my local web server. Using the net panel in firebug, I see the issue is with an animated GIF, showing up as 401…
This is the update that just came out this week (2010-05-18)
Somebody moved my cheese. It appears that laf.jar is Look And Feel, so probably not a big deal for my java development. Eclipse got mad about the missing jar, and furthermore thinks the 1.6.0 VM disappeared, which it didn't. Had to redefine the VM…
How do I clear the value from the stack of a s:iterator?
I'm trying to iterator over a TreeMultimap with a structure like:
TreeMultimap<person, lineItems> persons;
Using something like:
<s:iterator value="attendeesForParticipantTypeEvents.asMap()">
<div>
<s:property…
I'm using ruby on rails 2.3.8 and when I write the syntax shown below I get the "stack level too deep" error message.
The model is called Announcement and the line of the error looks like this:
Tag.find(category_id).announcements.published
Where published is
named_scope :published,…
We have a production server and a dev server. We have found that backups are nearly impossible on the production server because of the query volume we experience. So, we're looking at setting up replication with our dev server being the slave. This is ideal because we can afford to lock…
I've been trying to figure this out for hours across a couple of days, and can not get it to work. I've been everywhere. I'll continue trying to figure it out, but was hoping for a quicker solution. I'm using App Engine datastore + Django.
Using a query in a view and custom forms, I…
I have an application (using SlickGrid) where I need to get the column name or id at any time when user clicks on a cell (this pulls up a menu specific to the data in that column/cell). Grid works fine initially but if the column is moved (drag/drop), the column name/id does not…
In a code review I came across the following code that contains the following:
# Python bug that renders the unicode identifier (0xEF 0xBB 0xBF)
# as a character.
# If untreated, it can prevent the page from validating or rendering
# properly.
bom = unicode( codecs.BOM_UTF8,…
Hi
I am using a tabview for an app and one of the tabs shows a webview. But the page is blank until the web page loads. how would one show a progress bar until the page loads. It cannot be in the title bar because that is hidden by the tabhost
I have what I think is a rather complex problem. I have a C# application that utilizes a plug-in architecture using reflection. The application loads plug-in dlls and the user is able to enable/disable them. When a plug-in is enabled, the main app starts a thread to run the…
Hey Guys,
So it has been a while since I have done any game programming in C#, but I have had a recent bug to get back into it, and I wanted some opinions on what configuration I should use.
I wanted to use C# as that is what I use for work, and have become vary familiar…
I'm using ruby on rails 2.3.2 and also using the acts_as_taggable_on puglin. That generated me two db tables: tags and taggings.
As I didn't need anything more from those, I didn't create a Tag model, for example. Now the project is more mature, I need to create some…
In my situation, my company services many types of customers. Almost every customer requires their own Business Logic. Of course, there will be a base layer that all business logic should inherit from. However, I'm going back and forth on architecting this--either in…
I've got a standard Rails app with Nginx and Mongrel running at http://mydomain. I need to run a Wordpress blog at http://mydomain.com/blog. My preference would be to host the blog in Apache running on either the same server or a separate box but I don't want the…
I have the following relationships in JPA (hibernate).
Object X has two subclasses, Y and Z.
Object A has a manyToOne relationship to object X. (Note, this is a one-sided relationship so object X cannot see object A).
Now, I want to get the max value of a column…
When I'm doing a tortoise svn merge, it includes a bunch of directories, and some files into the modified files, even know there are no actual changes.
It changes the property svn:mergeinfo
Is there any reason why these properties set on the directory/files are…
Are there any VC++ settings I should know about to generate better PDB files that contain more information?
I have a crash dump analysis system in place based on the project crashrpt.
Also, my production build server has the source code installed on the D:\,…
This is my first time using StackOverflow. I am trying to read a text file which consists of a single number one the first line.
try {
Scanner s = new Scanner(new File("HighScores.txt"));
int temp =Integer.parseInt(s.nextLine());
s.close();
…