similar to: Is there a perl equivalent of .= in ruby/rails??

Displaying 20 results from an estimated 8000 matches similar to: "Is there a perl equivalent of .= in ruby/rails??"

2006 Feb 21
4
customizing layouts for functions
I want to be able to have different layouts in my rails program for different functions. For example, when a person first comes to the site the layout will have a link that says ''home'', ''login'', or register on the menu bar. Once the user logs in however, the layout will change. I want it to show the links ''account manager'',
2006 Feb 21
4
displaying double digits
Hi, I have a question about displaying digits in Rails. whenever I print the price of an item, if the last digit is a zero or double zeros then it doesn''t display properly. How do I display a number so that it looks like currency? thank you! -- Posted via http://www.ruby-forum.com/.
2006 Mar 31
3
Need to use a method without the layout
I need to use a method (called by one of my controllers) without using the layout. All the other methods in the controller need to use this layout except for thismethod (becausae it''s called by an Ajax script). I know how to use :layout=>layout_name when calling a method from another method, but nothing is calling this. The layout needs to be removed in the method itself or I need
2006 Apr 06
2
Quick Question: Using a CSS class statement in a link_to tag
Hi, I have a css file with lots of classes. I want different links on my page (which all use the ''link_to'' tag) to belong to different classes so that I can format their font, size, color, etc. Where or how do I use the css class name in the link_to tag? Thank you very much -- Posted via http://www.ruby-forum.com/.
2007 Nov 21
22
Getting Class in Shared Behaviours
Hi, I want to be able to get at the described class in my shared behaviour. I''m sure an example will say it better than my words describe "my shared", :shared => true do it "should tell me what the class is its describing" do how_do_i_get_the_user_class_here end end describe User do it_should_behave_like "my shared" #... end So in my
2018 Mar 13
1
trashcan on dist. repl. volume with geo-replication
Hi Kotresh, thanks for your repsonse... answers inside... best regards Dietmar Am 13.03.2018 um 06:38 schrieb Kotresh Hiremath Ravishankar: > Hi Dietmar, > > I am trying to understand the problem and have few questions. > > 1. Is trashcan enabled only on master volume? no, trashcan is also enabled on slave. settings are the same as on master but trashcan on slave is complete
2004 Jul 09
4
HTB & Bdw Guarantee
Hello, I have problems setting up HTB. This is my setup : NET 1024/256 ADSL || eth1 Linux Firewall eth0 || LAN 10.a.a.a I want to GUARANTEE for an IP (10.x.y.z) a 800kbit bandwidth for HTTP download. But When 10.x.y.z does no HTTP download, other trafic must get the whole bandwidth, of course. The script I use (see below) is quite the same as presented at (the greeeeat page) :
2006 Apr 28
1
startcolor and endcolor not working
In my RJS template this works: page.visual_effect :highlight, "test#{@test.id}", {:duration => 5} but not this: page.visual_effect :highlight, "test#{@test.id}", {:duration => 5, :startcolor => "#FFFFFF"} Am I misunderstanding how to pass in additional parameters? _______________________________________________ Rails-spinoffs mailing list
2015 Mar 19
2
libvirt-python Segfaults
Hello I am trying to get libvirt-python working in Ubuntu 14.04 64 bit system. I tried installing the binaries from the repo itself: 1. root@test-vm8-109:/home/test# libvirtd --version libvirtd (libvirt) 1.2.2 root@test-vm8-109:/home/test# python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or
2010 Oct 14
5
Restricting samba subfolder acl changes to admin users
Dear samba team, What I noticed from the below example is , any user who has write access to share are able to change sub folder acls in it. we don't want that. how to restrict this to only admin users in NAS and to AD administrator in windows. ?. Please help . ---------------- 1) Import user from W2K3 R2 Server and set up a secure share. User has Read/Write access. 2)
2006 Jul 17
3
POP3: Keep a copy on server failed ...
I have a big problem with our cluster, if i read my mail with POP3 client (and check the option, keep a copy on server), every time I read my mail, my client retrive ALL messages an the mailbox !!! I test this with: - Apple Mail 1.0 + 2.0 - M$ Outlook 2000 + 2003 - Thunderbird We use: - Dovecot RC1 - Postfix on Debian Sarge (stable) Can you know this bug ? Or have a workaround ? This function
2006 Jan 16
3
DO NOT REPLY [Bug 3415] New: -R and --delete cause --delete to be ignored
https://bugzilla.samba.org/show_bug.cgi?id=3415 Summary: -R and --delete cause --delete to be ignored Product: rsync Version: 2.6.6 Platform: Other OS/Version: Windows 2000 Status: NEW Severity: major Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: dietmar@zlabinger.at
2012 Jan 23
13
Template Help Please
Hello, I am trying to setup a template with data being passed in as a long string of data which is being returned via extlookup() i.e. $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12" The template should split those up and put a nameserver entry per line in /etc/resolv.conf I have this in the template now:- <%=
2006 Feb 24
6
Duplicate entry - how to check if an id exist before saving?
How do I check if an entry exists before saving? Someone one told me to use the method find_or_create (or something like that) but it didn''t work because I think the version of rails that we have is not the most recent. I need a way to check if an id exists in the db before saving. Any suggestions? Thank you -- Posted via http://www.ruby-forum.com/.
2015 Mar 20
1
Re: libvirt-python Segfaults
Hi Harish, I believe the proper establishment of a connection should be done by libvirt.open() or libvirt.openAuth() or libvirt.openReadOnly(). All of them will return a functional virConnect instance. I'm not sure this segfault is worth to fix since instantiate a virConnect directly is not an expected usage. Hope this information will help you. Best Regards, Hao Liu +86-010-62608262
2001 Nov 26
1
Hmm. Silly(ish) question re: winbind
Hmm...I've never tried it with a local user and a domain group. I've certainly done stuff like: chown DOMAIN+David:"DOMAIN+Domain Users" * and had it work before... -----Original Message----- From: Glenn Sieb [mailto:ges@lumeta.com] Sent: Monday, November 26, 2001 11:00 AM To: Samba Mailing List Subject: Hmm. Silly(ish) question re: winbind I know that winbindd allows Samba
2006 Feb 28
2
search button on ruby-forum.com isn''t working
I''d like to search the archives, but when I click on ''search'', the search page doesn''t show up. When will the search engine be up again? -- Posted via http://www.ruby-forum.com/.
2010 Aug 18
1
Re: [GIT PULL] devel/pat + devel/kms.fixes-0.5 on RV730 PRO [Radeon HD 4650]
> Can you try fiddling with the dracut options to force it include the > proper firmware bits? Build kernel 2.6.32.19 with 1. CONFIG_DRM_RADEON=y 2. Drivers->Staging Drivers-> Enable modesetting on radeon by default <*> ( otherwise KMS switches to userspace modesetting ) Whatever option like --add , --install i tried with dracut. initramfs been uncompressed # cd /root/test #
2007 Jan 26
3
Office 2007 saves files as read only on samba shares?
I've been running the same configuration for a couple of years now, and since I've upgraded to Office 2007, MS Word and MS Excel files save to my samba shares as -r-------- even when they are opened as being chmod 777. Files I create/edit using other editors or windows explorer are put onto the share with the correct permissions. My conf looks like this: [global] workgroup = WG
2009 May 03
13
Ruby or Rails bug?
In irb all works fine: # irb irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''raspell'' => true irb(main):003:0> speller = Aspell.new("ru_RU") => #<Aspell:0x7f8692c9d158> irb(main):004:0> speller.suggestion_mode = Aspell::NORMAL => "normal" irb(main):005:0>