search for: a_string

Displaying 6 results from an estimated 6 matches for "a_string".

Did you mean: d_string
2006 Jul 24
2
Newbie error message!
...tringIO:0x36311f0>}, "variable"=>["English"]} Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} This is my code (controller): def import_strings(a_string) table = { } IO.foreach(''#{a_string}'') { |line| if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x table[ $1 ] = $2 description = Description.new description.Index_Number = [$1] description.Name_Of_String = [$2] description.save end } This...
2007 Feb 28
4
acts_as_authenticated error with Object#id
I''m getting this when I run my Rails controller specs. <projectroot>/config/../lib/authenticated_system.rb:16: warning: Object#id will be deprecated; use Object#object_id I added "include AuthenticatedTestHelper" to /spec/spec_helper.rb so that my controller tests^H^H^H^H^Hspecs can use the "login_as" helper method. Anyone know how to fix this? -- Cheers,
2011 Jun 17
7
Encoding
What''s a good solution for fixing character encoding problems for compatibility between ascii and utf-8? The database is postgres and is encoded in utf-8. Once in awhile there will be a compatibility error from strings from a webform. Is there a command to fix this besides using a_string.force_encoding(''utf-8'')? Even this doesn''t seem to always work either. Thanks, Erica -- 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-/JYPxA39Uh5T...
2006 Apr 17
2
Simple Problem
Is it possible to select a portion of string? For example, in many websites, they give the first paragraph in the main page and link for the article on the other page. I remember this is available in PHP. Any help is appreciated. Thanks Rizwan -- Posted via http://www.ruby-forum.com/.
2006 Apr 27
1
SOAP service - perl server, ruby consumer incompatability
...pc/driver'' begin ENDPOINT = ''http://elina/cgi-bin/misc/OdbcBridgeServer.pl'' NAMESPACE = ''http://elina/cgi-bin/misc/OdbcBridgeServer'' ob = SOAP::RPC::Driver.new(ENDPOINT, NAMESPACE) ob.add_rpc_method(''set_sql'', ''a_string'') rescue Exception => ex puts "first block" puts ex end begin ob.call("set_sql", "select * from cre_master") rescue Exception => ex puts "second block" puts ex end === end client script === When I run the programme, the ou...
2005 Dec 21
10
Investigating Unicode. Take 2, with nastities and allegations.
Well, I see that my last email hasn''t generated any reaction from the Rails core team. It looks like all of them are the happy users of "plain text" (which, as we know by now, doesn''t exist, but still). I apologize in advance for the sore bitterness of this message but I see that the Rails-core STILL, despite all of the efforts, sees these issues as something