Displaying 20 results from an estimated 1300 matches similar to: "Tabbed Menus - link_to_unless_current"
2005 Jul 13
1
link_to_unless_current woes...
Hi !
I have the following in my navigation area:
<%= link_to_unless_current image_tag(''events.gif'', :height => 34,
:alt => ''Events''), :controller => ''events'' %>
Works nice untill I am on the events page, in which case the generated
code looks like:
<img alt="Programs" height="34"
2008 Dec 25
0
link_to_unless_current & I18n.t
How can I use link_to_unless_current with I18n.t localization?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group,
2007 Dec 23
1
Rails: possible routing discrepancy
Hey all, I''m seeing a strange behavior in my spec that I can''t
account for. I''ve got a route that looks like this:
map.writing \
''/writing'',
:controller => ''abstracts'', :action => ''index'',
:index => { :select => ''all'' }
and I have template code that looks like this:
<br
2006 Sep 05
1
Named routes and current_page? incompatibility
Hi,
I have some named routes defined e.g. map.public and wish to use
link_to_unless_current() to disable link.
However, as I''ve seen from forum discussions and the API doc, the issue
lies with the fact that the named_route_url() method generated by a
named route does not default to only_path = true like url_for.
Therefore, the current_page? within link_to_unless_current() will not
2006 Jun 17
2
RJS templates - newbie
I am trying to test drive RJS templates in Rails 1.2. Here is what I
did:
create table categories (name varchar(255) );
rails RJSTest
cd RJSTest
rake update_javascripts
script/generate controller home index add
script/generate model category
Note: When I did a rake update_javascripts, I did not see any output.
I configured database.yml to talk to mysql.
Next I wrote
2007 Jul 30
2
build a menu (li.selected)
Hello,
when I try to create a menu I found the following limitation:
the event li.selected does not work
and, I am not being able to show an image when the menu option is
selected
in my CSS exists the following code:
.menu li.selected {
...
background: transparent url(/images/menu_selected.gif) 100% 1px
no-repeat;
...
}
in file: ...\layouts\application.rhtml
exists the following code:
<div
2006 Jul 24
1
Tabnav Plugin: Tabbed navigation made easy
Hi guys, this is just to let you know I''ve just released a rails plugin
that lets you build tabbed navigation very easily and quickly.
you can check it out here:
http://blog.seesaw.it/articles/2006/07/23/the-easiest-way-to-add-tabbed-navigation-to-your-rails-app
I''m posting this via ruby-forum so if you have questions or suggestion
please drop me an email at staff@seesaw.it
2011 Feb 14
1
Curiosity in my production.log: */*
In my production.log, I usually see lines like this:
Processing by HomeController#index as HTML
But sometimes I see the line like this:
Processing by HomeController#index as */*
At first I thought perhaps those calls were made by a bot, but after
looking at it closer it looks as those they are generated by normal
users. I have no idea, first, how that line could have been generated,
and
2012 Jul 03
2
Plugin help Tabbed view in Rails 3
Hi,
I am trying to create a tabbed view for my RoR application where I am
trying to project the same partial by passing some local variables to it,
but I have not been successful so far.Please point to some nice rails
plugins for tabbed panels in rails 3.0 as well as some video or written
tutorials.
Thanks & Regards,
Shalini Sah
--
You received this message because you are subscribed
2007 Feb 09
2
a series of tabbed forms
Hi,
I''ve previously described one of my wish list items,
http://kleb.tadalist.com/lists/public/427170
in
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/217068
where I basically take a hash of hashes and create
a set of tabbed dialogs for each key of the large hash
where each tab has a form to set each key-value pair
of the embedded hashes.
Toward this end I looked
2007 Aug 22
1
Tabbed Navigation
Went back and forth a bit trying to find out the easiest way to do this.
Found a plugin but it didn''t seem very stable/well written.
This is what I have going right now:
- if @content_for_recipe_editor_tabs
= yield :recipe_editor_tabs
- else
= tabbed_navigator(RecipesController.send "edit_tabs")
If any templates/sub-templates/partials used in this render have
2008 Nov 15
1
Using n+1 instances of R to utilise n processors on one machine - something like R with tabbed browsing?
Dear R-help,
Please forgive me if any of the following sounds naieve/confused, i've
just got back from a mini-pub-crawl, slightly tipsy, and am feeling
brave to ask a possibly silly question... also, not to shiny on the
technical side of things.
Problem - I need to text mine a collection of 10,000 plain text
documents, all of which are sitting in a single folder. i don't have
any money
2006 Mar 30
11
Illegal char \002? Need to restart Rails to see changes?
Hi all,
I''m developing an app on a home Windows computer and using
SVN/Capistrano to deploy to a Linux server. I''m encountering some
bizarre behavior that I think has something to do with Linux and Windows
text file types, but I''m not sure.
What''s happening is that, whenever I edit my view files and reload the
page in my local browser, I see errors saying
2010 Aug 17
3
Rails 3 flash message problems
The following code in my application_helper.rb class either eats the
flash message or escapes it and does not display properly:
# Outputs the corresponding flash message if any are set
def flash_messages
messages = []
%w(notice warning error).each do |msg|
messages << content_tag(:div, content_tag(:p,
html_escape(flash[msg.to_sym])), :class => "message
2006 Jul 17
7
Ajax Tabbed Browsing
I was wondering if anyone has done this, namely make tabbed browsing
exactly like a web browser, but have it within the page.
I would like to make a search function that updates a section of the
page with the results, as well as makes a new tab that displays those
search results. Then, if a user did 5 searches, there would be 5 tabs.
Each tab would hide the other 4 results and show the
2009 Nov 14
4
php config security concern for c5
a recent post on bugtraq hilighted an issue with how upstream has
configured apache to invoke php, namely using addhandler, which has the
behavior of matching the extension anywhere in the file. this means
that foo.php.jpg will be run as php. where this becomes an issue is web
apps that allow uploads into the webspace for images, pdfs, etc. if the
app assumes that anything.jpg is safe,
2011 Jun 11
7
"Stack level too" deep with @controller.hi
Hi again, sorry for many questions. In mi HomeController, I have the
"hi" method, in this method I use an "if" for show a different message
for a registered user or a guest. When I call in "home/index" my
method "hi", show me this error message:
"Stack level too deep"
class HomeController < ApplicationController
def hi
if (current_user)
2006 Jun 21
0
Scaffold error
Hoping someone call tell me what I''ve done wrong.
I was attempting to create a "static" scaffold (already have the
dynamic one) and received an error message:
"error Before updating scaffolding from new DB schema, try creating a
table for your model (Company)"
I already created a scaffold for Company (class CompanyController). I
want to create some better views.
2006 Feb 27
1
Models and Inheritance
I have a table of companies and a join table forming the relationship
between a list of possible services they can provide.
Working from a basic understanding of OOP I assumed that there should be
a series of Serviceprovider child objects of the company class.
Company < ActiveRecord::Base
has_belongs_to_many :services
end
Serviceprovidertype1 < Company
Serviceprovidertype2 <
2012 Aug 28
4
ArgumentError in HomeController#index
Hey guys, I''m new to ruby/rails and trying to sort something...
I just created an app with composer,
http://railsapps.github.com/rails-composer/
I used the command:
rails new myapp -m
https://raw.github.com/RailsApps/rails-composer/master/composer.rb
I set up the rails server, and tried to load the app on localhost:3000
However, I end up with:
ArgumentError in HomeController#index