similar to: instance variables in components not read by component view?

Displaying 20 results from an estimated 500 matches similar to: "instance variables in components not read by component view?"

2006 Jun 07
6
Links on the left hand side - are components necessary?
Hello, Maybe this is super-trivial... I need to have a list of links on the left hand side of my application, for *every* single page. So, I''ve created a layout called "main" (main.rhtml) under view/layouts, and included >layout "main"< in pretty all of my controllers. main.rhtml has, amongst all the other HTML stuff: <%= render_component
2009 Jul 14
1
[PATCH node] Filters out all non-physical networking devices.
This patch will scan through the list of devices that have the net.80203 capability. It will then also ensure that only those which originate from a physical device and are not logical devices are presented. Resolves: rhbz#511369 Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- scripts/ovirt-config-networking | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff
2005 Dec 15
6
Navigation menu
I have a navigation menu that contains a link per controller in my application. This menu is the same for all controllers, but I want this behaviour: <a>Users</a> <span>Statistics</span> and <span>Users</span> <a>Statistics</a> depending on the page you''re currently on. I''ve put a <render :partial =>
2006 Jan 14
0
testing template components
Hi, I''m plowing through the template section of "Agile Rails", specifically the stuff starting on P. 364. What is a good strategy for testing components? My initial thought is to mimic the Rails application "test" directory. No problem. Next copy the setup method, and set it up like so - class SidebarControllerTest < Test::Unit::TestCase def setup
2010 Feb 11
3
[PATCH node] remove ipv4 validation for ntp and rely on actual ntp verification
--- scripts/ovirt-config-networking | 13 ++++++------- scripts/ovirt-functions | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking index ec154c2..40a2d2c 100755 --- a/scripts/ovirt-config-networking +++ b/scripts/ovirt-config-networking @@ -414,12 +414,7 @@ function configure_ntp
2006 Aug 15
1
Local Variable Troubles
Hi all, I currently have a partial named _menu, where I generate the menu for my site. I pass locals to it with a render :partial. I have the partial check for 2 items, display_title and klass. I only pass these to the partial if I need to use them, otherwise no locals named display_title or klass are present in the partial. I test to see if these exists by doing the following: <% unless
2010 May 13
1
Non-functional replacement...
This patch just includes the repo name in the subject.
2008 Jan 21
7
undefined method error
Hello everyone, I am following the Practical Rails: Social Networking sites book. In chapter 7 photo gallery I am getting a NoMethodError in Pages#show Showing layouts/_menu.rhtml where line #12 raised: undefined method `new_entry_path'' for #<ActionView::Base:0x52fa56c> Extracted source (around line #12): 9: <% if is_logged_in? %> 10:
2010 Jul 06
4
Simple routing problem
I''ve got the following in config\routes.rb: map.resources :users In app\views\shared\_menu.erb, I''ve got: Please sign in <%= link_to "here", :controller=>"user", :action=>"sign_in" -%> In app\controllers\users_controller.rb def sign_in end When I run the application, I crash with: Routing Error No route matches
2005 Oct 10
0
[BUG ??] 'uses_component_template_root' problems with implementation in component
Hi all, I hope this will reach those that can help or change things, IF it is a bug/''feature'' issue. At least it seems like it to a newbie like me. BACKGROUND:: I have a basic html file in [ /app/views/layouts/application.rhtml ] that contains this <html> <%= render ''shared/header'' %> </html I then have a component [
2010 May 14
3
Replacement patch...
This one incorporates feedback from mburns and apevec to ensure that all multipath devices are excluded in the list of available drives. Only drives with an identified bus are included in the list now.
2009 Feb 03
1
Passing args to generator
I have some default_options in generator and when I wish to change they value with --option_name I get only logical true instead of string ... default_options :option_name => "Some string" ... def add_options!(opt) opt.separator '''' opt.separator ''Options:'' opt.on("--option_name","Some Text") { |v| options[:option_name] = v
2006 Sep 18
1
href #
Hello all, I''ve just upgraded to the latest mongrel and am having a problem with the following link: <a href="#" onclick="toggle_menu(''Manage'')">Manage...</a> I''m now getting a routing error when I click on this link. It''s trying to route to /Manage. Is there a different syntax I should be using? Btw, I
2011 Dec 02
0
Testing Views with Rails 3 and Rspec2 - Can't stub request.path_params[:controller]
I am stuck to test a specific view which contains a request.path_parameters[:controller] variable as the example below follows: <%=link_to "Store", admin_stores_url, { :id => "tab-3" ,:class => (admin_stores_path == ''/'' + request.path_parameters[:controller] && ''active'')} %> The rspec view test file: describe
2006 Mar 28
1
Simple Sidebar Solutions: How does yours work?
I''m working on a simple photo gallery app for personal use and I want to generalize the sidebar such that in any page (controller or view, I''m not sure which) I can dynamically add either 1. links to a given sidebar 2. or an entire sidebar. I know that typo does this, and I''ve looked the code. I think it''s too complex a solution for my simple site.
2009 Jan 03
2
Some questions from a new webgen user
Hi everyone. Sorry if it is not the place to post questions about webgen. I use webgen5, i know it is not the stable version but i couldn''t understand how webgen4 worked, it''s easier with webgen5, and i won''t have to change my pages when it becomes mainstream ;) I try to build my homepage using webgen, and there are some things i don''t know how to do (i am sure
2007 May 23
4
content_for
Any ideas how I would go about writing specs for views which make use of content_for? I''d like, for example, to be able to specify that ABC view places XYZ in the sidebar, which I do using content_for(:sidebar). Am I missing something obvious? Kyle
2005 Dec 12
7
Calling absolute links
I have a primary layout that I''m using in several controllers. On my sidebar I have a link that I set up as follows: <div id="sidebar"> <%= link_to("Items", :action => "list") %> </div> Everything is ok when I call it from my primary controller, but since I am also calling the layout from a second controller that does
2013 Jul 24
2
[OT] Tidy of Wiki Sidebar
I have been tidying up bits of the Wiki. This one is not clear cut, so I decided to seek advice. Also, I wasn't sure where to post this question, so defaulted to ogg-dev. Should Speex and CMML be removed from the Wiki Sidebar at: https://wiki.xiph.org/MediaWiki:Sidebar ? Many thanks, Martin -- Martin J Leese E-mail: martin.leese stanfordalumni.org Web:
2006 Mar 24
3
Changing sidebar in layout per controller
I am currently using 2 layouts in my site. One is for the admin area. I am trying to get content in my sidebar to change depending upon the current controller. Example: Within admin I have a users controller and a articles controller. When in the users view I want the sidebar to display options (like add user delete user etc). What is the best actionview way to do this. I don''t