Displaying 20 results from an estimated 27 matches for "kitp".
Did you mean:
kip
2006 Mar 13
2
relationship woes
...key? Is it required for collection<< to work? I would prefer to not
set it if possible since the DB will generate one, but I will if I
have to.
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060313/36f0c9d2/attachment.html
2006 Mar 17
2
Temporary Model Data
...sion? How do I clear it at
the beginning of every request? Models don''t have access to flash, I
don''t think, so I need an alternative.
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/c3795433/attachment.html
2006 Mar 14
7
Overriding new or create for a model
I have a model where I need to calculate one of the fields when I create
a new instance. It seems to me that I should do this in the model code
and that I should override the new and/or create methods.
Is this the right approach and, if so, how can I execute the existing
method but add on my calculation?
I want something like:
def create
-Do the original create first-
field =
2006 Mar 22
9
Display problem
hey guys,
Does anyone know why the french letter "?" is displayed as a question
mark "?" inside an <h1> tag ?
--
Posted via http://www.ruby-forum.com/.
2006 May 22
1
Model Modules, Dev vs Prod
...uninitialized constant'' exceptions for the model. Does anyone know
how to get the development mode to more closely reflect the
production mode?
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060522/c02a805a/attachment.html
2006 Apr 18
1
Shared model with Capistrano/SVN
...the same ''rake deploy'' command for the two apps individually so I
don''t have to deploy both together all the time. Any ideas?
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060418/0df9e910/attachment.html
2006 Mar 14
1
Where to validate?
...e the relationship together because there is no PgmVisit.id until
the record is saved and I do not want to save it until a later stage.
Any suggestions?
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060314/f73ebc5b/attachment.html
2006 Mar 30
1
strange has_many array problem
...a new array first:
=================
Array.new(visits).find_all do |visit|
visit.coming?
end
==================
Can someone explain this to me?
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060330/563f9eb1/attachment.html
2006 Mar 28
8
1.1 broke my app
I upgraded to Rails 1.1 (ruby 1.8.2 and ruby 1.8.4 on RHEL 4 using
webrick or fastcgi) and all of a sudden I get this hitting a
controller:
wrong number of arguments (1 for 0)
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace |
Full Trace
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:379:in
2006 Mar 21
8
Redirect without port number?
On my host I run my lighttpd instance bound to a specific port and my
hostname is mapped to this port (I''m not exactly sure how this is
accomplished, but it is lighttpd also listening on port 80 which handles
this for me I believe).
A redirect from rails includes my local port number in the request, so that
it shows up in the address bar. I prefer people not to see this - I
2006 Mar 14
3
Check whether externam URL is valid?
Hey,
I have users entering URLs into my app, is there anyway in which I can
check to see if the URLs actually point to something before saving the
user input? Maybe a kind of ''ping''-action that returns true on success?
(btw: does anyone of a tentative release date for Rails1.1? I''ve been
slobbering all over my RailsRecipes book and I can''t wait! Also, Scott
2006 Mar 14
2
Two unsaved related objects
...e it is saved and have the children validated
too?
Any workaround I see requires a lot of coercing of these
relationships together over and over again.
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060314/ff345d10/attachment.html
2006 Mar 29
3
Grouping Controllers into Modules - Doesn''t work!?
Ok, what I want to achieve is:
http://<mydomain>/admin/products
calls app/controllers/admin/products_controller.rb
According to Agile Development with Rails this should work.
I executed the follwing commands:
rails myproj
cd myproj
script/generate controller Admin
script/generate scaffold Admin::Product
this creates app/controllers/admin/products_controller.rb all the views
&
2006 Mar 14
5
Unable to display errors for multiple records
Hi,
I''m trying to save multiple records of the same model in one go. Which
is no problem at all. Problem starts when I want to introduce error
handling. The problem is that no record should be saved when one of the
records contains an error. I tried it as follows:
session[:infos].each do |info|
@quest.name = info["name"]
unless @quest.valid?
@errors_found = true
2006 Mar 04
5
has_many and belongs_to example?
Hi!
If i have 2 tables i.e. product and images and product has_many images,
image belongs_to product - how to create _form.rhtml, new/create and
edit/update methods in product controller, so in a single form i can add
one product and MANY (let''s assume for now that this number is fixed)
images for this product?
Pleeeeease help me :)
--
Posted via http://www.ruby-forum.com/.
2006 Apr 21
0
model modules
...39;
...
But without any feedback I cannot tell if I am doing it right. Can
anyone help? Can I get an example of a modularized model that I can
look at?
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060421/dc50f258/attachment-0001.html
2006 Mar 28
0
Multiple databases & testing
...39;t want to have to redo it for each release of Rails.
Will FlexibleFixtures support transactions for multiple databases? If
it does then it might work.
-John
--
John Smilanick
Computing Staff - Webmaster
Kavli Institute for Theoretical Physics
University of California, Santa Barbara
jsmilani@kitp.ucsb.edu
(805) 893-6307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060328/c2fad12a/attachment.html
2006 Mar 30
1
Passing values to a Partial
Hi,
I cannot seem to find out how to pass in a value to a partial. Can
anyone help me?
What I am doing(in the code below) is calling a function in my
controller called setobject. This function just redraws the partial. I
want to be able to change the value @objectname, redraw my partial and
have it be able to use that value. The first the page is drawn it works,
but when i call setobject it
2006 Mar 29
3
Loading records during class definition
I''ve created a look-up table in my database that currently has 4
rows. I want to access these as constants in the application because
that''s effectively what they are. I tried this...
class StockRuleLevel < ActiveRecord::Base
has_many :stock_rules
SITE = find(:first, :conditions => "type_code = ''site''").id
MAKE
2006 Mar 14
2
autocomplete using other models
I''ve asked this in various ways but I can''t seem to get much traction -
my guess is because not many people are doing this.
I am working in a controller/views called placements. Placements
belongs_to :client
I have a clients model/table - clients has_many :placements
in placements/find...this works fine...
<%= text_field_with_auto_complete :placement, :clwholename, {} %>