similar to: Possible bug in render collection behaviour

Displaying 20 results from an estimated 10000 matches similar to: "Possible bug in render collection behaviour"

2006 Jul 05
1
newbie question: Mapping Collections
Hi, Day 3 with rails here. Forgive me. If this has been covered many times before, pls just point me at the article. I worked through the Rolling with Rails tutorial (http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html) built up my cookbook. Things work great. I now want to add Ingredients to my app. So, a Recipe will have 1 or more Ingredients and any single ingredient can be
2006 Apr 07
3
RJS removing content of div, but not div itself
Hi, I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link
2005 Dec 11
2
Cdrecord problems
Hi, I am having problems with cdrecord. Here is my information from scanbus: [root at Eurisko3 ~]# cdrecord -scanbus Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 J?rg Schilli ng Note: This version is an unofficial (modified) version with DVD support Note: and therefore may have bugs that are not present in the original. Note: Please send bug reports or support requests
2007 Nov 19
2
Help with controller and view
I have the following models class Recipe < ActiveRecord::Base has_many :ingredient_recipes has_many :ingredients, :through => :ingredient_recipes end class IngredientRecipe < ActiveRecord::Base belongs_to :ingredient belongs_to :recipe end class Ingredient < ActiveRecord::Base has_many :ingredient_recipes has_many :recipes, :through => :ingredient_recipes
2006 Nov 14
3
messed-up habtm relationship
Hi, I have a many-to-many relationship between dishes and ingredients class Dish < ActiveRecord::Base has_and_belongs_to_many :ingredients end class Ingredient < ActiveRecord::Base has_and_belongs_to_many :dishes end I have a join table dishes_ingredients now when i access my_dish.ingredients, i get a list of what looks like Ingredient objects, but the but they don''t have
2013 Jan 19
2
Deformulation and R
Dear All, I hope this is not too off-topic. Essentially, I need to know if there is any R package which can help me with a deformulation project. Suppose e.g. that you know from a chemical analysis the fat, mineral, vitamin, energy [and so on] content of a certain food product. You also know the ingredients of this product (e.g. milk, lactose, vegetable oil) and you know the chemical
2007 Aug 01
2
map.resources with habtm
Hi I''m trying to use restful resources with recipes and ingredients I''ve set up the models using scaffold_resource. A recipe can have many ingredients and an ingredient can be in many recipes. I''ve set the relationships up using a through. I now want to display a recipe with a list of ingredients but I''m unsure how to proceed. Should I use nested resources and
2010 Mar 11
4
Call a controller method from a view
Hi, I am trying to call a controller method from my view, but I get an error and I don''t know how to correct it. What i am trying to do: I am in the edit form of the model Product, and products can have many ingredients. So on my edit form there is a text_field where you type the ingredient with a link "Add" which is supposed to add the typed ingredient to the current
2005 Mar 07
2
0.10.1 Upgrade problems
I just did an upgrade to Rails 0.10.1. It seems to have broken my app. I get this error (nothing works): ActionController::RoutingError (No route for path: ""): /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_controller/routing.rb:258:in `recognize!'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/dispatcher.rb:32:in `dispatch''
2007 Jun 28
2
CentOS iso for Sparc64 machine
Hi, I have been looking for CentOS for sparc based machines without luck. I tried to use birorrent to download it without luck. I really would appreciate anyone letting me know because I have a Sun Ultra 60 that I would love to install it on. Thanks! -- Dexter Dexter F. Stowers Systems Administrator Unix/Linux/Windows/Mac Clemson University -- Desire is the ingredient that changes the hot
2007 Feb 03
2
Boost Sorting with Acts_as_ferret?
Hey guys, Simple question here. I have a single index of recipes, from which I''m looking at the following fields: Name, Ingredient Text, Tags, and Description. The key is, I want to show all the results that come from Name, before I show any of the results from Ingredient Text, Tags, or Description. I tried doing this: acts_as_ferret :fields => { :name =>
2006 Apr 10
2
RJS newbie - need help with iterating / existence test
Greetings! I''m new to Ajax and am trying to get a basic app working as a vehicle for learning it. The app is an extension of the cookbook tutorial. My intent is to be able to add a list of ingredients for a recipe. The page to add ingredients uses Ajax. As ingredients are added to the page they''re displayed in a "green-bar" format like that used in the Depot
2008 Jun 22
1
Zoo Tycoon 2: Zookeeper Collection
I'm a wine noob, and I'm using Ubuntu 8.04 "Hefty" on AppDB it says Zoo Tycoon 2 runs without many problems, with the exception of the mouse graphics, but that doesn't really bother me. I installed it under WINE and searched around my computer looking for it. Under the Wine tab in "Applications" The only ZT2 thing I have is "Zoo Tycoon 2 Profiles" I
2006 Feb 27
3
Updates on Centos 4
Hi, I have a server that has been running Centos for about a year but I have not checked to see if there have been any changes to update. Has there been any updates or fixes for the update? I have not been in the loop for a while now. Thanks! -- Dexter Desire is the ingredient that changes the hot water of mediocrity to the steam of outstanding success. It's the ingredient that enables a
2009 Apr 16
6
Using Paperclip::Processor and RMagick to sharpen my thumbnails
Hi, I''m brand new to RMagick (and pretty new to Rails for that matter!). Right now, site owners are allowed to upload product and ingredient photos to the website. Everything works great, ingredients are sized down and proportioned correctly...the problem is that the resulting images are so blurry! So I''ve been doing some research and it looks like Paperclip::Processor may be the
2006 Jan 02
0
Many to Many relationship - trys to destroy twice??
I''m trying to work with a many to many relationship but since my join table need additional attributes I can''t use habtm. When I attempt to destroy an item from the join table RoR appears to attempt to destroy the item twice. Here is an example from the log file showing the process. The record is identified using a find_by_sql using the two id parameters (and a third
2006 May 03
2
render partial collection
my view contains a call to a partial: <%= render(:partial => ''item_list'', :collection => @keyword.synonyms, :locals => { :action_delete => "removesynonym", and_some_other_stuff }) %> _item_list.rhtml contains: <%= link_to ( image_tag(''/images/deletebutton.png''), { :action => action_delete, :id =>
2006 May 03
0
render partial collection passing property
my view contains a call to a partial: <%= render(:partial => ''item_list'', :collection => @keyword.synonyms, :locals => { :action_delete => "removesynonym", and_some_other_stuff }) %> _item_list.rhtml contains: <%= link_to ( image_tag(''/images/deletebutton.png''), { :action => action_delete, :id =>
2006 Apr 11
0
can''t get render... :collection to work ??
Hi all - New to Rails so I''m hoping this is something obvious, but I can''t get it to work. Here''s my view: ---------------------------------------------------------------------- <% @search.results.each do |r| %> <%= render :partial => ''result'', :locals => {:result => r} %> <%= render :partial =>
2006 Mar 21
2
Can you render partial with collection non-existent rows?
Hi, I''m trying to create a blank input form with a header and many item lines. I would like to build the item lines dynamically ie not hard code up to 100 lines into my form. Is it possible to use render partial with a dummy collection for this? When I try to render with @item_lines holding 1 object created with .new, I get: ActionView::TemplateError (undefined method