similar to: escape character problem

Displaying 20 results from an estimated 10000 matches similar to: "escape character problem"

2009 Jan 06
1
How to access text helper and url helper methods in model
Hi, I want to access TextHelper and UrlHelper methods in my model so how i am able to access it ? I was included following helper in my model but still it is not working? also for accessing these helper method w need to give external reference? E.g. class Xyz include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper Also
2008 Sep 17
1
url_for not working in model
Hi, I am using ''url_for'' for constructing url in my model but it gives me error <NoMethodError: undefined method `url_for'' for Xyz:Class> how to access url_for in model and it possible to call controller method in model and how to call it? Please urgently give reply? -- Posted via http://www.ruby-forum.com/.
2008 May 29
4
ruby's simple_format method is not working for spaces.
Ruby''s simple_format method is not working for spaces. so how to add and what to add in simple format method code so it also work for spaces? -- 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
2008 Aug 28
2
tree structure in rails?
Hi, Is there is any way in ruby on rails where we show all my groups there subgroups with check boxes in tree structure way? e.g group A | ----Group A.1 | ----Group A.2 | ---------Group A.2.1 All with check boxes and subgroup opens when click on root ? -- Posted via
2006 Jul 13
1
From the Agile book, page 144 regarding a div tag helper
Hi. in the Rails Agile book here''s what was happening: >>> module StoreHelper def hidden_div_if(condition, attributes = {}) if condition attributes["style" ] = "display: none" end attrs = tag_options(attributes.stringify_keys) "<div #{attrs}>" end # format_price method ... end Note that we cheated slightly here. We copied code from the Rails
2007 Mar 23
1
How does this helper work? (agile book)
Hello, Im trying to understand how this helper method works: def hidden_div_if(condition, attributes = {}) if condition attributes["style"] = "display: none" end attrs = tag_options(attributes.stringify_keys) "<div #{attrs}>" end This is how they are calling it: <%= hidden_div_if(@cart.items.empty?, :id => "cart") %>
2005 Jun 10
4
data.frame to character
Hi, Excuse me for this simple question. How to convert as.data.frame to as.character? ?data.frame > L3 <- LETTERS[1:3] > L10 <- LETTERS[1:10] > d <- data.frame(cbind(x=c("XYZ"), y=L10), fac=sample(L3, 10, repl=TRUE)) > d x y fac 1 XYZ A A 2 XYZ B A 3 XYZ C A 4 XYZ D A 5 XYZ E B 6 XYZ F C 7 XYZ G A 8 XYZ H C 9 XYZ I B 10 XYZ
2008 May 29
2
rsync using wildcard (*) character
We are using rsync version 2.6.3 and do not intend to upgrade to the latest version. I am using the following command:- rsync -arv --files-from=./myfile /app/dd/gesb user@rrslx905:/var/log/hhsb I want to mention the file list in the "myfile" as follows:- ABCD/cdef/xyz* (Considering there are more than one files existing with names beginning with xyz) Once I try to transfer files
2008 May 12
3
photo rotation.
hi in my application i have a photo gallery page where i showing all my album photos, i want to developed a functionality where i can rotate photo there and and saved backed to file system. how it is possible ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2013 Apr 29
3
ktpass.sh error / How to generate a keytab for a new service (apache) with SAMBA4?
Hi, I was trying to get a new keytab in samba4 for my apache service. So I tried the following command: sh ktpass.sh --out /etc/apache.keytab --princ HTTP/myhost.samba.my.domain at SAMBA.MY.DOMAIN --pass VerySecure123 --enc des-cbc-md5 I get the following error: Unable to find kvno for principal HTTP/myhost.samba.my.domain at SAMBA.MY.DOMAIN Am I doing something wron or shouldn't I be
2013 Dec 20
2
Samba 3.0.28 NOT WORKONG WITH WIN 7 CLIENTS
Hi Team, I am Riyaj from WIPRO contacting you for very stange SAMBA issue. We have Samba V 3.0.28 running on AIX 5.3 and AIX 6.1 with WIN XP as client computers on DOMAIN A Now we are planning to migrate all the client computers to WIN 7 running on DOMAIN B which has trust relationship with DOMAIN A While I provided access to the client from AIX side they are not able to access it from WIN 7
2012 Feb 14
4
How to escape exec command parameters?
If I have a "simple" variable value, this works fine: capmon@peter:~> puppet -e ''$v="xyz" exec { f: command => "/bin/echo v is $v", logoutput => true }'' notice: /Stage[main]//Exec[f]/returns: v is xyz notice: /Stage[main]//Exec[f]/returns: executed successfully But how do I escape "bad" values of $v? Painful examples like the
2008 Jul 14
1
question about method "hidden_div_if" in AWDR 2
I followed the sample code in AWDR 2 like this: store_helper.rb def hidden_div_if(conditions, attributes = {}) if conditions attributes["style"] = "display:none" else attr = tag_options(attributes.stringify_keys) "<div #{attr}>" end end store.html.erb <%= hidden_div_if(@cart.items.empty?, :id => "cart") %> <%=
2006 Mar 25
0
in_place_collection_editor
Hi, I''m trying to write a helper for Scriptaculous'' InPlaceCollectionEditor component. I''ve already submitted a patch (http://dev.rubyonrails.org/ticket/4302). This was a drunk patch; it needs a bit of work (Don''t drink & code!). So far I''ve gotten it to work correctly with normal collections, but I want to use it for belongs_to relations as
2002 Nov 26
1
Problem with accented characters in portuguese
Dear all, I've recently encountered a strange behaviour when using R with portuguese accented characters. The most curious aspect is that using the same code with ESS under XEmacs the behaviour is different. My system is: > R.version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major
2016 Apr 25
1
Please assist -- Unable to remove '-' character from char vector--
Thank you Jim, The code did assist me to get the what I needed. Also, I learnt that there are different types of dashes (en-dash/em-dash/hyphen) as explained on this site : http://www.punctuationmatters.com/hyphen-dash-n-dash-and-m-dash/ I achieved it by executing below command after going through this page on stackoverflow:
2016 Apr 25
3
Please assist -- Unable to remove '-' character from char vector--
Hi, I have a char vector with year values. Some cells have single year value '2001-' and some have range like 1996-2007. I need to remove hyphen character '-' from all the values within the character vector named as 'end'. After removing the hyphen I need to get the last number from the cells where there are year range values i.e if the cell has range 1996-2007, the code
2017 Jul 25
10
under another kind of attack
Hi folks, "somehow" similar to the thread "under some kind oof attack" started by "MJ": I have dovecot shielded by fail2ban which works fine. But since a few days I see many many IPs per day knocking on my doors with wron password and/or users. But the rate at which they are knocking is very very low. So fail2ban will never catch them. For example one IP: Jul 25
2016 Apr 25
0
Please assist -- Unable to remove '-' character from char vector--
Hi Sunny, Try this: # notice that I have replaced the fancy hyphens with real hyphens end<-c("2001-","1992-","2013-","2013-","2013-","2013-", "1993-2007","2010-","2012-","1984-1992","1996-","2015-") splitends<-sapply(end,strsplit,"-") last_bit(x)
2006 Jun 16
2
DISABLE auto-escaping in image_tag helper
Is there any way to disable image_tag''s automatic escaping of special html entities in it''s :alt tag? Example: >From the controller: @sale[''title''] = ''My Company Product&copy;'' In the view: <%= image_tag(''path/to/file.png'', :alt => @sale[''title'']) %> Output: <img alt="My Company