search for: wpdster

Displaying 9 results from an estimated 9 matches for "wpdster".

Did you mean: updater
2008 Dec 13
2
how to import a dump .sql file in a rake task
I have a dump of some tables to be filled when the app is setup ''.../db/dataset/regions_dpt_cities_codes.sql'' I would like to execute a task similar to the >mysql source <dump_file> like : ActiveRecord::Base.connection.execute("source #{path};") (which doesn''t run fine, of course.... is it possible in a rake task ? if yes, any suggestion ?
2008 Apr 10
0
Synchronizing a table to a spreadsheet
Hello all, As much as I hate saying this, I would like to maintain 2 copies of some data, one copy in the form of a table in a database, and one in the form of an Excel spreadsheet. Unfortunately, either or both copies may be modified, so I need some way to synchronize the two, much the same way as a contacts database might be synchronized between a PDA and a desktop application. I am curious to
2008 Dec 02
0
Best route for has_many subrecords
Hello all, I have a model, say it''s called Person, which has_many Responsibilities. I would like the "show" view for the person controller to list all of the responsibilities for that person. (That''s the easy part -- I think I know how to do that part.) At the end of the list, I would like to include a text field into which a new responsibility may be added. What
2009 Sep 01
0
script/plugin install vs git submodule add
I''ve found several web pages that describe how to use git submodules to install plugins, but it seems that those pages are missing something (or more likely, I am) . In a nutshell, they advise replacing $ script/plugin install git://path_to_spiffy_plugin with $ git submodule add git://path_to_spiffy_plugin vendor/plugins/spiffy_plugin It seems to me that these are not exactly
2008 Jul 14
1
Limit the data displayed in the index view with a select box
Hello, Please be prepared for some very basic, very newbie, very HTML-beginner, knows-nothing-about-AJAX questions... I have a (RESTful, if it makes any difference) application that displays a ton of data (names of documents) on the index page. I would like to limit the amount of data displayed, by adding a SELECT box that narrows the list of data down by selecting a category. Each category has
2008 Dec 13
2
What is "The Rails Way" to do this?
I have a PHP application with the following in one of the "views": <input type="button" onClick="newAlt()" value=" + "></nobr> The JavaScript for "newAlt()" is: // using DOM create new input box for alternate part function newAlt() { var html = "<input style=''background-color:#FFFFCC'' "; html +=
2009 Dec 10
2
How to customize the default scaffold?
I know the scaffold generator is really only useful for beginners and/or very the preliminary state of a project, but I find that I use it a lot (especially, since I am still a beginner). There are a couple of things I find myself tweaking (or wanting to tweak, but never getting around to tweaking) each time I generate a new scaffold: 1) Change the layout from blah.html.erb to
2009 Oct 14
6
Reinstantiate controller during functional testing
... ok, I may be going about this the wrong way, or perhaps, a less efficient way than is optimal, but I would like to test a little bit of AJAX on one of my web pages. When I test this by hand, I bring up the page which shows a select box, I select an item from the drop down list, see another select box show up, go back to the first select box, select a different item, and see something
2009 Sep 28
6
What is the most efficient way to split a table into 2 groups?
I have the following: @lot = Lot.find(params[:id]) part_nums = Part.all(:conditions => ["id <> ?", @lot.part.id]) I guess I should mention that Lot :belongs_to => :part I was looking at the log following the execution of these two statements and I saw something like this: Lot Load (0.4ms) SELECT * FROM "lots" WHERE ("lots"."id" = 13) Part