Displaying 20 results from an estimated 8000 matches similar to: "Calling find()"
2006 Feb 14
2
AJAX on page load
Ok, I''m missing something obvious but after some reasonable looking in _The_
Rails book (sorry haven''t gotten the cookbook yet) and these archives I
don''t see a solution to my question.
Question:
What is the cleanest way to load a div via AJAX when the page loads - no
user action necessary. I don''t really want to hack in a hidden remote form
or link that is
2006 Feb 14
8
routing failures
probably something really simple but I don''t understand.
Shifting to Apache to w/ fastcgi (definitely feels faster than webrick)
Anyway, I set the default route in routes.rb to be
map.connect '''', :controller => "placements", :action => ''list''
which worked once I figured out apache...
Anyway, now that I have done that, all attempts
2006 Feb 14
1
Another HABTM Question
Hi there,
I have a question on what would be the best way to save a HABTM model.
A posting habtm categories, and a category habtm postings.
class Category < ActiveRecord::Base
has_and_belongs_to_many :postings
end
class Posting < ActiveRecord::Base
has_and_belongs_to_many :categories
end
In my blog_controller, where the actual posting is saved, is where I
think I''m
2006 Feb 06
9
tests fine, but fail under rake
Hi there,
So I have an odd error at the moment that only occurs when I run tests
via rake. It''s happening with two tests now. Under a simple ruby run,
the tests are fine, e.g.:
D:\User\Code\ruby\prometheus>ruby
test\functional\story_comments_controller_test
.rb
Loaded suite test/functional/story_comments_controller_test
Started
.........
Finished in 2.37 seconds.
9 tests, 65
2006 Feb 14
4
Newbie stumped by "NameError in "
Help. I cannot find any help by searching...
I''m slowly creating an application using tutorial examples, etc, but I
think I''m missing something real basic:
Here''s the error message:
NameError in Mindreadr#display_images_from_mindreadr
undefined local variable or method `mindreadr_open_socket'' for
#<#<Class:0x37c3b08>:0x37c3a30>
Here are
2006 Feb 07
4
Ruby, Rails & Inheritance
Hi!
I am looking for a solution for the following problem:
Some of my models share some attributes and also was in need for some
extra features, so I created a class "RecordWithFeatures":
-----------------------------------------------------------------
class RecordWithFeatures < ActiveRecord::Base
# @Override
def self.descends_from_active_record?
superclass ==
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action?
Thanks
Frank
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 14
8
Assigning has_many child in parent creation question
If I have...
class Parent
has_many :children
end
class Child
belongs_to :parent
end
...then...
* Assigning a _new_ child during parent''s creation saves the child
record with the parent''s id.
child = Child.new
Parent.create(:children => [child])
# Results in child being associated with parent
* Assigning an existing child after a parent''s creation
2006 Mar 03
2
Autofill phonebook??
Most softphnes (like Idefisk and X-Lite) have a phonebook. Is there a way I can fill those phonebooks with info from the Asterisk server?
Amaury Rodr?guez
http://liberadospucmm.blogspot.com
http://groups.msn.com/telematicaPUCMM2002
Go OpenSource And Be FREE!!
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
2006 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book.
The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application.
For instance, it will be great to see how one can implement the typo blog
2006 Feb 06
4
Basic MVC in RoR question
Ok, Here''s my controller:
def create
trainingplan = Trainingplan.createplan(@params[:startdate],
@params[:enddate], @params[:hoursperweek], @params[:programtype])
end
My model is:
class Trainingplan <ActiveRecord::Base
def self.createplan(stardate, enddate, hoursperweek, programtype)
stardate = startdate
enddate = enddate
hoursperweek = hoursperweek
programtype
2005 Apr 09
3
CallerID name lookup AGI script
Hi all,
My VoIP provider (race.com) doesn't send name info with CallerID, so I wrote
an AGI script that does the following:
1) If it's a toll free number (800|888|877|866), set the CallerID name to
"TollFree Caller"
2) Use curl to look up the number in Google phonebook
3) If a business listing, set the CallerID name to business name, as is.
4) If it's a residential
2006 Jan 30
3
adress book
Hello to all
Im using X-lite, eyeBeam and Cisco 79XX phones and I would like to know
the best way of implement a centralized address book system.
Maybe the solution is LDAP, but these clients doesnt seem to support
LDAP.Who should contact the LDAP directory? the SIP clients or the SIP
server?
Thanks
Joao Pereira
2007 Jul 23
6
phone directory with asterisk
Dear all
I have configure asterisk with 100 SIP PHONE ( SNOM ) but now thing is that my boss need phonebook feature find extention number by Pbook so i have read about it there is a feature in asterisk but it is with voicemail now i have IP SIP phone of SNOM so how to fine phone number by SIP phone ?? how to asterisk directory work ?
Rgd
satish patel
2015 Jan 26
3
Dialing from phonebook, and hiding the dialed number from the user.
Hi,
does anyone have a recommendation for a SIP phone, which
allows dialing from a phonebook, and hiding the dialed number
from the end users? Also from the call history of course.
It seems Mitel can do this, and I have a use case where this is
a requirement.
Thanks,
Antonio
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 May 01
3
Display Caller ID of called party
Not sure if this can be done or not, but I can't seem to find it
anywhere on the Wiki. When dialing interoffice with Asterisk 1.4.2, I
would like to have the caller id of the person I am dialing displayed
and not the number I just dialed. Is this possible? So, if extension
4023 is John Doe, and I dial 4023, my display should read John Doe and
not 4023. I am using a Polycom 501 by the way in
2015 Dec 15
5
How can I change the localSID for a SAMBA Server?
Hi Marc,
We are running Samba Version 4.1.6-Ubuntu on Ubuntu 14.04 LTS. Is there any
other specific information you need?
Thanks,
Byron
--
*Byron Bogaert*
*IT System Administrator*
Wikimedia Foundation
Imagine a world in which every single human being can freely share in the
sum of all knowledge. Help us make it a reality!
https://donate.wikimedia.org
On Tue, Dec 15, 2015 at 12:53 PM, Marc
2005 Jan 05
3
Tuning string matching
Dear list,
I spent about two hours searching on the message archive, with no avail.
I have a list of people that have to pass an on-line test, but only a fraction
of them do it. Moreover, as they input their names, the resulting string do not
always match the names I have in my database.
I would like to do two things:
1. Match any strings that are 90% the same
Example:
name1 <- "Harry
2010 Apr 05
5
Problem syncing custom fact
I am trying to get a custom fact to sync. The fact is in a module. It
will sync if I run puppet with "--pluginsync" but not otherwise. I
have "pluginsync=true" in my puppet.conf. Shouldn''t the command line
option and puppet.conf option have the same results?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
2015 Dec 15
4
How can I change the localSID for a SAMBA Server?
Hi Rowland,
We need to change the SID on a standalone server because it needs to also
act as a File Server. The authentication comes from LDAP, and we have
existing entries in LDAP for SID of the domain. Instead of change all the
SID in ldap, we would like to be able to change it on the server.
Hope this helps.
Thanks,
Byron
--
*Byron Bogaert*
*IT System Administrator*
Wikimedia Foundation