Displaying 20 results from an estimated 200000 matches similar to: "Can components call components?"
2006 Mar 08
1
Components calling components...
Hi,
I''m relatively new to ruby and rails. I would like to have a sidebar
component call one of several other constituent components.
I''ve run into some problems, and so I''ve pruned things back to a
relatively simple case.
I have a sidebar component. Renders great. In it''s layout, I call
render_component for another component I would like in the sidebar.
2006 Apr 04
1
Manipulating has_many :through associations
Hi,
I haven''t done any associations before, so please forgive my incorrect
use of terminology...
If I set up a has_many :through association, can I manipulate the
associated instances directly (like an Array), or do I need to
manipulate the join model?
For example, suppose I have two classes and the associated join model:
class foo
has_many :foo_bars
has_many :bars, :through
2006 Apr 18
2
link_to_function onmousedown
Hi,
Is there some way to produce an anchor that looks like the following
using helpers, or should I just code it in the rhtml like this?
<a href="#" onmousedown="javascript:foo(); return false">
Thanks,
Brad
--
Bradley Mazurek
2006 May 24
1
How to marshal Javascript data?
I''m trying to marshal some information I have in Javascript, and send
it over an AJAX request to the server, specifically to be stored in a
model on the server side.
I have some Javascript routines I wrote that gather information about
the user selection. I see that the link_to_remote has a :before
option in which I can write Javascript to collect what I need, but
right now I''m
2006 Jun 09
8
Installation on OSX...
Hi,
Just got my first Mac. I''m trying to install rails on it, using the
instructions in the rails wiki:
http://wiki.rubyonrails.com/rails/pages/HowtoInstallOnOSXTigerUsingDarwinPorts
I go to install mysql, and the version of mysql supported by
DarwinPorts appears to be 4.1.18. But all the sites appear to only
have 4.1.19 or 4.1.20. So it looks like DarwinPorts is over a month
out
2006 Mar 10
1
Problem rendering components
I have an AccountsController that inherits from ApplicationController.
In ApplicationController I define a generic layout. In this layout I
render @title that is actually assigned in the AccountsController but
has a default value in ApplicationController.
In the layout template, I also have the standard contents_for_layout and
lastly, I have a render_component. The component called from the
2006 May 25
0
Double Render Error...
I''ve been fighting with a Double Render Error.
I have some sidebar partials that I render to strings in my
application controller''s before_filter:
@left_sidebar_for_layout = render_to_string(:partial => ''shared/left_sidebar'')
Then in my application layout, I simply add them as a string, like I
would @content_for_layout
This normally works fine.
However,
2006 Mar 12
0
Unexpected attribute modification
Hi all,
I''m trying to do multiple render_to_string() calls in a method call,
and I''m getting attributes being modified in unexpected ways.
@left_sidebar = render_to_string( :partial ..... )
puts @left_sidebar.id (-> 123456)
@right_sidebar = render_to_string( :partial .....)
puts @left_sidebar.id (-> 234567 WTF!?!?!)
puts @right_sidebar.id (-> 345678)
2006 Mar 16
0
Conflicting Attributes in Model and Join Table...
Hi all,
I''ve got a Post and User classes. The Post has a user_id attribute to
point to the user that created it.
I want to implement favorites, so I made Post and User both
"has_and_belongs_to_many" and created a favorites join table. The
join table has a post_id and a user_id column.
Now when I get my post everything seems to be okay, but in some
contexts, the user_id
2006 Mar 17
1
Re: DUNDi .... Halfway and CLUSTERING
Do you mean the peristence of connecting a specific phone to a specific
server? If so, then it's relatively easy. The ldirectord has a persistence
setting that does that. If I'm misunderstanding you, then could you explain
further what you mean?
Regards,
- Brad
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On
2002 Nov 22
0
RE:swat in samba-2.2.7
Hi,
I have installed samba 2.2.7 and cannot get swat to work. I have entry in
/etc/services file and alo in /etc/xinetd.d/swat.
I'm logging in as root/rootpassword from local or other machine. i'm
getting error
401 Bad Authorization
username or password incorrect
What am i doing wrong???
Thanks
Mohan
-----Original Message-----
From: samba-request@lists.samba.org
2006 Mar 17
2
How to let the layout be more OO?
I am confused about the @content_for_layout.''cause it will display all
the views in the layout.Do I have any methods to let the layout be more
OO? I mean that for example,the app currently have more than one views
to be displayed,but only some of them to be displayed at the same time
at different <div></div> units. I hope there exists a kind of way that:
<%= if
2002 Jun 27
0
RE: Browsing cont'd
Don't forget to add the #PRE after the host info; that way it preloads it.
Create one lmhosts file for the Win boxes, and copy to either
\windows (win9x)
\winnt\system32\drivers\etc (NT/Win2k/XP)
then open a DOS Prompt and type nbtstat -R to flush/refresh
the cached info.
The samba box's hosts go in /etc, /lmhosts go in /etc/samba
(if you're using the current defaults. Put the
2002 Dec 06
1
typical performance on 10mbit switched network
I've never been happy with my samba box's network performance.....
I see about
60K/s between
1 client and my samba server
the load average on the server is nearly 0
and it's reading from an ide raid5
so i don't think that's a bottleneck.
I'm running samba 2.2.7 with
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192
SO_SNDBUF=8192
and log level 2
(i know
2002 Nov 22
1
smbclient says NT_STATUS_PASSWORD_MUST_CHANGE - how to change password?
After a thorough google and marc search i'm shocked to find
this problem unmentioned...
How does one go about changing the windows password from a unix machine
with no physical access to the windows machine sharing things?
samba 2.2.3a (debian woody)
windows2000 server
thanks!
brad
note: here's my latest attempt. I tried this with and without a -c
parameter
smbclient //coco2/c$ -c
2006 Jan 25
0
can components have model?
Hi all, I''m trying out components now, but run into problem,
I have a component call remark, that is render in the customer page, so
that user can add remarks for customer. But when I try to load the page, it
never got loaded.
I wonder if components can have model as well?
2002 Sep 19
0
Unexpected Tag Errors - Solution
Hi all.
After weeks of debugging etc. I found the problem.
It would seem like its a compiler error on SCO, because in line 286 of io.c
-
read_unbuffered() - it declares a 'static' variable (type size_t) called
'remaining',
and while the ANSI standard says that static vars are automatically
initialised
to zero, it would seem that this is not always the case. By explicitly
2004 Mar 18
1
samba 3.0.2a-Debian +ldapsam +smbldap-tools 3.0rc4-1= newly created users can't log in
There is something very strange going on with new users...
i've created a new user using the smbldap-tools
creation goes fine...
smbldap-useradd -a -g labusers -G power_users -n -c 'test user' -m -P
testuser
I've set the password and i see this in my ldap dir:
ldapsearch -x -D cn=ldapadmin,dc=bitc,dc=unh,dc=edu -W
'(&(uid=testuser)(objectclass=SambaSamAccount))'
#
2002 Dec 08
1
roaming profile fails with NT_STATUS_BUFFER_TOO_SMALL
i'm running (well trying to run) samba3a20-4 from debian
with sam backend = ldapsam_nua:ldap://localhost/
when i try to log in I get a message saying that the roaming profile has
the wrong permissions. There is no profile in place for this user... it
should be created from the netlogon share (which was copied to netlogon
via the system control panel with "everybody" given permission
2012 Aug 27
0
How can I find the principal components and run regression/forecasting using dynlm
Hello,
I would like to write a program that compute the principal components of
a set of data and then
1. Run the dependent variable against the principal components (lagged
value)
2. Do prediction
, following Stock and Watson (1999) "Forecasting Inflation". All data
are time series.
Now I can run the program using single factor (first principal
component), but I