Displaying 20 results from an estimated 200 matches similar to: "has_many through question"
2008 Dec 09
4
HABTM checkboxes insert but don't delete
I have a problem related with the HABTM relationships with checkboxes.
I''ve got a profile and a service model, both related with
has_and_belongs_to_many.
The problem is that i can insert new data in the profiles_services
table, however, i cant delete already existing data.
What could be the problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message
2008 Jan 13
1
Pointer bug in win32-taskscheduler?
Hi all,
I thought this was strange:
ts = TaskScheduler.new
ts.new_work_item(''foo'', trigger)
p ts.status
ts.save
p ts.status # null pointer (ts_get_status)
I noticed that in the ts_save function in taskscheduler.c we''re doing
this at line 278:
ptr->pITask->Release();
ptr->pITask = NULL;
At first I thought this was a mistake but it looks like it''s
2006 Mar 26
5
[ win32utils-Bugs-3924 ] Segmentation fault under Windows
Bugs item #3924, was opened at 26/03/2006 22:12
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=3924&group_id=85
Category: win32-taskscheduler
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: David FAROI (dfaroi)
Assigned to: Nobody (None)
Summary: Segmentation fault under Windows
Initial Comment:
I''m trying to make
2004 Feb 21
1
win32-taskscheduler thoughts
I''ve updated taskscheduler.c and taskscheduler.h. The method names are now
more Ruby-like (though I have to change a couple yet), and I''ve shortened
the constant names, as well as moved the constants over to the .h file.
I was thinking we should merge a few of these methods. I think
"set_target_computer" and "new_work_item" could both be rolled into the
2008 Jan 12
2
win32-taskscheduler and TaskScheduler#account_information
Hi,
This library has needed some work for a while, so I''m finally getting
around to it. I''ve made some changes and updates in CVS, so grab the
latest source to test the issue below.
The first issue I''d like to tackle is why the
TaskScheduler#account_information (GetAccountInformation) method fails
if there''s no user associated with a given task.
The docs
2004 Jul 31
3
Bug in new_work_item
Hi all,
Windows 2000
Ruby 1.8.2 R7
VC++ 6.0
I noticed that if I try to call new_work_item and give
the task a name that already exists, I get a segfault:
C:\eclipse\workspace\win32-taskscheduler>ruby test.rb
"0.1.0"
test.rb:22:in `new_work_item'': NewWorkItem() function
failed (Win32::TaskSchedul
erError)
from test.rb:22
test.rb:22: [BUG] Segmentation fault
ruby
2005 Sep 04
1
Fwd: Win32 Utils TaskScheduler
Note: forwarded message attached.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An embedded message was scrubbed...
From: Scott Harper <sharperct@gmail.com>
Subject: Win32 Utils TaskScheduler
Date: Sun, 4 Sep 2005 17:04:24 -0400
Size: 4971
Url:
2004 Apr 24
5
win32-taskscheduler alpha
Well, I''m going to release the first version of win32-taskscheduler today.
For now, I''ve kept the API about the same as it originally was because I was
spending way too much time futzing around and I wanted to get something out
the door.
For now, I''m calling this a BETA release, with the API subject to change.
See the ''Future Plans'' section of
2008 May 11
3
converting a RSTRING to an OLESTR
Hi,
I was going to modify the TaskScheduler#save method to take an optional
file name. But, I need to convert a Ruby string to an OLE string. I
thought I could use this:
http://msdn.microsoft.com/en-us/library/ms692615(VS.85).aspx
But, it only appears to accept literal string constants.
Any other suggestions?
Thanks,
Dan
2008 Jan 13
0
TaskScheduler#active? and TaskScheduler#exists?
Hi all,
I think I would like to add the TaskScheduler#active? and
TaskScheduler#exists? methods. I''m not sure how they should be
implemented however.
For TaskScheduler#exists? I suppose I could use the IEnumWorkItems and
iterated over the list. Is there a better way?
The TaskScheduler#active? would just tell me if a given task has been
activated or not, but I''m not sure
2005 Feb 14
8
DONT_RESOLVE_DLL_REFERENCES info
For future reference, it looks like we should avoid
DONT_RESOLVE_DLL_REFERENCES in any extensions.
http://weblogs.asp.net/oldnewthing/archive/2005/02/14/372266.aspx
Regards,
Dan
2004 Apr 02
2
Futzing with TaskScheduler
Hi all,
Thought I should say something - it''s been a little while. :)
Anyway, I''m still futzing with how I want the Ruby API to look. The more I
look at the Perl version, the more I think it was too faithful to the C API.
Right now I''m looking at the trigger() method. For example, I don''t see
any reason to make the "type" key take a hash as an
2006 Apr 04
6
check_box_tag is limited?
Hello all.
Am I going totally nuts here and just want to check (Natch!) something.
A normal check_box has two value posssibilities. One for checked and one
for unchecked, the value gets submitted with a form.
The check_box_tag on the other hand, has a checked_value (Called just
''value'') and for the unchecked value...nothing, zip, nada.
This means that if you submit a form with
2012 Dec 18
1
Problem with srptools
Hello,
I have a problem with the srptools to connect my Dom0 to the scst over
IB ressources.
*When i''m on the Debian kernel (without Dom0) *
root@blade1:/# ibsrpdm -c
id_ext=003048ffff9dd3b4,ioc_guid=003048ffff9dd3b4,dgid=fe80000000000000003048ffff9dd3b5,pkey=ffff,service_id=003048ffff9dd3b4
2007 Sep 15
3
check_box_tag always checked
#check_box and #check_box_tag are going to be the end of me. Why is
this always checked?
<% checked = @reservation.selected ? ''checked'' : nil %>
<td><%= check_box_tag("reservation[" + @reservation.id.to_s +
"][selected]", ''checked'', :checked => checked) %></td>
2006 Jul 19
3
How do I check the retuned value from check_box_tag?
Hi,
I have this in my form
<%= check_box_tag(@accept, value = "1", checked = false) %>
Which puts a nice checkbox on my form but when I try to retrieve the
value that is returned, which I expect to find in @accept, there is
nothing. How do I check the returned value?
Thanks,
Paul Thompson
2006 Mar 24
2
check_box_tag
hi,
What''s the right way to use the CHECK_BOX_TAG?
I used:
<% for @pippo in @model %>
<%= check_box_tag (:scelta,@pippo) %>
<% end %>
How Can I control if a person choosen the second or third element of the
vector @pippo?
--
Posted via http://www.ruby-forum.com/.
2011 Oct 21
20
How to transform my html form into a rails 3 form
Hi,
I have the following code working in a rails 3 view, but it is
unfortunately not pure rails code!
<% @filter1 = "tr.show1,tr.show2" %>
<% @filter2 = "tr.show1" %>
<% @filter3 = "tr.show2" %>
<form>
<p>
<input type="checkbox" value=<%=@filter1%> onclick="$
(this).is('':checked'')
2007 May 24
3
Help with Create and Update with options_for_select in a select_tag
I have a select_tag in my view that uses options_for_select with
multiple = true. I am having trouble figuring out the Rails way to
create and update that field. Please help.
Models:
-------------
Service has_many AccessControl
AccessControl belongs_to Service
application.rb
-------------------------
$types = Array["Athens", "htpasswd", "IP", "None",
2006 May 03
1
Differences betwen check_box_tag and check_box form helper.
What is the difference between the check_box_tag and the check_box form
helper?
I can''t understand why both must exist. :(
Thanks.
Fernando Lujan