Re: [Rails] Re: Beginner issue - databases reference

2011-09-22 Thread Colin Law
On 22 September 2011 02:21, Justin D. li...@ruby-forum.com wrote: Please don't top post, it makes it difficult to follow the thread. Insert your reply at appropriate points in the previous post. Thanks. Well... I've read some tutorials and basically, what I had to do was to create a database

Re: [Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-22 Thread Colin Law
On 22 September 2011 02:19, pepe p...@betterrpg.com wrote: Me, I'm betting on the mammals. I think there are a lot more species of birds (ie dinosaurs) then there are mammals. Colin -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: What is the equivalent for write_attribute for associations in Rails?

2011-09-22 Thread Guy R.
I agree completely. So much. There are many great things about Rails but I've lost so much time trying to accomplish slightly off pattern things, the sort of things a real project needs. I believe that this is what holds Rails back. The initial learning curve is shallow and exciting but

[Rails] Re: Secure Subdomain

2011-09-22 Thread Hesham
From what I understand from the docs on Heroku, I will have to specify a secure subdomain even though I have a wildcard certificate. On Sep 22, 12:42 am, Robert Walker li...@ruby-forum.com wrote: Hesham Amiri wrote in post #1023058: I have a rails 3.1 app running on Heroku and am about to

[Rails] Re: ERROR: While executing gem

2011-09-22 Thread bukun
Please give me the display after writting gem list what do u get On Sep 20, 10:58 am, Matin caliskan.me...@gmail.com wrote: Yeah right, I've got the version 1.7.2 of gem. I'm on a Win7 64bit and I run my prompt as administrator. On 20 sep, 06:29, Rajarshi rdas2...@gmail.com wrote:

Re: [Rails] Re: ERROR: While executing gem

2011-09-22 Thread Leoncio Caminha
are u using rvm or something dude? its a wierd Enviado via iPad Em 22/09/2011, às 07:07, bukun rdas2...@gmail.com escreveu: Please give me the display after writting gem list what do u get On Sep 20, 10:58 am, Matin caliskan.me...@gmail.com wrote: Yeah right, I've got the

Re: [Rails] Model that belongs to Person or Company

2011-09-22 Thread Rodrigo Ruiz
thank you On Thu, Sep 22, 2011 at 12:43 AM, Rob Biedenharn r...@agileconsultingllc.com wrote: On Sep 21, 2011, at 9:52 PM, Rodrigo Ruiz wrote: Hi, I gotta make a model (telefone) that belongs to a person or to a company, how do I do that? Thank you, Rodrigo You probably want a

[Rails] Re: custom action in Rails 3

2011-09-22 Thread Tim Shaffer
That query is nothing to worry about. It's just rails running a query to figure out which tables you have in your database so it can figure out which columns they have so it can make your models work properly. In production it should only run once (when the server is first started). But then

Re: [Rails] rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails

2011-09-22 Thread Walter Lee Davis
On Sep 21, 2011, at 5:10 PM, David A. wrote: I'm trying to move my application from Rails 2.3.5 to Rails 3.1 which is a challenge. In my application, require 'zip/zip' fails with 'no such file to load -- zip/zip Take this require out of wherever you're putting it now, and put this line

[Rails] warning: class variable access from toplevel

2011-09-22 Thread Sandeep Campbell
Hi I m getting following warning spec_helper.rb:102: warning: class variable access from toplevel i am using ruby 1.9.2 and rails 3 Thanks Regards, Sandeep Campbell -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] very new to rails

2011-09-22 Thread Joe Collins
what can rails do that ruby can't? I want to know the benefits of ruby on rails. Thanks in advance Joe -- 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

Re: [Rails] very new to rails

2011-09-22 Thread Martin Wawrusch
Ruby on Rails is a web framework that uses the language Ruby to serve content to the web. It takes care of all the plumbing that you would otherwise have to write by hand, saving you thousands of hours of work. To learn more about the features of Ruby On Rails go to http://guides.rubyonrails.org/

[Rails] Re: ERROR: While executing gem

2011-09-22 Thread Luis Lavena
On Sep 19, 5:17 pm, Matin caliskan.me...@gmail.com wrote: Hello, I installed the latest ruby version (1.9.2p290) via the rubyinstaller (exe). I have a Windows 7 64bits. Installation was fine. But I can't update or install my gems. For instance if I enter gem install rails I get the

Re: [Rails] Re: ERROR: While executing gem

2011-09-22 Thread Norbert Melzer
He said, that he was using the Ruby installer, so there is no rvm. Also I don't remember rvm is running with windows. Anyway, it looks as if there is some version mismatch when I look at the pathes. 1.9.2 is mentioned on the one side, but in the path the gems go into a 1.9.1 dir. -- send by

Re: [Rails] Re: Secure Subdomain

2011-09-22 Thread Hassan Schroeder
On Thu, Sep 22, 2011 at 2:35 AM, Hesham hesham.am...@gmail.com wrote: From what I understand from the docs on Heroku, I will have to specify a secure subdomain even though I have a wildcard certificate. Can you provide a pointer to that doc? I have an app on Heroku using SSL without any

Re: [Rails] rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails

2011-09-22 Thread Luis M
cat Gemfile -- A bug magnet El Sep 21, 2011, a las 17:10, David A. li...@ruby-forum.com escribió: I'm trying to move my application from Rails 2.3.5 to Rails 3.1 which is a challenge. In my application, require 'zip/zip' fails with 'no such file to load -- zip/zip gem list --local

Re: [Rails] Re: What is the equivalent for write_attribute for associations in Rails?

2011-09-22 Thread Hassan Schroeder
On Thu, Sep 22, 2011 at 1:57 AM, Guy R. li...@ruby-forum.com wrote: I believe that this is what holds Rails back. Just curious -- in which parallel universe is Rails being held back? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder

[Rails] Re: ERROR: While executing gem

2011-09-22 Thread Luis Lavena
On Sep 22, 10:31 am, Norbert Melzer timmel...@googlemail.com wrote: He said, that he was using the Ruby installer, so there is no rvm. Also I don't remember rvm is running with windows. Anyway, it looks as if there is some version mismatch when I look at the pathes.  1.9.2 is mentioned on the

[Rails] Re: rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails

2011-09-22 Thread David A.
Walter Davis wrote in post #1023269: On Sep 21, 2011, at 5:10 PM, David A. wrote: I'm trying to move my application from Rails 2.3.5 to Rails 3.1 which is a challenge. In my application, require 'zip/zip' fails with 'no such file to load -- zip/zip Take this require out of wherever

[Rails] Referral generation and tracking

2011-09-22 Thread Nikhil Goyal
Here are two things that need to be done. 1. Generate Referreal URL's for users. -- people will signup and a referral URL will be generated for them, which they can share 2. Track those referral URL's -- I will have to track performance of each referral URL How can go about doing this using

[Rails] how to create pgsql sequence from controller?

2011-09-22 Thread Romain 'Maz' BILLOIR
(Frenchy, sorry =)) Hi everyone, i'm working on a web browser based game: every player have got some ants and i want every ants of each player to have a unique name: Player 1: ant 1 ant 2 ant 3 Player 2: ant 1 ant 2 ant 3 ant 4 ... To do that i need to create player1_seq and player2_seq

Re: [Rails] Re: rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails

2011-09-22 Thread Walter Lee Davis
On Sep 22, 2011, at 1:26 PM, David A. wrote: Walter Davis wrote in post #1023269: On Sep 21, 2011, at 5:10 PM, David A. wrote: I'm trying to move my application from Rails 2.3.5 to Rails 3.1 which is a challenge. In my application, require 'zip/zip' fails with 'no such file to load

Re: [Rails] Re: Rails and CKEditor

2011-09-22 Thread Leonardo Mateo
On Wed, Sep 21, 2011 at 10:23 AM, Keith Raymond li...@ruby-forum.com wrote: Thanks for the replies! I looked into the el_finder, but this is using jQuery and I'm building this out in prototype.  If I use that gem would that add any real bloat to my application?  I have always been weary of

[Rails] OmniAuth and Rails 3.1

2011-09-22 Thread Leonardo Mateo
Hi guys, I've been struggling with OmniAuth for Twitter for a past few days and I can't get it to work with Rails 3.1 I'm not sure if this is a Twitter problem, or an OmniAuth problem. I create the application on twitter, the steps vary a bit from the Railscast showing it, but that's because of a

Re: [Rails] OmniAuth and Rails 3.1

2011-09-22 Thread Everaldo Gomes
Hi! Take a look in the omni populus gem: https://github.com/icelab/omnipopulus Best Regards, Everaldo On Thu, Sep 22, 2011 at 8:54 PM, Leonardo Mateo leonardoma...@gmail.comwrote: Hi guys, I've been struggling with OmniAuth for Twitter for a past few days and I can't get it to work with

[Rails] Re: (ActiveRecord) Why is there no belongs_to_many?

2011-09-22 Thread Kevin S.
David A. Black wrote in post #712598: Hi -- On Wed, 6 Aug 2008, Shawn .. wrote: The has/belongs semantics are, indeed, not always a perfect fit for the way things relate when we describe them in English. For example, I remember coming up with an example once where I ended up with a Club

[Rails] Possible to disable prepared statements on postgres?

2011-09-22 Thread Joe Van Dyk
Whenever I do a database migration that changes a table structure, I get a zillion of these errors: ActiveRecord::StatementInvalid: PGError: ERROR: cached plan must not change result type : SELECT products.* FROM products WHERE products.id = $1 LIMIT 1 The Rails processes throw the above

[Rails] Re: warning: class variable access from toplevel

2011-09-22 Thread 7stud --
Open up spec_helper.rb and copy and paste lines 95-110. -- 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.com. To unsubscribe from

[Rails] Re: retrieve app from github?

2011-09-22 Thread 7stud --
Chirag Singhal wrote in post #1023053: First you have to setup your laptop for git usage similar to what you had done for your PC. 1. Install Git 2. Generate SSH keys 3. Add your laptop's public key to your github account (you can add as many keys as you want, so do not modify your PC's

Re: [Rails] Re: retrieve app from github?

2011-09-22 Thread Chirag Singhal
You have to create new branch locally and pull code from your git branch into that one. So something like this on your laptop: Open up terminal and change directory to where your app is checked out. Create a new local branch: git checkout -b updating_users Pull code in that branch from your