Displaying 20 results from an estimated 100 matches similar to: "Showing another controllers action"
2017 Nov 30
2
Help avoiding setting column type two times
Hi,
I think and hope this a good place to ask for code review for a R
beginners?
I have made a R script which generates a dataset based on 2009 danish
referendum and it does work.
But I think the code could be better and I would any comments how the
code can be improved.
At least I would like to know how I avoid converting several of the
columns to factors in the end of the code?
2007 Jan 03
3
Self-referential habtm with condition is broken
Here''s a simplistic model class.
class Person < ActiveRecord::Base
has_and_belongs_to_many :relatives,
:class_name => ''Person'', :join_table => ''relatives'',
:foreign_key => ''from_id'', :association_foreign_key => ''to_id''
has_and_belongs_to_many :brothers,
:class_name =>
2006 Jul 26
5
Restricting before_filter to certain actions?
Can you restric before_filter to specific actions?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 14
1
2 foreign keys to one table
Hi,
I have a messaging class that has to relationships to one table
belongs_to :user, :foreign_key => "from_id"
belongs_to :user, :foreign_key => "to_id"
At the min I can specify message.user.login and it will return the
username of last relationship to that table.
how can I get it to bring back both references
ie message.from.login and message.to.login
thanks
scott
2006 Apr 04
1
Redirecting after "new" action
How do I alter the "new" action so that it returns to a page of my
specification (vs. returning to "list")?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2007 Jul 29
1
Help cleaning up domain SID mess...
I have four SLES 10 servers working as Samba servers on the same domain
with an LDAP account backend. Relevant smb.conf entries are:
[global]
workgroup = UNIX
realm = UNIX.UIB.NO
server string = ukl-samba
netbios name = ukl-samba
security = user
allow trusted domains = yes
domain master = yes
local master = yes
encrypt
2005 Jul 18
2
Bulletin Board for Asterisk is Now Available
hi guys:
We have just rented a server and setup a BBS for asterisk discussions at http://bbs.us.xgforce.com
feel free to join.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050718/07587c97/attachment.htm
2005 Dec 15
3
Another session question
I want to give a user a form to create a new Product, but instead of
persisting the product to the database I want to store it in a
session first for category assignment, etc.. (in other controllers)
So when the user describes the product on the form I have a "Save and
Continue" button pointing to the action add_to_product_factory:
def new_product
@product = get_product
end
2009 May 15
2
I simply cannot install R on Ubuntu. I don't know why.
I don't mind using sudo apt-get update/upgrade/install buit I get into
crazy loops (hours) that clearly can't be trusted. But when I use
Synaptic (reload/mark for install R-base) every time I get some list
of things things it want to install as well and syas "Mark" which it
does not do and when I go forward with the Synaptic install of R-base
I get this (and abort) every time:
2005 Mar 04
3
optimization
Ok, so, I''ve written my first app in rails. It''s pretty nifty. Only
one problem. Slower than you could possibly comprehend.
Processing PersonController#show (for 67.138.254.231 at Thu Mar 03
21:04:16 Eastern Standard Time 2005)
Parameters: {:id=>"1", :controller=>"person", :action=>"show"}
[4;35mPerson Load (0.219000) [0;37mSELECT
2011 Mar 30
0
Plot an ols() call from Design
Dear users,
I am attempting to plot an ols() call from the Design package, by
following the procedure explained by Harald Baayen in his 2008 book
'Analyzing linguistic data. A practical introduction to statistics
using R', page 175-181.
I've attached my data to this e-mail (I hope it's small enough that that's ok).
First I paste all the commands I ran, followed by the
2005 Jul 11
2
Unable to dial certain calls
To begin with, I am new to both asterisk and VOIP and although I've
gotten pretty far with my Asterisk setup and have two different sip
accounts working fine for outgoing calls I am having trouble with one
issue.
My problem is that I have another provider who uses IAX2 that I wish
to use for calling various countries, including local (The
Netherlands) calls and calls to the US to
2006 Aug 14
0
undefined method ''render_component_as_string'' - why?
I want to put a ''search_box'' text_field in the header of each page.
The search_box is implemented in a controller named ''users''.
(so Controller_A is calling a component in Controller_B)
When I add this line to my ''controllers/application.rb'' file, I don''t
understand why I get and ''undefined method'' error. After all,
2003 Jul 30
1
netbios aliases
I have set an alias, and it shows up in Network Neighborhood, but when I try
to open it a pop-up window says it is not accessible, "The network path was
not found."
The primary name works fine however. Any suggestions? Thank you.
2003 Aug 27
1
Login Scripts in LDAP
Hi !
I use Samba with OpenLDAP. The Samba users information are
keept in LDAP. I'd like to keep the login scripts in LDAP.
Something knows how can I do this ? And how Samba would read the
login scripts in LDAP and not in netlogon directory ?
Thanks,
Bruno Stella
PS: Sorry by my English :-)
2005 Dec 19
4
need some help designing my messaging system
I am trying to create a messaging system for my users but I''m having a
hard time designing my db. This is what i have in mind, but I am not
sure if its the best approach.
user has_one inbox
user has_one outbox
inbox has_many messages
outbox has_many messages
inbox table
user_id
outbox table
user_id
messages table
box_id (refers to either inbox or outbox - how?)
from_id
to_id
2003 Aug 25
8
No Getent
Using winbind for authentication through PDC.
Problem: Some users do not get access to the samba share and some do.
When I do "wbinfo -u" the users who cannot access show up but when I do
"getent passwd", they are not there. What does this mean?
--
Bob Wooldridge
EDM Incorporated
http://www.edm-inc.com
314 335-6911
2006 Aug 14
2
Undefined Method error for call to ''render_component_as_string''- Why?
I want to put a ''search_box'' text_field in the header of each page. This
common header template is implemented in ''views/layouts/application.rhtml''.
The search_box is implemented in a controller named ''users''.
(so ApplicationController is calling an :action in UserController)
When I add this line to my
2013 Nov 25
7
[releng_8 tinderbox] failure on i386/i386
TB --- 2013-11-25 17:30:12 - tinderbox 2.20 running on freebsd-legacy2.sentex.ca
TB --- 2013-11-25 17:30:12 - FreeBSD freebsd-legacy2.sentex.ca 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
TB --- 2013-11-25 17:30:12 - starting RELENG_8 tinderbox run for i386/i386
TB --- 2013-11-25 17:30:12 -
2007 Dec 13
16
"Tricks" for testing after_create callback???
I''ve got a model Message, which needs to send an email using action
mailer after it''s first saved in the database.
I want to pass the model to the mailer which then uses methods on the
message model to render the email.
So the natural way to do this is in an after_create callback on the
Message model.
But I can''t see an easy way to test this. Here''s my spec