search for: render_partial_collect

Displaying 7 results from an estimated 7 matches for "render_partial_collect".

2006 Aug 01
2
Partial Naming Madness
Hi, I am having the following issue with a partial. During initial page load, I am doing a "render_partial_collect ''foo'', @foos", and all goes well. Each foo partial makes use of a variable inside called ''foo'' (and can get foo.id etc). After all the partials are loaded, I need to :update a div corresponding to one of the partials (ie re-load the partial in that div)...
2008 Mar 23
6
Locals do not appear in partial unless collection is explici
Maybe I''m misunderstanding something but it appears as if <%= render :partial => @items, @locals => { :this => ''that'' } %> does not give the local variable this but this one does: <%= render :partial => ''items/item'', :collection => @items, @locals => { :this => ''that'' } %> Shouldn''t they mean
2008 May 13
0
Problem geting web interface to work
...ender_partial'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:58:in `benchmark'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:58:in `render_partial'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:73:in `render_partial_collection'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:71:in `each_with_index'' #{RAILS_ROOT}/app/models/projects.rb:71:in `each'' #{RAILS_ROOT}/app/models/projects.rb:71:in `each_with_index'' #{RAILS_ROOT}/app/models/projects.rb:71:in...
2006 May 25
13
.NET developer trying to understand some Rails basics
Hi All, I''ve been a ASP.NET developer for the last few years and consider it to be a pretty productive environment to work with. However, the object-relational mapping (ActiveRecord) and simplicity of the Rails framework and Ruby in general really appeals to me. .NET currently doesn''t have something like Rails'' ORM - atleast not out-of-the-box. Here''s my
2008 May 16
0
attachment_fu and/or rmagick on osx -- weird error
...ckRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:116:in `render_partial'' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:143:in `render_partial_collection'' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/text_helper.rb:29:in `each_with_index'' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems...
2006 Dec 20
4
undefined method `fullname' for #<User:0x357e380>, BUT works on first view?
...tionpack-1.12.5.5618/lib/action_control ler/benchmarking.rb:26:in `benchmark'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5618/lib/action_view/pa rtials.rb:58:in `render_partial'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5618/lib/action_view/pa rtials.rb:73:in `render_partial_collection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5618/lib/active_recor d/base.rb:1361:in `each_with_index'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5618/lib/active_recor d/associations/association_proxy.rb:123:in `each'' /usr/local/lib/ruby/gems/1....
2006 Jan 16
7
Editing N instances of a model on one page
I have a situation where I want to edit an arbitrary number of instances of one model on one page. I can and have accomplished this by manually managing the object <-> text field relationship, but in a way I consider at best hackish. I''d like to know a clean way to do this. If you want to edit the name attribute on a person class, you write code like this