Ruby on Rails Wednesday, February 29, 2012

good day i read about relativity gem but when i try to use it and make
a test file and build it gives me an error

=test.rb=
<pre>

require 'relativity'
opens_at = DayTime.new(9) #=> 09:00:00
closes_at = DayTime.new(12,30) #=> 12:30:00
</pre>


<pre>
/home/start/.rvm/gems/ruby-1.9.2-p290/gems/relativity-0.0.8/lib/
relativity/day_time/new.rb:24:in `BigDecimal': can't convert Fixnum
into String (TypeError)
from /home/start/.rvm/gems/ruby-1.9.2-p290/gems/relativity-0.0.8/lib/
relativity/day_time/new.rb:24:in `initialize'
from /home/start/Aptana Studio 3 Workspace/jquery/javascript/test.rb:
2:in `new'
from /home/start/Aptana Studio 3 Workspace/jquery/javascript/test.rb:
2:in `<main>'
</pre>

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment