Displaying 20 results from an estimated 800 matches similar to: "link_to_remote id or class"
2006 Feb 23
12
how to output something from within <% %> tags?
simple question: how do I output something from within <% %> tags? e.g.
like ''echo'' in PHP. I thought it would be ''puts'' or ''print'' but neither
seems to work. right now I always close the %> and open a <%= which is
tedious.
--
Posted via http://www.ruby-forum.com/.
2005 Oct 14
7
validates_confirmation_of not working
Hello, I''m having a weird problem in my user model. For the
change_password method I have the following:
def change_password(oldpass, newpass, confirmation)
oldpass = self.class.myhash(oldpass)
reload
passhash = self.password
self.password = newpass
self.password_confirmation = confirmation
if valid? and oldpass == passhash
save!
else
# valid?
2005 Jul 12
4
Calculation of group summaries
I know R has a steep learning curve, but from where I stand the slope
looks like a sheer cliff. I'm pawing through the available docs and
have come across examples which come close to what I want but are
proving difficult for me to modify for my use.
Calculating simple group means is fairly straight forward:
data(PlantGrowth)
attach(PlantGrowth)
stack(mean(unstack(PlantGrowth)))
2005 Nov 25
2
acts_as_list with 2 fields in the scope
Hi Railers,
I''ve got a Categories table.
I want it to act as a list within the scope of the parent_id AND the
site_id.
Categories table :
id
label
site_id
parent_id
So, in my Category class, I have :
acts_as_list :scope => ''site_id = #{site_id} AND parent_id = #
{parent_id}''
The problem is that when I try to move_up a Category with a parent_id
that is null,
2006 Mar 22
4
hivelogic lighttpd install
Hey group,
I went through the Hivelogic install and it works great. Now I''d like
to run lighttpd as a daemon, but when I go into the /usr/local folder
where everything was installed, I don''t see a lighttpd directory where
the config files would be.
If I try "lighttpd start" from the command line, I get an error that
says "No configuration file available".
2008 Oct 16
1
merge/combine data
Hi,
I have the following data imported from a csv file
user_id site_id name
1 1 11 februari
2 1 11 redbook
3 1 11 tips
7 3 6 sleep
8 3 6 monitoring
9 3 6 alarm
Which I would like to merge/combine into
user_id site_id name
1 1 11 februari,
2006 Jun 01
1
link_to_remote show then hide
Hi,
I have a link_to_remote and it update a div.
After the first click the div is opened with the information.
Now I want to be able to close hide the div .
How should I do it.
Someone at the IRC told me to use toggle.
But what I want is a bit odd. I want that it will not do again
link_to_remote but toggle.
Tnx
Kfir
2006 May 25
11
belongs_to confusion and some other questions - thanks!
Hello all,
Thanks for the help in advance, I am having some trouble with
belongs_to, and I caint seem to figure it out.
I have two tables, one called ''pow_users'' and one is called ''pow_site''
pow_users has a field called site that has the site ID for primary id in
the pow_site'' table.
the pow_site table setup as the Site class with the following:
2006 Jan 18
8
BlindDown on a div with overflow: auto...
I have a div with overflow: auto... BlindUp works fine. But BlindDown
simply waits the duration and shows the div at full size (no blinding
down effect). If I remove overflow: auto it works fine. Why would this
work for BlindUp but not BlindDown?
Sincerely,
Ryan Gahl
Design Engineer
Camtronics Medical Systems (an Emageon Company)
Ryan.gahl-nlycWCgr5/vuufBYgWm87A@public.gmane.org
2006 May 23
7
self-referencing has_many
Having a devil of a time finding records in a self-referencing has_many
table relationship.
Everything is working find looking at the has_many and the belongs_to
relationship.
But, when I try to find all "orphans", records that are neither a parent
nor a child, I can not find a query that work in ActiveRecord.
This query works in MySQL:
SELECT * FROM templates
LEFT JOIN templates
2006 Apr 19
4
Weird Problem - probably a noob mistake
I was up late last night trying to find the cause of this, but I''m
stumped.
I have this relatively simple controller to load up a bio. It''s basicly
id, name, desc, type (I use STI).
class BioController < ApplicationController
layout ''layouts/singlepanel''
def index
@bio = Bio.find(:all, :conditions => [''site_id = ?'',
2006 Mar 21
9
IE flakiness?
I set up a simple BlindUp and BlindDown div that works seamlessy in Firefox
but doesn''t work as smoothly in IE. When blinding down, the whole div
flashes and then Blinds down. The same thing when blinding up. Is this
something that is fixable?
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Jun 24
3
flashing divs in IE with use of BlindUp and BlindDown
I''m having an issue with flashing divs in IE (firefox is fine and the
only other browser I''ve used)
My scenario is as follows. I have 2 divs (initially hidden) and using
the BlindDown and BlindUp functions (possibly others) the divs flash
when starting to roll down in BlindDown (due to the Element.show call)
and also at the end of the BlindUp call (due to the Element.hide call)
2005 Oct 11
2
Effect.BlindDown height clipping bug
There seems to be a bug with the queueing of the BlindDown effect.
I have built a test page that highlights the problem here.
http://dev.lunny.com/test/blindclipping.php
When using queueing with a BlindUP/BlindDown combination, the
BlindDown gets its height of the final state from the current height
of the element when the effect is called. This causes the finish
height of the blind down
2017 Jun 12
2
plotting gamm results in lattice
Dear all,?
I hope that you can help me on this. I have been struggling to figure this out but I haven't found any solution.
I am running a generalised mixed effect model, gamm4, for an ecology project. Below is the code for the model:
model<-gamm4(LIFE.OE_spring~s(Q95, by=super.end.group)+Year+Hms_Rsctned+Hms_Poaching+X.broadleaved_woodland? ? ? ? ? ? ?+X.urban.suburban+X.CapWks,
2005 Jul 27
4
safari vs. firefox on mac os x: flickering combination effects
Hi.
I''m wondering if this is a documented problem. Combination effects
such as .BlindDown or .SlideDown exhibit a not so fun flicker at the
end of their rendering process in Firefox on Mac OS X. This does NOT
happen in Safari.
Does anybody know how to fix this or if it will get fixed in a next
release?
All best,
Tench
2006 May 20
10
Changing the height of LI elements to achieve such an effect?
Hi Everybody,
I was wondering if there is such a work done with Scriptaculous/Prototype
before and if not how to achieve it?
Example : http://www.anatolip.com/
It is done with codes borrowed from moofx and his own codes.
Thanks in advance
Danial
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Mar 17
3
Updating Table without ID Column
Hey All,
I''ve been having a slight problem updating attributes for a row that
matches something other than it''s ID...For ex:
My table that has 3 rows..ColumnID, ColumnTitle, and ColumnDescription.
I want to update a row in that table WHERE CoumnTitle = @myvar....But
whenever i run update_attrbutes[:mytable] it''s looking for an id for the
record when i need to to
2005 Nov 10
1
Effect.BlindDown: element.style has no properties
I''m running Typo, and after a comment is successfully posted, Typo
runs this snippet of Javascript:
new Effect.BlindDown($(''commentList'').lastChild);
which throws the following error under Firefox 1.5rc1 (OSX)
Error: element.style has no properties
Source File: http://laughingmeme.org/javascripts/effects.js
Line: 754
The problem being that lastChild() is returning
2007 Jun 16
3
Help with effect queue.
I have an interesting challenge for you. I am using both Scriptaculous
and Prototype on a web site (not using Ruby) and I am trying to queue
effects and updates. Here is the situation - I have a page with
editable blocks, when the user clicks on the edit button under the
box, I want it to:
1) Use Ajax to go out and get the code to build the editor form.
2) When it has the form, use Effect.BlindUp