similar to: Problem rendering components

Displaying 20 results from an estimated 3000 matches similar to: "Problem rendering components"

2006 Mar 08
1
Components calling components...
Hi, I''m relatively new to ruby and rails. I would like to have a sidebar component call one of several other constituent components. I''ve run into some problems, and so I''ve pruned things back to a relatively simple case. I have a sidebar component. Renders great. In it''s layout, I call render_component for another component I would like in the sidebar.
2006 Feb 19
2
instance variables in components not read by component view?
Hi, I''m trying to write a sidebar menu with dynamic menus, and to do so I would like to define a list of menus to display within my sidebar component controller code and pass that list to the component display view, like so: # menu_controller.rb class Sidebar::MenuController < ActionController::Base uses_component_template_root @menus = %w{admin user help} def display
2006 Jun 09
8
Installation on OSX...
Hi, Just got my first Mac. I''m trying to install rails on it, using the instructions in the rails wiki: http://wiki.rubyonrails.com/rails/pages/HowtoInstallOnOSXTigerUsingDarwinPorts I go to install mysql, and the version of mysql supported by DarwinPorts appears to be 4.1.18. But all the sites appear to only have 4.1.19 or 4.1.20. So it looks like DarwinPorts is over a month out
2006 Apr 18
2
link_to_function onmousedown
Hi, Is there some way to produce an anchor that looks like the following using helpers, or should I just code it in the rhtml like this? <a href="#" onmousedown="javascript:foo(); return false"> Thanks, Brad -- Bradley Mazurek
2007 Jun 21
1
render :partial => :url - is it possible?
Hi, this is my first post to the list. I''m still learning the rails framework, having done most of my previous web development in PHP. I''ve done a bit of googling for the answer to this question, but maybe I''m just lacking the right word to search for. Several parts of my site, such as sidebar components, are self-contained, modularized and re-used in several parts
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 May 24
1
How to marshal Javascript data?
I''m trying to marshal some information I have in Javascript, and send it over an AJAX request to the server, specifically to be stored in a model on the server side. I have some Javascript routines I wrote that gather information about the user selection. I see that the link_to_remote has a :before option in which I can write Javascript to collect what I need, but right now I''m
2006 Apr 04
1
Manipulating has_many :through associations
Hi, I haven''t done any associations before, so please forgive my incorrect use of terminology... If I set up a has_many :through association, can I manipulate the associated instances directly (like an Array), or do I need to manipulate the join model? For example, suppose I have two classes and the associated join model: class foo has_many :foo_bars has_many :bars, :through
2008 Feb 04
1
Error on nil.build
I can''t figure out why I am getting an error for one of the tests below: ======================== describe AccountsController, "POST" do before :each do @user = mock_model(User) @account = mock_model(Account, :id => 1, :valid => true, :save => true, :users => mock("users", :build => @user)) Account.should_receive(:new).and_return(@account)
2010 Apr 05
1
`test': wrong number of arguments (1 for 2) (ArgumentError)
Hi, Im trying to change the syntax of my tests to the test "some method" do ... end syntax from the existing def test_some_method ... end syntax. Im pasting my test code below. Im getting the error in the subject line if I try to run the test as a ruby script from the console. require File.dirname(__FILE__) + ''/../test_helper'' require
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
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
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
2012 Aug 28
3
The FLAC website
Martijn van Beurden wrote: > I can't read russian, but that part of the website seems pretty > outdated, mentioning FLAC 1.1 as the last news item? I have no problem dropping that. > I guess I would like to update the news section with a few items (I > guess that's what makes a website looks 'fresh', I would love to make > FLAC look like an active project :))
2004 Aug 16
2
randomize Dial() target
Hi, is it possible to randomize extension which would be choosed by Dial()? I would like to forward phone calls to one of sales rep in randomized way (not to harm anyone;) ). tia mazek -- http://www.marcinmazurek.com/ ::: nic-hdl: MM3380-RIPE GnuPG 6687 E661 98B0 AEE6 DA8B 7F48 AEE4 776F 5688 DC89
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
2013 Apr 30
3
[LLVMdev] Improving the usability of LNT
Hi Daniel, I made some changes to the LNT perf reporting tool to make it more user friendly by adding some features: 1. Make the sidebar and the navigation bar stationary, so that it is easy to navigate the site 2. Have the pop-down menu for the items in the navigation bar, activate upon hovering the mouse, rather than clicking the item 3. Add a nav-link in the sidebar for the
2005 Dec 17
2
Subfolders in Rails applications (newbie)
After about a week playing with Rails, I have built a couple of apps but am still unable to get one thing to work: subfolders. (I am probably using the wrong term here, but oh well...) I would like my rails application to have controllers logically grouped into folders. So for instance: http://domain.com/accounting/accounts http://domain.com/hr/employees Here''s how I have tried to