Displaying 20 results from an estimated 7000 matches similar to: "Simple Sidebar Solutions: How does yours work?"
2006 Mar 13
6
lame newbie question: how to pass instance variables
This should be obvious - but I''m a long-time non-web app programmer and
new to rails.
I simply want to put something in a variable in one action and access it
in another.
It''s like this, I''m doing a simple photo gallery/managment app, and I
have two actions in my picture_controller:
The first one scans the picture directory and creates a new object in
the pictures
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
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
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 Aug 09
1
[OT] Tidy of Wiki Sidebar
On August 9, 2013, Silvia Pfeiffer wrote:
> On Thu, Jul 25, 2013 at 6:36 AM, Martin Leese wrote:
...
>> Should Speex and CMML be removed from
>> the Wiki Sidebar
> Don't remove Speex - it's still very much in use.
>
> We probably want to add Daala to the list of video codecs:
> https://wiki.xiph.org/Daala
>
> We probably want to remove CCML from the
2007 Dec 07
4
TextMate Sidebar
Hey David,
I just watched the RubyConf recording of your RSpec session and noticed that
you''re using a modified version of TextMate that uses a sidebar instead of a
project drawer. Where did you find that mod?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071207/c900e1bc/attachment.html
2006 Jan 20
4
[newbie]how to use link_to to link to another controller?
I am just diving into Rails and I am a bit puzzled by the link_to function.
am writing an app to display my photographs in categories. My application layout
has a sidebar to show a menu with categories from the categories table in the
database (like in taken from the tutorials), to be shown on every page.
I managed to get a global @menu_categories object that keeps track of all the
categories
2006 Feb 06
0
Problem with login form in sidebar
I have a basic login form rendered as a component in the sidebar of my
main layout view.
Whether or not the login succeeds, the controller redirects to the main
index to refresh the sidebar. On success, I set the session[:user_id]
to @user.id as usual.
The problem is that ''index'' gets rendered in the sidebar. However, when
I comment out "session[:user_id] =
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
2006 Apr 08
0
Drag and Drop ajax Bug in the typo sidebar management under IE6
hi, i have discovered a bug under IE6 and the sidebar management of typo.
you can see the html coda that show the error on
http://www.shoob.com/denis/sidebar_typo/sidebar.html
or download the code locally with
http://www.shoob.com/denis/sidebar_typo.zip
i''m not able to find what cause the error so i cannot propose a patch.
The Error is on the onHover method line 698 or 687
2006 Apr 18
0
Drag an drop bug in typo sidebar management, any help welcome
hi, i have discovered a bug under IE6 and the sidebar management of typo.
I have created a simplified version available under
http://www.shoob.com/denis/sidebar_typo/sidebar.html
The code is also available locally
http://www.shoob.com/denis/sidebar_typo.zip
Every thing run fine under fifireox, safari and opera. We only have an
error under IE 6.
i''m not able to find what cause the
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
2009 Dec 21
7
[LLVMdev] New LLVM Blog
Hi All,
A few of us got together and started an official LLVM (and its sub-projects) blog:
http://blog.llvm.org/
I think that a blog is a potentially great way to cover some areas of LLVM that we're lacking in the community:
1. A place to describe cool new features and enhancements (which we can link to from the release notes).
2. Description of the motivation behind major API changes.
3.
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
2006 Jun 28
2
Problem debugging rails app
Hello - new RoR developer here need some help from you experts.
I am writing a custom sidebar for typo (to extract events from my google
calendar) and have hit upon a problem that I can''t resolve. I want to
use strptime to create a date object but when I hit that line of code
the method is bombing without giving me any error messages to the
console or the development.log file.
Any
2010 Jul 09
2
Template is missing.... but it is there!
Hello friends!
I have an application to list different kinds of institution names. So
I have one table "instits" for the institutions and another table
"nome_instits" for their names. For test, I put two rows inside
"instits" and three names for the first institution and two names for
the last. Then I created this controller:
class ServInstitController <
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 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,
2010 Aug 18
2
RSpec 2/Rails 3 - content_for in view specs
My main layout includes separate content_for/yield sections for my header,
sidebar, footer, and content. However, when running a view spec, the
`rendered` variable seems to only contain a string of just the primary
content and ignores the header/footer/sidebar as well as the rest of my
layout file (the "render" call just returns my primary content wrapped in
generic <html> and