similar to: Proper idom for link_to_if

Displaying 20 results from an estimated 6000 matches similar to: "Proper idom for link_to_if"

2006 Jan 04
5
help with link_to_if, I can''t make it work...
For the life of me I can''t get it to work. Here is an example of my syntax. I''m trying to make comment.name a link to comment.web_site only if there is a comment.web_site. Can someone please help? <%= link_to_if(comment.web_site.length > 0, comment.name, comment.web_site {"class" => "comment_by"}) %> -- Posted via
2006 Jan 05
0
Re: help with link_to_if, I can''t make it work..
Nooby guess, Do you need a comma between comment.web_site and {"class... ? Looks like there should be 4 params...test, text, href and html_params A. On 4 Jan 2006, at 04:42, rails-request@lists.rubyonrails.org wrote: > Date: Wed, 4 Jan 2006 05:05:39 +0100 > From: charlie bowman <cbowmanschool@yahoo.com> > Subject: [Rails] Re: help with link_to_if, I can''t make it
2006 Jan 09
3
Scaffolding - disabling Create, Edit, Destroy for some user logins?
People, I am using: before_filter :login_required in my Controllers and this works fine. For some tables I am happy to use the output of eg: ruby script/generate scaffold Author but is there some way that I can disable Create, Edit, Destroy for some user logins in the corresponding view? Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box
2005 Dec 15
6
Navigation menu
I have a navigation menu that contains a link per controller in my application. This menu is the same for all controllers, but I want this behaviour: <a>Users</a> <span>Statistics</span> and <span>Users</span> <a>Statistics</a> depending on the page you''re currently on. I''ve put a <render :partial =>
2011 Apr 13
5
Nested route with collection
Hi! I try to do nested route with collection, but I always have mistake route: resources :user do resources :todo do member do post :complete end collection do get :completed end resources :post end end View: <%= link_to_if (params[:action] == ''home''), ''Done'', comoleted_user_todo_path %> Browser back me mistake undefined local
2006 Feb 05
6
render partial -- show certain content only if...
i''m working on a _post.rhtml partial, and it displays one blog post. i''m accessing this partial on the list.rhtml and the show.rhtml what i''d like is to only show the "link" link on the list.rhtml and not on the show page. <%= post.title%> <br /> <%= post.body%> <%= link_to
2009 Nov 03
3
Proper configuration for DNS slaves and masters
I have the following layout DNS01 - Master DNS02 - Remote slave DNS03 - Local network slave The master is configured so: acl HLLnetworks { 209.47.176/24; 216.185.71/24; }; options { allow-query { any; }; allow-recursion { HLLnetworks; }; allow-transfer { HLLnetworks; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db";
2006 Jan 11
5
stack level too deep problem
Hi all, I''m trying to overload the link_to function, (to disable link_to if the user has no access right) this is my code, it work the first time I run the application, the second time I refresh the page I always get "stack level too deep error" module UsersHelper include ActionView::Helpers::UrlHelper alias_method :link_to_original, :link_to def permission? true
2019 Feb 08
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
I can reproduce this behavior on my Windows 10 system in RGui (cp1252): when I paste the Unicode infinity symbol into the console, it is treated as number 8. This is caused by Windows "best fit" default behavior in conversion of unicode characters to characters in the current native encoding: at some point in the past, 8 has been chosen as a good fit for infinity in Windows. In my
2019 Feb 07
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
I can confirm that it doesn't happen on Ubuntu 18.04.1 so Peter is most likely correct; it looks like its Windows specific. On Thu, 7 Feb 2019 at 12:55, peter dalgaard <pdalgd at gmail.com> wrote: > > This doesn't seem to be happening on MacOS, neither in Terminal nor RStudio, (R 3.5.1, R-devel, R-patched). So probably Windows specific. > > -pd > > > On 7 Feb
2019 Feb 07
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
Bug Using read.table(file, encoding="UTF-8") to import a UTF-8 encoded file containing the infinity symbol (' ? ') results in the infinity symbol imported as the number 8. Other Unicode characters seem unaffected, example, Zhe: ? Expected Behavior: The imported data.frame should represent the infinity symbol as the expected 'Inf' so that normal mathematical operations
2005 Dec 22
2
ACL Navigation Links
I''m currently using the ACL (Access Control Lists) system in my app. The access control is working great, but I''d like to use the permissions/roles setup in the database to hide links to areas a user may not have access for automatically. I''m guessing that you could setup a helper function to use instead of link_to and have it check the permissions, but
2009 May 11
9
vmx_update_guest_cr() losing EXCEPTION_BITMAP setting
Running a heavily modified xen-unstable changset 19590:f80cf52a4fb6 with debugger_attached set, I was seeing the debug traps getting lost from the EXCEPTION_BITMAP in vmx_update_guest_cr() when transitioning from real to protected mode. In my codebase, I could fix this trivially by clearing the debug_state_latch and letting vmx_do_resume() reapply the setting. However, while it looks like a valid
2007 Nov 24
5
rspec.opts
Where can I find a list of the options and their usage and meanings for the contents of this file? Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada
2005 Dec 01
5
Configuring X after instal on CentOS4
What is the name of the program that replaces Xconfigurator and XF86Setup for resetting video display values for X post-install? Regards, Jim -- *** e-mail is not a secure channel *** mailto:byrnejb.<token>@harte-lyne.ca James B. Byrne Harte & Lyne Limited vox: +1 905 561 1241 9 Brockley Drive fax: +1 905 561 0757 Hamilton, Ontario
2008 Jul 19
11
HVM direct boot broken in xen-unstable
Hi! On x86_64, changeset 18081, running/building on rhel5, trying to use the HVM direct boot causes the domain to reboot immediately and then the log says the domain is restarting too rapidly. No obvious hints as to where the problem is. If I build the in-tree ioemu code, things work. Any clues as to where to look or how to get some useful debugging output? Thanks, John Byrne
2002 Oct 08
5
Filesystem for Samba server
> Hi, > Sorry if this is a stupid question (bit of a newbie). I'm building a Samba > fileserver on a box with a hardware raid array of about 65GB which I'm > hoping to share out to the local LAN . I was wondering if the filesystem > used (ext2,ext3, reiserfs etc) on the partition where the Samba shares > will reside makes much of a difference? I'd obviously like to
2006 Jan 25
8
conditional replacements in rhtml
I am working on the Agile programming tutorial and trying out some ruby code. Can someone tell me why the following works: <h1>Display Cart</h1> <p> Your cart currently holds <%= @items.size %> <%= @items.size == 1 ? "item" : "items" %>. </p> while this does not? <h1>Display Cart</h1> <p> Your cart currently
2006 Jul 31
4
vbd flushing during migration?
Hi, I don''t see any obvious flush to disk taking place for vbd''s on the source host in XendCheckpoint.py before the domain is started on the new host. Is there a guarantee that all written data is on disk somewhere else or is something needed? Thanks, John Byrne _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com
2006 Jan 27
4
testing for nil numeric value in find
In the agile/rails tutorial book the following construct is added to products.rb. def self.salable_items find( :all, :conditions => "date_available <= now()", :order => "date_available desc") end Now, I wish to extend :conditions => to exclude products that have a nil value for the price. I have tried different syntax