Displaying 20 results from an estimated 300 matches similar to: "case/capitalization of LABEL text"
2010 Sep 06
2
Background Task: How to?
Hello everyone, my app is Twitter based, and all I have to do is get
the tweets of a given user and retweet it in other twitter profile..
so when user1 tweets, user2 must automatically retweet. I think I must
write some background job to make this work but I don''t know how? Any
ideas? Any gem intended for things like this?
Thanks!
--
You received this message because you are subscribed
2009 Sep 09
3
[Rspec] Using Mocha results in uninitialized constant, using a 'fix' breaks RSpec output
After installation of Mocha (0.9.7), running "script/spec spec"
results in a "`const_missing'': uninitialized constant
Test::Unit::TestResult::TestResultFailureSupport (NameError)" error.
(As shown here; http://codepad.org/mTqztjwt )
I''m running Ruby 1.8.6 with Rails 2.3.4 on Windows, rspec (-rails)
1.2.8 (1.2.7.1), Test::Unit 2.0.3
As suggested roughly on
2009 May 18
8
Simple plotting errors
Dear R Users,
I have 12 data frames, each of 12 rows and 2 columns.
e.g. FeketeJAN
MEAN SUM_
AMAZON 144.4997874 68348.4
NILE 5.4701955 1394.9
CONGO 71.3670036 21196.0
MISSISSIPPI 18.9273250 6511.0
AMUR 1.8426874 466.2
PARANA 58.3835497 13486.6
YENISEI 1.4668313 592.6
OB 1.4239179 559.6
LENA 0.9342164
2013 Oct 15
3
Firewall/Gateway Hardware Question
I've given up on getting the other machine to work so I'm looking at
building a new one.
The machine will be a firewall/gateway running NAT, Web Proxy with
Dansguardian, DHCP, DNS, NTP and VPN (~6 clients).
I read so much about VPN encryption and the processor needs, now I am unsure
if this will work.
I can get this for AMD FX-8120 Zambezi 3.1GHz Socket AM3+ 125W Eight-Core
Desktop
2007 Apr 13
57
ZFS for Linux (NO LISCENCE talk, please)
Hello. I''m a nobody.
I use Linux. I have a hard-drive. I want the best / sexiest / what ever
fs for my hard-drive, as it isn''t one of those flashy flash drives,
which I presume don''t need an fs (???).
I was THRILLED that the ZFS for Linux thread started. And, I was equally
horrified (and sufficiently annoyed that I am starting this new thread) when
it degraded in to
2009 Apr 29
7
problem with nil.user
Hi all, I''ve put new code into my app so that an administrator will have
extra privileges (administer users, edit pages). The error is:
''Couldn''t find User without an ID''
So the app is looking for a logged in user when the homepage is
accessed.
Heres my code:
site/index view:
<% if is_logged_in? and logged_in_user.has_role?(''Moderator'')
2010 Nov 04
9
Delete action is not working and redirects to edit action
Hello,
i have a strange problem here. I have made a teacher controller using
scaffold. All actions work fine but the delete does not. When i click
the delete link, it redirects me to the edit of this teacher. I have
restarted the server and i have tried in firefox (i use chrome) but
problem still remains. Here is the code from my view.
<%= link_to(image_tag("/images/
2007 Apr 06
3
Mailer method missing
Rails dies when I try to call a method from my Mailer. But I have
defined my method. What could I have missed? Here is the irb session:
>> p = Person.find(1)
=> Person data...
>> SiteMailer.request_admin_approval(p)
NoMethodError: undefined method `request_admin_approval'' for
SiteMailer:Class
>> SiteMailer.method_defined? :request_admin_approval
=> true
The
2007 Oct 21
4
Making 'expire_fragment' available to a model?
I noticed a lot of repetition across different Sweeper models in my
app expiring the same fragments and so have been trying to move all
the expire_fragment calls into another model which the sweepers can
then use but it''s not working as I''d hoped..
I''ve created a CacheDestroyer model and want to be able to call
something to the effect of:
2009 Sep 07
11
autoincrement for non-id column
There is a table:
execute (<<-SQL)
CREATE TABLE "tasks" (
"id" serial primary key,
"number" serial,
"version" integer DEFAULT 0 NOT NULL,
"latest_version" boolean DEFAULT ''t'' NOT NULL,
"hidden" boolean DEFAULT ''f'' NOT NULL,
"type" character varying (1) NOT
2009 May 05
1
Plotting pairs of bars
Dear all,
I have a matrix called combine86 which looks as follows:
> combine86
Sim Mean Obs Mean Sim Sum Obs Sum
AMAZON 1172.0424 1394.44604 553204 659573
NILE 262.4440 164.23921 67973 41881
CONGO 682.8007 722.63971 205523 214624
MISSISSIPPI 363.0758 142.59883 124535 49054
AMUR 143.5857 89.30434 36040 22594
PARANA
2010 Sep 16
5
vestal_versions -- can I set it to ignore certain columns?
I''d like my published boolean to be excluded from the calculation as
to whether a version is created or not. Can anyone suggest a way to do
that?
Thanks,
Walter
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To
2007 Dec 20
4
Ruby on Rails mailer
Today I made a first attempt to make use of ruby mailer. A volunteer
fills out a form and the information is then sent to an administrator.
I generated a mailer called notifier and added the following:
class Notifier < ActionMailer::Base
def volunteer_signup(volunteer, sent_at = Time.now)
@subject = ''A new volunteer has signed up''
@body = { :title =>
2008 Feb 19
20
Ruby on Rails and MS Access
How do I connect an existing or new Access database with Ruby on
Rails?
I am new to Ruby on Rails and a tutorial I am going through mentions
using MySQL but I don''t have MySQL and only work with MS Access.
Is MySQL available for free on the web? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2013 May 19
5
update_attributes() for a single column
I was just faced with a strange ROLLBACK exception when attempting to
execute this code:
$ rails console
user = User.first
User Load (1.1ms) SELECT "users".* FROM "users" ORDER BY
"users"."id" ASC LIMIT 1
=> #<User id: 1, name: "Michael Hartl", email: "foo-+RB1Aph5k6s@public.gmane.org",
created_at: "2013-05-12
2008 Apr 21
7
undefined method `partial_updates='
Hello
When I try the command:
rake db:migrate
I get the following:
rello@calimero:~/Sites/music_library/config$ rake db:migrate
(in /home/rello/Sites/music_library)
rake aborted!
undefined method `partial_updates='' for ActiveRecord::Base:Class
I googled with no results.
Anybody can help me?
Thankyou
--
Posted via http://www.ruby-forum.com/.
2010 Feb 10
6
validation problems
Hi, there.
I have two validations in the model:
validates_numericality_of :value, :only_integer=>true,
:allow_blank=>true
validates_size_of :value, :is=>9, :message=>"must be 5-digit number",
:if=>Proc.new{|u| u.value.is_a?(Numeric)}
They work as expected except when the :value is character/string like
"a" "abc", the second validation will also output
2008 Aug 31
9
assigning collection values and exceptions
hi everyone,
I''ve this code in my Report model:
has_many :report_reasons, :validate => true
has_many :reasons, :through => :report_reasons #, :uniq => true
# :accessible => true
def reason_attributes=(reason_attributes)
reasons.clear
reason_attributes.uniq.each do |reason|
reasons << Reason.find_or_create_by_content(reason)
end
end
2006 Jul 18
2
Turn element hidden by default (ajax question)
(this is my first post on the ruby forum. If this is not the right place
for this type of question please let me know).
Ajax question
I have a checkbox that toggles the visibility of another element (a text
field) with the code:
---
<p><label for="checkbox">Appear!</label>
<%= check_box :object_name, :method, :onClick =>
2010 Apr 29
10
How to install rails gems 2.3.5 on windows
Hi,
When I try to add generator to controller, I got error as "Missing the
Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your
RAILS_GEM_VERSION setting in config/environment.rb for the Rails version
you do have installed, or comment out RAILS_GEM_VERSION to use the
latest version installed."
Can somebody please let me know how to install rails gem 2.3.5
successfully on a