Displaying 20 results from an estimated 8000 matches similar to: "Why NaN.class throws NameError ?"
2013 Aug 29
10
Concatenate two arrays
Hello again ruby community!
I just learned how to add two arrays(I know, i know).
My program looked like this
array1=[1,2,3]
array2=[4,5,6]
array_sum=array1+array2
I thought pretty simple stuff, they are combined. However, now i am
looking to define that code as a method and I do not understand how to
create the correct number of arguments, so when the method is called
back it gives me my
2013 Jul 24
12
Want to send password via SMS
Hi I am saving password with hashed_password and salt in table. Now I need
to send those passwords via SMS can it be possible.Kindly give me some
suggestion plz .
Thanks in advance
Cheers
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
2013 Jun 07
4
how to add gdal with rails application , now working with gdal 1.8 in ubuntu 10.10
I need to downgrade the gdal version , i am working in remote system so
have only command prompt so if anybudy know how to either downgrade gdal
version from 1.8 to 1.7 or any other way to use gdal in rails app which
have version 2.3.5 and ruby 1.8.7 and ubuntu 10.10
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2013 Oct 20
3
Looking for RoR friends
This is quiet off topic but I am looking for friends from this group. Reply
me :)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
2013 Jul 17
1
Install Rails 4 correctly on OS X Mountain Lion
After reading several books and tutorials on Rails, I found it difficult
to get a step by step guide to set up Rails on OS X. Most of what I read
is just speeding through the steps and many of them don''t work as
expected for various reasons (no compiler installed, outdated version of
curl, etc). So I wrote a detailed step by step on my blog here:
http://blog.nicoschuele.com/?p=171
I
2013 Aug 28
4
Deploying Rails 4 to VPS
Hello!
I now have a VPS and I''ve been playing with it a bit. It is running Debian
7.0. I''m wondering how to set up my environment to deploy a Rails 4 app.
I''d like to use Nginx with Passenger, Capistrano and RVM. Any good starting
points?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2007 Mar 06
15
mocking missing methods
Hi folks.
So I''m using mocha on a ruby project, and I really like it. One thing
I''ve noticed is that it can be a bit "surprising" when I''m mocking
methods that don''t exist on an object, and I think there''s an easyish fix.
At the moment, you use sheep = mock() to create a mock sheep. What I''d
like to do is something like sheep =
2013 Jan 15
7
javascript flash messages gem?
Does anybody knows a gem for managing flash messages? I would want to
add messages to the flash div in the client. Bootstrap support is a plus.
--
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 unsubscribe from this group,
2012 Jan 21
4
why doesn't an instance of Object get Class's new instance method?
"Object is the root of Ruby''s class hierarchy. Its methods are
available to all classes unless explicitly overridden."
Wouldn''t Class class be at the root of the class hierarchy?
After all, look at this:
1.9.2p290 :006 > Object.instance_of? Class
=> true
Object is an instance of class, after all we can use one of Class''
instance methods on Object:
2006 Nov 28
2
(no subject)
I''m using wx_sugar 0.1.2 with wxruby2-preview 0.0.37 on OSX and am
coming up with a strange error when trying to create a SpinCtrl:
class DatePicker < Wx::Dialog
def initialize
super(nil, :title => "Pick a date...")
arrange_vertically(:padding => 5)
@month = Wx::SpinCtrl.new(self) # line 19
add(@month)
end
end
gives error:
2012 Aug 25
11
Any meetup in india ?
Hi all specially indian rails developer & designer ,
Rails community is growing so fast in India , it is necessary to know what
they are doing , how they are doing and what they like in it .So, I''m
wondering we should arrange Meet-up in india , what you say ?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2012 Aug 07
9
How do I force link_to/form helpers to use the superclass name in the path instead subclass?
I want my helpers to generate paths using a superclass instead of the
subclasses. Assuming I have Owner and Member that both inherit from User,
rails will use the current objects class name when generating paths:
Let''s say current_user is a mod: <%= link_to current_user.name,
current_user %> will generate "/mod/:id". I want to force it to generate
2006 May 30
3
expected, got Fixnum problem.
Hi,
I was wondering if anybody knew what ''<some type> expected, got Fixnum''
means? My code looks like the following:
begin
anevent = Event.new
anevent.title = params["event"]["title"]
anevent = session[:user_id]
com = Community.find(params[:id])
com.events << anevent
rescue Exception => exc
...
end
But I get an
2012 Oct 25
2
Egarch (1,1) with Student t distribution in RExcel
Hi
I want to implement Egarch (1,1) with t distribution model using RExcel and VBA.
May I know the syntax.
Following is the code that I 'm using.
rinterface.RRun "spec=ugarchspec(variance.model=list(model=(eGARCH),garchOrder=c(1,1)), mean.model=list(armaOrder=c(1,1), arfima=FALSE), distribution.model=(std))"
rinterface.RRun "fit = ugarchfit(Data = b, spec = spec)"
2012 Oct 22
1
Egarch (1,1) with Student t distribution using rugarch
Hi
I was trying to implement Egarch (1,1) with Student t distribution using rugarch. But I was not getting any value.
Following were the commands that I was using:
library(rugarch)
spec=ugarchspec(variance.model=list(model="eGARCH", garchOrder=c(1,1)), mean.model=list(armaOrder=c(1,1), arfima=FALSE), distribution.model="std")
fit=ugarchfit(data=b,spec=spec)
sigma(fit)
May I
2012 Feb 28
8
getting error:undefined method 'current'
hi all,
i am getting an error ''undefined method ''current'' for 852:Fixnum'', the
error coming for following line
<%if @expert_pagination.current.previous%>
<a href="#" class="darkgray1"
2008 Apr 07
5
Associations errors
undefined method `each'' for 0:Fixnum
at line
@school = School.find_by_title(params[:school_id].gsub(''-'', " "))
for team in @school.teams
........
end
@school does exist cause i tried with .find(:first) and it gave the
same error.
Also I''m getting
undefined method `reject'' for #<Game:0x24ca1c4>
From @home.game_ids = @game
2006 Nov 19
2
underscores, sugar, and more and more bugs
I sent this earlier under with the subject "artificial sugar causes
cancer" and I think some spam filters ate it. Here it is again:
======================================
All,
If you look at http://rubyforge.org/tracker/index.php?func=detail&aid=6760&group_id=797&atid=3149
you''ll see that Chad (the submitter) found the source of the bug.
Unfortunately, the source
2013 Feb 07
11
Rails change default time zone.
Hello everyone,
I am using rails 3.2.8.
I want to change time zone to New York time.
I changed following, but didn''t work
#config/application.rb
config.time_zone = ''Eastern Time (US & Canada)''
config.active_record.default_timezone = ''Eastern Time (US & Canada)''
If am wrong please clarify.
Thank You!
--
You received this message
2013 Apr 21
5
Where to find info about seed.rb, db:seed functionality?
There is no any mention about it neither in API nor in Guide. How to use
these features? The only gist with two sentences is in db/seed.rb file.
That''s really not enough.
--
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 unsubscribe from this group and stop receiving emails