search for: _product

Displaying 5 results from an estimated 5 matches for "_product".

Did you mean: product
2006 Jan 19
1
partials and instance variables for file_column
...o or @photo)? url_for_file_column only works with instance variables, like all other active record form helpers. Could this be the problem?" So I''m using file_column in a partial, e.g. <%= render (:partial => "product", :collection => @products) %> my partial (_product.rhtml) looks like this: <div class="productteaser"> <h4><%= link_to product.titel, :action => ''detail'', :id => product.id %></h4> <%= link_to (image_tag url_for_file_column("product", "image"), {:width => &...
2010 Oct 19
0
Ajax & Table Display Filtering based on Selected Option
...gt; <tr> <%= select_tag("filter_by_category", options_from_collection_for_select(Categories.find(:all, :order => ''name''), :name, :name) %> <%= observe_field("filter_by_category", { :url => department_products_path(:department_id => @department.id), :method => :get, :frequency => 0.5, :with => "''filter_by_category='' + value" }) %> </tr> <tr> <td>id</td>...
2008 Dec 31
0
replace_html problem
Hi - trying to update a table with page.replace_html using a partial: The view (index.html.erb): [code=]<div id=''prod_table''> <%= render :partial => ''product'' %> </div>[/code] The partial (_product.html.erb) [code=]<table> <% for product in @products %> <tr> <td><%= product.name %></td> <td><%= product.vendor.name %></td> </tr> <% end %> </table>[/code] The actual update: [code=]render :update do |page| page.repla...
2007 Sep 20
1
undefined method `request' for "products":String ?
...= Errors example 1: undefined method `request'' for "products":String Extracted source (around line #2): view: <tbody> <%= render :partial => ''admin/products/product'', :collection => @collection %> </tbody> view parital _product 1: <tr id="<%= dom_id(product) %>" class="<%= cycle(''odd'', ''even'') %>"> ERROR HERE> 2: <td><%= image_tag( product.cover(:thumb_50), :class => ''image'' ) if product.cover(:thumb_50) %>&lt...
2006 Jun 21
2
Using RJS to highlight one LI if using insert_html on an UL?
It seems common to use RJS for quickly adding and highlighting a list that is having content added to it like this: http://rafb.net/paste/results/Z3m32g48.html ... where "my_list" would be an UL and the partial would insert a LI. Given that example, is there an easy way to highlight only the newly inserted LI instead of the whole UL? The only way I can see to do it is to give