Displaying 5 results from an estimated 5 matches for "projectid".
Did you mean:
projected
2006 Feb 21
3
HABTM :insert_sql help
...keys), but I''m getting the error: ''undefined local
variable or method `record'' for Project:Class''
has_and_belongs_to_many :people,
:class => ''Person'',
:join_table => ''ProjectTeamRole'',
:foreign_key => ''ProjectID'',
:association_foreign_key => ''PersonID'',
:insert_sql => "INSERT INTO
ProjectTeamRole(ProjectID,PersonID,TeamRoleID) VALUES(#{id},
#{record.PersonID},1)"
I can see that #id refers to the current Project object, but how do I
refer to the PersonID that...
2007 Nov 14
1
reading tables from url
...ile (which is what happens if you click the Save button on
either page).
> options(internet.info=0)
## this one works
> x1<-url("http://www.ncbi.nlm.nih.gov/genomes/leuks.cgi?
dump=selected")
> read.delim(x1, skip=1, nrows=5)[,1:3]
X...Columns. ProjectID Organism.Name
1 20303 Acanthamoeba castellanii Neff Protists
2 13657 Acyrthosiphon pisum LSR1 Animals
3 12434 Aedes aegypti Liverpool Animals
4 12635 Ajellomyces capsulatus G186AR Fungi
5 12653 Ajellomyces capsulatus G217B...
2010 Jan 22
0
creating a new record in a pop-up-window
...ow a basic Task-NEW form, BUT with some
information about the Project, eg the title of the project. after
submitting i want to get the Project -EDIT View to be reloaded.
1) i have the pop-up window:
<%=link_to_remote "Add Tasks", :url => { :action => "open_new_window",
:projectid=>@bol.id } %>
2)controller
def open_new_window
p ">>Open Window: #{params[:projectid]}"
render :update do |page|
page << "window.open(''/bol_lines/new'', ''A Window'',
''left=20,top=20,width=500,height=500,toolb...
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
...{
method: ''post'',
parameters: Form.serialize(''formCapture''),
onComplete: function(transport){
//var response = transport.responseText || "no response
text";
//alert("Success! \n\n" + response);
var url = ''tempCaptureData.php?projectID=<?=$_GET[''projectID'']?
>&docID=<?=$_GET[''docID'']?>'';
var div = document.formCapture;
//alert(div.innerHTML);
var myAjax = new Ajax.Updater(div, url,
{method:''get'',parameters:pars});
alert(myAjax);
},
onFailure:...
2007 Jan 28
3
always Not Found
...ting a 404
(Not Found) page for every url I call! Not even the error messages I got
before are shown on this page anymore. So I took a look into
development.log, but there everything is ok, WebRick sends Http 200 OK.
The routes.rb I left as the standard:
map.connect '':controller/:action/:projectid''
And I call http://localhost:3000/project/list/1, which works, but I
don''t see the result, I get a Not Found!
Thanks for your help.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscr...