Displaying 20 results from an estimated 48 matches for "cairns".
2006 May 10
4
Single Table Inheritance problem
I have two tables I am using single table inheritance with: Page and
Item. "Page" has many "Items"; "Item" belongs to "Page".
Item Model:
class Item < ActiveRecord::Base
end
class Article < Item
belongs_to :page
end
Page Model:
class Page < ActiveRecord::Base
end
class Issue < Page
has_many :articles
end
In my controller, when I
2006 Apr 11
15
Migrating rails 1.0 app to 1.1 - Noob question
Hi all, I''ve upgraded my system to Rails 1.1.1 successfully.
After much looking I haven''t found out how to migrate an existing
application to a new rails version though. What is the procedure, if
any, for upgrading the application I''ve developed in 1.0? Is there a
script I need to run?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 12
5
railsapp/db/migrate Newbie question
I made a mistake when making my first app. I did not use the:
ruby script/generate model <modelname>
method for creating my models. I more or less hand crafted each og
them. Is there a way to go back so I get my db migration scripts to
populate?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 15
6
Good image API for RoR?
Hi, I need a relatively simple image api for the app I''m writing. I
need to copy photos, rename them, and re-size them to put them in a
standard format.
I tried using RMagick/Imagemagick, but the photos would be corrupted on
re-size, so I''m looking for some suggestions.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 14
3
Many to Many
Hi, I have three tables, a domain of Sites, a domain of Users, and a
junction of Sites_Users with the tables named as such.
My RoR application has a model and controller both User and Site. I
tried to add a controller and model named Site_User but I can''t
reference any functions in the controller, I get an Uninitialized
Constant error.
I''m very new to RoR, but not to
2006 Jun 22
2
RoR Event Calendar
Does anyone know of a good open source event calendar done in RoR?
--
Posted via http://www.ruby-forum.com/.
2006 May 08
2
Noob Question - Variable Scope
I feel awful asking such a basic question, but here it goes....
I have a controller, "NewsController".
The user enters and the "list" action is called and I populate an
instance variable "@news" which contains all the elements I''d like to
display using a form.
The user then changes something and the "update" action is called.
Is
2006 May 08
3
Expansion module
Hello All,
Does anyone know of an expansion module (keypad extension for attendant)
that works with the gxp-2000?
- Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060508/f49a24e3/attachment.htm
2006 Jul 12
10
Recurring mySQL Error
I am getting the following error when running my app on the server:
mysql::Error: Lost connection to MySQL server during query: <some SQL
here>
The SQL is usually a SHOW FIELDS statement, but after scouring the log
files I see that it occassionally happens with other queries as well.
I did a little research, and one topic I found suggested that I edit the
/etc/mysql/my.cnf and increase
2006 May 11
18
Object constructors - Noob Question
Hi: Sorry if this is a painfully stupid question...
I have some data I need through the life of someone''s session. In the
application controller, I grab the data and store it like so:
session[:foo] = @foo
Now, whenever I need to access data about foo I don''t need to cause any
DB io, I can just grab foo from the session (it''s very small fyi).
Here''s what I
2006 Apr 27
2
Noob Design Question
I have chunk of data that I need for the life of the session. I am
going to use it for selects through out my app.
Is the best place to keep this data in the session? Is the session
easily spoofed or cracked? While viewing the data is not critical in
itself, spoofing it could cause me massive headaches.
--
Posted via http://www.ruby-forum.com/.
2002 Oct 29
1
Matching two redhat servers
...tc\samba\smb.conf files are identical, as are the \etc\hosts files. I'm using the same cable and W95 box. Both servers run dhcpd to the W95 box successfully.
Can someone list any other configuration files which I should compare? There must be a difference somewhere...
Appreciate the help
Max Cairns
-------------- next part --------------
HTML attachment scrubbed and removed
2006 Feb 27
3
Newbie Question
Hi! I just ran the first few Rails tutorials and I''m really impressed
at how quickly I was able to get something up and running.
I''m slowly emerging from the stone ages, and leaving my powerbuilder
behind ? yes, I know, keep the snickering to a minimum please! I
started into J2EE/STRUTS, but was quickly frustrated by how long it
would take to code anything but relatively
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 Jun 23
13
Best OS Choice for Rails server?
I am going for a dedicated hosted server for a rails app I am working
on, and have a choice from several different operating systems. I
excluded windows 2003 from the list because it has been giving RMagick
fits for me.
The app is Ruby 1.8.4, Rails 1.1.2, mySQL 5.0
The contestants are:
Red Hat Enterprise 3.0
Red Hat Enterprise 4.0
Debian
CentOS
FreeBSD
I''m leaning towards Debian,
2007 Jun 27
1
Zap dialling issues
...;CHANUNAVAIL'
Nathan Dennis
__________________________________________________________
Integrated Solutions (QLD)P/L Phone: +61 (7) 4044 0300
Direct: +61 (7) 4044
0302
124 Spence Street Fax: +61 (7) 4041 6600
CAIRNS QLD 4868 Mobile: 0418 608609
Australia
E-mail: nathan.dennis at i-solutions.net.au
<mailto:nathan.dennis at i-solutions.net.au>
Web Site: www.i-solutions.net.au <http://www.i-solutions.net.au/>
Offices and agents in Cairns - Brisbane - Melbourne -- A...
2006 Apr 30
4
Server IP
Can a ruby on rails app obtain the ip of the server it is running on?
I''d like the application to be able to determine x set of data is for y
data, for example:
These domains all point to the same ip...
mydomain-1.com
mydomain-2.com
mydomain-3.org
I can obtain the domain name from the request by using:
@request.domain
I''d like the application to grab the corresponding ip for
2007 Feb 06
3
Polymorphic either or but not both
I am trying to create a generic person model. Then subclass it as
either a professor or an author. The only problem is that since some
professors are authors, I don''t want duplicate entries. Any ideas on
how to handle this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2006 Feb 28
3
Composite Key Support
Right now rails doesn''t support composite keys, that is id1, id2, and
id3 are in the primary key of the table. Does anyone know if this is
being discussed for future versions, or is it pretty much out of scope?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 25
0
Problems with certain Global Variables not passing correctly.
...nformation assigned to those variables it seems.
Is there another location these variables need to be initialised or
should they work out of the box.
I am using the latest svc from Digium.
Regards,
Michael Dunne
------------------------------------------------------------
Corporate IT Solutions Cairns
P.O. Box 2092 Cairns 4870
Ph. +61-7-4051-4377
Fax. +61-7-4051-4390
Mob. +61-400-141-981
Email. michael@citsolutions.com.au
MCP. #3487294
-----------------------------------------------------------