Displaying 20 results from an estimated 100 matches similar to: "Has_Many - Saving Child Rows"
2006 Mar 26
4
Updating query results in real time with AJAX
I have the following view template:
<%= form_remote_tag :update => "new_item",
:url => {:action => ''create''},
:before => %(Element.show(''spinner'')),
:success => %(Element.hide(''spinner'')) %>
<div id="new_item">
</div>
2005 Apr 13
2
Creating multiple option groups
I''m setting up a basic shopping cart type app, and the products we
have will have multiple options. Size, color, etc. I''m trying to
figure out how I can collect the the options that are selected when a
user adds the item to their cart. An OptionSet is a group of options
("Size", "Color", etc), and an ItemOption is the option itself ("12
oz",
2005 Jan 07
3
multicolumn primary keys in activerecord
hi,
I''ve got the following tables in mysql notation:
CREATE TABLE `nodes` (
`id` int(11) NOT NULL auto_increment,
`parent_id` int(11) default ''0'',
`group_id` int(11) default ''0'',
PRIMARY KEY (`id`),
);
CREATE TABLE `groups` (
`parent_id` int(11) NOT NULL default ''0'',
`id` int(11) NOT NULL auto_increment,
2011 Jan 05
16
Nicedit (rich text editor)
Hello, I''m trying to use Nicedit to improve my text_areas in some views
of my project.
I have installed jquery:
ruby script/plugin install git://github.com/aaronchi/jrails.git
nicEdit plugin:
ruby script/plugin install
git://github.com/sergio-fry/Simple-nicEdit.git
Add js in layout:
<%= javascript_include_tag ''nicEdit'', ''nicEditInit'' %>
Use it
2008 Jul 14
18
[git patches] Ocfs2 and Configfs updates for 2.6.27
I'm running a bit late with the e-mail this time around, but I think that's
ok since there really isn't any major new features here - the bulk of the
Ocfs2 update is bug fixes, or cleanups. The same goes for configfs.
The only two things that could be described as features would be:
- Sunil has updated Ocfs2 to provide even more live cluster locking
information via debugfs.
- Joel
2006 Mar 30
4
Select List to change type of STI class
Hi:
I''m trying to create a drop-down list to change the type of a Single
Table Inheritance class. I tried this:
<%= select :user, :type, [ [''Author'', ''Author''],
[''Editor'', ''Editor''],
[''Administrator'', ''Administrator''] ]
2014 Nov 03
4
[LLVMdev] RFC: Timeline for deprecating the autoconf build system?
On Mon, Nov 3, 2014 at 9:26 AM, Tom Stellard <tom at stellard.net> wrote:
> On Fri, Oct 31, 2014 at 04:31:47PM -0700, Bob Wilson wrote:
> >
> > > On Oct 31, 2014, at 4:19 PM, Eric Christopher <echristo at gmail.com>
> wrote:
> > >
> > >
> > >
> > > On Fri Oct 31 2014 at 3:11:22 PM Tom Stellard <tom at stellard.net
>
2006 Feb 03
7
how to add multiple new records from one form
I''m trying to provide our customers with a page where they can add up to
20 items to their cart in one form. The form simply has 20 rows with
each row containing a text input for product code and a text input for
quantity.
I''ve tried having the controller create an array that has an object for
each row by looping through something like:
@new_items[1] = Cart.new
and the
2002 Aug 28
1
2.999 unable to join domain - update
Hi.
I've done some more debugging, and it looks like samba doesn't fall back
properly to port 139.
If I query a W2K box ( port 445 enabled ), the conversation works fine.
If I query my own samba server ( port 445 enable ) , it works fine. If I
limit my own server to port 139 using smb ports, or query an NT4 system,
the conversation fails. smbclient -NL server -p 139 fails even to a w2k
2006 Aug 18
0
AJAX question
Dear all,
Help me get a simple AJAX behavior right. I know zero AJAX, thus
please advice. Below is a simplification of the real code and I hope
I can describe my intention clearly.
class StoreController < ApplicationController
def show_cart
@cart = Cart.new
@new_item = CartItem.new
end
def add_item
@new_item = CartItem.new(params[:new_item])
if
2006 Aug 18
0
Simple AJAX question
Dear all,
Help me get a simple AJAX behavior right. I know zero AJAX, thus
please advice. Below is a simplification of the real code and I hope I
can describe my intention clearly.
class StoreController < ApplicationController
def show_cart
@cart = Cart.new
@new_item = CartItem.new
end
def add_item
@new_item = CartItem.new(params[:new_item])
if @new_item.valid?
2007 Sep 10
1
[ win32utils-Bugs-13825 ] /win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `at'': bignum too big to convert into `long'' (RangeError)
Bugs item #13825, was opened at 2007-09-10 16:04
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=13825&group_id=85
Category: win32-file-stat
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: /win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `at'': bignum too big to
2003 Feb 24
1
exit status 12 when transferring a large file
--- Erhalten von ZBM.ZARBR 089/32000-545 24-02-03 12.07
Hi,
I mirror a server installation using rsync 2.5.6 (on both sides) with these
options:
-a -x --numeric-ids -H --delete --stats -e ssh -z --exclude-from ...
This happens every night. In about 80% of the cases rsync returns exit
status 12 when trying to transfer a certain file. In the other 20% the file
is
2008 Jan 13
3
right usage of bdrb
Hi,
i''m going to implement a syndication-service, which will get lists in
xml with some meta-data an enclosed video files, which will get encoded
at the end. The syndication run will be startet every five minutes of
a full hour.
So i thought to build 4 Worker. One for checking which feeds to
syndicate (syndication_worker) at a specific time, one for processing
the list
2006 May 22
0
logger and ActionWebService - how can I get them to work together?
I''m adding a web service to a small Rails app that I wrote to learn
the framework. This is my last piece of the puzzle and I''m having
trouble figuring out how to debug it.
I was attempting to iteratively develop the web service method using
TDD. There''s so much coercion and stuff going on via the
ActionWebService framework that I''m looking to fall-back
2009 Feb 26
8
beginners question
hi group,
I am making a little rails app to experiment with rails. It consists
of one model, item, that represents an item on a todo list.
A todo item has a description, a state (finished or not) and a due
date.
After changing the scaffold screens a bit, I wanted to be able to
have no due date. I tried to do this by making a radio button; if ''no
date'' is selected, the date
2005 Jul 12
1
problem mounting ocfs2: heartbeat
When attempting to mount the OCFS2 file system I'm getting the
following error message:
ocfs2_hb_ctl: Internal logic failure while starting heartbeat
mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl:
"Operation not permitted"
I followed the steps given in the users_guide:
modprobe ocfs2_dlmfs
mount -t configfs none /config
mount -t ocfs2_dlmfs none /dlm
o2cb_ctl
2001 Dec 21
3
Question on encryption
I am not currently subscribed so please email me below.
First, my only experience with rsync has been older versions (e.g.
1.7.x) which did not allow daemon mode, so please bear with me.
My problem is that I would like to mirror large quantities of data on a
remote machine to a local one, but I don't care about encrypting the
data itself. I only care about securing the connection from the
2008 Jan 01
0
idmap_nss: Default domain not being used
I have an existing PDC which I am attempting to move across to a new
server. On the new server, I'm having trouble with idmap (using an LDAP
backend) and trusted domains. The smb.conf file is the same on both
servers. My idmap & winbind parameters are as follows:
ldap idmap suffix = ou=idmap
idmap backend = ldap:ldap://127.0.0.1
idmap uid = 10000-29000
idmap gid = 10000-29000
winbind
2009 Aug 02
11
Orange Box on WINE (Mac OS X)
Hello, I'm not sure if anyone else has had this problem, or has tried this, but I am running WINE under Mac OS 10.5.7 on my MacBook and I'm trying to play the Half Life 2 Demo to see if it's worth purchasing Orange Box.
I've installed STEAM and I have no problem running that with WINE, but when I try to play the demo everything stops working. I enter the demo from STEAM, and I