similar to: where to define a struct

Displaying 20 results from an estimated 600 matches similar to: "where to define a struct"

2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post. I am trying to configure file_column plugin so that it stores the images in a directory completely outside of RAILS_ROOT. I have no problems in storing the files by setting :root_path option. But I can''t get to display these images using ''url_for_file_column''. What I get instead of the image is
2009 May 25
1
Help --- My phone number field saves blank
I have a phone field in my table. But in my form i have two text boxes to get the phone number and the country code like below Enter country code ----- Enter phone code ------ In my table i have to save the phone code field after joining the above values with "-" symbol. Example => 0225-25874255 I dont have table field for country_code . So i created like below attr_accessor
2002 Nov 24
2
vpopmail support?
Well, I read that back in 0.98 or so vpopmail support should work so I assumed it would be enabled in 0.99 but here's what I get. gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib -I/usr/local/vpopmail/include -g -O2 -Wall -W -g -O2 -Wall -W -c userinfo-vpopmail.c In file included from userinfo-vpopmail.c:12: /usr/local/vpopmail/include/vpopmail.h:133: syntax error before `*' ***
2002 Dec 22
1
[Fwd: ./configure options..]
Oops, wrong address.. -------- Original Message -------- Message-ID: <3E0618CB.1060106 at is.a.fakepope.com> Date: Sun, 22 Dec 2002 11:55:55 -0800 From: Jesse Peterson <erage at is.a.fakepope.com> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20020901 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dovecot Mail List <dovecot at procontrol.fi> Subject:
2009 Jul 07
1
Adding data in two tables simul;taneously with Validations
Hi All, I have 2 tables 1] user_infos & 2] users class UserInfo has_one :user validates_presence_of :city class User belongs_to :user_info validates_presence_of :first_name i write following code in my create method. @user_info = UserInfo.new(params[:user_info]) @user=@user_info.build_user(:first_name=>'''') if @user_info.save else end now what i want is to
2003 Feb 25
2
syntax rules
hi, i lost half a day trying to figure out how r is parsing statements in multiple lines. can someone explain (or direct me to documentation) the following. consider the following statements in a program file, say foo.r: a <- 1 + 2; b <- {1 + 2}; {c <- 1 + 2}; d <- c(1, 2); if i do source("foo.r"), i get a=3, b=2, c=1, d={1,2}. according to the r language definition
2003 Jan 17
1
Unable to Log in on FreeBSD server?
Hello! I recently compiled dovecot 0.99.7 on a FreeBSD 4.3 server, and have been having problems with logging in and password authentication. a. I can't seem to get it to compile MD5 support -- it only seems to support plain, plain-file, and pam. b. Whenever I try to log in, I always get something along the following lines in /var/log/messages .... Jan 16 17:52:15 akira imap-login:
2008 Feb 14
4
How do I access this parameter?
Hi, I have a form for creating users ... <% form_tag ''userconfirm'' do -%> <!-- more code --> <p><label for="user_login">Username</label><br/> <%= text_field ''user'', ''login'' %></p> <p><label for="user_password">Password</label><br/> <%=
2003 Jan 14
1
0.99.7 out
This one seems to be actually working. Also rewrote doc/index.txt in case someone is interested.
2019 Dec 23
3
macintosh disconnect problem
Hi all, We're having trouble with Macintosh clients (at least) being disconnected from Samba. Below is one macintosh console output when this happens, filtered by "smb". (Yeah, maybe some clues are missing...) ATM I don't see anything that stands out in the Samba log file. However one thing I don't see in the samba log file is session disconnects. Does anyone
2003 Feb 19
3
working with list
hi, i have two questions: (1) lookup: given a list of 'strings' in a list, i want to know the index of a given string in the list. if the string is not in the list, the index can be 0 or length()+1. for example, suppose i have names <- c("dog", "cat", "pig", "fish"); then i want lookup(names, "cat") to return 2 and lookup(names,
2009 Nov 11
6
HeLp oN my database
Using my application i can able to save a new record into my db but i cannot update a existing record into my db. using update query i can able to update my records. but using update_attributes it doesnot update my records. even i cant find any errors in logs or something. throughout my application i can able to save a new record but unable to update my existing records. actually i have changed
2016 Jan 23
3
Best way to sync Samba AD 4 LDAP with OpenLDAP
Hello all, At this moment we are still using Samba 3 for our Windows clients but we are in need for an Active directory. So the best solution for us looks like migrating to Samba 4 AD. But... we have a very robust OpenLDAP setup that we want to use for our default user administration and don't want to give this up. We really would like to syncing information from and to Samba LDAP but my
2008 Oct 27
8
pagination in ajax
hi, I am curently using rails version 2.1.1. Currently i have done simple pagination using will_paginate plugin.it works.but when i am trying pagination using ajax with help of will_paginate plugin it wont works.i am also using RemoteLinkRenderer helper, but it gives an error uninitialized constant RemoteLinkRenderer. can anyone provide any tutorial or sample code so that i can
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
Hi all: I've been working on porting Swfdec to Mac OS X on my own time. So far I'm making some progress; stuff is displaying and events are working. I still have a bit of work to do, but in the meantime, I have some questions: 1. How does one get the ability to commit things to the repository? I don't expect this right away; I'll probably just distribute the Mac OS X
2007 Mar 16
0
MAX TNT Question
Hi ALL, I'm using this TNT to front-end an asterisk cluster, working pretty well so far. Some T1's are inbound from PSTN PRI's and others are Outbound to PSTN PRI's. Specifying what traffic to send out what PRI is pretty easy, we have unique trunk numbers assigned to specific T1's or groups of T1's, so when I send SIP traffic to the TNT, I prepend the dialed call with
2006 Jan 04
7
variables in layouts
I have a layout that provides the basic outline of each page in my app. It has a title, footer and a navigation bar. In the title I want to put the name of the current user that is logged in. I could do something like @session[:username] but I would rather encapsulate that into a single variable so that I can change the key in the session map if I want without having to goto each page that
2008 Mar 02
0
Cisco 7970 - register with NAT phone
continuing discussions of 79xx issues. i've seen referenced and am experiencing difficulty getting a 7970 to work behind NAT to a public asterisk server. i am successful with 7960s. 1. SIP load is 70.8-3-3SR2S 2. config works fine if 7970 is connecting to an asterisk server a local LAN (same subnet) 3. when debugging it in a NAT'd environment I see the register and
2011 Mar 02
1
Registering Cisco 7942G IP phone with Asterisk!.
Hi, ? We are new to IP phone firmware upgradation (Sorry if it is a re-post of previous question(s)). ? Recently we have bought a cisco 7942G IP phone. It currently has SIP 42.9-0-2SR1S firmware loaded on it. We do not see any option to configure a SIP Proxy where we can provide SIP Server (Asterisk PC/Device)? IP address (with current firmware on it) to register it with Asterisk. ? Do we need to
2006 Mar 10
2
7970 Configs
Anyone have the 7970 xml config for sip yet? Aaron