Re: [Rails] Array Confusion

2014-02-05 Thread BeeRich
I see. Now it is clear. I was under the impression that the inspect method was just a representation of the returned array. Good to know. Thanks for the notes. Cheers On Feb 6, 2014, at 12:06 AM, Gautam Rege wrote: > Your'e looking at the result in correctly,-- that is not a comment in

Re: [Rails] Ruby on Rails application could not be started

2014-02-05 Thread Gautam Rege
Alternatively you can downgrade the gem system using $ gem update --system 1.4.2 If you are on a higher gem version, it downgrades it. As far as I know, 1.8.25 gem works well with Rails 2.1 onwards with Ruby 1.8.7 and rake (0.8.7). I also think rack (1.1.0) causes problems as it's quite a lat

Re: [Rails] Array Confusion

2014-02-05 Thread Gautam Rege
Your'e looking at the result in correctly,-- that is not a comment in the array! Its the "stringified" output of the array that contains Geocoder::Result objects. res = Geocoder.search(addy1).first res.data # => gives you entire data .. seen as @data and then you can traverse as a hash Ther

[Rails] Web App looking for a new business model

2014-02-05 Thread Yves Riel
Hi RoR developers I am interested in hearing your thoughts on this. I will very shortly develop a web application for the eLearning industry in a SaaS model. I have a good idea and some very good contacts in the industry. I am more of a .NET person but decided to make it in Ruby in order to have t

[Rails] Array Confusion

2014-02-05 Thread BeeRich
I have the following instruction that returns an array that I'm quite confused about. I can't even read it. Can someone shed some light as to how to reach into this array of hashes (that's what I can see) to get the location lat and lon? res = Geocoder.search(addy1) This is the res: [#[{"lo

Re: [Rails] Google Geolocation

2014-02-05 Thread Hassan Schroeder
On Wed, Feb 5, 2014 at 4:26 PM, BeeRich wrote: > Hi folks. Trying to get google-geo to work, but I am seeing errors. > > #!/usr/bin/ruby > > require 'Google-geo' > pry 2.0.0 (main):0 > require 'google/geo' => true HTH, -- Hassan Schroeder hassan.schroe...@gmail.com htt

[Rails] Re: Rails shared helpers within views conflict

2014-02-05 Thread Rodrigo Lueneberg
Frederick Could you please elaborate "helper :currency?" Can you give an example? Thanks Rod Frederick Cheung wrote in post #1135734: > On Wednesday, February 5, 2014 7:29:41 PM UTC, Ruby-Forum.com User > wrote: >> >> Frederick, >> >> Thanks. I am glad you agree with me. By the way, do you recom

[Rails] Google Geolocation

2014-02-05 Thread BeeRich
Hi folks. Trying to get google-geo to work, but I am seeing errors. #!/usr/bin/ruby require 'Google-geo' mykey = 'blahblahblah' addy1 = '1600 Amphitheatre Parkway, Mountain View, CA' # 37.42246, -122.08394 geo = Google::Geo.new mykey

[Rails] rbenv to RVM command equivalencies

2014-02-05 Thread Eric Jefcoat
Hello, I need a sort of translation dictionary for rbenv to RVM commands. I am working on some learning tracks and projects on Treehouse for RoR development and their tutorial calls for using rbenv. I already have RVM installed for the Skillshare class, Rails in 30 Days. I received some great

[Rails] Re: Ruby on Rails application could not be started

2014-02-05 Thread Matt Jones
On Tuesday, 4 February 2014 19:58:31 UTC-5, vgaiter4 wrote: > > Per a customers request I installed redmine 1.3.3 on Ubuntu 12.04.3 LTS. I > have followed the install instructions to the letter. However when I go to > launch the website Http://myserver/redmine, I get an error stating "the > Ru

[Rails] Re: Rails shared helpers within views conflict

2014-02-05 Thread Frederick Cheung
On Wednesday, February 5, 2014 7:29:41 PM UTC, Ruby-Forum.com User wrote: > > Frederick, > > Thanks. I am glad you agree with me. By the way, do you recommend > setting this option to false as good practice on every fresh project? > Looks like your idea solves the issue, but of course, will fo

[Rails] Re: Can two Rails versions use one database?

2014-02-05 Thread Robert Walker
Russ Dast wrote in post #1135683: > Thanks Walter and Jim for your feedback. The Railsconf talk was indeed > informative, although we are still leaning against an upgrade path and > are > more likely to choose a rewrite-based approach. Jim, I hadn't thought > about > the flash, so thanks for pointi

[Rails] Re: Rails shared helpers within views conflict

2014-02-05 Thread Rodrigo Lueneberg
Frederick, Thanks. I am glad you agree with me. By the way, do you recommend setting this option to false as good practice on every fresh project? Looks like your idea solves the issue, but of course, will force you to dump stuff like you said, in application.rb. I researched a little bit and

[Rails] Re: Rails shared helpers within views conflict

2014-02-05 Thread Frederick Cheung
On Wednesday, February 5, 2014 4:46:12 PM UTC, Ruby-Forum.com User wrote: > > According to this article Rails helpers from all controllers are > available to all views. But to me this looks kind of a dangerous > approach because I might at some point use helper methods with the same > name but

[Rails] Re: Ruby on Rails application could not be started

2014-02-05 Thread Frederick Cheung
On Wednesday, February 5, 2014 12:58:31 AM UTC, vgaiter4 wrote: > > Per a customers request I installed redmine 1.3.3 on Ubuntu 12.04.3 LTS. I > have followed the install instructions to the letter. However when I go to > launch the website Http://myserver/redmine, I get an error stating "the

[Rails] Re: Can two Rails versions use one database?

2014-02-05 Thread Russ S
Thanks Walter and Jim for your feedback. The Railsconf talk was indeed informative, although we are still leaning against an upgrade path and are more likely to choose a rewrite-based approach. Jim, I hadn't thought about the flash, so thanks for pointing that out. I think we can probably manage

[Rails] Re: Automated Form Filling [Off Topic(ish)]

2014-02-05 Thread Frederick Cheung
On Wednesday, February 5, 2014 2:26:45 PM UTC, paul h wrote: > > Hi All, > > I need to post data from my rails app to an external web form I do not > have any control over. There is no public API, so I was wondering if anyone > had had a similar problem, and was it possible to to utilize Seleni

[Rails] problems with installing the rails gem

2014-02-05 Thread אסף סיפור
hello i tried to install he rails gem $gem install rails and got the error messege unable to download data from http://rubygems.org/ -ssl_connet returned =1 errno =0 state =sslv3 read server certificate b: certificate verify failed (https:/api.rubygems.org/latest_specs.4.8.gz what sholud i do

[Rails] Rails shared helpers within views conflict

2014-02-05 Thread Rodrigo Lueneberg
According to this article Rails helpers from all controllers are available to all views. But to me this looks kind of a dangerous approach because I might at some point use helper methods with the same name but with different implementations that can cause conflicts and undesired results. This actu

[Rails] Automated Form Filling [Off Topic(ish)]

2014-02-05 Thread paul h
Hi All, I need to post data from my rails app to an external web form I do not have any control over. There is no public API, so I was wondering if anyone had had a similar problem, and was it possible to to utilize Selenium in production in order to automate the form filling - similar to taggi

[Rails] Solr Search with one to many associations

2014-02-05 Thread Kishore Seemala
I have a 2 entities which have many to many relation say teacher and slot. Each teacher has many classes he/she takes up and each class is a slot. I want to perform search on teacher by sunspot solr for all the teacher who takes classes for different days in specific time. Say model structures an