Displaying 20 results from an estimated 10000 matches similar to: "handling navigation tabs - use sessions?"
2005 Dec 07
1
Navigation
Greetings,
I appreciate the help from here as I seem to be asking the noob
questions a lot, but what is a good way to deal with navigation pulled
from a database?
I have this in my view:
<% @nav_buttons.each do |nav_button| %>
<li><a href="#" class="nav"><%=h nav_button.name %></a></li>
<% end %>
this in my controller
def
2009 Dec 23
3
Help with Navigation
I''m currently using CSS to style my navigational menu. I also have
jquery at my disposal. The basic structure is like this:
<div id="nav">
<div class="inner-container">
<div id="wrap">
<div class="inner">
<h2>
<span class="h-ico
2006 May 12
11
Stupid? question about if else logic
this seems so stupid, I keep thinking I''ve dealt with this before but I
have this code
<h1>Portraits</h1>
<% if @image.portrait == 1 %>
<%= image_tag(url_for_file_column ''image'', ''file'', ''thumb'') %>
<% else %>
<h1>Landscapes</h1>
<%= image_tag(url_for_file_column
2005 Dec 17
13
Rookie with ActionMailer
To start out I''ll say that this is the first thing that I''ve ever built
that''s been intended to programmatically send email. I''m looking at
examples in AWR and also on the wiki. I feel that I sort of have things
set up right but I''m getting an error I can''t grok:
Net::SMTPFatalError in Home#email_list
550 5.7.1 Unable to relay for
2006 Jun 15
9
MySQL error
Greetings, I''ve got a Rimu account and I''m trying to config things for a
deployment. I''ve now got things to where I''m atleast getting a nice
error page you can see at:
http://www.juiceboxmedia.ca/public/
the username and password I have connects to this database fine with
phpmyadmin from my plesk control panel, so as far as I know MySQL on
it''s
2006 Jul 18
3
Navigation techniques, everyone?
I''m rewriting the code to my first app. I want to reuse a lot of it,
but tidy it up a lot. The first thing I will tackle is my nav-bar.
Throughout a user''s experience on my app, I want it to reload as little
as possible (I''ll have about 7 or 8 controllers with about 70 actions).
So, I''ve thought of a few ways of doing it, and was wondering if you
guys
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on
site navigation that can deal with any model being in the nav, allow
nesting, and can dynamically update.
So I thought about it for a while, and decided on a MenuItems class, which
contained the position of the child in relation to it''s siblings, where the
parent and the child were polymorphic. Then a given
2006 Jun 13
7
help with ''error_messages_for''
Greetings,
I''m in the throws of deploying an app on site5, and I''m getting strange
errors. I think I might need to understand how error_messages_for
works.
I get a pretty standard looking error:
"
You have a nil object when you didn''t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occured while evaluating nil.errors
Extracted
2006 Apr 03
11
Rails VPS Business Hosting
Greetings,
Does anyone have experience with Rails VPS hosting? I''m basically
looking for a hosting reseller option so I can have control of my
clients domains and hosting. I''m looking for something easy to use;
although I like learning it all, and am learning a lot, I am most
definitely not a command line linux user type as of yet.
The one that I''ve looked at
2006 Jun 09
2
Deployment Suggestions
Did a quick search, but didn''t come up with anything definitive.
So what does everyone think is the best low maintenance and most hassle
free way to go for deployment? Is lighttpd still everyone''s choice?
I remember seeing one that was a pre-packaged environment with apache I
think. Anyway, just about to deploy an app and thought I''d ask
suggestions - want to see
2006 Aug 01
1
Newbie help re: "dynamic" navigation menu
Hi
I am trying to get my head around how you would "efficiently" do a
left-hand navigation menu structure derived from various database table
entries.
Example is loosely based on AWDwR''s depot app. Say you wanted to
instead to have the left-hand nav links show the following:
Books
book title 1
book title 2
...
CDs
CD title 1
CD title 2
...
with
2006 May 31
3
instance variable problem
I''m having some trouble with an instance variable being read as nil in
my app. I have an image uploading, that can be added to categories.
The page loads up initially fine, and if I upload an image without
errors everything works fine. I''m working on the validation, but with
the code I have if their are validation errors it renders ''new'' again,
but reads
2011 Jun 02
1
Bluetooth Navigation
I am trying to use CoPilot navigation. The program installed just fine, but wine seems to be missing irprops.cpl. When I try to run the program using "wine copilot.exe" it gives me this error.
> err:module:import_dll Library DEVMGR.DLL (which is needed by L"C:\\Program Files\\Alk Technologies\\CoPilot Laptop\\App\\irprops.cpl") not found
> err:module:import_dll Library
2006 Jan 04
2
Navigation Helper
I am attempting to integrate a main navigation section into my web
application. Naturally the easiest and DRY way to do this would be to
either include it in a layout, or as a partial. The only problem is
that I want the link for the current page to have its own css id
("current"). The only way I can think to accomplish this is to just
include the navigation in every page, but this is
2006 Jan 15
2
rookie with text editing
Greetings,
This might be a pretty basic question not even totally rails specific,
but how do I control text editing using ruby on rails?
For instance, I am using the ruby forum
http://www.ruby-forum.com/topic/new as I type this and am typing into a
textarea tag. I have this in my rails app and I want to know how to
save the formatting - such as when I hit returns to go to a new line
when I
2006 Jun 09
2
Noob with Overwhelming Deployment Woes...
I''m doing some searching for deployment options, and I feel like I''m
getting buried in a lot of new technology and assumptions that I know
all that it''s dependent on. In the past I''ve done small things with PHP
where I just dump the app in a folder and everything works out of the
box.
I found that everyone is using Capistrano, which relies on Subversion
2002 Aug 28
1
RODBC: sqlFetch and its argument sqtable
Calling function "sqlFetch" in library(RODBC) and specifying a character
string as 2nd argument, I get an error I don't understand:
library(RODBC)
channel <- odbcConnect("mydatabase.mdb", case="msaccess")
sqlFetch(channel, "mytable")
# this works fine
tabname <- "mytable"; sqlFetch(channel, tabname)
# this gives an error:
# Error in
2005 Jun 22
10
How to read an excel data into R?
Hi all,
Does anybody know the easiest way to import excel data into R? I copied
and pasted the excel data into a txt file, and tried read.table, but R
reported that
Error in read.table("data_support.txt", sep = " ", header = T) :
more columns than column names
Thanks!
Ling
2005 Dec 05
3
Noob Question about databases in rails
Ok,
This sounds like it should be easy but I am having a hard time with it.
I am making a website but I''m trying to make everything in it fairly
database driven, this is really pretty much my first rails project.
I have a table called ''nav_items'' to display the nav choices, but there
is also other dynamic data on the homepage such as the ''events''
2008 Apr 01
1
Navigation Problems
Hi,
I am having problems with my page. I have a banner and navigation bar in
controller_name.rhtml in app/views/layout. Can someone please help?
Thanks
In the navigation bar, I have the following links:
Category1
Sub-Category1
Sub-Category2
Sub-Category3
Sub-Category4
Sub-Category5
Sub-Category6
In the main content, I have the following links:
Sub-Category1 edit delete