[Rails] not able to find Gem file netbeans

2013-08-30 Thread Vijay Bhargav
Hi, I am a newbie to Ruby. I have installed and set up Netbeans in windows 7. I have created a new project but i am not able to see Gemfile in the project tree view. can some one help me. thanks vijay -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subsc

[Rails] Re: Re: Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)

2013-08-30 Thread Paulo Castro
Hi Jordon, thank you very much for your response! I'm assuming that my OpenSSL is working fine and my Ruby is already compiled with SSL headers, since when I execute using Rails console it works fine. Your code doesn't work because this endpoint don't allow http connection, only https. If I i

Re: [Rails] Re: Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)

2013-08-30 Thread Jordon Bedwell
On Fri, Aug 30, 2013 at 8:40 AM, Paulo Castro wrote: > I mean, when I execute the code bellow from web browser.. > I'm using apache+phusionpassenger > > Please, anyone has any idea? I couldn't find anything to help yet!! First make sure your OpenSSL is working fine, then make sure you've the SSL

Re: [Rails] Re: Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)

2013-08-30 Thread Colin Law
On 30 August 2013 14:40, Paulo Castro wrote: > I mean, when I execute the code bellow from web browser.. How are you executing it from a browser? Colin > I'm using apache+phusionpassenger > > Please, anyone has any idea? I couldn't find anything to help yet!! > > Thank you all in advance! > > >

[Rails] Re: Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)

2013-08-30 Thread Paulo Castro
I mean, when I execute the code bellow from web browser.. I'm using apache+phusionpassenger Please, anyone has any idea? I couldn't find anything to help yet!! Thank you all in advance! Paulo Castro wrote in post #1119935: > Hi guys > > when I execute the piece of code bellow on RoR console it

Re: [Rails] frozen? is defined by ActiveRecord

2013-08-30 Thread Colin Law
On 30 August 2013 13:47, Tsolmon Narantsogt wrote: > I have to connect to an existing database. > But i got > > ActiveRecord::DangerousAttributeError > frozen? is defined by ActiveRecord Please don't top post, it makes it difficult to follow the thread. Insert your reply inline in the previous po

Re: [Rails] frozen? is defined by ActiveRecord

2013-08-30 Thread Tsolmon Narantsogt
I have to connect to an existing database. But i got ActiveRecord::DangerousAttributeError frozen? is defined by ActiveRecord My code is here: class Customer < ActiveRecord::Base establish_connection :my_connection self.table_name = 'customer' self.primary_key = 'customer_no' def self.ge

[Rails] Re: Puma fails when it restarts itself - SOLVED

2013-08-30 Thread Rob Daniels
FIXED I had the restart_command in puma.rb trying to run 'puma.sock restart', I pointed it to my init.d file and it no longer has an issue when it boots workers restart_command '/etc/init.d/puma restart' I still occasionally get a 504 timeout under very heavy load, but i have the god gem monit

Re: [Rails] frozen? is defined by ActiveRecord

2013-08-30 Thread Colin Law
On 30 August 2013 13:33, Tsolmon Narantsogt wrote: > Hello folks > > > I got that error Pls tell me what's wrong > > frozen? is defined by ActiveRecord We are not telepathic so without knowing what you are doing it is impossible to say. Post the full error and stack trace (if any) and the secti

[Rails] frozen? is defined by ActiveRecord

2013-08-30 Thread Tsolmon Narantsogt
Hello folks I got that error Pls tell me what's wrong frozen? is defined by ActiveRecord -- 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-ta

[Rails] how to retrieve an aray of only specific attributes in rails 2.3

2013-08-30 Thread ruby rails
I have a scenario where I need to retrieve an array of specific attributes from a table. I have a TransportAttendanceBlock table. In the table I have blocked(boolean) and blocked_date attributes. From a controller I am fetching this table by passing params of date and boolean value. Controller

Re: [Rails] Why is the behaviour of ActiveRecord method_missing different between rails 3.2 and 4.0 ?

2013-08-30 Thread Frederick Cheung
On Thu, Aug 29, 2013 at 2:29 PM, starfry wrote: > I have been working on updating a rails application to 4.0 and spent some > time getting to the bottom of why it wasn't working. > > What I found was, if a model has a method_missing definition then it is > called *instead of any accessors*. This

Re: [Rails] Insert row in one table and after save I want that Id in another table to be saved

2013-08-30 Thread Colin Law
On 30 August 2013 09:00, honey ruby wrote: > Hi all > > There is a scenario with 2 tables. > I will insert the one row in table 1 and after I save my row in table one I > want that Id to be saved in another table immediately how to approach this > scenario. Which bit don't you know how to do? Whe

[Rails] Insert row in one table and after save I want that Id in another table to be saved

2013-08-30 Thread honey ruby
Hi all There is a scenario with 2 tables. I will insert the one row in table 1 and after I save my row in table one I want that Id to be saved in another table immediately how to approach this scenario. kindly help me Regards, Honey -- You received this message because you are subscrib