Displaying 20 results from an estimated 500 matches similar to: "render partial collection passing property"
2006 May 03
2
render partial collection
my view contains a call to a partial:
<%= render(:partial => ''item_list'', :collection => @keyword.synonyms,
:locals => { :action_delete => "removesynonym", and_some_other_stuff
})
%>
_item_list.rhtml contains:
<%= link_to (
image_tag(''/images/deletebutton.png''),
{ :action => action_delete,
:id =>
2007 Nov 16
1
drag & drop list needs refreshing
Hello guys, I''m a scriptaculous newbie (I started working with it only
yesterday) and I have already the first problem.
I''m trying to implement a drag & drop list (fallowing the shopping
cart example http://demo.script.aculo.us/shop) and I''m almost done
but after dropping an item on the target div I need to refresh the
page to see that the item has been moved.
2007 Nov 08
0
Polycom IP601 (mac)-directory.xml changes don't update phone
Hi Polycom experts,
I'm having a problem getting changes to the Polycom IP 601's
(mac)-directory.xml file to update the button list on the phone. If
the phone is newly provisioned (i.e. if I "Format File System" on the
phone) then the new list will show up on the buttons, but of course
this is pretty drastic way to do it.
- Environment: Asterisk test setup with 7 phones,
2016 Dec 01
3
[PATCH v2 1/2] xattrs: Skip security.evm extended attribute
The security.evm extended attribute is fully owned by the Linux kernel
and cannot be directly written from userspace. Therefore, we can always
skip it.
---
xattrs.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/xattrs.c b/xattrs.c
index b105392..3b72e61 100644
--- a/xattrs.c
+++ b/xattrs.c
@@ -255,6 +255,9 @@ static int rsync_xal_get(const char *fname,
2006 Jun 09
1
Polycom subscriptions
Somewhat off topic.
We upgraded a Polycom phone from SIP v1.6.3 to v1.6.6
The phone will no longer send SIP subscription messages for buddies to Asterisk. I have broken the directory file down to make it as simple as possible.
Here is what it contains.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- $Revision: 1.2 $ $Date: 2004/12/21 18:28:05
2007 Nov 08
0
Polycom IP601 call parking
One more Polycom IP601 question please (sorry for the long intro here
to document) ...
In order to closely approximate the behavior of the previous telephone
system that many of the users are familiar with, I have set up call
parking like this:
- features.conf [general] section contains:
parkext => ** ; What extension to dial to park
parkpos => 10-11 ; What
2008 Jan 25
0
Script for seeding polycom phones with an extension directory
Hello List,
Not sure if this will be helpful but I made changes to the original
Cisco directory.php.txt script and applied them for use on the Polycom
phones. This will create an extension directory and alphabetize it
based on the sip registrations you have setup in sip.conf. Note that
this only seeds the phones and does not synchronize them. Anyway
thought it might save people some time. To
2008 Jul 02
1
Non-clean Rsync 3.0.3 exit on OSX
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've compiled rsync 3.0.3 on OSX 10.4 PPC via the plain jane
./configure; make method (no patches). The resulting binary has then
been moved to /usr/local/bin/rsync3 and copied to a OSX 10.5.4 Intel
client machine as rsync3.
I then run the following command:
rsync3 -vvv -e ssh -avAX --progress --delete
-
2006 Aug 02
0
"RJS Error: TypeError: $(element) has no properties"
i have lots of divs, which are added via link_to_remote. now i want to
delete them with a link_to_remote button for each. i am giving them ids
with the same name and a serialized number. when trying to access them
with javascript/rjs, strange things happen: "RJS Error: TypeError:
$(element) has no properties?. is this a rails, rjs or prototype bug? or
am i missing something?
see my code
2010 May 28
1
cookie has key/value pairs and lost order after JSON decode
If a cookie has several items, and is encoded as JSON text as the value
of the cookie, the order is actually apparent in the cookie''s text
But if JSON.decode is used:
ActiveSupport::JSON.decode(cookies[''item_list''])
and the result is actually in a hash, then the ordering is lost...
Is it true that if the original JSON object has an array of hashes (1
key and 1
2006 Nov 04
0
Using collection_select and ajax
(I posted this earlier but it doesn''t appear on the group, so I''m
writing it again, If it appears twice, I apologize.)
I have a drop-down box that allows the user to select a language. I
want to use Ajax to render a filtered list of items based on the
language selected. I don''t want the user to press a Submit button nor
refresh the page, of course.
I''m using
2007 Apr 26
0
Sortables no longer working
I recently added MochiKit to my server for the key event monitor thing
and now my sortable isn''t working. I get
Sortable is not defined
(Sortable.create(''item_list'', {tag : ''li'', overlap : ''horizontal'',
onUpdate :...)
They told me I had to move MochiKit''s script src reference above
scriptaculous to get it to work right. Well
2015 Jan 06
2
[Bug 11035] New: make check failure
https://bugzilla.samba.org/show_bug.cgi?id=11035
Bug ID: 11035
Summary: make check failure
Product: rsync
Version: 3.1.1
Hardware: x64
OS: Mac OS X
Status: NEW
Severity: critical
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: jonathansabrams at
2006 Mar 10
5
PDF::Writer Simpletable Iteration
Hello All:
I have been working with <a
href="http://ruby-pdf.rubyforge.org/pdf-writer/index.html">Austin
Ziegler''s PDF::Writer</a> as a means to produce PDF documents from my
Rails app. I am stumped on how to iterate through a collection of items
and output them in a table format. The way I have tried it so far only
returns the last item in the collection -
2009 Apr 03
2
Problem with spacing
I''m having the devil''s time trying to get things laid out correctly.
I''ve attached a screenshot so that you can get an idea of what I''m
seeing. I''ve got a very unattractive space under the two combo boxes,
and another one under the buttons. I don''t understand how to reduce
this.
I know it''s impossible to guess what idiocy I might have
2006 Mar 07
2
webrick RoutingError
problem: webrick will start a rails server, but I cannot access my
application. I get the error:
Processing Base#index (for 127.0.0.1 at Tue Mar 07 19:16:58 CET 2006)
Parameters: {}
ActionController::RoutingError (Recognition failed for
"/keywordeditor"):
my application is called keywordeditor. I am starting the server from
the correct place with the correct command (I already
2006 Aug 10
6
save without commit ?
How do I get ''save'' to execute without commit?
I have tried:
ActiveRecord::Base.connection.begin_db_transaction
# do some stuff that doesn''t issue a database COMMIT statement
# then:
@myObject.save
# this issues a COMMIT but it shouldn''t! Shouldn''t it wait until I''ve
called:
ActiveRecord::Base.connection.commit_db_transaction
?
what am
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
Note that this does not fix gettext for app,
that will be done separately in another patch
as F10/F11 require different setups for that.
In the meantime gettext works if manually changed
in environment.rb to gettext_rails instead of
gettext/rails
Signed-off-by: Jason Guiditta <jason.guiditt at gmail.com>
---
src/app/controllers/application.rb | 200 --------
2006 May 10
8
dynamic setting of username and password in database.yml
Hello
I''ve now read a lot about application-level authentication in Rails, but
I need to do database-level authentication.
The reason is that my database needs to have the current_user (database
current_user, not current_user defined in an ActiveRecord Model) set to
execute triggers for automatically updating audit tables. So it is not
enough to have a session check against a User
2007 Aug 23
0
active scaffold polymorphic model
Hi
I am trying to use active scaffold to build a polymorphic model .
I have a number of models that can be featured and I have a Feature model
that belongs_to :item, :polymorphic => true
In my config.columns I include :item_type and item_id, I also added
:item_name to show the name of the record in the form.
In the form, when a type of model is selected I populate the select box for