Displaying 20 results from an estimated 7000 matches similar to: "newbie wanting to understand controller action relationship"
2006 Mar 13
2
How to apply an effect to a link_to_remote :update without using evaluate_remote_response?
Hey all,
I''ve been trying to apply a slide-down (or highlight) effect to a "New
card" link on my application. Because the item is *new* and I''m simply
updating it at the top, I can''t know what the div id is before I make
the request. link_to_remote :complete => visual_effect(:slidedown)
doesn''t do what I want it to do. My current solution is:
2006 Mar 08
2
fade out and then fade in....how to make it work?
I''m trying to have one image fade out and then another slidedown upon
completion of the ajax call. I can''t get the timing correct. How do
you do it? Here''s what I''m trying (this does not work)
<%= link_to_remote(image_tag(url_for_file_column(product, "image_url"),
:update => ''right_content'',
:url => {
2006 Sep 25
2
@article.article_groups.delete_if... Dosn't work!
If I try:
@article.article_groups.delete_if {|x|
x.group_id == x.group_id
}
It does nothing.
If I try:
articletmp.article_groups.each{ |x|
@article.article_groups.delete(y)
}
It deletes some of the groups.
@article.article_groups.clear
works.
Why dosn''t the to first examples work as expected??
Do I have to put groups I don''t want to
2006 Jun 04
6
Activerecord relations.
I''ve got two tables set up - Things and Users where Users have many
things and Things belongs to Users.
They''re connected by Things.user_id => User.id and Things.updated_by_id
=> User.id both in the Things model using Belongs_to and custom foreign
key for one of them.
Problem is when I''ve got the updated_by_id belongs_to I can''t add Things
using
2007 Jul 26
3
tc filter not work, why?
I try to use tc on mips with linux-2.4.18 but the u32 filter dosn''t work
I added htb qdisc to linux-2.4.18 and use it to limit the speed in
LAN, it only work well on the default class, for example
tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 2000kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 500kbit ceil 500kbit
2006 Feb 07
11
date in domU
Hi all,
where can I set the date in domU.
''ntpdate -u ...'' works but dosn''t set the date.
date MMDDhhmm has also no effect.
What can I do?
--
cu
Roland Kruggel mailto: rk-liste@gmx.de
System: Intel 3.2Ghz, Debian etch, 2.6.15, KDE 3.4
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
2006 Apr 27
4
Up-dates
I started working on a chat program but, I''m having this problem
chatroom.rhtml
<div id="chatroom">
</div>
<%= periodically_call_remote( :update => "chatroom",
:url => {:action => :chat },
:frequency => 2) %>
chat.rhtml
<h1><%= @chat.room %> room.</h1>
2006 Apr 26
7
Not updating
I copied the scaffolding edit and update and made it like this,
Note: awnser is edit.
Admin_contoller.rb
def awnser
@question = Question.find(params[:id])
end
def update
@question = Question.find(params[:id])
if @question.update_attributes(params[:question])
flash[:notice] = ''Question was successfully updated.''
redirect_to :action => ''list''
2003 Aug 05
1
(PR#3658)
The function 'getAnywhere' crashes if given a non-existent name containing a period:
> getAnywhere( 'nomethod.noclassforme')
Error in get(x, envir, mode, inherits) : variable "nomethod" was not found
However, 'getAnywhere' behaves gracefully if the non-existent name lacks a period:
> getAnywhere( 'nomethod')
no object named `nomethod' was
2006 May 27
2
Error, in my store provider.
Let me explain the subject title, store provider is Hackey, he''s a NPC
that sells items to my users.
<h1>Welcome to Hackey''s!</h1>
<h3>Catalog</h3>
<table border="2" bordercolor="red">
<% for items in @items -%>
<% temp12 = Item.find(items.item_id) -%>
<tr><td><%= @temp12.name
2006 Jan 26
2
link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?
Hello,
I have a simple link_to_remote that refresh a div. I just want to know
if it''s possible to interrupt the div''s refresh inside :action to
perform a complete reload of the page, outside of the div
Actually, I havea a new page, but loaded inside the ":update" div.
Someone have an idea please ?
the rhtml:
****
link_to_remote "yeah" , :update =>
2005 Aug 24
0
action in link_to_remote
hello,
is it possible to add javascript actions inside a link_to_remote ?
What i want to do is add an onClick="body.className=fancy" to the <a>
tag in addition to the stuff that link_to_remote adds. is this
possible ?
thanks
adam
2007 Aug 30
4
Samba with ZFS ACL
Hi,
I''m looking for Samba, which work native ZFS ACL.
With ZFS almost everything work except native ZFS ACL.
I have learned on samba mailing list, that it dosn''t work while samba-3.2.0 will be released.
Has anyone knows any solution to work samba-3.0.25?
If any idea, please let me know.
thanks
This message posted from opensolaris.org
2006 May 31
1
Automatic .santize?
Hello and thanks in advance to those who post back,
I''m working on a calender but, it renders the data in the controller
then saves it as @code so I call it in the veiw <%= @code %>. So
everythings working and I add this line..
@event =
Event.find_by_date("#{@temp13.year}-#{@temp13.month}-#{@temp13.day}")
if @event == nil
@@td = "<td width=50 height=50
2006 Apr 18
0
AJAX not displaying - due to action not complete?
Hi everyone,
I''ve got a pair of AJAX actions that use slide_up and slide_down to
toggle the editing of some info. You first see a table of
entitlements for a user. Clicking "Change these" slides that up and
then a full table comes down, displaying all possible entitlements for
that user. Remove and Add links are next to the appropriate
entitlements. When finished, clicking
2006 Jul 14
1
passing an entire hash to an action
Is it possible to pass the entire contents of a hash to an action via
link_to_remote?
I know that when you want to pass a value you say link_to_remote("link
name", :url => {:action=>"some action", :someName => someVal} )
This works for when you want to pass strings but I want to be able to
pass a reference to a list of models that is stored in a hash to the
2006 Apr 21
2
Action Mailer E-Mail
Two qs:
1. Does AM have to use a real e-mail addr?
2. Where can I get a free e-mail addr that has POP without SSL?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
8
Action Mailer
Does anyone know where I can download an demo app of action mailer. I''ve
looked every where. I''ve also done the tuts. but, they don''t work for
me. Thanks...
--
Posted via http://www.ruby-forum.com/.
2008 Nov 14
5
Error: failed to assign device...VT-d isn''t enabled properly(?)
Dear List,
I need to make an Aladdin eToken Pro visible in a Linux guest HVM, but
I cannot assign the device to any domU, while it''s being blocked by
the dom0.
To avoid this trouble I would like to pass the whole USB bus to the
domU directly, via PCI passthrough.
Now I use xen 3.3.0 from xensource and xen kernel from Ubuntu 8.04
2.6.24-19-xen, because the xensource xen kernel
2006 May 04
6
Login generator ALWAYS says login unseccesfull
Hey I just ran this "ruby script/generate login loging_in" here is my
SQL:
CREATE TABLE `users` (
`id` int(11) NOT NULL auto_increment,
`user_name` varchar(80) default NULL,
`login` varchar(120) NOT NULL default '''',
`last_update` timestamp NOT NULL default ''0000-00-00 00:00:00'',
`last_attack` timestamp NOT NULL default ''0000-00-00