Displaying 4 results from an estimated 4 matches for "spacer_template".
2012 May 28
1
rendering a partial inside another using render_to_string and (:formats) in controller
...=============================
<div class="list-table" data-source="<%=
search_enterprise_users_path(@enterprise, :format => :html) %>">
<%= render( :partial => ''user'',
:collection => @search_results,
:spacer_template => ''shared/list/separator'') ||
t(''user.empty_result'') %>
</div>
============================================================
THE ERROR:
============================================================
ActionView::MissingTemplate (Missing partial...
2007 Aug 02
2
Do the :attributes and :content matchers work
...9; in the before :each block.
As I said I would expect this to fail but it does not.
I am trying this because in the
<my_app>/vendor/plugins/rspec_on_rails/spec/rails/dsl/view_spec_spec.rb
file there is an example
describe "A view that includes a partial using :collection and
:spacer_template", :behaviour_type => :view do
before(:each) do
render "view_spec/partial_collection_including_template"
end
it "should render the partial w/ spacer_tamplate" do
response.should have_tag(''div'', :content => ''Alice...
2006 Apr 11
0
can''t get render... :collection to work ??
...gt;
<%= render :partial => ''result'', :locals => {:result => r} %>
<%= render :partial => ''result_divider'' %>
<% end %>
<%= render :partial => ''result'', :collection => @search.results,
:spacer_template => ''result_divider'' %>
----------------------------------------------------------------------
_result.html looks like this:
----------------------------------------------------------------------
<%= result[:url] %>
-----------------------------------------------------...
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