Displaying 20 results from an estimated 30000 matches similar to: "Classes indise lib folder not refreshed until reboot server ?"
2010 Jun 22
1
Stuck noobie: XRC/xrcise woes
Hi,
I''m teaching myself to use wxRuby and DialogBlocks to create a front end
for a Ruby program I wrote. And I''m hopelessly stuck!
In DialogBlocks (or indeed wxFormBuilder, which gives me the same
problem) I can create a widget, give that widget a new id and class name
(in the example I created below, text_box1 and CaseChangeTextCtrl1,
respectively), and then add a module which
2008 Mar 12
1
Testing helper methods in rspec
This is perhaps a naive question, but what is the recommended manner of
testing a helper method in rspec? I have created a simple string manipulation
function and I want to write some tests for it. It it were a script then I
would just add if __FILE__ == $0 and add the tests below that but I do not
feel that this is the best way to handle a rails helper.
The code (I said it was simple) :
2005 Oct 07
2
Some Ruby code help?
Hi,
This isn''t related to Rails itself, but rather to Ruby. I''m trying to
import a file into a database. The fields are separated by a ''|''.
Everything seems to work fine, but after 64 rows are inserted, it starts
mangling the field values. Would you take a look at the following code?
require ''mysql''
def capitalize(str)
2006 Aug 03
3
Swedish Rails
I would like to announce my plugin Swedish Rails.
Rails provide many goodies and helpers for you, but some of these are
dependant on your user interface being in english. Date controls, for
example. Pluralization is another. And have you ever tried to capitalize
a string with Swedish letters in them? Then you know it doesn''t work
that well. Until now, that is. You install this
2006 Feb 09
2
How to call a standard function from a class inside the lib folder ?
Hello,
I try to use url_for from a class inside the lib folder
class Test
def self.mytest options
url = url_for( options )
end
end
But I have this error :
*undefined method `url_for'' for Test:Class*
How can I use it ?
Thanks
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2007 Nov 02
11
xrcise tutorial, undefined method ''upper_bt''
Hi
I''m trying to follow the tutorial on xrcise at
http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise
But I keep getting the following error when I try to run the example;
tutorial.rb:21:in `initialize'': undefined method ''upper_bt'' for
#<CaseChangeFrame:0x2d610f8> (NoMethodError)
from tutorial.rb:28:in `new''
from
2006 Jan 18
1
question on when ruby classes are refreshed
Hi,
I noticed that classes present in app/controller, helper, models and
views are all change aware. (The name for this escapes me). I mean if
you change a certain controller, these changes are immediately available
(development) without restarting any webserver.
Q? how is this behavior called?
I have some custom ruby classes not part of ruby on rails. Any changes
made to these custom
2005 Mar 17
2
Using gettext to localize your rails app
Hi,
I am having some trouble finding out how best to use ruby-gettext in my
app. I do this in my ApplicationController:
before_filter :localize
private
def localize
# we will always use UTF-8
@charset = ''utf-8''
@headers["Content-Type"] = "text/html; charset=@charset"
# simplified approach: extract the first language from the request
# or use
2018 Jul 13
0
CentOS 7 + MATE : Folder contents not refreshed in file manager
On 2018-07-09, Nicolas Kovacs
<info at microlinux.fr> wrote:
> Hi,
>
> I just migrated my workstation running CentOS 7 from KDE to MATE.
>
> It looks like I'm having the same problem with the Caja file manager
> than with Dolphin. Folder contents don't get refreshed automatically,
> and I have to hit F5.
>
> For example, when I download a file (say, a
2018 Jul 09
3
CentOS 7 + MATE : Folder contents not refreshed in file manager
Hi,
I just migrated my workstation running CentOS 7 from KDE to MATE.
It looks like I'm having the same problem with the Caja file manager
than with Dolphin. Folder contents don't get refreshed automatically,
and I have to hit F5.
For example, when I download a file (say, a compressed archive) from the
Internet, I have to hit F5 to see the file in Caja. And when I extract
the archive, I
2018 Jul 20
1
CentOS 7 + MATE : Folder contents not refreshed in file manager
Le 13/07/2018 ? 21:57, Liam O'Toole a ?crit?:
> What do you see in /proc/sys/fs/inotify/max_user_watches? If you
> increase the value, does the problem persist?
I investigated this, and indeed, it solved my problem.
I wrote a little blog article to summarize my findings and put you in
the Thank You notes.
https://blog.microlinux.fr/inotify/
Cheers,
Niki
--
Microlinux - Solutions
2006 Dec 30
0
[809] trunk/wxsugar/lib/wx_sugar/layout.rb: Fix default sizers to arrange_vertically, add padding on specified sides
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 Apr 07
5
Are there any Czech people using Rails?
Hello,
how do you solve the problems with czech characters? Do you use unicode
or ISO-8859-2/WIN1250? How do use methods like String:upcase etc. that
dont use czech characters?
I would appreciate any hints for this.
Thanks,
David Marko
--
Posted via http://www.ruby-forum.com/.
2005 Nov 30
3
Downcasing Legacy Table Column Names
I''m looking for the simplest way to *automatically* downcase the
attribute names of Models mapped to legacy tables that use upper
case. eg:
class Workorder < ActiveRecord::Base
set_table_name "WORKORDER"
end
which has "NAME" as an attribute can use "name" as an attribute.
currently:
workorder = Workorder.find(1)
workorder.NAME # =>
2005 Nov 04
0
Dispatch error on textdrive
Any ideas what coule be causing this error when I run dispatch.cgi?
xxx@gilford$ ./dispatch.cgi
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/request.rb:13:in
`method'': undefined method `downcase'' for nil:NilClass (NoMethodError)
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/request.rb:23:in
`post?''
2012 May 24
0
Ruby on Rails Tutorial Chapter 6 RSpec tests failing
Hello all:
I''m a RoR newbie who is currently following the Ruby on Rails
Tutorial: Learning by Example book (http://ruby.railstutorial.org/
chapters/modeling-users#sec:adding_a_secure_password). The following
Chapter 6 RSpec tests are failing:
Failures:
1) User [31mFailure/Error:[0m [31mit { should be_valid }[0m
[31mexpected valid? to return true, got false[0m [36m # ./spec/models/
2010 May 08
19
mb_chars.upcase and Ruby 1.9.2
I''m testing ruby-head through rvm but can''t get ''ação''.mb_chars.upcase
== ''AÇÃO''... I get ''AçãO'' instead...
This happens both for Rails 2.3.5 and Rails 3 beta 3...
How can I get upcase to work correctly?
Thanks in advance,
Rodrigo.
--
You received this message because you are subscribed to the Google Groups "Ruby
2010 Nov 10
0
Problem with case statement and mb_chars in Ruby-1.9.2
RoR-3.0.1
I have this case statement:
case n.hll_normalize
when "common name"
@my_correspondent.correspondent_common_name = s
when "legal name"
. . .
else
raise ArgumentError, "#{n} attribute is not provided for."
end
hll_normalize is defined as:
def hll_normalise
strip.squeeze(" ").mb_chars.downcase
end
I
2008 Jun 18
4
How to use Chars in classes not derived from AR
Hi!
I have a class that derives from nothing and is located in /models. I''m
using " my string ".chars to manipulate strings that potentially contain
special chars and replace them with an US-ASCII equivalent.
It did work until yesterday. Now on a linux system "a".chars returns
#<Enumerable::Enumerator:0xb74e3d6c>
While it should return
2007 Jun 29
0
RE: Samba testparm gives error in Solaris 10
Wed Jun 14 01:50:55 GMT 2006
* Previous message: [Samba]
<http://lists.samba.org/archive/samba/2006-June/121816.html> LDAP Group
mapping
* Next message: [Samba] testparm
<http://lists.samba.org/archive/samba/2006-June/121845.html> gives error in
Solaris 10
* Messages sorted by: [
<http://lists.samba.org/archive/samba/2006-June/date.html#121817> date ] [