search for: capturehelper

Displaying 13 results from an estimated 13 matches for "capturehelper".

Did you mean: capture_helper
2008 Sep 29
0
ActionView::CaptureHelper#capture error
I am using edge rails and a plugin that uses capture and I am getting an error that block_called_from_erb? doesn''t exist. Where should it be declared and what should it contain? Dieter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Jul 19
4
Using Application.rhtml as layout for all controllers
I put my nav system in application layout. that way any controller loading will have the nav system. I have one problem though - the <%= yield %> is in the body, so how would my controllers specify other css files? my application layout would look like this: <html> <head> title css include javascript include </head> <body> nav system <%=yield%>
2011 Sep 13
3
Accessing Rails helper method with_output_buffer
Hi all, I cannot figure out how to correctly use the with_output_buffer helper method (located in ActionView::Helpers::CaptureHelper) inside a custom FormBuilder. Below follows a simplified example. I''m trying to achieve the following behavior in an ERB as suggested in the form_for helper docs in the Rails source: ========== <%= form_for @object, :builder => MyFormBuilder do |my_form| %> <%= my_form.my_...
2005 Apr 06
6
Mimic something like layout on a smaller scale?
I need to add various header and footer dressings around groups of form fields for GUI goodness, and am wondering if there''s already something out there that will suit my needs. These headers/footers have special properties for display(title, help links, etc...). I want to be able to easily take advantage of the existing HTML helper methods provided for controllers, in a mini-layout type
2006 Jul 27
3
Multiple @content_for_layout in template?
Hi guys, I''m having a few experiments making sites with Rails and I''ve come across a problem. I''ve made a template for the parts of the site that the public will see and it has two main columns in it, a main content column and a thin side column. The content in each of these will change on each page of the site but I''m not exactly sure about how to send
2006 Feb 27
1
@content_for_sidebar?
Okay, I see this instance variable places, but I can not determine if it is real or where the content comes from. I''ve tried views/<controller>/sidebar.rhtml, _sidebar.rhtml, views/layouts/sidebar.rhtml and views/layouts/_sidebar.rhtml. Does this actually exist? What''s the Rails Way to make a good sidebar? http://www.google.com/search?q=content_for_sidebar Thanks,
2006 Mar 17
2
How to let the layout be more OO?
I am confused about the @content_for_layout.''cause it will display all the views in the layout.Do I have any methods to let the layout be more OO? I mean that for example,the app currently have more than one views to be displayed,but only some of them to be displayed at the same time at different <div></div> units. I hope there exists a kind of way that: <%= if
2006 Apr 17
2
nesting layouts?
Hi all, Currently I am working on a site which in principle consists of three div''s, a menu, a left div and a right div. Now the content of the left and right div can vary wildly but the overall ''feeling'' should be the same. Now I have one template, called ''index.rhtml'' which checks in a long list of if-then-else what to render. This is of course
2005 Dec 21
3
Patch Cycle
Hello, I submitted a patch <http://dev.rubyonrails.org/ticket/3287> ( http://dev.rubyonrails.org/ticket/3287) a couple of days ago. The patch adds some methods into and changes the existing methods in the CaptureHelper module. It should not, as I can see, affect any existing Rails implementations. I added the relevant unit tests and all but one of the tests pass. The test that fails failed since I started using Edge Rails (before I made changes) and seems unrelated. <http://dev.rubyonrails.org/ticket/3287>...
2006 Jun 22
4
rendering partials in layouts?
Hello all, Forgive me if this is a really stupid question. How do you render partials in a layout? It''s probably way easier than i believe it to be. thanks! -- Posted via http://www.ruby-forum.com/.
2007 Jun 29
12
testing instance variables that are set inside views
Hi all, In my view specs (for Rails), how can I get at instance variables that are set within my view? For example, if my view looks like this: <% @header = "My Header" -%> <div>some content</div> How can I get to @header from within my view spec? I''ve tried @header and assigns[:header] to no avail. TIA, Jeremy -- Jeremy Stephens Computer Systems
2006 Jul 18
5
Right-click popup menu?
Hi, I have a partial frame on the side of a page which shows the current users logged in (as text). Now, I would like to be able to right-click on each user''s name, and get a menu containing links such as "View Profile", "Send Message", etc. These links could open in a new window. Is this possible? Any help would be greatly appreciated. Thanks, Aditya Rajgarhia
2006 Mar 25
0
in_place_collection_editor
...======= --- actionpack/test/template/java_script_macros_helper_test.rb (revision 3940) +++ actionpack/test/template/java_script_macros_helper_test.rb (working copy) @@ -9,8 +9,20 @@ include ActionView::Helpers::TextHelper include ActionView::Helpers::FormHelper include ActionView::Helpers::CaptureHelper - + + silence_warnings do + Section = Struct.new(:id, :name) + Post = Struct.new(:id, :title, :section) + end + def setup + @sections = [ + Section.new(:id => 1, :name => ''News''), + Section.new(:id => 2, :name => ''Gossip''...