similar to: no build! on association?

Displaying 20 results from an estimated 1000 matches similar to: "no build! on association?"

2006 Nov 04
2
strange errors in dev.log and webserver log
Hi guys, I have encountered a strange error in one of my applications. The details are the following: The application is a very simple one, I have one model, Cards, it has some pretty basic stuff, some after_save methods for saving uploaded files to their places. I have an UI where I can manage the Card records, with the default methods, including ''edit'' cards_controller.rb:
2006 May 11
1
quick link_to question
Hey there, is there a way to include more variables besides the id as a hidden field (to not show in the url) when i''m using :post => true on a link_to() ? Thanks, Andr?s -- Andr?s Tarsoly tarsolya@gmail.com
2006 Aug 10
2
rendering templates from an engine''s app dir
Hi there, i have a rails application which use the active_rbac engine for user and access control. How can I use the original login, etc. forms which were provided with the engine as partials in my application? I''ve tried all of the below mentioned approaches and it seems so that I cannot reach the templates provided under the [RAILS_HOME]/vendor/plugins/active_rbac/app/views directory.
2007 Oct 26
5
specing rescue, ensure and else blocks of an Exception
Greetings, I''m using rspec with rcov for my applications and there is one issue which I cannot solve nor can find any proper information regarding it: specing what is in a rescue block in case of an exception. I''m using Ruby on Rails and I usually make use of exceptions in my controllers, like the following example: def action @foo = Foo.find(1)
2007 Oct 26
7
Weird failing spec
Hi guys, I have a weird failing spec, for which I just cannot figure out the reason of failure. I''m now rewriting my controller specs based on the advice of David and Ashley, and I got stuck on this (see: [rspec- users] specing rescue, ensure and else blocks of an Exception). http://pastie.caboo.se/111221 I''ve tried everything, like stubbing out :update_attributes! , even
2006 Aug 10
6
Partials - asked before never got reply
I''m trying to figure out how multiple partials in one page would be configured when they are based on some action in the controller. As an example - I have a main/welcome page. If someone new or a user not logged in arrives at this page I display both a registration form and a login form. However, if they are logged in then those forms should not show up on that page. Also should
2010 Apr 12
1
rsync thinks the xttarr is not updated
I am running rsync 3.0.7 and I think I have hit the following bug from 3.0.1: NEWS for rsync 3.0.1 (3 Apr 2008) Protocol: 30 (unchanged) Changes since 3.0.0: Fixed a bug in the handling of xattr values that could cause rsync to not think that a file's extended attributes are up-to-date. However because I am running rsync over a lustre file system, I am not sure if this is the same bug.
2013 Aug 27
1
R Language Newbie
Hi, set.seed(29) myVector<- rnorm(100) ?seq(1,100,by=2) # [1]? 1? 3? 5? 7? 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 #[26] 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 myVector[seq(1,100,by=2)] rev(myVector) ?sum(myVector>0) #[1] 46 #or ?table(myVector>0) # #FALSE? TRUE ?#? 54??? 46 A.K. Hey guys, this is my first week
2005 Aug 10
6
Hieraki + FCGI + Problem
Hi, I''ve downloaded the latest stabil Hieraki. I have ruby 1.8.2 (2004-12-25) [i686-linux], the latest rails (and gems, too), Apache/1.3.33 (Unix) and mod_fastcgi/mod_fastcgi-SNAP-0404142202. I''m successfully running Typo (from SVN) as a FastCGI application. Hieraki works well with "script/server", and works well as a .cgi (just very slow). My problem is, that
2006 Mar 20
9
jEdit Snippets for Ruby on Rails
----------------------------------------------------- Announcing: jEdit Snippets for Ruby on Rails ----------------------------------------------------- I thought I''d "give a little back to the community" and whip up some SuperAbbrev files for ruby and rhtml that mimic all of the Textmate Rails bundle snippets. Note: This was totally inspired by Textmate and the syncPEOPLE
2013 Nov 28
2
gmirror: writes are faster than reads
Hi Guys, Has somebody encountered (significantly) different read/write speeds when using gmirror? I have 2xWD WD30EFRX RED drives which are configured as follows: $ gmirror status Name Status Components mirror/root COMPLETE ada0p2 (ACTIVE) ada1p2 (ACTIVE) mirror/data COMPLETE ada0p4 (ACTIVE) ada1p4 (ACTIVE) mirror/root is mounted
2013 Jul 12
1
readLines() problem-error
Hello everyone, I have my program like this: while (length(oneLine <- readLines(con, n = 1, warn = FALSE)) > 0) { # here I process the line I read } The problem is it gives me different output every time. I get a problem/ error like: "Closing unused connection (con)". Sadly I can't provide the file because it's ,ore then a GB. Thank you in advance,
2005 Aug 31
5
image_tag :align => 'absmiddle' ?
hi, i''ve been through the rails apis and searched through past rails discussion, but i haven''t managed to find a way of aligning images with the image_tag() method. ideally i''d like to write something like image_tag("image.gif", :align => ''absmiddle'') to position the image vertically in the middle of some text. thanks luke
2006 Mar 15
1
An Association Problem: AR::Base.find{:include} and n-deep association traversal
Dear List, I''m using Edge Rails. I have a Model with Items for purchase. Each Item is of a certain brand. Class Brand < ActiveRecord::Base end Class Item < ActiveRecord::Base belongs_to :brand end The problem domain is that I''d like to create a separate Inventory list of Items. This includes the date of entry into inventory and date of exit from inventory (ie
2007 Jul 23
1
AAF association not workin
Hi, I have configured my model as follows: class Product < ActiveRecord::Base acts_as_ferret :fields => [:description,:label_description,:label_free,:product_id_supplier,:description_supplier,:supplier_description] belongs_to :supplier def supplier_description return "#{self.supplier.description}" end In the development log I can see the supplier_description
2006 Oct 22
1
Rails association and multiple indexes
Hi! If I have two models, Product and Manufacturer, of course Product belongs_to :manufacturer. A search engine would allow a user to look for a product by its name or manufacturer. Is it better to define a method like: def searchable_field "#{name} #{manufacturer.name}" end and add it as indexable field (acts_as_ferret :fields =>
2006 Nov 04
0
adding an association to the logine_engine user model
How do you add associations to the User model when using the login_engine?? I have found that if I use my own User class in models/user.rb I will have to overwrite all the functions in the login_engines model this seems a redundat waste... but I need to add a has_one association to my User like so: class User < ActiveRecord::Base has_one :tile_stat, :dependent => :destroy end any
2006 Nov 04
0
leaving a column out of an association
Is there a recommended way to exclude a column from associations? for example: Model Album has_and_belongs_to_many :photos Model Photo has_and_belongs_to_many :albums Photo Table int :id int :order blob :data <-- the culprit! -------------------------------------------------------- I''m caching the output of Photo.data in a controller, but i don''t want to select
2006 Aug 09
0
association dows not grt foreign key
I have a 1 to 1 relationship using a similar example as below (has_one, belongs_to) but when I do the save, the foreign key of the child object is not set to the id of the parent object in the relation ship any ideas? cheers dion --------------------------------- class Person < ActiveRecord::Base has_one :address validates_presence_of :email --------------------------------- end
2006 Aug 09
0
Re: association does not get foreign key
On 8/10/06, Dion Hewson <dionhewson@gmail.com> wrote: > > I have a 1 to 1 relationship using a similar example as below (has_one, belongs_to) > > but when I do the save, the foreign key of the child object is not set to the id of the parent object in the relation ship > > > any ideas? > > cheers > > dion > > --------------------------------- > >