search for: display_title

Displaying 4 results from an estimated 4 matches for "display_title".

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 display_title == false %><h3><%= title %></h3><% end %> &...
2010 Mar 04
25
how to share variables in data migrations (up/down)
...39;, }, { ''live'' => ''published on site'', }, { ''sold'' => ''auction ended'', }, ] def self.up statuses.each do |status| status.each do |name, display_title| @new_status = Status.new( :name => name, :display_title => display_title, :created_by => ''admin'', :updated_by => ''admin'' ).save end end end def self.down status...
2008 Oct 28
5
Page does not seem to be reloaded on prod server
Hi all I''ve coded a small shop that works well on my dev machine (OSX 10.5). But look at the following page: http://shop.incense.ch/compact_discs/1 When clicking "Reservieren", the page is forwarded to a new page, where the product is added to the shopping cart, and a flash notice is prepare. Then the page is redirected back to the shop page. On my dev machine this works
2010 Apr 20
5
Smart localisation
Hi, I have some trouble using Il8n. I''ve had these problems for a while now and always used rough workarounds, but as my productivity needs to go up another notch, I was wondering whether there was any way of avoiding these workarounds. For example: When I''m inside a view (say ''home/index'') and use t(''title''), I''d like Rails to know