When you use ary = [0,1,1,1,1,10] map! ends up trying to do this:
%w(zero one two ten)[10]
So it's trying to get the tenth element of an array of only 4 elements,
that's why it returns nil, the only way to make it work as you want is:
%w(zero one two three four five six seven eight nine ten)[1
There's no reason to use 'where' when you want to select by id since most
of the times id is an unique value, and there's no reason to use 'limit(1)'
if every time you select by id (SELECT * FROM users where id=34) it returns
only one row, so you can use:
p = People.find_by_id 34 # this will re
Position filled - thanks to all who replied. /James
On Thursday, April 19, 2012 5:15:06 PM UTC-4, go2null wrote:
>
> Hello All:
>
> I'm looking for a Redmine developer for a minimum 4-month contract with a
> major Canadian company in the Mississauga (Airport) area.
>
> The job is to design a ne
As a subscriber to Codeschool, I can vouch for them. Well worth your
support past this free weekend. I think it's like $25/month... I know some
people are tight on money but even for one month, you can power through
things and offer some support.
On Sat, May 19, 2012 at 8:22 AM, Vibhor wrote:
Try this:
$ gem uninstall libv8
$ gem install therubyracer
It works for me.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.c
Don't suppose anyone else has had any problems installing
therubyracer? Is there anything particular to look out for installing
on 64-bit linux?
On May 18, 3:19 pm, tfp44 wrote:
> I'm struggling to install therubyracer gem. Using CentOS 6.2 x86_64,
> ruby 1.9.3p194, gem 1.8.24, libv8 (3.10.8.0, 3
Awesome! Thanks for informing
On May 17, 6:25 pm, Guilherme Dutra wrote:
> So many courses in CodeSchool will be free in this weekend, enjoy!
>
> http://www.codeschool.com/free-weekend
>
> --
> Atenciosamente,
> Guilherme Pereira Dutra,
> Fone: (34) 8407-0109
--
You received this message becaus
7 matches
Mail list logo